UNPKG

@beisen-phoenix/select

Version:

## 概述

329 lines 7.95 kB
{ "Properties": [ { "Name": "size", "Type": "string", "Description": "选择框的大小,选项(small, normal, large)", "Label": "选择框的大小", "IsArray": false, "IsMetaDataType": false, "Version": null, "Extension": { "editable": true, "defaultValue": "normal", "editor": { "type": "Select", "config": { "dataSource": [ { "value": "small", "label": "小号" }, { "value": "normal", "label": "标准" }, { "value": "large", "label": "大号" } ] } }, "jsType": "value" } }, { "Name": "value", "Type": "string", "Description": "当前选择框中显示的选项 单选是string 多选时是Array<Item>", "Label": "当前选择框中显示的选项", "IsArray": false, "IsMetaDataType": false, "Version": null, "Extension": { "editable": true, "editor": { "type": "TextArea", "config": {} }, "jsType": "value" } }, { "Name": "showDelete", "Type": "boolean", "Description": "单选模式下是否显示清空图标", "Label": "单选模式下是否显示清空图标", "IsArray": false, "IsMetaDataType": false, "Version": null, "Extension": { "editable": true, "defaultValue": true, "editor": { "type": "Switch", "config": {} }, "jsType": "value" } }, { "Name": "isMultiSelect", "Type": "boolean", "Description": "是否为多选,多选时,value应传递当前显示项的数组集合", "Label": "是否为多选", "IsArray": false, "IsMetaDataType": false, "Version": null, "Extension": { "editable": true, "defaultValue": false, "editor": { "type": "Switch", "config": {} }, "jsType": "value" } }, { "Name": "isSearch", "Type": "boolean", "Description": "是否可输入", "Label": "是否可输入", "IsArray": false, "IsMetaDataType": false, "Version": null, "Extension": { "editable": true, "defaultValue": false, "editor": { "type": "Switch", "config": {} }, "jsType": "value" } }, { "Name": "disabled", "Type": "boolean", "Description": "是否禁用选择器", "Label": "禁用", "IsArray": false, "IsMetaDataType": false, "Version": null, "Extension": { "editable": true, "defaultValue": false, "editor": { "type": "Switch", "config": {} }, "jsType": "value" } }, { "Name": "readOnly", "Type": "boolean", "Description": "只读状态,不能输入,不显示清除按钮", "Label": "是否是只读状态", "IsArray": false, "IsMetaDataType": false, "Version": null, "Extension": { "editable": true, "defaultValue": false, "editor": { "type": "Switch", "config": {} }, "jsType": "value" } }, { "Name": "placeHolder", "Type": "string", "Description": "选择框的占位符", "Label": "选择框的占位符", "IsArray": false, "IsMetaDataType": false, "Version": null, "Extension": { "editable": true, "defaultValue": "搜索", "editor": { "type": "Input", "config": {} }, "jsType": "value" } }, { "Name": "isActive", "Type": "boolean", "Description": "是否使边框处于高亮状态", "Label": "是否高亮边框", "IsArray": false, "IsMetaDataType": false, "Version": null, "Extension": { "editable": true, "defaultValue": false, "editor": { "type": "Switch", "config": {} }, "jsType": "value" } }, { "Name": "error", "Type": "boolean", "Description": "选择器校验错误", "Label": "是否显示选择器校验错误样式", "IsArray": false, "IsMetaDataType": false, "Version": null, "Extension": { "editable": true, "defaultValue": false, "editor": { "type": "Switch", "config": {} }, "jsType": "value" } }, { "Name": "extraCls", "Type": "string", "Description": "自定义的容器class,一般通过此class来实现自定义样式", "Label": "自定义的容器class", "IsArray": false, "IsMetaDataType": false, "Version": null, "Extension": { "editable": true, "editor": { "type": "Input", "config": {} }, "jsType": "value" } }, { "Name": "translation", "Type": "object", "Description": "国际化 {placeHolder: '请选择'}", "Label": "国际化", "IsArray": false, "IsMetaDataType": false, "Version": null, "Extension": { "editable": true, "editor": { "type": "TextArea", "config": {} }, "jsType": "value" } }, { "Name": "onChange", "Type": "string", "Description": "选择框的值发生变化后的回调", "Label": "onChange", "IsArray": false, "IsMetaDataType": false, "Version": null, "Extension": { "editable": false, "funcType": "event", "cbParams": [ { "name": "value", "label": "当前选择框选中的值", "type": "string" }, { "name": "searchWord", "label": "当前搜索的关键字", "type": "string" } ], "jsType": "function" } }, { "Name": "onDelete", "Type": "string", "Description": "删除选项后的回调", "Label": "onDelete", "IsArray": false, "IsMetaDataType": false, "Version": null, "Extension": { "editable": false, "funcType": "event", "cbParams": [ { "name": "value", "label": "删除后选择框中的值", "type": "string" } ], "jsType": "function" } }, { "Name": "onSearch", "Type": "string", "Description": "可搜索情况下,输入框输入的值变化时的回调", "Label": "onSearch", "IsArray": false, "IsMetaDataType": false, "Version": null, "Extension": { "editable": false, "funcType": "event", "cbParams": [ { "name": "searchWord", "label": "当前搜索的关键字", "type": "string" } ], "jsType": "function" } }, { "Name": "onClick", "Type": "string", "Description": "点击选择器回调", "Label": "onClick", "IsArray": false, "IsMetaDataType": false, "Version": null, "Extension": { "editable": false, "funcType": "event", "cbParams": [ { "name": "event", "label": "事件对象", "type": "object" } ], "jsType": "function" } } ], "_Name": "Select", "_Title": "select下拉选择框", "_Description": "", "_MetaDataType": 1, "_TenantId": 0, "_AppId": 0, "_State": 0, "_Version": "1.2.4" }