UNPKG

oadp-material

Version:
176 lines 5.03 kB
import _extends from "@babel/runtime/helpers/extends"; var OadpAttributeBooleanMeta = { "componentName": "OadpAttributeBoolean", "title": "布尔属性", "docUrl": "", "category": "高级组件", "group": "低代码组件", "screenshot": "https://alifd.oss-cn-hangzhou.aliyuncs.com/fusion-cool/icons/icon-light/ic_light_switch.png", "devMode": "proCode", "npm": { "package": "oadp-material", "version": "{{version}}", "exportName": "OadpAttributeBoolean", "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": "size", "title": { "label": { "type": "i18n", "en-US": "Size", "zh-CN": "尺寸模式" }, "tip": { "type": "i18n", "zh_CN": "属性: size | 说明: 尺寸模式,可选值:small=紧凑模式, medium=普通模式。默认为:medium。", "en_US": "prop: size | description: Size mode, optional values: small=compact mode, medium=normal mode. The default is: medium." } }, "description": "属性: size | 说明: 尺寸模式,可选值:small=紧凑模式, medium=普通模式。默认为:medium。", "setter": { "componentName": "RadioGroupSetter", "props": { "dataSource": [{ "label": "普通模式", "value": "medium" }, { "label": "紧凑模式", "value": "small" }], "options": [{ "label": "普通模式", "value": "medium" }, { "label": "紧凑模式", "value": "small" }] }, "initialValue": "medium" } }, { "name": "autoWidth", "title": { "label": { "type": "i18n", "zh_CN": "自适应宽度", "en_US": "autoWidth" }, "tip": { "type": "i18n", "zh_CN": "属性: autoWidth | 说明: 自适应宽度", "en_US": "prop: autoWidth | description: autoWidth" } }, "setter": "BoolSetter", "supportVariable": false, "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": {} } }; var snippets = [{ "title": "布尔属性", "screenshot": "https://alifd.oss-cn-hangzhou.aliyuncs.com/fusion-cool/icons/icon-light/ic_light_switch.png", "schema": { "componentName": "OadpAttributeBoolean", "props": { "defaultChecked": false, "size": "medium", "autoWidth": false, "disabled": false } } }]; export default _extends({}, OadpAttributeBooleanMeta, { snippets: snippets });