@chief-editor/editor
Version:
FlowEditor Editor
21 lines (20 loc) • 630 B
TypeScript
import { BindType } from '@chief-editor/types';
import { FunctionAny } from '@co-hooks/util';
export declare function useBuildInDatasourceRender(): Record<string, FunctionAny>;
export interface IBindRenderProps {
datasource: {
bindType: BindType;
bindJs: string;
bindKey: string;
};
onDataChange: (value: Partial<IBindRenderProps['datasource']>) => void;
}
export interface IFuncRenderProps {
datasource: {
hook: string;
isWatch: boolean;
watchKeys: string;
lazy: boolean;
};
onDataChange: (value: Partial<IFuncRenderProps['datasource']>) => void;
}