Skip to content

Commit

Permalink
feat: f2 新增 umd 构建包 (#1295)
Browse files Browse the repository at this point in the history
  • Loading branch information
zengyue committed Nov 30, 2021
1 parent 54482af commit e0d4bab
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 5 deletions.
5 changes: 5 additions & 0 deletions packages/f2/.fatherrc.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
export default {
umd: {
name: 'F2',
file: 'f2',
minFile: true,
},
};
2 changes: 1 addition & 1 deletion packages/f2/src/components/axis/rect/bottom.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { jsx } from '../../../';
import { jsx } from '../../../jsx';
import { RectProps } from '../types';
import { TextAttrs } from '../../../types';

Expand Down
2 changes: 1 addition & 1 deletion packages/f2/src/components/pieLabel/withPieLabel.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { jsx } from '../../jsx';
import { Component } from '../../index';
import Component from '../../base/component';
import { deepMix, toInteger, isArray } from '@antv/util';
import { isInBBox } from '../../util';

Expand Down
7 changes: 5 additions & 2 deletions packages/f2/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,16 @@ import Timeline from './timeline';
import Canvas from './canvas';
import Chart from './chart';

export { jsx, render } from './jsx';

export * from './components';
export { jsx, render } from './jsx';
export { Children, Component, Timeline, Canvas, Chart };

// F2 namespace
const F2 = {
Children,
Component,
Timeline,
Canvas,
Chart,
};
export default F2;
2 changes: 1 addition & 1 deletion packages/f2/src/timeline.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Component from './base/component';
import { Children } from '.';
import Children from './children';

class Timeline extends Component {
index: number;
Expand Down

0 comments on commit e0d4bab

Please sign in to comment.