Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions src/FMCharts.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import {
eCharts,
type IFMEChartsInputParams,
type IFMECharts,
} from '@flexmonster/js';

export const FMCharts = {
eCharts(params: IFMEChartsInputParams): IFMECharts {
return eCharts(params);
},
};
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ export { default as FMFlatFieldList, type FMFlatFieldListRef, type FMFlatFieldLi
export { default as FMToolbar, type FMToolbarRef, type FMToolbarProps } from './FMToolbar';
export { default as FMFilter, type FMFilterRef, type FMFilterProps } from './FMFilter';
export { default as FMGroup, type FMGroupProps } from './FMGroup';
export { FMCharts } from './FMCharts';
8 changes: 8 additions & 0 deletions src/next/FMCharts.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import type { IFMEChartsInputParams, IFMECharts } from '@flexmonster/js';

export const FMCharts = {
async eCharts(params: IFMEChartsInputParams): Promise<IFMECharts> {
const { FMCharts } = await import('@flexmonster/react');
return FMCharts.eCharts(params);
},
};
1 change: 1 addition & 0 deletions src/next/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ export { default as FMFlatFieldList } from './FMFlatFieldList';
export { default as FMToolbar } from './FMToolbar';
export { default as FMFilter } from './FMFilter';
export { default as FMGroup } from './FMGroup';
export { FMCharts } from './FMCharts';