{
"component": {
"icon": "form",
"name": {
"zh_CN": "PageModel"
},
"component": "PageModel",
"schema": {
"properties": [
{
"label": {
"zh_CN": "选择模型"
},
"description": {
"zh_CN": "选择模型"
},
"content": [
{
"property": "serviceModel",
"label": {
"text": {
"zh_CN": "选择模型"
}
},
"required": false,
"readOnly": false,
"disabled": false,
"bindState": false,
"cols": 12,
"widget": {
"component": "ModelConfigurator",
"props": {
"expand": true
}
},
"properties": [
{
"label": {
"zh_CN": "默认分组",
"en_US": "Default Group"
},
"content": [
{
"property": "label",
"type": "string",
"label": {
"text": {
"zh_CN": "表单项标签",
"en_US": "Form Item Label"
}
},
"required": true,
"bindState": false,
"cols": 12,
"widget": {
"component": "I18nConfigurator",
"props": {}
},
"description": {
"zh_CN": "表单项标签",
"en_US": "Form item's label."
}
},
{
"property": "prop",
"bindState": false,
"disabled": true,
"label": {
"text": {
"zh_CN": "字段名",
"en_US": "Field Name"
}
},
"cols": 12,
"widget": {
"component": "InputConfigurator",
"props": {}
},
"description": {
"zh_CN": "字段名",
"en_US": "Name of the form field."
}
},
{
"property": "required",
"type": "boolean",
"defaultValue": false,
"label": {
"text": {
"zh_CN": "必填",
"en_US": "Required"
}
},
"required": false,
"bindState": true,
"cols": 12,
"widget": {
"component": "SwitchConfigurator",
"props": {}
},
"description": {
"zh_CN": "是否必填",
"en_US": "Enable required or not."
}
},
{
"property": "rules",
"label": {
"text": {
"zh_CN": "校验规则",
"en_US": "Verification Rules"
}
},
"required": false,
"bindState": true,
"cols": 12,
"widget": {
"component": "CodeConfigurator",
"props": {
"language": "json"
}
},
"description": {
"zh_CN": "表单项校验",
"en_US": "Verification for form item."
}
},
{
"property": "component",
"type": "string",
"required": false,
"bindState": true,
"cols": 12,
"label": {
"text": {
"zh_CN": "输入类型",
"en_US": "Input Type"
}
},
"widget": {
"component": "SelectConfigurator",
"props": {
"options": [
{
"label": {
"zh_CN": "输入框",
"en_US": "Input"
},
"value": "TinyInput"
},
{
"label": {
"zh_CN": "选择器",
"en_US": "Select"
},
"value": "TinySelect"
},
{
"label": {
"zh_CN": "多选框",
"en_US": "Checkbox"
},
"value": "TinyCheckbox"
},
{
"label": {
"zh_CN": "单选框",
"en_US": "Radio"
},
"value": "TinyRadio"
},
{
"label": {
"zh_CN": "日期选择器",
"en_US": "Date Picker"
},
"value": "TinyDatePicker"
}
]
}
},
"description": {
"zh_CN": "输入类型",
"en_US": "Type of the input."
}
}
]
},
{
"componentName": "TinyInput",
"label": {
"zh_CN": "输入框",
"en_US": "Input"
},
"content": [
{
"property": "type",
"label": {
"text": {
"zh_CN": "类型"
}
},
"widget": {
"component": "SelectConfigurator",
"props": {
"options": [
{
"label": "textarea",
"value": "textarea"
},
{
"label": "text",
"value": "text"
},
{
"label": "password",
"value": "password"
}
]
}
},
"description": {
"zh_CN": "设置input框的type属性"
},
"labelPosition": "left"
},
{
"property": "rows",
"label": {
"text": {
"zh_CN": "行数"
}
},
"widget": {
"component": "NumberConfigurator",
"props": {}
},
"description": {
"zh_CN": "输入框行数,只对 type='textarea' 有效"
},
"labelPosition": "left"
},
{
"property": "placeholder",
"label": {
"text": {
"zh_CN": "占位文本"
}
},
"required": false,
"readOnly": false,
"disabled": false,
"cols": 12,
"widget": {
"component": "I18nConfigurator",
"props": {}
},
"description": {
"zh_CN": "输入框占位文本"
},
"labelPosition": "left"
},
{
"property": "clearable",
"type": "boolean",
"defaultValue": false,
"label": {
"text": {
"zh_CN": "清除按钮"
}
},
"cols": 12,
"widget": {
"component": "CheckBoxConfigurator",
"props": {}
},
"description": {
"zh_CN": "是否显示清除按钮"
},
"labelPosition": "left"
},
{
"property": "disabled",
"type": "boolean",
"defaultValue": false,
"label": {
"text": {
"zh_CN": "禁用"
}
},
"cols": 12,
"widget": {
"component": "CheckBoxConfigurator",
"props": {}
},
"description": {
"zh_CN": "是否禁用"
},
"labelPosition": "left"
}
]
},
{
"componentName": "TinySelect",
"label": {
"zh_CN": "选择器",
"en_US": "Select"
},
"content": [
{
"property": "placeholder",
"label": {
"text": {
"zh_CN": "占位文本"
}
},
"required": false,
"readOnly": false,
"disabled": false,
"cols": 12,
"widget": {
"component": "InputConfigurator",
"props": {}
},
"description": {
"zh_CN": "输入框占位文本"
},
"labelPosition": "left"
},
{
"property": "clearable",
"type": "boolean",
"defaultValue": false,
"label": {
"text": {
"zh_CN": "清除按钮"
}
},
"required": false,
"readOnly": false,
"disabled": false,
"cols": 12,
"widget": {
"component": "CheckBoxConfigurator",
"props": {}
},
"description": {
"zh_CN": "是否显示清除按钮"
},
"labelPosition": "left"
},
{
"property": "searchable",
"type": "boolean",
"defaultValue": false,
"label": {
"text": {
"zh_CN": "下拉可搜索"
}
},
"cols": 12,
"widget": {
"component": "CheckBoxConfigurator",
"props": {}
},
"description": {
"zh_CN": "下拉面板是否可搜索"
},
"labelPosition": "left"
},
{
"property": "disabled",
"type": "boolean",
"defaultValue": false,
"label": {
"text": {
"zh_CN": "禁用"
}
},
"cols": 12,
"widget": {
"component": "CheckBoxConfigurator",
"props": {}
},
"description": {
"zh_CN": "是否禁用"
},
"labelPosition": "left"
},
{
"property": "options",
"label": {
"text": {
"zh_CN": "选项数据"
}
},
"required": true,
"readOnly": false,
"disabled": false,
"bindState": true,
"cols": 12,
"widget": {
"component": "CodeConfigurator",
"props": {
"language": "json"
}
},
"description": {
"zh_CN": "配置 Select 下拉数据项"
},
"labelPosition": "top"
},
{
"property": "multiple",
"type": "boolean",
"defaultValue": false,
"label": {
"text": {
"zh_CN": "多选"
}
},
"cols": 12,
"widget": {
"component": "CheckBoxConfigurator",
"props": {}
},
"description": {
"zh_CN": "是否允许输入框输入或选择多个项"
},
"labelPosition": "left"
}
]
},
{
"componentName": "TinyDatePicker",
"label": {
"zh_CN": "日期选择器",
"en_US": "DatePicker"
},
"content": [
{
"property": "type",
"label": {
"text": {
"zh_CN": "类型"
}
},
"widget": {
"component": "SelectConfigurator",
"props": {
"options": [
{
"label": "日期",
"value": "date"
},
{
"label": "日期时间",
"value": "datetime"
},
{
"label": "周",
"value": "week"
},
{
"label": "月份",
"value": "month"
},
{
"label": "年份",
"value": "year"
}
]
}
},
"description": {
"zh_CN": "设置日期框的type属性"
},
"labelPosition": "left"
},
{
"property": "placeholder",
"label": {
"text": {
"zh_CN": "占位文本"
}
},
"required": false,
"readOnly": false,
"disabled": false,
"cols": 12,
"widget": {
"component": "I18nConfigurator",
"props": {}
},
"description": {
"zh_CN": "输入框占位文本"
},
"labelPosition": "left"
},
{
"property": "clearable",
"type": "boolean",
"defaultValue": false,
"label": {
"text": {
"zh_CN": "清除按钮"
}
},
"cols": 12,
"widget": {
"component": "CheckBoxConfigurator",
"props": {}
},
"description": {
"zh_CN": "是否显示清除按钮"
},
"labelPosition": "left"
},
{
"property": "disabled",
"type": "boolean",
"defaultValue": false,
"label": {
"text": {
"zh_CN": "禁用"
}
},
"cols": 12,
"widget": {
"component": "CheckBoxConfigurator",
"props": {}
},
"description": {
"zh_CN": "是否禁用"
},
"labelPosition": "left"
},
{
"property": "readonly",
"type": "boolean",
"defaultValue": false,
"label": {
"text": {
"zh_CN": "只读"
}
},
"cols": 12,
"widget": {
"component": "CheckBoxConfigurator",
"props": {}
},
"description": {
"zh_CN": "是否只读"
},
"labelPosition": "left"
},
{
"property": "format",
"type": "string",
"defaultValue": "",
"label": {
"text": {
"zh_CN": "格式化"
}
},
"cols": 12,
"widget": {
"component": "InputConfigurator",
"props": {}
},
"description": {
"zh_CN": "是否只读"
},
"labelPosition": "left"
},
{
"property": "valueFormat",
"type": "string",
"defaultValue": "",
"label": {
"text": {
"zh_CN": "绑定值格式化"
}
},
"cols": 12,
"widget": {
"component": "InputConfigurator",
"props": {}
},
"description": {
"zh_CN": "value-format"
},
"labelPosition": "left"
}
]
},
{
"componentName": "TinyRadio",
"label": {
"zh_CN": "单选框",
"en_US": "Radio"
},
"content": [
{
"property": "text",
"label": {
"text": {
"zh_CN": "文本内容"
}
},
"required": true,
"readOnly": false,
"disabled": false,
"cols": 12,
"widget": {
"component": "InputConfigurator",
"props": {}
},
"description": {
"zh_CN": "单选框文本内容"
}
},
{
"property": "label",
"label": {
"text": {
"zh_CN": "选中值"
}
},
"required": true,
"readOnly": false,
"disabled": false,
"cols": 12,
"widget": {
"component": "InputConfigurator",
"props": {}
},
"description": {
"zh_CN": "radio 选中时的值"
}
},
{
"property": "disabled",
"type": "boolean",
"defaultValue": false,
"label": {
"text": {
"zh_CN": "禁用"
}
},
"cols": 12,
"widget": {
"component": "CheckBoxConfigurator",
"props": {}
},
"description": {
"zh_CN": "是否禁用"
},
"labelPosition": "left"
}
]
},
{
"componentName": "TinyCheckbox",
"label": {
"zh_CN": "多选框",
"en_US": "Checkbox"
},
"content": [
{
"property": "disabled",
"type": "boolean",
"defaultValue": false,
"label": {
"text": {
"zh_CN": "禁用"
}
},
"cols": 12,
"widget": {
"component": "CheckBoxConfigurator",
"props": {}
},
"description": {
"zh_CN": "是否禁用"
},
"labelPosition": "left"
},
{
"property": "checked",
"type": "boolean",
"defaultValue": false,
"label": {
"text": {
"zh_CN": "勾选"
}
},
"cols": 12,
"widget": {
"component": "CheckBoxConfigurator",
"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"
}
]
},
{
"componentName": "TinyNumeric",
"label": {
"zh_CN": "数组输入框",
"en_US": "Numeric"
},
"content": [
{
"property": "placeholder",
"label": {
"text": {
"zh_CN": "占位文本"
}
},
"required": true,
"readOnly": false,
"disabled": false,
"cols": 12,
"widget": {
"component": "I18nConfigurator",
"props": {}
},
"description": {
"zh_CN": "输入框占位文本"
},
"labelPosition": "left"
},
{
"property": "allow-empty",
"label": {
"text": {
"zh_CN": "内容可清空"
}
},
"required": true,
"readOnly": false,
"disabled": false,
"cols": 12,
"widget": {
"component": "CheckBoxConfigurator",
"props": {}
},
"description": {
"zh_CN": "是否内容可清空"
},
"labelPosition": "left"
},
{
"property": "disabled",
"label": {
"text": {
"zh_CN": "禁用"
}
},
"required": false,
"readOnly": false,
"disabled": false,
"cols": 12,
"widget": {
"component": "CheckBoxConfigurator",
"props": {}
},
"description": {
"zh_CN": "是否禁用"
},
"labelPosition": "left"
},
{
"property": "size",
"label": {
"text": {
"zh_CN": "尺寸"
}
},
"required": true,
"readOnly": false,
"disabled": false,
"cols": 12,
"widget": {
"component": "SelectConfigurator",
"props": {
"options": [
{
"label": "medium",
"value": "medium"
},
{
"label": "small",
"value": "small"
},
{
"label": "mini",
"value": "mini"
}
]
}
},
"description": {
"zh_CN": "输入框尺寸。该属性的可选值为 medium / small / mini"
},
"labelPosition": "left"
},
{
"property": "controls",
"label": {
"text": {
"zh_CN": "加减按钮"
}
},
"required": false,
"readOnly": false,
"disabled": false,
"cols": 12,
"widget": {
"component": "CheckBoxConfigurator",
"props": {}
},
"description": {
"zh_CN": "是否使用加减按钮"
},
"labelPosition": "left"
},
{
"property": "controls-position",
"label": {
"text": {
"zh_CN": "加减按钮位置"
}
},
"required": false,
"readOnly": false,
"disabled": false,
"cols": 12,
"widget": {
"component": "SelectConfigurator",
"props": {
"options": [
{
"label": "左右两侧",
"value": ""
},
{
"label": "只在右侧",
"value": "right"
}
]
}
},
"description": {
"zh_CN": "加减按钮位置"
}
},
{
"property": "precision",
"label": {
"text": {
"zh_CN": "精度"
}
},
"required": false,
"readOnly": false,
"disabled": false,
"cols": 12,
"widget": {
"component": "NumberConfigurator",
"props": {
"allowEmpty": true
}
},
"description": {
"zh_CN": "数值精度"
},
"labelPosition": "left"
},
{
"property": "step",
"label": {
"text": {
"zh_CN": "步长"
}
},
"required": false,
"readOnly": false,
"disabled": false,
"cols": 12,
"widget": {
"component": "NumberConfigurator",
"props": {
"allowEmpty": true
}
},
"description": {
"zh_CN": "步长"
},
"labelPosition": "left"
}
]
}
],
"labelPosition": "top"
},
{
"property": "modelApis",
"label": {
"text": {
"zh_CN": "绑定模型方法"
}
},
"required": false,
"readOnly": false,
"disabled": false,
"bindState": false,
"cols": 12,
"widget": {
"component": "ModelApiConfigurator",
"props": {}
},
"labelPosition": "top"
},
{
"property": "searchFormData",
"label": {
"text": {
"zh_CN": "搜索表单绑定变量",
"en_US": "Binding Variables For Search Form"
}
},
"required": false,
"readOnly": false,
"disabled": false,
"cols": 12,
"widget": {
"component": "BindVariableConfigurator"
},
"description": {
"zh_CN": "为搜索表单绑定变量",
"en_US": "Binding Variables For Search Form."
}
},
{
"property": "tableData",
"label": {
"text": {
"zh_CN": "表格数据绑定变量",
"en_US": "Binding Variables For Table Data"
}
},
"required": false,
"readOnly": false,
"disabled": false,
"cols": 12,
"widget": {
"component": "BindVariableConfigurator",
"props": {
"defaultValue": [],
"isValueArray": true
}
},
"description": {
"zh_CN": "为表格数据绑定变量",
"en_US": "Binding Variables For Search Form."
}
},
{
"property": "editFormData",
"label": {
"text": {
"zh_CN": "数据表单绑定变量",
"en_US": "Binding Variables For Data Form"
}
},
"required": false,
"readOnly": false,
"disabled": false,
"cols": 12,
"widget": {
"component": "BindVariableConfigurator"
},
"description": {
"zh_CN": "为新增数据或编辑数据表单绑定变量",
"en_US": "Binding Variables For Add or Edit Form."
}
}
]
},
{
"label": {
"zh_CN": "基础信息"
},
"description": {
"zh_CN": "基础信息"
},
"content": [
{
"property": "layout",
"label": {
"text": {
"zh_CN": "表单布局",
"en_US": "From Layout"
}
},
"required": true,
"bindState": false,
"cols": 12,
"widget": {
"component": "SelectConfigurator",
"props": {
"options": [
{
"label": {
"zh_CN": "一列布局",
"en_US": "One-column Layout"
},
"value": 1
},
{
"label": {
"zh_CN": "两列布局",
"en_US": "Two-column Layout"
},
"value": 2
},
{
"label": {
"zh_CN": "三列布局",
"en_US": "Three-column Layout"
},
"value": 3
}
]
}
},
"description": {
"zh_CN": "设置表单布局",
"en_US": "Set the form layout."
}
},
{
"property": "size",
"label": {
"text": {
"zh_CN": "尺寸"
}
},
"required": false,
"readOnly": false,
"disabled": false,
"cols": 12,
"widget": {
"component": "SelectConfigurator",
"props": {
"options": [
{
"label": "medium",
"value": "medium"
},
{
"label": "small",
"value": "small"
},
{
"label": "mini",
"value": "mini"
}
]
}
},
"description": {
"zh_CN": "输入框尺寸。该属性的可选值为 medium / small / mini"
},
"labelPosition": "left"
}
]
},
{
"label": {
"zh_CN": "表格信息"
},
"description": {
"zh_CN": "表格信息"
},
"content": [
{
"property": "selectedEnabled",
"resetProps": true,
"label": {
"text": {
"zh_CN": "启用复选",
"en_US": "enable select data"
}
},
"required": false,
"readOnly": false,
"disabled": false,
"cols": 12,
"widget": {
"component": "SwitchConfigurator",
"props": {}
},
"description": {
"zh_CN": "是否允许复选框选中数据",
"en_US": "Whether to allow the check box to select data"
},
"labelPosition": "left"
},
{
"property": "handleSelectedRows",
"label": {
"text": {
"zh_CN": "处理选中数据方法",
"en_US": "Method of Processing Selected Data"
}
},
"defaultValue": {
"type": "JSFunction",
"value": "/**\r\n * 获取表格勾选数据方法\r\n * tableSelection - 表格已勾选的数据\r\n */\r\nfunction handleSelectedRows(tableSelection) {\r\n // 处理方法函数体\r\n}"
},
"required": false,
"readOnly": false,
"disabled": false,
"cols": 12,
"widget": {
"component": "CodeConfigurator",
"props": {
"language": "javascript",
"dataType": "JSFunction"
}
},
"description": {
"zh_CN": "处理选中数据方法",
"en_US": "Method of Processing Selected Data"
},
"labelPosition": "left"
},
{
"property": "rowOperationEnabled",
"resetProps": true,
"label": {
"text": {
"zh_CN": "启用行操作",
"en_US": "enable row operation"
}
},
"required": false,
"readOnly": false,
"disabled": false,
"cols": 12,
"widget": {
"component": "SwitchConfigurator",
"props": {}
},
"description": {
"zh_CN": "是否使用行操作",
"en_US": "Whether to allow the row operation"
},
"labelPosition": "left"
},
{
"property": "useIconOperation",
"resetProps": true,
"label": {
"text": {
"zh_CN": "使用图标",
"en_US": "use icon operation"
}
},
"required": false,
"readOnly": false,
"disabled": false,
"cols": 12,
"widget": {
"component": "SwitchConfigurator",
"props": {}
},
"description": {
"zh_CN": "行操作是否使用图标",
"en_US": "use Icon Whether to handle the row operation"
},
"labelPosition": "left"
},
{
"type": "configList",
"property": "rowOperations",
"label": {
"text": {
"zh_CN": "行操作",
"en_US": "Row Operation"
}
},
"required": false,
"cols": 12,
"properties": [
{
"label": {
"zh_CN": "默认分组",
"en_US": "Default Group"
},
"content": [
{
"property": "label",
"type": "string",
"label": {
"text": {
"zh_CN": "文本",
"en_US": "Text"
}
},
"cols": 12,
"widget": {
"component": "I18nConfigurator",
"props": {}
},
"description": {
"zh_CN": "操作名称",
"en_US": "Operation's name."
}
},
{
"property": "icon",
"type": "string",
"label": {
"text": {
"zh_CN": "图标",
"en_US": "Icon"
}
},
"cols": 12,
"widget": {
"component": "InputConfigurator",
"props": {
"placeholder": "请输入图标类名"
}
},
"description": {
"zh_CN": "图标库地址: https://tinyuidesign.cloudbu.huawei.com/tiny-vue/zh-CN/os-theme/components/icon#list",
"en_US": "Icon Library Address: https://tinyuidesign.cloudbu.huawei.com/tiny-vue/zh-CN/os-theme/components/icon#list"
}
},
{
"property": "handler",
"label": {
"text": {
"zh_CN": "点击回调事件",
"en_US": "Click Callback Event"
}
},
"defaultValue": {
"type": "JSFunction",
"value": "function handleRow(row, index, extendApis) {}"
},
"cols": 12,
"widget": {
"component": "CodeConfigurator",
"props": {
"dataType": "JSFunction"
}
},
"description": {
"zh_CN": "操作的回调函数",
"en_US": "Callback functions for operations."
}
}
]
}
],
"widget": {
"component": "OperatorGroupConfigurator",
"props": {
"type": "object",
"textField": "label",
"language": "json",
"buttonText": "编辑行操作",
"title": "编辑行操作",
"enableVisibleControl": true,
"disableDelete": true,
"expand": true,
"isAbleBatchOperation": true
}
},
"description": {
"zh_CN": "表格自定义行操作",
"en_US": "Custom operations For table's row."
},
"labelPosition": "top"
},
{
"property": "columnMinWidth",
"label": {
"text": {
"zh_CN": "表格列最小宽度",
"en_US": "Minimum Column Width"
}
},
"required": false,
"readOnly": false,
"disabled": false,
"cols": 12,
"widget": {
"component": "NumberConfigurator",
"props": {}
},
"description": {
"zh_CN": "表格列最小宽度",
"en_US": "Minimum width of table's column."
}
},
{
"property": "columnWidth",
"label": {
"text": {
"zh_CN": "表格列宽度",
"en_US": "Column Width"
}
},
"required": false,
"readOnly": false,
"disabled": false,
"cols": 12,
"widget": {
"component": "NumberConfigurator",
"props": {}
},
"description": {
"zh_CN": "表格列宽度",
"en_US": "Width of table's column."
}
}
]
}
],
"events": {
"onUpdate:modelValue": {
"label": {
"zh_CN": "绑定值改变时触发",
"en_US": "Binding changed Triggered"
},
"description": {
"zh_CN": "绑定值改变时触发",
"en_US": "Triggered when the value of the binding changes."
},
"type": "event",
"functionInfo": {
"params": [
{
"name": "value",
"type": "array",
"defaultValue": [],
"description": {
"zh_CN": "双向绑定值",
"en_US": "Binding value."
}
}
],
"returns": {}
}
},
"onUpdate:searchFormData": {
"label": {
"zh_CN": "绑定值改变时触发",
"en_US": "Binding changed Triggered"
},
"description": {
"zh_CN": "绑定值改变时触发",
"en_US": "Triggered when the value of the binding changes."
},
"type": "event",
"functionInfo": {
"params": [
{
"name": "value",
"type": "object",
"defaultValue": {},
"description": {
"zh_CN": "双向绑定值",
"en_US": "Binding value."
}
}
],
"returns": {}
}
},
"onUpdate:tableData": {
"label": {
"zh_CN": "绑定值改变时触发",
"en_US": "Binding changed Triggered"
},
"description": {
"zh_CN": "绑定值改变时触发",
"en_US": "Triggered when the value of the binding changes."
},
"type": "event",
"functionInfo": {
"params": [
{
"name": "value",
"type": "array",
"defaultValue": [],
"description": {
"zh_CN": "双向绑定值",
"en_US": "Binding value."
}
}
],
"returns": {}
}
},
"onUpdate:editFormData": {
"label": {
"zh_CN": "绑定值改变时触发",
"en_US": "Binding changed Triggered"
},
"description": {
"zh_CN": "绑定值改变时触发",
"en_US": "Triggered when the value of the binding changes."
},
"type": "event",
"functionInfo": {
"params": [
{
"name": "value",
"type": "object",
"defaultValue": {},
"description": {
"zh_CN": "双向绑定值",
"en_US": "Binding value."
}
}
],
"returns": {}
}
},
"onFilterChange": {
"label": {
"zh_CN": "筛选条件改变时触发改事件"
},
"description": {
"zh_CN": "配置 remote-filter 开启服务端过滤,服务端过滤会调用表格 fetch-data 进行查询,filter-change 服务端过滤后触发的事件"
},
"type": "event",
"functionInfo": {
"params": [
{
"name": "table",
"type": "Object",
"defaultValue": "",
"description": {
"zh_CN": "{$table,filters} 包含 table 实例对象和过滤条件的对象"
}
}
],
"returns": {}
},
"defaultValue": "function onClick(e) {}"
},
"onSortChange": {
"label": {
"zh_CN": "点击列头,执行数据排序前触发的事件"
},
"description": {
"zh_CN": "配置 remote-filter 开启服务端过滤,服务端过滤会调用表格 fetch-data 进行查询,filter-change 服务端过滤后触发的事件"
},
"type": "event",
"functionInfo": {
"params": [
{
"name": "table",
"type": "Object",
"defaultValue": "",
"description": {
"zh_CN": "{$table,filters} 包含 table 实例对象和过滤条件的对象"
}
}
],
"returns": {}
},
"defaultValue": "function onClick(e) {}"
},
"onSelectAll": {
"label": {
"zh_CN": "当手动勾选全选时触发的事件"
},
"description": {
"zh_CN": "只对 type=selection 有效,当手动勾选全选时触发的事件"
},
"type": "event",
"functionInfo": {
"params": [
{
"name": "table",
"type": "Object",
"defaultValue": "",
"description": {
"zh_CN": " 包含 table 实例对象"
}
},
{
"name": "checked",
"type": "boolean",
"defaultValue": "",
"description": {
"zh_CN": "勾选状态"
}
},
{
"name": "selction",
"type": "Array",
"defaultValue": "",
"description": {
"zh_CN": "选中的表格数据数组"
}
}
],
"returns": {}
},
"defaultValue": "function onClick(e) {}"
},
"onSelectChange": {
"label": {
"zh_CN": "手动勾选并且值发生改变时触发的事件"
},
"description": {
"zh_CN": "只对 type=selection 有效,当手动勾选并且值发生改变时触发的事件"
},
"type": "event",
"functionInfo": {
"params": [
{
"name": "table",
"type": "Object",
"defaultValue": "",
"description": {
"zh_CN": " table 实例对象"
}
},
{
"name": "event",
"type": "Object",
"defaultValue": "",
"description": {
"zh_CN": " 原生 Event"
}
}
],
"returns": {}
},
"defaultValue": "function onClick(e) {}"
},
"onToggleExpandChange": {
"label": {
"zh_CN": "当行展开或收起时会触发该事件"
},
"description": {
"zh_CN": "当行展开或收起时会触发该事件"
},
"type": "event",
"functionInfo": {
"params": [
{
"name": "table",
"type": "Object",
"defaultValue": "",
"description": {
"zh_CN": "{$table,row,rowIndex} 包含 table 实例对象和当前行数据的对象"
}
},
{
"name": "event",
"type": "Object",
"defaultValue": "",
"description": {
"zh_CN": " 原生 Event"
}
}
],
"returns": {}
},
"defaultValue": "function onClick(e) {}"
},
"onCurrentChange": {
"label": {
"zh_CN": "行点击时触发"
},
"description": {
"zh_CN": "行点击时触发"
},
"type": "event",
"functionInfo": {
"params": [],
"returns": {}
},
"defaultValue": ""
}
}
},
"configure": {
"loop": false,
"condition": true,
"styles": true,
"isContainer": false,
"isModal": false,
"nestingRule": {
"childWhitelist": [],
"parentWhitelist": ""
}
}
},
"snippet": {
"name": {
"zh_CN": "页面模型",
"en_US": "PageModel"
},
"icon": "page",
"screenshot": "",
"snippetName": "PageModel",
"schema": {
"componentName": "PageModel",
"props": {
"rowOperations": {
"value": [
{
"label": "编辑",
"icon": "IconEdit",
"builtIn": true,
"itemVisible": true
},
{
"label": "删除",
"icon": "IconDel",
"builtIn": true,
"itemVisible": true
}
]
},
"rowOperationEnabled": true
}
}
}
}