{
"icon": "checkboxbutton",
"name": {
"zh_CN": "复选框按钮"
},
"component": "tiny-checkbox-button",
"schema": {
"properties": [
{
"label": {
"zh_CN": "基础信息"
},
"description": {
"zh_CN": "基础信息"
},
"collapse": {
"number": 6,
"text": {
"zh_CN": "显示更多"
}
},
"content": [
{
"property": "value",
"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": "checked",
"label": {
"text": {
"zh_CN": "勾选"
}
},
"required": true,
"readOnly": false,
"disabled": false,
"cols": 12,
"widget": {
"component": "SwitchConfigurator",
"props": {}
},
"description": {
"zh_CN": "当前是否勾选"
},
"labelPosition": "left"
},
{
"property": "text",
"label": {
"text": {
"zh_CN": "文本"
}
},
"required": true,
"readOnly": false,
"disabled": false,
"cols": 12,
"widget": {
"component": "InputConfigurator",
"props": {}
},
"description": {
"zh_CN": "按钮文本"
},
"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"]
}
}
}