import { IPublicTypeComponentMetadata, IPublicTypeSnippet } from '@alilc/lowcode-types'; const CustomDrawerMeta: IPublicTypeComponentMetadata = { "componentName": "CustomDrawer", "group": '低代码组件', "title": "CustomDrawer", "docUrl": "", "screenshot": "", "devMode": "proCode", "category": '布局容器类', "npm": { "package": "@dckj-npm/dc-material", "version": "0.1.279", "exportName": "CustomDrawer", "main": "src\\index.tsx", "destructuring": true, "subName": "" }, "configure": { "props": [ { "title": { "label": { "type": "i18n", "en-US": "title", "zh-CN": "标题" }, "tip": "title | 标题" }, "name": "title", "description": "标题", "setter": { "componentName": "StringSetter", "isRequired": true, "initialValue": "" } }, { "title": { "label": { "type": "i18n", "en-US": "placement", "zh-CN": "弹出位置" }, "tip": "placement | 弹出位置" }, "name": "placement", "description": "弹出位置", "setter": { "componentName": "SelectSetter", "props": { "dataSource": [ { "label": "left", "value": "left" }, { "label": "right", "value": "right" }, { "label": "top", "value": "top" }, { "label": "bottom", "value": "bottom" } ], "options": [ { "label": "left", "value": "left" }, { "label": "right", "value": "right" }, { "label": "top", "value": "top" }, { "label": "bottom", "value": "bottom" } ] }, "isRequired": true, "initialValue": "left" } }, { "title": { "label": { "type": "i18n", "en-US": "actions", "zh-CN": "操作项" }, "tip": "actions | 操作项" }, "name": "actions", "description": "操作项", "setter": { "componentName": "ArraySetter", "props": { "itemSetter": { "componentName": "ObjectSetter", "props": { "config": { "items": [ { "title": { "label": { "type": "i18n", "en-US": "text", "zh-CN": "text" } }, "name": "text", "setter": { "componentName": "StringSetter", "isRequired": true, "initialValue": "" } }, { "title": { "label": { "type": "i18n", "en-US": "action", "zh-CN": "action" } }, "name": "action", "setter": { "componentName": "StringSetter", "isRequired": true, "initialValue": "" } }, { "title": { "label": { "type": "i18n", "en-US": "style", "zh-CN": "style" } }, "name": "style", "setter": { "componentName": "RadioGroupSetter", "props": { "dataSource": [ { "label": "primary", "value": "primary" }, { "label": "secondary", "value": "secondary" }, { "label": "normal", "value": "normal" } ], "options": [ { "label": "primary", "value": "primary" }, { "label": "secondary", "value": "secondary" }, { "label": "normal", "value": "normal" } ] }, "isRequired": true, "initialValue": "primary" } } ], "extraSetter": { "componentName": "MixedSetter", "isRequired": false, "props": {} } } } } }, "isRequired": true, "initialValue": [] } } ], "supports": { "style": true }, "component": {} } }; const snippets: IPublicTypeSnippet[] = [ { "title": "CustomDrawer", "screenshot": "", "schema": { "componentName": "CustomDrawer", "props": {} } } ]; export default { ...CustomDrawerMeta, snippets };