UNPKG

@cainiaofe/cn-ui-charts

Version:
328 lines (327 loc) 8.5 kB
/// <reference types="react" /> export declare function getObjectSetterSnippet(config: any): { componentName: string; props: { config: { items: any; }; }; }; export declare function createHeaderSnippet(): { componentName: string; title: string; props: {}; children: { componentName: string; title: string; props: {}; children: any; }[]; }; export declare const createCellSnippet: (children: any) => { componentName: string; title: string; props: {}; children: any; }; export declare const createFooterSnippet: () => { componentName: string; title: string; props: {}; children: { componentName: string; title: string; props: {}; children: any; }[]; }; export declare const createSectionSnippet: ({ blockProps }?: { blockProps: any; }) => { componentName: string; title: string; props: {}; children: { componentName: string; title: string; props: any; children: { componentName: string; title: string; props: {}; children: any; }[]; }[]; }; export declare const createBlockSnippet: ({ blockProps }?: { blockProps: any; }) => { componentName: string; title: string; props: any; children: { componentName: string; title: string; props: {}; children: any; }[]; }; export declare const createGridlSnippet: () => { componentName: string; title: string; props: { rows: number; cols: number; }; children: never[]; }; export declare const createRowColSnippet: (componentName?: string) => { componentName: string; title: string; props: {}; children: never[]; }; export declare const createAsideSnippet: () => { componentName: string; title: string; props: {}; children: { componentName: string; title: string; props: {}; children: any; }[]; }; /** * 返回包裹了P标签的schema,会根据dragged的类型设置不同的属性 * @param {*} dragged 被拖入的组件,是个引擎 node 类型 * @returns {} 返回值是个对象 */ export declare const createPSnippet: () => { componentName: string; title: string; props: {}; children: never[]; }; export declare function getDataOriginSetterSnippet(config?: {}): { name: string; title: string; display: string; initialValue: string; setter: { componentName: string; props: { options: { title: string; value: string; }[]; }; }; }; export declare function createSectionInitialChildren(): { componentName: string; title: string; props: any; children: { componentName: string; title: string; props: {}; children: any; }[]; }[]; export declare function createFilterSelectSetters(config: any, extraConfig: any): any[]; export declare function createFilterConfigSetter(): { name: string; title: string; setter: { componentName: string; props: { config: { items: any; }; }; }; }; export declare function getChartCommonStyleSetterSnippet(config: any): { name: string; title: string; display: string; setter: { componentName: string; props: { config: { items: any; }; }; }; }; export declare function getGroupSetterSnippet(config: any): any; export declare function getArraySetterSnippet(config: any): { componentName: string; props: { mode: string; itemSetter: { componentName: string; initialValue: any; props: { config: { items: any; }; }; }; }; }; export declare function getCnSelectSetterSnippet(config: any): { componentName: string; props: any; }; export declare function getComponentSlotSetterSnippet(config: any): { name: string; title: any; setter: { componentName: string; title: string; initialValue: any; }; extraProps: { getValue(target: any, value: any): any; }; }; export declare function getChartCommonOptions(): { autoFit: boolean; }; export declare function getPieCharOptions(): { type: string; coordinate: { type: string; }; transform: { type: string; }[]; animate: { enter: { type: string; }; }; autoFit: boolean; }; export declare function getColumnCharOptions(): { type: string; autoFit: boolean; }; export declare function getLineCharOptions(): { type: string; autoFit: boolean; }; export declare function createDefaultFilter(): { componentName: string; props: { title: string; filterStyle: { showFolder: boolean; showSelected: boolean; enableConfig: boolean; showBottomLine: boolean; hideButton: boolean; removeEmptyLabel: boolean; size: string; maxVisibleRow: number; }; className: string; config: { label: string; name: string; componentName: string; options: { extra: { direction: string; type: string; }; dataSource: { label: string; value: string; }[]; dataOrigin: string; }; }[]; }; }; export declare function createFeatureSetters(config?: {}): never[] | { componentName: string; props: { mode: string; itemSetter: { componentName: string; initialValue: { active: boolean; }; props: { config: { items: ({ name: string; display: string; title: string; isRequired: boolean; setter: { componentName: string; props: (field: any) => { options: any[]; }; }; extraProps: { setValue(target: any, value: any): void; }; } | { name: string; display: string; isRequired: boolean; title: string; setter: { componentName: string; props: { setters: { componentName: import("react").JSX.Element; title: string; }[]; config?: undefined; }; }; extraProps?: undefined; } | { name: string; display: string; title: string; setter: { componentName: string; props: { config: { items: any[]; }; setters?: undefined; }; }; isRequired?: undefined; extraProps?: undefined; })[]; }; }; }; }; }; export declare function getJSXTemplate(config: any): { componentName: string; props: { usePopup: boolean; enableFullscreen: boolean; theme: string; }; title: string; } | undefined; export declare function getNodeIdSetterSnippet(): { name: string; title: string; display: string; initialValue(): any; setter: import("react").JSX.Element; }; export declare function getComponentTitle(config: any): any;