@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`
190 lines (189 loc) • 4.52 kB
TypeScript
import { NodeSchema } from '@ali/sutee-lowcode-engine';
export declare function getObjectSetterSnippet(config: any): {
componentName: string;
props: {
config: {
items: any;
};
};
};
export declare function getArraySetterSnippet(config: any): {
componentName: string;
props: {
mode: string;
itemSetter: {
componentName: string;
initialValue: any;
props: {
config: {
items: any;
};
};
};
};
};
export declare const createBlockInitialChildrenSnippet: ({ cardProps, children, }: {
cardProps?: Record<string, unknown> | undefined;
children?: NodeSchema | undefined;
}) => NodeSchema;
export declare const createGroupCard: ({ title, headerBottomSlot, buttons, children }?: {
title: any;
headerBottomSlot: any;
buttons: any;
children: any;
}) => {
componentName: string;
title: string;
props: {
isCnCard: boolean;
_context: {
type: string;
value: string;
};
shape: string;
title: any;
slotManager: {
headerBottomSlot: any;
};
buttons: any;
};
children: any;
};
/**
* @description 添加一个空白的CnLayoutBlock
*/
export declare const createEmptyBlockSnippet: ({ blockProps, blockChildren, }?: {
blockProps?: Record<string, unknown> | undefined;
blockChildren?: NodeSchema | undefined;
}) => {
componentName: string;
title: string;
props: {
isCnLayoutBlock: boolean;
_context: {
type: string;
value: string;
};
};
} | {
children: NodeSchema[];
componentName: string;
title: string;
props: {
isCnLayoutBlock: boolean;
_context: {
type: string;
value: string;
};
};
};
/**
* @description 添加一个包含CnCard的CnLayoutBlock
*/
export declare const createBlockSnippet: ({ blockProps, cardProps, cardChildren, }?: {
blockProps?: Record<string, unknown> | undefined;
cardProps?: Record<string, unknown> | undefined;
cardChildren?: NodeSchema | undefined;
}) => {
componentName: string;
title: string;
props: {
isCnLayoutBlock: boolean;
_context: {
type: string;
value: string;
};
};
} | {
children: NodeSchema[];
componentName: string;
title: string;
props: {
isCnLayoutBlock: boolean;
_context: {
type: string;
value: string;
};
};
};
export declare const createRowColSnippet: (componentName?: string) => {
componentName: string;
title: string;
props: {};
children: never[];
};
export declare function createSectionInitialChildren(): {
componentName: string;
title: string;
props: {
isCnLayoutBlock: boolean;
_context: {
type: string;
value: string;
};
};
}[];
export declare const createSectionSnippet: ({ blockProps }?: {
blockProps: any;
}) => {
componentName: string;
title: string;
props: {};
children: ({
componentName: string;
title: string;
props: {
isCnLayoutBlock: boolean;
_context: {
type: string;
value: string;
};
};
} | {
children: NodeSchema[];
componentName: string;
title: string;
props: {
isCnLayoutBlock: boolean;
_context: {
type: string;
value: string;
};
};
})[];
};
export declare const createAsideSnippet: () => {
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 function createHeaderSnippet(): {
componentName: string;
title: string;
props: {};
children: {
componentName: string;
title: string;
props: {};
children: any;
}[];
};
export declare function getGroupSetterSnippet(config: any): any;
export declare function getMixedSetterSnippet(config: any): {
componentName: string;
props: {
setters: any;
};
};