{
"icon": "checkboxgroup",
"name": {
"zh_CN": "复选框组"
},
"component": "tiny-checkbox-group",
"schema": {
"properties": [
{
"label": {
"zh_CN": "基础信息"
},
"description": {
"zh_CN": "基础信息"
},
"collapse": {
"number": 6,
"text": {
"zh_CN": "显示更多"
}
},
"content": [
{
"property": "modelValue",
"label": {
"text": {
"zh_CN": "绑定值"
}
},
"required": true,
"readOnly": false,
"disabled": false,
"cols": 12,
"widget": {
"component": "InputConfigurator",
"props": {}
},
"description": {
"zh_CN": "双向绑定值"
},
"labelPosition": "left"
},
{
"property": "disabled",
"label": {
"text": {
"zh_CN": "是否禁用"
}
},
"required": true,
"readOnly": false,
"disabled": false,
"cols": 12,
"widget": {
"component": "SwitchConfigurator",
"props": {}
},
"description": {
"zh_CN": ""
}
},
{
"property": "options",
"label": {
"text": {
"zh_CN": "数据列表"
}
},
"required": true,
"readOnly": false,
"disabled": false,
"cols": 12,
"widget": {
"component": "CodeConfigurator",
"props": {}
},
"description": {
"zh_CN": "checkbox组件列表"
}
},
{
"property": "type",
"label": {
"text": {
"zh_CN": "类型"
}
},
"required": true,
"readOnly": false,
"disabled": false,
"cols": 12,
"widget": {
"component": "SelectConfigurator",
"props": {
"options": [
{
"label": "button",
"value": "button"
},
{
"label": "checkbox",
"value": "checkbox"
}
]
}
},
"description": {
"zh_CN": "checkbox组件类型(button/checkbox),该属性的默认值为 checkbox,配合 options 属性一起使用"
},
"labelPosition": "left"
}
]
}
],
"events": {
"onChange": {
"label": {
"zh_CN": "勾选值改变后将触发"
},
"description": {
"zh_CN": "勾选值改变后将触发"
},
"type": "event",
"functionInfo": {
"params": [
{
"name": "value",
"type": "string",
"defaultValue": "",
"description": {
"zh_CN": "选中项的值"
}
}
],
"returns": {}
},
"defaultValue": ""
}
},
"shortcuts": {
"properties": ["value", "disabled"]
},
"contentMenu": {
"actions": ["create symbol"]
}
}
}