UNPKG

oadp-material

Version:
157 lines (153 loc) 4.26 kB
import { IPublicTypeComponentMetadata, IPublicTypeSnippet } from '@alilc/lowcode-types'; const OadpCheckboxMeta: IPublicTypeComponentMetadata = { "componentName": "OadpCheckbox", "title": "复选框", "docUrl": "", "category": "高级组件", "group": "低代码组件", "screenshot": "https://alifd.oss-cn-hangzhou.aliyuncs.com/fusion-cool/icons/icon-light/ic_light_menu.png", "devMode": "proCode", "npm": { "package": "oadp-material", "version": "{{version}}", "exportName": "OadpCheckbox", "main": "src/index.tsx", "destructuring": true, "subName": "" }, "configure": { "props": [ { "name": "DataSetting", "title": "数据设置", "type": "group", "display": "block", "items": [ { "name": "name", "title": { "label": { "type": "i18n", "zh_CN": "表单标识", "en_US": "Name", }, "tip": { "type": "i18n", "zh_CN": "属性: name | 说明: 表单标识", "en_US": "prop: name | description: name", }, }, "setter": "StringSetter", "supportVariable": false, }, { "name": "id", "title": { "label": { "type": "i18n", "zh_CN": "唯一标识", "en_US": "ID", }, "tip": { "type": "i18n", "zh_CN": "属性: id | 说明: 唯一标识", "en_US": "prop: id | description: switch id", }, }, "setter": "StringSetter" }, { "name": "defaultChecked", "title": { "label": { "type": "i18n", "zh_CN": "默认值", "en_US": "defaultChecked", }, "tip": { "type": "i18n", "zh_CN": "属性: defaultChecked | 说明: 默认值", "en_US": "prop: defaultChecked | description: defaultChecked", }, }, "setter": "BoolSetter", "supportVariable": false, "description": "默认值", }, ] }, { "name": "DisplaySetting", "title": "显示设置", "type": "group", "display": "block", "items": [ { "name": "label", "title": { "label": { "type": "i18n", "zh_CN": "标题", "en_US": "Label", }, "tip": { "type": "i18n", "zh_CN": "属性: label | 说明: 标题", "en_US": "prop: label | description: label content", }, }, "setter": "StringSetter", "description": "标题", }, ] }, { "name": "InteractionSetting", "title": "交互设置", "type": "group", "display": "block", "items": [ { "name": "disabled", "title": { "label": { "type": "i18n", "zh_CN": "禁用", "en_US": "Disabled", }, "tip": { "type": "i18n", "zh_CN": "属性: disabled | 说明: 禁用", "en_US": "prop: disabled | description: disabled", }, }, "setter": "BoolSetter", "supportVariable": false, "description": "禁用", }, ] }, ], "supports": { "style": true }, "component": {} } }; const snippets: IPublicTypeSnippet[] = [ { "title": "复选框", "screenshot": "https://alifd.oss-cn-hangzhou.aliyuncs.com/fusion-cool/icons/icon-light/ic_light_menu.png", "schema": { "componentName": "OadpCheckbox", "props": { "defaultChecked": false, "disabled": false, }, } } ]; export default { ...OadpCheckboxMeta, snippets };