@cainiaofe/cn-ui-layout
Version:
- 安装 cone-cli | [Cone-CLI 使用指引](https://alidocs.dingtalk.com/i/nodes/xdqZp24KneBJzvGM6XezJvyb7RA0Nr1E) - `tnpm i -g @alife/cone-cli@latest` - 安装依赖包 - `cone install` - 启动研发 - `cone start`
257 lines (256 loc) • 6.87 kB
TypeScript
/// <reference types="react" />
declare const bundle: ({
title: string;
componentName: string;
icon: import("react").JSX.Element;
docUrl: string;
isContainer: boolean;
disableBehaviors: string;
initialChildren: {
componentName: string;
props: {
isCnLayoutContent: boolean;
};
}[];
configure: ({
name: string;
title: string;
initialValue: boolean;
display: string;
collapsed?: undefined;
setter?: undefined;
} | {
name: string;
title: string;
initialValue: {
type: string;
value: string;
};
display: string;
collapsed?: undefined;
setter?: undefined;
} | {
title: string;
display: string;
collapsed: boolean;
setter: {
componentName: string;
props: {
config: {
items: any;
};
};
};
name?: undefined;
initialValue?: undefined;
})[];
} | {
title: string;
componentName: string;
icon: import("react").JSX.Element;
docUrl: string;
isContainer: boolean;
configure: ({
name: string;
title: string;
initialValue: boolean;
display: string;
} | {
name: string;
title: string;
initialValue: {
type: string;
value: string;
};
display: string;
})[];
} | {
title: string;
componentName: string;
icon: import("react").JSX.Element;
docUrl: string;
isContainer: boolean;
configure: ({
name: string;
title: string;
initialValue: boolean;
display: string;
setter?: undefined;
supportVariable?: undefined;
} | {
name: string;
title: string;
initialValue: {
type: string;
value: string;
};
display: string;
setter?: undefined;
supportVariable?: undefined;
} | {
name: string;
title: string;
display: string;
setter: string;
supportVariable: boolean;
initialValue?: undefined;
} | {
name: string;
title: string;
display: string;
supportVariable: boolean;
setter: {
componentName: string;
props: {
mode: string;
itemSetter: {
componentName: string;
initialValue: any;
props: {
config: {
items: any;
};
};
};
};
};
initialValue?: undefined;
})[];
} | {
title: string;
componentName: string;
category: string;
icon: import("react").JSX.Element;
docUrl: string;
isContainer: boolean;
initialChildren: typeof import("../common/manager/setter-snippet").createSectionInitialChildren;
didDropIn: (dropInNode: import("@ali/sutee-lowcode-engine").Node, targetNode: import("@ali/sutee-lowcode-engine").Node) => void;
didDropOut(removedNode: import("@ali/sutee-lowcode-engine").Node): void;
snippets: {
screenshot: string;
label: string;
schema: {
componentName: string;
props: {};
};
}[];
configure: ({
name: string;
title: string;
initialValue: boolean;
display: string;
onecodeDisplay?: undefined;
collapsed?: undefined;
setter?: undefined;
extraProps?: undefined;
type?: undefined;
items?: undefined;
} | {
name: string;
title: string;
initialValue: {
type: string;
value: string;
};
display: string;
onecodeDisplay?: undefined;
collapsed?: undefined;
setter?: undefined;
extraProps?: undefined;
type?: undefined;
items?: undefined;
} | {
title: string;
name: string;
display: string;
onecodeDisplay: string;
collapsed: boolean;
setter: {
componentName: string;
props: {
config: {
items: any;
};
};
};
initialValue?: undefined;
extraProps?: undefined;
type?: undefined;
items?: undefined;
} | {
setter: (target: import("@ali/sutee-lowcode-designer").SettingField) => import("react").JSX.Element;
extraProps: {
condition: (target: import("@ali/sutee-lowcode-designer").SettingField) => boolean;
};
name?: undefined;
title?: undefined;
initialValue?: undefined;
display?: undefined;
onecodeDisplay?: undefined;
collapsed?: undefined;
type?: undefined;
items?: undefined;
} | {
title: string;
name: string;
display: string;
collapsed: boolean;
setter: {
componentName: string;
props: {
config: {
items: any;
};
};
};
initialValue?: undefined;
onecodeDisplay?: undefined;
extraProps?: undefined;
type?: undefined;
items?: undefined;
} | {
title: string;
type: string;
collapsed: boolean;
display: string;
items: {
name: string;
title: string;
display: string;
setter: {
title: string;
componentName: string;
props: () => {
list: never[];
initialCode: string;
tip: string;
};
};
}[];
name?: undefined;
initialValue?: undefined;
onecodeDisplay?: undefined;
setter?: undefined;
extraProps?: undefined;
})[];
} | {
title: string;
componentName: string;
icon: import("react").JSX.Element;
docUrl: string;
isContainer: boolean;
canResizing: (node: import("@ali/sutee-lowcode-engine").Node, triggerDirection: import("../common/types").TriggerDirection) => boolean;
onResizeStart: (e: MouseEvent & {
trigger: string;
deltaX?: number | undefined;
deltaY?: number | undefined;
}, d: string, currentNode: any) => void;
onResize: (e: MouseEvent & {
trigger: "e" | "w";
deltaX?: number | undefined;
deltaY?: number | undefined;
}, d: any, currentNode: any) => void;
onResizeEnd: (e: MouseEvent, d: any, currentNode: any) => void;
configure: any[];
})[];
export default bundle;