@zzdadelu/schema-builder
Version:
通过 JSON Schema 生成标准 Form,常用于自定义搭建配置界面生成
111 lines (110 loc) • 2.69 kB
TypeScript
export declare const inputPropsBasic: ({
name: string;
title: {
label: string;
tip: string;
};
setter: string;
condition?: undefined;
} | {
name: string;
title: {
label: string;
tip: string;
};
setter: string;
condition: (target: any) => boolean;
})[];
export declare const notInputPropsBasic: ({
name: string;
title: {
label: string;
tip: string;
};
setter: string;
condition?: undefined;
} | {
name: string;
title: {
label: string;
tip: string;
};
setter: string;
condition: (target: any) => boolean;
})[];
export declare const optionsProp: {
display: string;
name: string;
title: {
label: string;
tip: string;
};
setter: {
componentName: string;
props: {
itemSetter: {
componentName: string;
initialValue: () => {
label: string;
value: string;
};
props: {
config: {
items: ({
name: string;
title: string;
important: boolean;
setter: string;
} | {
name: string;
title: string;
setter: string[];
important: boolean;
} | {
name: string;
title: string;
setter: string;
important?: undefined;
})[];
};
};
};
};
};
};
export declare const getInputPropsBasic: (defaultValueProp: any, placeholder?: any) => ({
name: string;
title: {
label: string;
tip: string;
};
setter: string;
condition?: undefined;
} | {
name: string;
title: {
label: string;
tip: string;
};
setter: string;
condition: (target: any) => boolean;
})[];
export declare const getNotInputPropsBasic: (defaultValueProp: any) => ({
name: string;
title: {
label: string;
tip: string;
};
setter: string;
condition?: undefined;
} | {
name: string;
title: {
label: string;
tip: string;
};
setter: string;
condition: (target: any) => boolean;
})[];
export declare const uuid: () => string;
export declare const createMeta: (componentName: string, params: any) => any;