import { IPublicTypeComponentMetadata, IPublicTypeSnippet } from '@alilc/lowcode-types'; const YCEmptyMeta: IPublicTypeComponentMetadata = { "componentName": "YCEmpty", "title": "YCEmpty", "docUrl": "", "screenshot": "", "devMode": "proCode", "npm": { "package": "yc-material", "version": "0.1.0", "exportName": "YCEmpty", "main": "src/index.tsx", "destructuring": true, "subName": "" }, "configure": { "props": [ { "title": { "label": { "type": "i18n", "en-US": "className", "zh-CN": "className" } }, "name": "className", "setter": { "componentName": "MixedSetter", "props": { "setters": [ { "componentName": "StringSetter", "isRequired": false, "initialValue": "" }, { "componentName": "ArraySetter", "props": { "itemSetter": { "componentName": "StringSetter", "isRequired": false, "initialValue": "" } }, "initialValue": [] } ] } } }, { "title": { "label": { "type": "i18n", "en-US": "description", "zh-CN": "显示文案" }, "tip": "description | 显示文案" }, "name": "description", "description": "显示文案", "setter": { "componentName": "SlotSetter", "props": { "mode": "node" }, "isRequired": false, "initialValue": { "type": "JSSlot", "value": [] } } }, { "title": { "label": { "type": "i18n", "en-US": "icon", "zh-CN": "自定义显示图" }, "tip": "icon | 自定义显示图案" }, "name": "icon", "description": "自定义显示图案", "setter": { "componentName": "SlotSetter", "props": { "mode": "node" }, "isRequired": false, "initialValue": { "type": "JSSlot", "value": [] } } }, { "title": { "label": { "type": "i18n", "en-US": "imgSrc", "zh-CN": "将图标替换为" }, "tip": "imgSrc | 将图标替换为图片" }, "name": "imgSrc", "description": "将图标替换为图片", "setter": { "componentName": "StringSetter", "isRequired": false, "initialValue": "" } } ], "supports": { "style": true }, "component": {} } }; const snippets: IPublicTypeSnippet[] = [ { "title": "YCEmpty", "screenshot": "", "schema": { "componentName": "YCEmpty", "props": {} } } ]; export default { ...YCEmptyMeta, snippets };