diff --git a/docs/element plus.md b/docs/element plus.md new file mode 100644 index 000000000..f9635e4dd --- /dev/null +++ b/docs/element plus.md @@ -0,0 +1,46 @@ +# Element Plus组件物料文档 + +## 使用手册 + +### 自动化脚本使用 + +在项目根目录打开shell,执行下面命令生成物料文件: +```shell +node ./scripts/genMaterial.js +``` +![](./images/01.png) + +物料文件bundle.json会自动生成到根目录中 + +### 物料文件使用 +将生成的物料文件bundle.json重命名为elementplus.json,我们再packages\design-core\config目录下lowcode.config.js的文件中material中的'/mock/bundle.json'修改为'/mock/elementplus.json'。 +![](./images/04.png) +执行pnpm dev启动项目,进入网页,刷新之后,第一步点击“+”号,可以看到elementplus的所有组件。 +![](./images/05.png) + +第二步,可以先清空页面,选择自己所需的组件拖拽至空白处即可实现对应功能。 +![](./images/06.png) +第三步,可以通过右侧属性面板配置属性。 +![](./images/07.png) + +## 自动化脚本流程与原理 + + +1. 获取组件菜单: + +- 通过 loadMenuData() 从官网获取所有组件的概览和链接。加载组件详细信息: +- 使用 loadBaseDataByMenus() 并发请求每个组件的详细信息,包括组件的描述和属性表格。 +2. 合并组件信息: + +- mergeComponent() 将 Element Plus 的组件与提取的数据合并,确保获取完整的组件信息。 + +3. 生成结构化材料: + +- 通过 generateMaterial() 创建结构化的材料,包括组件、代码片段 +等。 +![](./images/08.png) +4. 输出结果: + +- 最后将生成的 JSON 数据保存到文件 bundle.json 中,方便后续使 +用。 +![](./images/02bundle.png) \ No newline at end of file diff --git a/docs/images/01.png b/docs/images/01.png new file mode 100644 index 000000000..4028c6fe5 Binary files /dev/null and b/docs/images/01.png differ diff --git a/docs/images/02bundle.png b/docs/images/02bundle.png new file mode 100644 index 000000000..0c417433b Binary files /dev/null and b/docs/images/02bundle.png differ diff --git a/docs/images/03.png b/docs/images/03.png new file mode 100644 index 000000000..370cc365e Binary files /dev/null and b/docs/images/03.png differ diff --git a/docs/images/04.png b/docs/images/04.png new file mode 100644 index 000000000..70c23f117 Binary files /dev/null and b/docs/images/04.png differ diff --git a/docs/images/05.png b/docs/images/05.png new file mode 100644 index 000000000..699b2f84c Binary files /dev/null and b/docs/images/05.png differ diff --git a/docs/images/06.png b/docs/images/06.png new file mode 100644 index 000000000..bfddbc9c7 Binary files /dev/null and b/docs/images/06.png differ diff --git a/docs/images/07.png b/docs/images/07.png new file mode 100644 index 000000000..f415f566a Binary files /dev/null and b/docs/images/07.png differ diff --git a/docs/images/08.png b/docs/images/08.png new file mode 100644 index 000000000..f81248d97 Binary files /dev/null and b/docs/images/08.png differ diff --git a/packages/design-core/public/mock/bundle.json b/packages/design-core/public/mock/bundle.json index 9a03cfad1..b2a062448 100644 --- a/packages/design-core/public/mock/bundle.json +++ b/packages/design-core/public/mock/bundle.json @@ -75,310 +75,312 @@ "framework": "Vue" }, "schema": { - "properties": { - "label": { - "zh_CN": "基础信息" - }, - "description": { - "zh_CN": "基础信息" - }, - "collapse": { - "number": 6, - "text": { - "zh_CN": "显示更多" - } - }, - "content": [ - { - "property": "size", - "label": { - "text": { - "zh_CN": "尺寸" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "disabled", - "label": { - "text": { - "zh_CN": "按钮是否为禁用状态" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "type", - "label": { - "text": { - "zh_CN": "类型" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "icon", - "label": { - "text": { - "zh_CN": "图标组件" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "nativeType", - "label": { - "text": { - "zh_CN": "原生 type 属性" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "loading", - "label": { - "text": { - "zh_CN": "是否为加载中状态" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "loadingIcon", - "label": { - "text": { - "zh_CN": "自定义加载中状态图标组件" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "plain", - "label": { - "text": { - "zh_CN": "是否为朴素按钮" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "text", - "label": { - "text": { - "zh_CN": "是否为文字按钮" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "link", - "label": { - "text": { - "zh_CN": "是否为链接按钮" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "bg", - "label": { - "text": { - "zh_CN": "是否显示文字按钮背景颜色" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "autofocus", - "label": { - "text": { - "zh_CN": "原生 autofocus 属性" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "round", - "label": { - "text": { - "zh_CN": "是否为圆角按钮" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "circle", - "label": { - "text": { - "zh_CN": "是否为圆形按钮" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "color", - "label": { - "text": { - "zh_CN": "自定义按钮颜色, 并自动计算 hover 和 active 触发后的颜色" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "dark", - "label": { - "text": { - "zh_CN": "dark 模式, 意味着自动设置 color 为 dark 模式的颜色" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "autoInsertSpace", - "label": { - "text": { - "zh_CN": "自动在两个中文字符之间插入空格" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } + "properties": [ + { + "label": { + "zh_CN": "基础信息" }, - { - "property": "tag", - "label": { - "text": { - "zh_CN": "自定义元素标签" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - } - ] - }, + "description": { + "zh_CN": "基础信息" + }, + "collapse": { + "number": 6, + "text": { + "zh_CN": "显示更多" + } + }, + "content": [ + { + "property": "size", + "label": { + "text": { + "zh_CN": "尺寸" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "disabled", + "label": { + "text": { + "zh_CN": "按钮是否为禁用状态" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "type", + "label": { + "text": { + "zh_CN": "类型" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "icon", + "label": { + "text": { + "zh_CN": "图标组件" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "nativeType", + "label": { + "text": { + "zh_CN": "原生 type 属性" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "loading", + "label": { + "text": { + "zh_CN": "是否为加载中状态" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "loadingIcon", + "label": { + "text": { + "zh_CN": "自定义加载中状态图标组件" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "plain", + "label": { + "text": { + "zh_CN": "是否为朴素按钮" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "text", + "label": { + "text": { + "zh_CN": "是否为文字按钮" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "link", + "label": { + "text": { + "zh_CN": "是否为链接按钮" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "bg", + "label": { + "text": { + "zh_CN": "是否显示文字按钮背景颜色" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "autofocus", + "label": { + "text": { + "zh_CN": "原生 autofocus 属性" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "round", + "label": { + "text": { + "zh_CN": "是否为圆角按钮" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "circle", + "label": { + "text": { + "zh_CN": "是否为圆形按钮" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "color", + "label": { + "text": { + "zh_CN": "自定义按钮颜色, 并自动计算 hover 和 active 触发后的颜色" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "dark", + "label": { + "text": { + "zh_CN": "dark 模式, 意味着自动设置 color 为 dark 模式的颜色" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "autoInsertSpace", + "label": { + "text": { + "zh_CN": "自动在两个中文字符之间插入空格" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "tag", + "label": { + "text": { + "zh_CN": "自定义元素标签" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + } + ] + } + ], "events": { "onClick": { "label": { @@ -476,38 +478,40 @@ "framework": "Vue" }, "schema": { - "properties": { - "label": { - "zh_CN": "基础信息" - }, - "description": { - "zh_CN": "基础信息" - }, - "collapse": { - "number": 6, - "text": { - "zh_CN": "显示更多" - } - }, - "content": [ - { - "property": "direction", - "label": { - "text": { - "zh_CN": "子元素的排列方向" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - } - ] - }, + "properties": [ + { + "label": { + "zh_CN": "基础信息" + }, + "description": { + "zh_CN": "基础信息" + }, + "collapse": { + "number": 6, + "text": { + "zh_CN": "显示更多" + } + }, + "content": [ + { + "property": "direction", + "label": { + "text": { + "zh_CN": "子元素的排列方向" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + } + ] + } + ], "events": {}, "slots": { "default": { @@ -574,54 +578,56 @@ "framework": "Vue" }, "schema": { - "properties": { - "label": { - "zh_CN": "基础信息" - }, - "description": { - "zh_CN": "基础信息" - }, - "collapse": { - "number": 6, - "text": { - "zh_CN": "显示更多" - } - }, - "content": [ - { - "property": "size", - "label": { - "text": { - "zh_CN": "SVG 图标的大小,size x size" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } + "properties": [ + { + "label": { + "zh_CN": "基础信息" }, - { - "property": "color", - "label": { - "text": { - "zh_CN": "svg 的 fill 颜色" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - } - ] - }, + "description": { + "zh_CN": "基础信息" + }, + "collapse": { + "number": 6, + "text": { + "zh_CN": "显示更多" + } + }, + "content": [ + { + "property": "size", + "label": { + "text": { + "zh_CN": "SVG 图标的大小,size x size" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "color", + "label": { + "text": { + "zh_CN": "svg 的 fill 颜色" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + } + ] + } + ], "events": {}, "slots": {} } @@ -679,118 +685,120 @@ "framework": "Vue" }, "schema": { - "properties": { - "label": { - "zh_CN": "基础信息" - }, - "description": { - "zh_CN": "基础信息" - }, - "collapse": { - "number": 6, - "text": { - "zh_CN": "显示更多" - } - }, - "content": [ - { - "property": "type", - "label": { - "text": { - "zh_CN": "类型" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "underline", - "label": { - "text": { - "zh_CN": "是否下划线" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "disabled", - "label": { - "text": { - "zh_CN": "是否禁用状态" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "href", - "label": { - "text": { - "zh_CN": "原生 href 属性" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "target", - "label": { - "text": { - "zh_CN": "同原生 target 属性" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } + "properties": [ + { + "label": { + "zh_CN": "基础信息" }, - { - "property": "icon", - "label": { - "text": { - "zh_CN": "图标组件" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - } - ] - }, + "description": { + "zh_CN": "基础信息" + }, + "collapse": { + "number": 6, + "text": { + "zh_CN": "显示更多" + } + }, + "content": [ + { + "property": "type", + "label": { + "text": { + "zh_CN": "类型" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "underline", + "label": { + "text": { + "zh_CN": "是否下划线" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "disabled", + "label": { + "text": { + "zh_CN": "是否禁用状态" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "href", + "label": { + "text": { + "zh_CN": "原生 href 属性" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "target", + "label": { + "text": { + "zh_CN": "同原生 target 属性" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "icon", + "label": { + "text": { + "zh_CN": "图标组件" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + } + ] + } + ], "events": { "onClick": { "label": { @@ -880,102 +888,104 @@ "framework": "Vue" }, "schema": { - "properties": { - "label": { - "zh_CN": "基础信息" - }, - "description": { - "zh_CN": "基础信息" - }, - "collapse": { - "number": 6, - "text": { - "zh_CN": "显示更多" - } - }, - "content": [ - { - "property": "type", - "label": { - "text": { - "zh_CN": "类型" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "size", - "label": { - "text": { - "zh_CN": "大小" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "truncated", - "label": { - "text": { - "zh_CN": "显示省略号" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "lineClamp", - "label": { - "text": { - "zh_CN": "最大行数" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } + "properties": [ + { + "label": { + "zh_CN": "基础信息" }, - { - "property": "tag", - "label": { - "text": { - "zh_CN": "自定义元素标签" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - } - ] - }, + "description": { + "zh_CN": "基础信息" + }, + "collapse": { + "number": 6, + "text": { + "zh_CN": "显示更多" + } + }, + "content": [ + { + "property": "type", + "label": { + "text": { + "zh_CN": "类型" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "size", + "label": { + "text": { + "zh_CN": "大小" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "truncated", + "label": { + "text": { + "zh_CN": "显示省略号" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "lineClamp", + "label": { + "text": { + "zh_CN": "最大行数" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "tag", + "label": { + "text": { + "zh_CN": "自定义元素标签" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + } + ] + } + ], "events": {}, "slots": {} } @@ -1050,278 +1060,280 @@ "framework": "Vue" }, "schema": { - "properties": { - "label": { - "zh_CN": "基础信息" - }, - "description": { - "zh_CN": "基础信息" - }, - "collapse": { - "number": 6, - "text": { - "zh_CN": "显示更多" - } - }, - "content": [ - { - "property": "height", - "label": { - "text": { - "zh_CN": "滚动条高度" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "maxHeight", - "label": { - "text": { - "zh_CN": "滚动条最大高度" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "native", - "label": { - "text": { - "zh_CN": "是否使用原生滚动条样式" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "wrapStyle", - "label": { - "text": { - "zh_CN": "包裹容器的自定义样式" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "wrapClass", - "label": { - "text": { - "zh_CN": "包裹容器的自定义类名" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "viewClass", - "label": { - "text": { - "zh_CN": "视图的自定义类名" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "viewStyle", - "label": { - "text": { - "zh_CN": "视图的自定义样式" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "noresize", - "label": { - "text": { - "zh_CN": "不响应容器尺寸变化,如果容器尺寸不会发生变化,最好设置它可以优化性能" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "tag", - "label": { - "text": { - "zh_CN": "视图的元素标签" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "always", - "label": { - "text": { - "zh_CN": "滚动条总是显示" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "minSize", - "label": { - "text": { - "zh_CN": "滚动条最小尺寸" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - }, - { - "property": "tabindex", - "label": { - "text": { - "zh_CN": "容器的tabindex" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "id", - "label": { - "text": { - "zh_CN": "视图ID" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "role", - "label": { - "text": { - "zh_CN": "视图的角色" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "ariaLabel", - "label": { - "text": { - "zh_CN": "视图的 aria-label" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } + "properties": [ + { + "label": { + "zh_CN": "基础信息" }, - { - "property": "ariaOrientation", - "label": { - "text": { - "zh_CN": "视图的 aria-orientation" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - } - ] - }, + "description": { + "zh_CN": "基础信息" + }, + "collapse": { + "number": 6, + "text": { + "zh_CN": "显示更多" + } + }, + "content": [ + { + "property": "height", + "label": { + "text": { + "zh_CN": "滚动条高度" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "maxHeight", + "label": { + "text": { + "zh_CN": "滚动条最大高度" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "native", + "label": { + "text": { + "zh_CN": "是否使用原生滚动条样式" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "wrapStyle", + "label": { + "text": { + "zh_CN": "包裹容器的自定义样式" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "wrapClass", + "label": { + "text": { + "zh_CN": "包裹容器的自定义类名" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "viewClass", + "label": { + "text": { + "zh_CN": "视图的自定义类名" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "viewStyle", + "label": { + "text": { + "zh_CN": "视图的自定义样式" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "noresize", + "label": { + "text": { + "zh_CN": "不响应容器尺寸变化,如果容器尺寸不会发生变化,最好设置它可以优化性能" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "tag", + "label": { + "text": { + "zh_CN": "视图的元素标签" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "always", + "label": { + "text": { + "zh_CN": "滚动条总是显示" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "minSize", + "label": { + "text": { + "zh_CN": "滚动条最小尺寸" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "tabindex", + "label": { + "text": { + "zh_CN": "容器的tabindex" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "id", + "label": { + "text": { + "zh_CN": "视图ID" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "role", + "label": { + "text": { + "zh_CN": "视图的角色" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "ariaLabel", + "label": { + "text": { + "zh_CN": "视图的 aria-label" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "ariaOrientation", + "label": { + "text": { + "zh_CN": "视图的 aria-orientation" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + } + ] + } + ], "events": { "onScroll": { "label": { @@ -1405,182 +1417,184 @@ "framework": "Vue" }, "schema": { - "properties": { - "label": { - "zh_CN": "基础信息" - }, - "description": { - "zh_CN": "基础信息" - }, - "collapse": { - "number": 6, - "text": { - "zh_CN": "显示更多" - } - }, - "content": [ - { - "property": "direction", - "label": { - "text": { - "zh_CN": "排列的方向" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "class", - "label": { - "text": { - "zh_CN": "className" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } + "properties": [ + { + "label": { + "zh_CN": "基础信息" }, - { - "property": "style", - "label": { - "text": { - "zh_CN": "额外样式" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "alignment", - "label": { - "text": { - "zh_CN": "对齐的方式" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "prefixCls", - "label": { - "text": { - "zh_CN": "给 space-items 的类名前缀" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "spacer", - "label": { - "text": { - "zh_CN": "间隔符" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "wrap", - "label": { - "text": { - "zh_CN": "设置是否自动折行" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "fill", - "label": { - "text": { - "zh_CN": "子元素是否填充父容器" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "fillRatio", - "label": { - "text": { - "zh_CN": "填充父容器的比例" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - }, - { - "property": "size", - "label": { - "text": { - "zh_CN": "间隔大小" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - } - ] - }, + "description": { + "zh_CN": "基础信息" + }, + "collapse": { + "number": 6, + "text": { + "zh_CN": "显示更多" + } + }, + "content": [ + { + "property": "direction", + "label": { + "text": { + "zh_CN": "排列的方向" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "class", + "label": { + "text": { + "zh_CN": "className" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "style", + "label": { + "text": { + "zh_CN": "额外样式" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "alignment", + "label": { + "text": { + "zh_CN": "对齐的方式" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "prefixCls", + "label": { + "text": { + "zh_CN": "给 space-items 的类名前缀" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "spacer", + "label": { + "text": { + "zh_CN": "间隔符" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "wrap", + "label": { + "text": { + "zh_CN": "设置是否自动折行" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "fill", + "label": { + "text": { + "zh_CN": "子元素是否填充父容器" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "fillRatio", + "label": { + "text": { + "zh_CN": "填充父容器的比例" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "size", + "label": { + "text": { + "zh_CN": "间隔大小" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + } + ] + } + ], "events": {}, "slots": {} } @@ -1650,198 +1664,200 @@ "framework": "Vue" }, "schema": { - "properties": { - "label": { - "zh_CN": "基础信息" - }, - "description": { - "zh_CN": "基础信息" - }, - "collapse": { - "number": 6, - "text": { - "zh_CN": "显示更多" - } - }, - "content": [ - { - "property": "a11y", - "label": { - "text": { - "zh_CN": "是否启用无障碍" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "locale", - "label": { - "text": { - "zh_CN": "翻译文本对象" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "size", - "label": { - "text": { - "zh_CN": "全局组件大小" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "button", - "label": { - "text": { - "zh_CN": "按钮相关配置,详见下表" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "experimentalFeatures", - "label": { - "text": { - "zh_CN": "将要添加的实验阶段的功能,所有功能都是默认设置为 false" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "keyboardNavigation", - "label": { - "text": { - "zh_CN": "是否允许用户通过键盘进行导航" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "message", - "label": { - "text": { - "zh_CN": "消息相关配置, 详见下表" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "zIndex", - "label": { - "text": { - "zh_CN": "全局初始化 zIndex 的值" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - }, - { - "property": "namespace", - "label": { - "text": { - "zh_CN": "全局组件类名称前缀 (需要配合 $namespace 使用)" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "emptyValues", - "label": { - "text": { - "zh_CN": "输入类组件空值" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } + "properties": [ + { + "label": { + "zh_CN": "基础信息" }, - { - "property": "valueOnClear", - "label": { - "text": { - "zh_CN": "输入类组件清空值" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - } - ] - }, + "description": { + "zh_CN": "基础信息" + }, + "collapse": { + "number": 6, + "text": { + "zh_CN": "显示更多" + } + }, + "content": [ + { + "property": "a11y", + "label": { + "text": { + "zh_CN": "是否启用无障碍" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "locale", + "label": { + "text": { + "zh_CN": "翻译文本对象" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "size", + "label": { + "text": { + "zh_CN": "全局组件大小" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "button", + "label": { + "text": { + "zh_CN": "按钮相关配置,详见下表" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "experimentalFeatures", + "label": { + "text": { + "zh_CN": "将要添加的实验阶段的功能,所有功能都是默认设置为 false" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "keyboardNavigation", + "label": { + "text": { + "zh_CN": "是否允许用户通过键盘进行导航" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "message", + "label": { + "text": { + "zh_CN": "消息相关配置, 详见下表" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "zIndex", + "label": { + "text": { + "zh_CN": "全局初始化 zIndex 的值" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "namespace", + "label": { + "text": { + "zh_CN": "全局组件类名称前缀 (需要配合 $namespace 使用)" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "emptyValues", + "label": { + "text": { + "zh_CN": "输入类组件空值" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "valueOnClear", + "label": { + "text": { + "zh_CN": "输入类组件清空值" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + } + ] + } + ], "events": {}, "slots": {} } @@ -1916,278 +1932,280 @@ "framework": "Vue" }, "schema": { - "properties": { - "label": { - "zh_CN": "基础信息" - }, - "description": { - "zh_CN": "基础信息" - }, - "collapse": { - "number": 6, - "text": { - "zh_CN": "显示更多" - } - }, - "content": [ - { - "property": "valueKey", - "label": { - "text": { - "zh_CN": "输入建议对象中用于显示的键名" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "modelValue", - "label": { - "text": { - "zh_CN": "选中项绑定值" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "debounce", - "label": { - "text": { - "zh_CN": "获取输入建议的防抖延时,单位为毫秒" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - }, - { - "property": "placement", - "label": { - "text": { - "zh_CN": "菜单弹出位置" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "fetchSuggestions", - "label": { - "text": { - "zh_CN": "获取输入建议的方法, 仅当你的输入建议数据 resolve 时,通过调用 callback(data:[]) 来返回它" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "popperClass", - "label": { - "text": { - "zh_CN": "下拉列表的类名" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "triggerOnFocus", - "label": { - "text": { - "zh_CN": "whether show suggestions when input focus" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "selectWhenUnmatched", - "label": { - "text": { - "zh_CN": "在输入没有任何匹配建议的情况下,按下回车是否触发 select 事件" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "hideLoading", - "label": { - "text": { - "zh_CN": "是否隐藏远程加载时的加载图标" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "teleported", - "label": { - "text": { - "zh_CN": "是否将下拉列表元素插入 append-to 指向的元素下" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "highlightFirstItem", - "label": { - "text": { - "zh_CN": "是否默认高亮远程搜索结果的第一项" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "fitInputWidth", - "label": { - "text": { - "zh_CN": "下拉框的宽度是否与输入框相同" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "clearable", - "label": { - "text": { - "zh_CN": "是否可清空" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "disabled", - "label": { - "text": { - "zh_CN": "自动补全组件是否被禁用" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "name", - "label": { - "text": { - "zh_CN": "等价于原生 input name 属性" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } + "properties": [ + { + "label": { + "zh_CN": "基础信息" }, - { - "property": "ariaLabel", - "label": { - "text": { - "zh_CN": "原生 aria-label属性" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - } - ] - }, + "description": { + "zh_CN": "基础信息" + }, + "collapse": { + "number": 6, + "text": { + "zh_CN": "显示更多" + } + }, + "content": [ + { + "property": "valueKey", + "label": { + "text": { + "zh_CN": "输入建议对象中用于显示的键名" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "modelValue", + "label": { + "text": { + "zh_CN": "选中项绑定值" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "debounce", + "label": { + "text": { + "zh_CN": "获取输入建议的防抖延时,单位为毫秒" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "placement", + "label": { + "text": { + "zh_CN": "菜单弹出位置" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "fetchSuggestions", + "label": { + "text": { + "zh_CN": "获取输入建议的方法, 仅当你的输入建议数据 resolve 时,通过调用 callback(data:[]) 来返回它" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "popperClass", + "label": { + "text": { + "zh_CN": "下拉列表的类名" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "triggerOnFocus", + "label": { + "text": { + "zh_CN": "whether show suggestions when input focus" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "selectWhenUnmatched", + "label": { + "text": { + "zh_CN": "在输入没有任何匹配建议的情况下,按下回车是否触发 select 事件" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "hideLoading", + "label": { + "text": { + "zh_CN": "是否隐藏远程加载时的加载图标" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "teleported", + "label": { + "text": { + "zh_CN": "是否将下拉列表元素插入 append-to 指向的元素下" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "highlightFirstItem", + "label": { + "text": { + "zh_CN": "是否默认高亮远程搜索结果的第一项" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "fitInputWidth", + "label": { + "text": { + "zh_CN": "下拉框的宽度是否与输入框相同" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "clearable", + "label": { + "text": { + "zh_CN": "是否可清空" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "disabled", + "label": { + "text": { + "zh_CN": "自动补全组件是否被禁用" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "name", + "label": { + "text": { + "zh_CN": "等价于原生 input name 属性" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "ariaLabel", + "label": { + "text": { + "zh_CN": "原生 aria-label属性" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + } + ] + } + ], "events": { "onUpdate:modelValue": { "label": { @@ -2404,498 +2422,500 @@ "framework": "Vue" }, "schema": { - "properties": { - "label": { - "zh_CN": "基础信息" - }, - "description": { - "zh_CN": "基础信息" - }, - "collapse": { - "number": 6, - "text": { - "zh_CN": "显示更多" - } - }, - "content": [ - { - "property": "modelValue", - "label": { - "text": { - "zh_CN": "选中项绑定值" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } + "properties": [ + { + "label": { + "zh_CN": "基础信息" }, - { - "property": "options", - "label": { - "text": { - "zh_CN": "选项的数据源, value 和 label 可以通过 CascaderProps 自定义." - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } + "description": { + "zh_CN": "基础信息" + }, + "collapse": { + "number": 6, + "text": { + "zh_CN": "显示更多" + } + }, + "content": [ + { + "property": "modelValue", + "label": { + "text": { + "zh_CN": "选中项绑定值" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "options", + "label": { + "text": { + "zh_CN": "选项的数据源, value 和 label 可以通过 CascaderProps 自定义." + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "props", + "label": { + "text": { + "zh_CN": "配置选项, 请参阅下面 CascaderProps 表。" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "size", + "label": { + "text": { + "zh_CN": "尺寸" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "placeholder", + "label": { + "text": { + "zh_CN": "输入框占位文本" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "disabled", + "label": { + "text": { + "zh_CN": "是否禁用" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "clearable", + "label": { + "text": { + "zh_CN": "是否支持清空选项" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "filterable", + "label": { + "text": { + "zh_CN": "该选项是否可以被搜索" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "filterMethod", + "label": { + "text": { + "zh_CN": "自定义搜索逻辑,第一个参数是node,第二个参数是keyword,返回的布尔值表示是否保留该选项" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "separator", + "label": { + "text": { + "zh_CN": "用于分隔选项的字符" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "showAllLevels", + "label": { + "text": { + "zh_CN": "输入框中是否显示选中值的完整路径" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "collapseTags", + "label": { + "text": { + "zh_CN": "多选模式下是否折叠Tag" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "maxCollapseTags", + "label": { + "text": { + "zh_CN": "需要显示的 Tag 的最大数量 只有当 collapse-tags 设置为 true 时才会生效。" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "collapseTagsTooltip", + "label": { + "text": { + "zh_CN": "当鼠标悬停于折叠标签的文本时,是否显示所有选中的标签。 要使用此属性,collapse-tags属性必须设定为 true" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "debounce", + "label": { + "text": { + "zh_CN": "搜索关键词正在输入时的去抖延迟,单位为毫秒" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "beforeFilter", + "label": { + "text": { + "zh_CN": "过滤函数调用前,所要调用的钩子函数,该函数接收要过滤的值作为参数。 如果该函数的返回值是 false 或者是一个被拒绝的 Promise,那么接下来的过滤逻辑便不会执行。" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "placement", + "label": { + "text": { + "zh_CN": "下拉框出现的位置" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "fallbackPlacements", + "label": { + "text": { + "zh_CN": "Tooltip 可用的 positions 请查看popper.js 文档" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "popperClass", + "label": { + "text": { + "zh_CN": "弹出内容的自定义类名" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "teleported", + "label": { + "text": { + "zh_CN": "弹层是否使用 teleport" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "tagType", + "label": { + "text": { + "zh_CN": "标签类型" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "tagEffect", + "label": { + "text": { + "zh_CN": "tag effect" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "validateEvent", + "label": { + "text": { + "zh_CN": "输入时是否触发表单的校验" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "persistent", + "label": { + "text": { + "zh_CN": "当下拉框未被激活并且persistent设置为false,下拉框容器会被删除。" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "emptyValues", + "label": { + "text": { + "zh_CN": "组件的空值配置 参考config-provider" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "valueOnClear", + "label": { + "text": { + "zh_CN": "清空选项的值 参考 config-provider" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + } + ] + } + ], + "events": { + "onUpdate:modelValue": { + "label": { + "zh_CN": "双向绑定的值改变时触发" }, - { - "property": "props", - "label": { - "text": { - "zh_CN": "配置选项, 请参阅下面 CascaderProps 表。" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } + "description": { + "zh_CN": "双向绑定的值改变时触发" }, - { - "property": "size", - "label": { - "text": { - "zh_CN": "尺寸" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } + "type": "event", + "functionInfo": { + "params": [], + "returns": {} }, - { - "property": "placeholder", - "label": { - "text": { - "zh_CN": "输入框占位文本" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } + "defaultValue": "" + }, + "onChange": { + "label": { + "zh_CN": "当绑定值变化时触发的事件" }, - { - "property": "disabled", - "label": { - "text": { - "zh_CN": "是否禁用" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } + "description": { + "zh_CN": "当绑定值变化时触发的事件" }, - { - "property": "clearable", - "label": { - "text": { - "zh_CN": "是否支持清空选项" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } + "type": "event", + "functionInfo": { + "params": [], + "returns": {} }, - { - "property": "filterable", - "label": { - "text": { - "zh_CN": "该选项是否可以被搜索" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } + "defaultValue": "" + }, + "onFocus": { + "label": { + "zh_CN": "当获得焦点时触发" }, - { - "property": "filterMethod", - "label": { - "text": { - "zh_CN": "自定义搜索逻辑,第一个参数是node,第二个参数是keyword,返回的布尔值表示是否保留该选项" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } + "description": { + "zh_CN": "当获得焦点时触发" }, - { - "property": "separator", - "label": { - "text": { - "zh_CN": "用于分隔选项的字符" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } + "type": "event", + "functionInfo": { + "params": [], + "returns": {} }, - { - "property": "showAllLevels", - "label": { - "text": { - "zh_CN": "输入框中是否显示选中值的完整路径" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } + "defaultValue": "" + }, + "onBlur": { + "label": { + "zh_CN": "当失去焦点时触发" }, - { - "property": "collapseTags", - "label": { - "text": { - "zh_CN": "多选模式下是否折叠Tag" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } + "description": { + "zh_CN": "当失去焦点时触发" }, - { - "property": "maxCollapseTags", - "label": { - "text": { - "zh_CN": "需要显示的 Tag 的最大数量 只有当 collapse-tags 设置为 true 时才会生效。" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } + "type": "event", + "functionInfo": { + "params": [], + "returns": {} }, - { - "property": "collapseTagsTooltip", - "label": { - "text": { - "zh_CN": "当鼠标悬停于折叠标签的文本时,是否显示所有选中的标签。 要使用此属性,collapse-tags属性必须设定为 true" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "debounce", - "label": { - "text": { - "zh_CN": "搜索关键词正在输入时的去抖延迟,单位为毫秒" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - }, - { - "property": "beforeFilter", - "label": { - "text": { - "zh_CN": "过滤函数调用前,所要调用的钩子函数,该函数接收要过滤的值作为参数。 如果该函数的返回值是 false 或者是一个被拒绝的 Promise,那么接下来的过滤逻辑便不会执行。" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "placement", - "label": { - "text": { - "zh_CN": "下拉框出现的位置" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "fallbackPlacements", - "label": { - "text": { - "zh_CN": "Tooltip 可用的 positions 请查看popper.js 文档" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "popperClass", - "label": { - "text": { - "zh_CN": "弹出内容的自定义类名" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "teleported", - "label": { - "text": { - "zh_CN": "弹层是否使用 teleport" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "tagType", - "label": { - "text": { - "zh_CN": "标签类型" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "tagEffect", - "label": { - "text": { - "zh_CN": "tag effect" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "validateEvent", - "label": { - "text": { - "zh_CN": "输入时是否触发表单的校验" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "persistent", - "label": { - "text": { - "zh_CN": "当下拉框未被激活并且persistent设置为false,下拉框容器会被删除。" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "emptyValues", - "label": { - "text": { - "zh_CN": "组件的空值配置 参考config-provider" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "valueOnClear", - "label": { - "text": { - "zh_CN": "清空选项的值 参考 config-provider" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - } - ] - }, - "events": { - "onUpdate:modelValue": { - "label": { - "zh_CN": "双向绑定的值改变时触发" - }, - "description": { - "zh_CN": "双向绑定的值改变时触发" - }, - "type": "event", - "functionInfo": { - "params": [], - "returns": {} - }, - "defaultValue": "" - }, - "onChange": { - "label": { - "zh_CN": "当绑定值变化时触发的事件" - }, - "description": { - "zh_CN": "当绑定值变化时触发的事件" - }, - "type": "event", - "functionInfo": { - "params": [], - "returns": {} - }, - "defaultValue": "" - }, - "onFocus": { - "label": { - "zh_CN": "当获得焦点时触发" - }, - "description": { - "zh_CN": "当获得焦点时触发" - }, - "type": "event", - "functionInfo": { - "params": [], - "returns": {} - }, - "defaultValue": "" - }, - "onBlur": { - "label": { - "zh_CN": "当失去焦点时触发" - }, - "description": { - "zh_CN": "当失去焦点时触发" - }, - "type": "event", - "functionInfo": { - "params": [], - "returns": {} - }, - "defaultValue": "" - }, - "onClear": { - "label": { - "zh_CN": "可清空的单选模式下用户点击清空按钮时触发" + "defaultValue": "" + }, + "onClear": { + "label": { + "zh_CN": "可清空的单选模式下用户点击清空按钮时触发" }, "description": { "zh_CN": "可清空的单选模式下用户点击清空按钮时触发" @@ -3033,294 +3053,296 @@ "framework": "Vue" }, "schema": { - "properties": { - "label": { - "zh_CN": "基础信息" - }, - "description": { - "zh_CN": "基础信息" - }, - "collapse": { - "number": 6, - "text": { - "zh_CN": "显示更多" - } - }, - "content": [ - { - "property": "modelValue", - "label": { - "text": { - "zh_CN": "选中项绑定值" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - }, - { - "property": "label", - "label": { - "text": { - "zh_CN": "选中状态的值,只有在绑定对象类型为 array 时有效。 如果没有 value, label则作为value使用" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "value", - "label": { - "text": { - "zh_CN": "选中状态的值(只有在checkbox-group或者绑定对象类型为array时有效)" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "indeterminate", - "label": { - "text": { - "zh_CN": "设置不确定状态,仅负责样式控制" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "disabled", - "label": { - "text": { - "zh_CN": "是否禁用" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "checked", - "label": { - "text": { - "zh_CN": "当前是否勾选" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "name", - "label": { - "text": { - "zh_CN": "原生 name 属性" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "trueValue", - "label": { - "text": { - "zh_CN": "选中时的值" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "falseValue", - "label": { - "text": { - "zh_CN": "没有选中时的值" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "trueLabel", - "label": { - "text": { - "zh_CN": "选中时的值" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "falseLabel", - "label": { - "text": { - "zh_CN": "没有选中时的值" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "id", - "label": { - "text": { - "zh_CN": "input id" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "border", - "label": { - "text": { - "zh_CN": "是否显示边框" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "size", - "label": { - "text": { - "zh_CN": "Checkbox 的尺寸" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "tabindex", - "label": { - "text": { - "zh_CN": "输入框的 tabindex" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "validateEvent", - "label": { - "text": { - "zh_CN": "输入时是否触发表单的校验" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } + "properties": [ + { + "label": { + "zh_CN": "基础信息" }, - { - "property": "ariaControls", - "label": { - "text": { - "zh_CN": "与 aria-control一致, 当 indeterminate为 true时生效" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - } - ] - }, + "description": { + "zh_CN": "基础信息" + }, + "collapse": { + "number": 6, + "text": { + "zh_CN": "显示更多" + } + }, + "content": [ + { + "property": "modelValue", + "label": { + "text": { + "zh_CN": "选中项绑定值" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "label", + "label": { + "text": { + "zh_CN": "选中状态的值,只有在绑定对象类型为 array 时有效。 如果没有 value, label则作为value使用" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "value", + "label": { + "text": { + "zh_CN": "选中状态的值(只有在checkbox-group或者绑定对象类型为array时有效)" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "indeterminate", + "label": { + "text": { + "zh_CN": "设置不确定状态,仅负责样式控制" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "disabled", + "label": { + "text": { + "zh_CN": "是否禁用" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "checked", + "label": { + "text": { + "zh_CN": "当前是否勾选" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "name", + "label": { + "text": { + "zh_CN": "原生 name 属性" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "trueValue", + "label": { + "text": { + "zh_CN": "选中时的值" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "falseValue", + "label": { + "text": { + "zh_CN": "没有选中时的值" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "trueLabel", + "label": { + "text": { + "zh_CN": "选中时的值" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "falseLabel", + "label": { + "text": { + "zh_CN": "没有选中时的值" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "id", + "label": { + "text": { + "zh_CN": "input id" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "border", + "label": { + "text": { + "zh_CN": "是否显示边框" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "size", + "label": { + "text": { + "zh_CN": "Checkbox 的尺寸" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "tabindex", + "label": { + "text": { + "zh_CN": "输入框的 tabindex" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "validateEvent", + "label": { + "text": { + "zh_CN": "输入时是否触发表单的校验" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "ariaControls", + "label": { + "text": { + "zh_CN": "与 aria-control一致, 当 indeterminate为 true时生效" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + } + ] + } + ], "events": { "onUpdate:modelValue": { "label": { @@ -3429,214 +3451,216 @@ "framework": "Vue" }, "schema": { - "properties": { - "label": { - "zh_CN": "基础信息" - }, - "description": { - "zh_CN": "基础信息" - }, - "collapse": { - "number": 6, - "text": { - "zh_CN": "显示更多" - } - }, - "content": [ - { - "property": "modelValue", - "label": { - "text": { - "zh_CN": "选中项绑定值" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "id", - "label": { - "text": { - "zh_CN": "ColorPicker 的 id" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "showAlpha", - "label": { - "text": { - "zh_CN": "是否支持透明度选择" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "colorFormat", - "label": { - "text": { - "zh_CN": "写入 v-model 的颜色的格式" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "disabled", - "label": { - "text": { - "zh_CN": "是否禁用" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "size", - "label": { - "text": { - "zh_CN": "尺寸" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "popperClass", - "label": { - "text": { - "zh_CN": "ColorPicker 下拉框的类名" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "tabindex", - "label": { - "text": { - "zh_CN": "ColorPicker 的 tabindex" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "teleported", - "label": { - "text": { - "zh_CN": "是否将 popover 的下拉列表渲染至 body 下" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "predefine", - "label": { - "text": { - "zh_CN": "预定义颜色" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "validateEvent", - "label": { - "text": { - "zh_CN": "输入时是否触发表单的校验" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } + "properties": [ + { + "label": { + "zh_CN": "基础信息" }, - { - "property": "ariaLabel", - "label": { - "text": { - "zh_CN": "ColorPicker 的 aria-label" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - } - ] - }, + "description": { + "zh_CN": "基础信息" + }, + "collapse": { + "number": 6, + "text": { + "zh_CN": "显示更多" + } + }, + "content": [ + { + "property": "modelValue", + "label": { + "text": { + "zh_CN": "选中项绑定值" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "id", + "label": { + "text": { + "zh_CN": "ColorPicker 的 id" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "showAlpha", + "label": { + "text": { + "zh_CN": "是否支持透明度选择" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "colorFormat", + "label": { + "text": { + "zh_CN": "写入 v-model 的颜色的格式" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "disabled", + "label": { + "text": { + "zh_CN": "是否禁用" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "size", + "label": { + "text": { + "zh_CN": "尺寸" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "popperClass", + "label": { + "text": { + "zh_CN": "ColorPicker 下拉框的类名" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "tabindex", + "label": { + "text": { + "zh_CN": "ColorPicker 的 tabindex" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "teleported", + "label": { + "text": { + "zh_CN": "是否将 popover 的下拉列表渲染至 body 下" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "predefine", + "label": { + "text": { + "zh_CN": "预定义颜色" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "validateEvent", + "label": { + "text": { + "zh_CN": "输入时是否触发表单的校验" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "ariaLabel", + "label": { + "text": { + "zh_CN": "ColorPicker 的 aria-label" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + } + ] + } + ], "events": { "onUpdate:modelValue": { "label": { @@ -3805,646 +3829,648 @@ "framework": "Vue" }, "schema": { - "properties": { - "label": { - "zh_CN": "基础信息" - }, - "description": { - "zh_CN": "基础信息" - }, - "collapse": { - "number": 6, - "text": { - "zh_CN": "显示更多" - } - }, - "content": [ - { - "property": "id", - "label": { - "text": { - "zh_CN": "等价于原生 input id 属性" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "name", - "label": { - "text": { - "zh_CN": "等价于原生 input name 属性" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } + "properties": [ + { + "label": { + "zh_CN": "基础信息" }, - { - "property": "popperClass", - "label": { - "text": { - "zh_CN": "DatePicker 下拉框的类名" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "format", - "label": { - "text": { - "zh_CN": "显示在输入框中的格式" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "valueFormat", - "label": { - "text": { - "zh_CN": "可选,绑定值的格式。 不指定则绑定值为 Date 对象" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "dateFormat", - "label": { - "text": { - "zh_CN": "可选,时间选择器下拉列表中显示的日期格式" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "timeFormat", - "label": { - "text": { - "zh_CN": "可选,时间选择器下拉列表中显示的时间格式" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "type", - "label": { - "text": { - "zh_CN": "显示类型" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "clearable", - "label": { - "text": { - "zh_CN": "是否显示清除按钮" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "clearIcon", - "label": { - "text": { - "zh_CN": "自定义清除图标" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "editable", - "label": { - "text": { - "zh_CN": "文本框可输入" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "prefixIcon", - "label": { - "text": { - "zh_CN": "自定义前缀图标 如果 type的值是TimeLikeType,那么就是 Clock,不然就是 Calendar" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "size", - "label": { - "text": { - "zh_CN": "输入框尺寸" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "readonly", - "label": { - "text": { - "zh_CN": "只读" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "disabled", - "label": { - "text": { - "zh_CN": "禁用" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "placeholder", - "label": { - "text": { - "zh_CN": "非范围选择时的占位内容" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "popperOptions", - "label": { - "text": { - "zh_CN": "自定义 popper 选项,更多请参考 popper.js" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "modelValue", - "label": { - "text": { - "zh_CN": "绑定值,如果它是数组,长度应该是 2" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaDatePicker", - "props": {} - } - }, - { - "property": "rangeSeparator", - "label": { - "text": { - "zh_CN": "选择范围时的分隔符" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "startPlaceholder", - "label": { - "text": { - "zh_CN": "范围选择时开始日期的占位内容" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "endPlaceholder", - "label": { - "text": { - "zh_CN": "范围选择时结束日期的占位内容" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "defaultValue", - "label": { - "text": { - "zh_CN": "可选,选择器打开时默认显示的时间" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaDatePicker", - "props": {} - } - }, - { - "property": "defaultTime", - "label": { - "text": { - "zh_CN": "范围选择时选中日期所使用的当日内具体时刻" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaDatePicker", - "props": {} - } - }, - { - "property": "isRange", - "label": { - "text": { - "zh_CN": "设置一个日期范围" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "disabledHours", - "label": { - "text": { - "zh_CN": "设置不可选择的小时" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "disabledMinutes", - "label": { - "text": { - "zh_CN": "设置不可选择的分钟" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "disabledSeconds", - "label": { - "text": { - "zh_CN": "设置不可选择的秒钟" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "disabledDate", - "label": { - "text": { - "zh_CN": "一个用来判断该日期是否被禁用的函数,接受一个 Date 对象作为参数。 应该返回一个 Boolean 值。" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "cellClassName", - "label": { - "text": { - "zh_CN": "设置自定义类名" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "shortcuts", - "label": { - "text": { - "zh_CN": "设置快捷选项,需要传入数组对象" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "arrowControl", - "label": { - "text": { - "zh_CN": "是否使用箭头进行时间选择" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "tabindex", - "label": { - "text": { - "zh_CN": "定义元素的键盘导航顺序" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "validateEvent", - "label": { - "text": { - "zh_CN": "是否触发表单验证" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "unlinkPanels", - "label": { - "text": { - "zh_CN": "在范围选择器里取消两个日期面板之间的联动" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "placement", - "label": { - "text": { - "zh_CN": "下拉框出现的位置" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "fallbackPlacements", - "label": { - "text": { - "zh_CN": "Tooltip 可用的 positions 请查看popper.js 文档" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "emptyValues", - "label": { - "text": { - "zh_CN": "组件的空值配置 参考config-provider" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "valueOnClear", - "label": { - "text": { - "zh_CN": "清空选项的值 参考 config-provider" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "ariaLabel", - "label": { - "text": { - "zh_CN": "为无障碍支持设置元素的可访问标签" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - } - ] - }, + "description": { + "zh_CN": "基础信息" + }, + "collapse": { + "number": 6, + "text": { + "zh_CN": "显示更多" + } + }, + "content": [ + { + "property": "id", + "label": { + "text": { + "zh_CN": "等价于原生 input id 属性" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "name", + "label": { + "text": { + "zh_CN": "等价于原生 input name 属性" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "popperClass", + "label": { + "text": { + "zh_CN": "DatePicker 下拉框的类名" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "format", + "label": { + "text": { + "zh_CN": "显示在输入框中的格式" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "valueFormat", + "label": { + "text": { + "zh_CN": "可选,绑定值的格式。 不指定则绑定值为 Date 对象" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "dateFormat", + "label": { + "text": { + "zh_CN": "可选,时间选择器下拉列表中显示的日期格式" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "timeFormat", + "label": { + "text": { + "zh_CN": "可选,时间选择器下拉列表中显示的时间格式" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "type", + "label": { + "text": { + "zh_CN": "显示类型" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "clearable", + "label": { + "text": { + "zh_CN": "是否显示清除按钮" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "clearIcon", + "label": { + "text": { + "zh_CN": "自定义清除图标" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "editable", + "label": { + "text": { + "zh_CN": "文本框可输入" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "prefixIcon", + "label": { + "text": { + "zh_CN": "自定义前缀图标 如果 type的值是TimeLikeType,那么就是 Clock,不然就是 Calendar" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "size", + "label": { + "text": { + "zh_CN": "输入框尺寸" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "readonly", + "label": { + "text": { + "zh_CN": "只读" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "disabled", + "label": { + "text": { + "zh_CN": "禁用" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "placeholder", + "label": { + "text": { + "zh_CN": "非范围选择时的占位内容" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "popperOptions", + "label": { + "text": { + "zh_CN": "自定义 popper 选项,更多请参考 popper.js" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "modelValue", + "label": { + "text": { + "zh_CN": "绑定值,如果它是数组,长度应该是 2" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaDatePicker", + "props": {} + } + }, + { + "property": "rangeSeparator", + "label": { + "text": { + "zh_CN": "选择范围时的分隔符" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "startPlaceholder", + "label": { + "text": { + "zh_CN": "范围选择时开始日期的占位内容" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "endPlaceholder", + "label": { + "text": { + "zh_CN": "范围选择时结束日期的占位内容" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "defaultValue", + "label": { + "text": { + "zh_CN": "可选,选择器打开时默认显示的时间" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaDatePicker", + "props": {} + } + }, + { + "property": "defaultTime", + "label": { + "text": { + "zh_CN": "范围选择时选中日期所使用的当日内具体时刻" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaDatePicker", + "props": {} + } + }, + { + "property": "isRange", + "label": { + "text": { + "zh_CN": "设置一个日期范围" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "disabledHours", + "label": { + "text": { + "zh_CN": "设置不可选择的小时" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "disabledMinutes", + "label": { + "text": { + "zh_CN": "设置不可选择的分钟" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "disabledSeconds", + "label": { + "text": { + "zh_CN": "设置不可选择的秒钟" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "disabledDate", + "label": { + "text": { + "zh_CN": "一个用来判断该日期是否被禁用的函数,接受一个 Date 对象作为参数。 应该返回一个 Boolean 值。" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "cellClassName", + "label": { + "text": { + "zh_CN": "设置自定义类名" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "shortcuts", + "label": { + "text": { + "zh_CN": "设置快捷选项,需要传入数组对象" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "arrowControl", + "label": { + "text": { + "zh_CN": "是否使用箭头进行时间选择" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "tabindex", + "label": { + "text": { + "zh_CN": "定义元素的键盘导航顺序" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "validateEvent", + "label": { + "text": { + "zh_CN": "是否触发表单验证" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "unlinkPanels", + "label": { + "text": { + "zh_CN": "在范围选择器里取消两个日期面板之间的联动" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "placement", + "label": { + "text": { + "zh_CN": "下拉框出现的位置" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "fallbackPlacements", + "label": { + "text": { + "zh_CN": "Tooltip 可用的 positions 请查看popper.js 文档" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "emptyValues", + "label": { + "text": { + "zh_CN": "组件的空值配置 参考config-provider" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "valueOnClear", + "label": { + "text": { + "zh_CN": "清空选项的值 参考 config-provider" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "ariaLabel", + "label": { + "text": { + "zh_CN": "为无障碍支持设置元素的可访问标签" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + } + ] + } + ], "events": { "onUpdate:modelValue": { "label": { @@ -4534,278 +4560,280 @@ "framework": "Vue" }, "schema": { - "properties": { - "label": { - "zh_CN": "基础信息" - }, - "description": { - "zh_CN": "基础信息" - }, - "collapse": { - "number": 6, - "text": { - "zh_CN": "显示更多" - } - }, - "content": [ - { - "property": "size", - "label": { - "text": { - "zh_CN": "用于控制该表单内组件的尺寸" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "disabled", - "label": { - "text": { - "zh_CN": "是否禁用该表单内的所有组件。 如果设置为 true, 它将覆盖内部组件的 disabled 属性" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "model", - "label": { - "text": { - "zh_CN": "表单数据对象" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "rules", - "label": { - "text": { - "zh_CN": "表单验证规则" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "labelPosition", - "label": { - "text": { - "zh_CN": "表单域标签的位置, 当设置为 left 或 right 时,则也需要设置 label-width 属性" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "requireAsteriskPosition", - "label": { - "text": { - "zh_CN": "星号的位置。" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "labelWidth", - "label": { - "text": { - "zh_CN": "标签的长度,例如 '50px'。 作为 Form 直接子元素的 form-item 会继承该值。 可以使用 auto。" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "labelSuffix", - "label": { - "text": { - "zh_CN": "表单域标签的后缀" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "inline", - "label": { - "text": { - "zh_CN": "行内表单模式" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "inlineMessage", - "label": { - "text": { - "zh_CN": "是否以行内形式展示校验信息" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "statusIcon", - "label": { - "text": { - "zh_CN": "是否在输入框中显示校验结果反馈图标" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "showMessage", - "label": { - "text": { - "zh_CN": "是否显示校验错误信息" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "validateOnRuleChange", - "label": { - "text": { - "zh_CN": "是否在 rules 属性改变后立即触发一次验证" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "hideRequiredAsterisk", - "label": { - "text": { - "zh_CN": "是否隐藏必填字段标签旁边的红色星号。" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "scrollToError", - "label": { - "text": { - "zh_CN": "当校验失败时,滚动到第一个错误表单项" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } + "properties": [ + { + "label": { + "zh_CN": "基础信息" }, - { - "property": "scrollIntoViewOptions", - "label": { - "text": { - "zh_CN": "当校验有失败结果时,滚动到第一个失败的表单项目 可通过 scrollIntoView 配置" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - } - ] - }, + "description": { + "zh_CN": "基础信息" + }, + "collapse": { + "number": 6, + "text": { + "zh_CN": "显示更多" + } + }, + "content": [ + { + "property": "size", + "label": { + "text": { + "zh_CN": "用于控制该表单内组件的尺寸" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "disabled", + "label": { + "text": { + "zh_CN": "是否禁用该表单内的所有组件。 如果设置为 true, 它将覆盖内部组件的 disabled 属性" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "model", + "label": { + "text": { + "zh_CN": "表单数据对象" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "rules", + "label": { + "text": { + "zh_CN": "表单验证规则" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "labelPosition", + "label": { + "text": { + "zh_CN": "表单域标签的位置, 当设置为 left 或 right 时,则也需要设置 label-width 属性" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "requireAsteriskPosition", + "label": { + "text": { + "zh_CN": "星号的位置。" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "labelWidth", + "label": { + "text": { + "zh_CN": "标签的长度,例如 '50px'。 作为 Form 直接子元素的 form-item 会继承该值。 可以使用 auto。" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "labelSuffix", + "label": { + "text": { + "zh_CN": "表单域标签的后缀" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "inline", + "label": { + "text": { + "zh_CN": "行内表单模式" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "inlineMessage", + "label": { + "text": { + "zh_CN": "是否以行内形式展示校验信息" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "statusIcon", + "label": { + "text": { + "zh_CN": "是否在输入框中显示校验结果反馈图标" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "showMessage", + "label": { + "text": { + "zh_CN": "是否显示校验错误信息" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "validateOnRuleChange", + "label": { + "text": { + "zh_CN": "是否在 rules 属性改变后立即触发一次验证" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "hideRequiredAsterisk", + "label": { + "text": { + "zh_CN": "是否隐藏必填字段标签旁边的红色星号。" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "scrollToError", + "label": { + "text": { + "zh_CN": "当校验失败时,滚动到第一个错误表单项" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "scrollIntoViewOptions", + "label": { + "text": { + "zh_CN": "当校验有失败结果时,滚动到第一个失败的表单项目 可通过 scrollIntoView 配置" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + } + ] + } + ], "events": { "onValidate": { "label": { @@ -4906,466 +4934,468 @@ "framework": "Vue" }, "schema": { - "properties": { - "label": { - "zh_CN": "基础信息" - }, - "description": { - "zh_CN": "基础信息" - }, - "collapse": { - "number": 6, - "text": { - "zh_CN": "显示更多" - } - }, - "content": [ - { - "property": "id", - "label": { - "text": { - "zh_CN": "本机输入id" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "size", - "label": { - "text": { - "zh_CN": "输入框尺寸,只在 type 不为 'textarea' 时有效" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } + "properties": [ + { + "label": { + "zh_CN": "基础信息" }, - { - "property": "disabled", - "label": { - "text": { - "zh_CN": "是否禁用" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } + "description": { + "zh_CN": "基础信息" + }, + "collapse": { + "number": 6, + "text": { + "zh_CN": "显示更多" + } + }, + "content": [ + { + "property": "id", + "label": { + "text": { + "zh_CN": "本机输入id" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "size", + "label": { + "text": { + "zh_CN": "输入框尺寸,只在 type 不为 'textarea' 时有效" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "disabled", + "label": { + "text": { + "zh_CN": "是否禁用" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "modelValue", + "label": { + "text": { + "zh_CN": "绑定值" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "maxlength", + "label": { + "text": { + "zh_CN": "同原生 maxlength 属性" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "minlength", + "label": { + "text": { + "zh_CN": "原生属性,最小输入长度" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "type", + "label": { + "text": { + "zh_CN": "类型" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "resize", + "label": { + "text": { + "zh_CN": "控制是否能被用户缩放" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "autosize", + "label": { + "text": { + "zh_CN": "textarea 高度是否自适应,仅 type 为 'textarea' 时生效。 可以接受一个对象,比如: { minRows: 2, maxRows: 6 }" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "autocomplete", + "label": { + "text": { + "zh_CN": "原生 autocomplete 属性" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "formatter", + "label": { + "text": { + "zh_CN": "指定输入值的格式。(只有当 type 是\"text\"时才能工作)" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "parser", + "label": { + "text": { + "zh_CN": "指定从格式化器输入中提取的值。(仅当 type 是\"text\"时才起作用)" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "placeholder", + "label": { + "text": { + "zh_CN": "输入框占位文本" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "form", + "label": { + "text": { + "zh_CN": "原生属性" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "readonly", + "label": { + "text": { + "zh_CN": "原生 readonly 属性,是否只读" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "clearable", + "label": { + "text": { + "zh_CN": "是否显示清除按钮,只有当 type 不是 textarea时生效" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "showPassword", + "label": { + "text": { + "zh_CN": "是否显示切换密码图标" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "showWordLimit", + "label": { + "text": { + "zh_CN": "是否显示统计字数, 只在 type 为 'text' 或 'textarea' 的时候生效" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "suffixIcon", + "label": { + "text": { + "zh_CN": "自定义后缀图标" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "prefixIcon", + "label": { + "text": { + "zh_CN": "自定义前缀图标" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "containerRole", + "label": { + "text": { + "zh_CN": "容器角色,为选择器组件提供的内部属性" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "tabindex", + "label": { + "text": { + "zh_CN": "输入框的 tabindex" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "validateEvent", + "label": { + "text": { + "zh_CN": "输入时是否触发表单的校验" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "inputStyle", + "label": { + "text": { + "zh_CN": "input 元素或 textarea 元素的 style" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "autofocus", + "label": { + "text": { + "zh_CN": "原生属性,自动获取焦点" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "rows", + "label": { + "text": { + "zh_CN": "输入框行数,仅 type 为 'textarea' 时有效" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "ariaLabel", + "label": { + "text": { + "zh_CN": "等价于原生 input aria-label 属性" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + } + ] + } + ], + "events": { + "onUpdate:modelValue": { + "label": { + "zh_CN": "双向绑定的值改变时触发" }, - { - "property": "modelValue", - "label": { - "text": { - "zh_CN": "绑定值" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } + "description": { + "zh_CN": "双向绑定的值改变时触发" }, - { - "property": "maxlength", - "label": { - "text": { - "zh_CN": "同原生 maxlength 属性" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "minlength", - "label": { - "text": { - "zh_CN": "原生属性,最小输入长度" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "type", - "label": { - "text": { - "zh_CN": "类型" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "resize", - "label": { - "text": { - "zh_CN": "控制是否能被用户缩放" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "autosize", - "label": { - "text": { - "zh_CN": "textarea 高度是否自适应,仅 type 为 'textarea' 时生效。 可以接受一个对象,比如: { minRows: 2, maxRows: 6 }" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "autocomplete", - "label": { - "text": { - "zh_CN": "原生 autocomplete 属性" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "formatter", - "label": { - "text": { - "zh_CN": "指定输入值的格式。(只有当 type 是\"text\"时才能工作)" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "parser", - "label": { - "text": { - "zh_CN": "指定从格式化器输入中提取的值。(仅当 type 是\"text\"时才起作用)" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "placeholder", - "label": { - "text": { - "zh_CN": "输入框占位文本" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "form", - "label": { - "text": { - "zh_CN": "原生属性" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "readonly", - "label": { - "text": { - "zh_CN": "原生 readonly 属性,是否只读" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "clearable", - "label": { - "text": { - "zh_CN": "是否显示清除按钮,只有当 type 不是 textarea时生效" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "showPassword", - "label": { - "text": { - "zh_CN": "是否显示切换密码图标" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "showWordLimit", - "label": { - "text": { - "zh_CN": "是否显示统计字数, 只在 type 为 'text' 或 'textarea' 的时候生效" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "suffixIcon", - "label": { - "text": { - "zh_CN": "自定义后缀图标" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "prefixIcon", - "label": { - "text": { - "zh_CN": "自定义前缀图标" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "containerRole", - "label": { - "text": { - "zh_CN": "容器角色,为选择器组件提供的内部属性" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "tabindex", - "label": { - "text": { - "zh_CN": "输入框的 tabindex" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "validateEvent", - "label": { - "text": { - "zh_CN": "输入时是否触发表单的校验" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "inputStyle", - "label": { - "text": { - "zh_CN": "input 元素或 textarea 元素的 style" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "autofocus", - "label": { - "text": { - "zh_CN": "原生属性,自动获取焦点" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "rows", - "label": { - "text": { - "zh_CN": "输入框行数,仅 type 为 'textarea' 时有效" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - }, - { - "property": "ariaLabel", - "label": { - "text": { - "zh_CN": "等价于原生 input aria-label 属性" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - } - ] - }, - "events": { - "onUpdate:modelValue": { - "label": { - "zh_CN": "双向绑定的值改变时触发" - }, - "description": { - "zh_CN": "双向绑定的值改变时触发" - }, - "type": "event", - "functionInfo": { - "params": [], - "returns": {} + "type": "event", + "functionInfo": { + "params": [], + "returns": {} }, "defaultValue": "" }, @@ -5547,294 +5577,296 @@ "framework": "Vue" }, "schema": { - "properties": { - "label": { - "zh_CN": "基础信息" - }, - "description": { - "zh_CN": "基础信息" - }, - "collapse": { - "number": 6, - "text": { - "zh_CN": "显示更多" - } - }, - "content": [ - { - "property": "id", - "label": { - "text": { - "zh_CN": "等价于原生 input id 属性" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "step", - "label": { - "text": { - "zh_CN": "计数器步长" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - }, - { - "property": "stepStrictly", - "label": { - "text": { - "zh_CN": "是否只能输入 step 的倍数" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "max", - "label": { - "text": { - "zh_CN": "设置计数器允许的最大值" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - }, - { - "property": "min", - "label": { - "text": { - "zh_CN": "设置计数器允许的最小值" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - }, - { - "property": "modelValue", - "label": { - "text": { - "zh_CN": "选中项绑定值" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - }, - { - "property": "readonly", - "label": { - "text": { - "zh_CN": "原生 readonly 属性,是否只读" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "disabled", - "label": { - "text": { - "zh_CN": "是否禁用状态" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "size", - "label": { - "text": { - "zh_CN": "计数器尺寸" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "controls", - "label": { - "text": { - "zh_CN": "是否使用控制按钮" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "controlsPosition", - "label": { - "text": { - "zh_CN": "控制按钮位置" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "valueOnClear", - "label": { - "text": { - "zh_CN": "当输入框被清空时显示的值" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "name", - "label": { - "text": { - "zh_CN": "等价于原生 input name 属性" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "placeholder", - "label": { - "text": { - "zh_CN": "等价于原生 input placeholder 属性" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "precision", - "label": { - "text": { - "zh_CN": "数值精度" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - }, - { - "property": "validateEvent", - "label": { - "text": { - "zh_CN": "是否触发表单验证" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } + "properties": [ + { + "label": { + "zh_CN": "基础信息" }, - { - "property": "ariaLabel", - "label": { - "text": { - "zh_CN": "等价于原生 input aria-label 属性" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - } - ] - }, + "description": { + "zh_CN": "基础信息" + }, + "collapse": { + "number": 6, + "text": { + "zh_CN": "显示更多" + } + }, + "content": [ + { + "property": "id", + "label": { + "text": { + "zh_CN": "等价于原生 input id 属性" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "step", + "label": { + "text": { + "zh_CN": "计数器步长" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "stepStrictly", + "label": { + "text": { + "zh_CN": "是否只能输入 step 的倍数" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "max", + "label": { + "text": { + "zh_CN": "设置计数器允许的最大值" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "min", + "label": { + "text": { + "zh_CN": "设置计数器允许的最小值" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "modelValue", + "label": { + "text": { + "zh_CN": "选中项绑定值" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "readonly", + "label": { + "text": { + "zh_CN": "原生 readonly 属性,是否只读" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "disabled", + "label": { + "text": { + "zh_CN": "是否禁用状态" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "size", + "label": { + "text": { + "zh_CN": "计数器尺寸" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "controls", + "label": { + "text": { + "zh_CN": "是否使用控制按钮" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "controlsPosition", + "label": { + "text": { + "zh_CN": "控制按钮位置" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "valueOnClear", + "label": { + "text": { + "zh_CN": "当输入框被清空时显示的值" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "name", + "label": { + "text": { + "zh_CN": "等价于原生 input name 属性" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "placeholder", + "label": { + "text": { + "zh_CN": "等价于原生 input placeholder 属性" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "precision", + "label": { + "text": { + "zh_CN": "数值精度" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "validateEvent", + "label": { + "text": { + "zh_CN": "是否触发表单验证" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "ariaLabel", + "label": { + "text": { + "zh_CN": "等价于原生 input aria-label 属性" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + } + ] + } + ], "events": { "onChange": { "label": { @@ -6006,686 +6038,688 @@ "framework": "Vue" }, "schema": { - "properties": { - "label": { - "zh_CN": "基础信息" - }, - "description": { - "zh_CN": "基础信息" - }, - "collapse": { - "number": 6, - "text": { - "zh_CN": "显示更多" - } - }, - "content": [ - { - "property": "id", - "label": { - "text": { - "zh_CN": "本机输入id" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "size", - "label": { - "text": { - "zh_CN": "" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "disabled", - "label": { - "text": { - "zh_CN": "" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } + "properties": [ + { + "label": { + "zh_CN": "基础信息" }, - { - "property": "modelValue", - "label": { - "text": { - "zh_CN": "输入值" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } + "description": { + "zh_CN": "基础信息" + }, + "collapse": { + "number": 6, + "text": { + "zh_CN": "显示更多" + } + }, + "content": [ + { + "property": "id", + "label": { + "text": { + "zh_CN": "本机输入id" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "size", + "label": { + "text": { + "zh_CN": "" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "disabled", + "label": { + "text": { + "zh_CN": "" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "modelValue", + "label": { + "text": { + "zh_CN": "输入值" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "maxlength", + "label": { + "text": { + "zh_CN": "" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "minlength", + "label": { + "text": { + "zh_CN": "" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "type", + "label": { + "text": { + "zh_CN": "" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "resize", + "label": { + "text": { + "zh_CN": "" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "autosize", + "label": { + "text": { + "zh_CN": "" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "autocomplete", + "label": { + "text": { + "zh_CN": "" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "formatter", + "label": { + "text": { + "zh_CN": "" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "parser", + "label": { + "text": { + "zh_CN": "" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "placeholder", + "label": { + "text": { + "zh_CN": "" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "form", + "label": { + "text": { + "zh_CN": "" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "readonly", + "label": { + "text": { + "zh_CN": "" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "clearable", + "label": { + "text": { + "zh_CN": "" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "showPassword", + "label": { + "text": { + "zh_CN": "" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "showWordLimit", + "label": { + "text": { + "zh_CN": "" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "suffixIcon", + "label": { + "text": { + "zh_CN": "" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "prefixIcon", + "label": { + "text": { + "zh_CN": "" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "containerRole", + "label": { + "text": { + "zh_CN": "容器角色,为选择器组件提供的内部属性" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "tabindex", + "label": { + "text": { + "zh_CN": "定义元素的键盘导航顺序" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "validateEvent", + "label": { + "text": { + "zh_CN": "是否触发表单验证" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "inputStyle", + "label": { + "text": { + "zh_CN": "" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "autofocus", + "label": { + "text": { + "zh_CN": "" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "rows", + "label": { + "text": { + "zh_CN": "" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "ariaLabel", + "label": { + "text": { + "zh_CN": "为无障碍支持设置元素的可访问标签" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "options", + "label": { + "text": { + "zh_CN": "提及选项列表" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "prefix", + "label": { + "text": { + "zh_CN": "触发字段的前缀。 字符串长度必须且只能为 1" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "split", + "label": { + "text": { + "zh_CN": "用于拆分提及的字符。 字符串长度必须且只能为 1" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "filterOption", + "label": { + "text": { + "zh_CN": "定制筛选器选项逻辑" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "placement", + "label": { + "text": { + "zh_CN": "设置弹出位置" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "showArrow", + "label": { + "text": { + "zh_CN": "下拉菜单的内容是否有箭头" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "offset", + "label": { + "text": { + "zh_CN": "下拉面板偏移量" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "whole", + "label": { + "text": { + "zh_CN": "当退格键被按下做删除操作时,是否将提及部分作为整体删除" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "checkIsWhole", + "label": { + "text": { + "zh_CN": "当退格键被按下做删除操作时,检查是否将提及部分作为整体删除" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "loading", + "label": { + "text": { + "zh_CN": "提及的下拉面板是否处于加载状态" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "popperClass", + "label": { + "text": { + "zh_CN": "自定义浮层类名" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "popperOptions", + "label": { + "text": { + "zh_CN": "popper.js 参数" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + } + ] + } + ], + "events": { + "onUpdate:modelValue": { + "label": { + "zh_CN": "双向绑定的值改变时触发" }, - { - "property": "maxlength", - "label": { - "text": { - "zh_CN": "" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } + "description": { + "zh_CN": "双向绑定的值改变时触发" }, - { - "property": "minlength", - "label": { - "text": { - "zh_CN": "" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } + "type": "event", + "functionInfo": { + "params": [], + "returns": {} }, - { - "property": "type", - "label": { - "text": { - "zh_CN": "" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } + "defaultValue": "" + }, + "onSearch": { + "label": { + "zh_CN": "按下触发字段时触发" }, - { - "property": "resize", - "label": { - "text": { - "zh_CN": "" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } + "description": { + "zh_CN": "按下触发字段时触发" }, - { - "property": "autosize", - "label": { - "text": { - "zh_CN": "" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } + "type": "event", + "functionInfo": { + "params": [], + "returns": {} }, - { - "property": "autocomplete", - "label": { - "text": { - "zh_CN": "" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } + "defaultValue": "" + }, + "onSelect": { + "label": { + "zh_CN": "当用户选择选项时触发" }, - { - "property": "formatter", - "label": { - "text": { - "zh_CN": "" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } + "description": { + "zh_CN": "当用户选择选项时触发" }, - { - "property": "parser", - "label": { - "text": { - "zh_CN": "" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "placeholder", - "label": { - "text": { - "zh_CN": "" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "form", - "label": { - "text": { - "zh_CN": "" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "readonly", - "label": { - "text": { - "zh_CN": "" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "clearable", - "label": { - "text": { - "zh_CN": "" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "showPassword", - "label": { - "text": { - "zh_CN": "" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "showWordLimit", - "label": { - "text": { - "zh_CN": "" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "suffixIcon", - "label": { - "text": { - "zh_CN": "" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "prefixIcon", - "label": { - "text": { - "zh_CN": "" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "containerRole", - "label": { - "text": { - "zh_CN": "容器角色,为选择器组件提供的内部属性" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "tabindex", - "label": { - "text": { - "zh_CN": "定义元素的键盘导航顺序" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "validateEvent", - "label": { - "text": { - "zh_CN": "是否触发表单验证" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "inputStyle", - "label": { - "text": { - "zh_CN": "" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "autofocus", - "label": { - "text": { - "zh_CN": "" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "rows", - "label": { - "text": { - "zh_CN": "" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - }, - { - "property": "ariaLabel", - "label": { - "text": { - "zh_CN": "为无障碍支持设置元素的可访问标签" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "options", - "label": { - "text": { - "zh_CN": "提及选项列表" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "prefix", - "label": { - "text": { - "zh_CN": "触发字段的前缀。 字符串长度必须且只能为 1" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "split", - "label": { - "text": { - "zh_CN": "用于拆分提及的字符。 字符串长度必须且只能为 1" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "filterOption", - "label": { - "text": { - "zh_CN": "定制筛选器选项逻辑" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "placement", - "label": { - "text": { - "zh_CN": "设置弹出位置" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "showArrow", - "label": { - "text": { - "zh_CN": "下拉菜单的内容是否有箭头" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "offset", - "label": { - "text": { - "zh_CN": "下拉面板偏移量" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - }, - { - "property": "whole", - "label": { - "text": { - "zh_CN": "当退格键被按下做删除操作时,是否将提及部分作为整体删除" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "checkIsWhole", - "label": { - "text": { - "zh_CN": "当退格键被按下做删除操作时,检查是否将提及部分作为整体删除" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "loading", - "label": { - "text": { - "zh_CN": "提及的下拉面板是否处于加载状态" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "popperClass", - "label": { - "text": { - "zh_CN": "自定义浮层类名" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "popperOptions", - "label": { - "text": { - "zh_CN": "popper.js 参数" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - } - ] - }, - "events": { - "onUpdate:modelValue": { - "label": { - "zh_CN": "双向绑定的值改变时触发" - }, - "description": { - "zh_CN": "双向绑定的值改变时触发" - }, - "type": "event", - "functionInfo": { - "params": [], - "returns": {} - }, - "defaultValue": "" - }, - "onSearch": { - "label": { - "zh_CN": "按下触发字段时触发" - }, - "description": { - "zh_CN": "按下触发字段时触发" - }, - "type": "event", - "functionInfo": { - "params": [], - "returns": {} - }, - "defaultValue": "" - }, - "onSelect": { - "label": { - "zh_CN": "当用户选择选项时触发" - }, - "description": { - "zh_CN": "当用户选择选项时触发" - }, - "type": "event", - "functionInfo": { - "params": [], - "returns": {} + "type": "event", + "functionInfo": { + "params": [], + "returns": {} }, "defaultValue": "" } @@ -6746,134 +6780,136 @@ "framework": "Vue" }, "schema": { - "properties": { - "label": { - "zh_CN": "基础信息" - }, - "description": { - "zh_CN": "基础信息" - }, - "collapse": { - "number": 6, - "text": { - "zh_CN": "显示更多" - } - }, - "content": [ - { - "property": "modelValue", - "label": { - "text": { - "zh_CN": "选中项绑定值" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "size", - "label": { - "text": { - "zh_CN": "单选框的尺寸" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "disabled", - "label": { - "text": { - "zh_CN": "是否禁用单选框" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "label", - "label": { - "text": { - "zh_CN": "单选框的 label 如果value没有值, label则作为value使用" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "value", - "label": { - "text": { - "zh_CN": "单选框的值" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "name", - "label": { - "text": { - "zh_CN": "原始 name 属性" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } + "properties": [ + { + "label": { + "zh_CN": "基础信息" }, - { - "property": "border", - "label": { - "text": { - "zh_CN": "是否显示边框" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - } - ] - }, + "description": { + "zh_CN": "基础信息" + }, + "collapse": { + "number": 6, + "text": { + "zh_CN": "显示更多" + } + }, + "content": [ + { + "property": "modelValue", + "label": { + "text": { + "zh_CN": "选中项绑定值" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "size", + "label": { + "text": { + "zh_CN": "单选框的尺寸" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "disabled", + "label": { + "text": { + "zh_CN": "是否禁用单选框" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "label", + "label": { + "text": { + "zh_CN": "单选框的 label 如果value没有值, label则作为value使用" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "value", + "label": { + "text": { + "zh_CN": "单选框的值" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "name", + "label": { + "text": { + "zh_CN": "原始 name 属性" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "border", + "label": { + "text": { + "zh_CN": "是否显示边框" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + } + ] + } + ], "events": { "onUpdate:modelValue": { "label": { @@ -6982,384 +7018,386 @@ "framework": "Vue" }, "schema": { - "properties": { - "label": { - "zh_CN": "基础信息" - }, - "description": { - "zh_CN": "基础信息" - }, - "collapse": { - "number": 6, - "text": { - "zh_CN": "显示更多" - } - }, - "content": [ - { - "property": "modelValue", - "label": { - "text": { - "zh_CN": "选中项绑定值" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - }, - { - "property": "id", - "label": { - "text": { - "zh_CN": "原生 id 属性" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "lowThreshold", - "label": { - "text": { - "zh_CN": "低分和中等分数的界限值, 值本身被划分在低分中" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - }, - { - "property": "highThreshold", - "label": { - "text": { - "zh_CN": "高分和中等分数的界限值, 值本身被划分在高分中" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - }, - { - "property": "max", - "label": { - "text": { - "zh_CN": "最大分值" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - }, - { - "property": "colors", - "label": { - "text": { - "zh_CN": "icon 的颜色。 若传入数组,共有 3 个元素,为 3 个分段所对应的颜色;若传入对象,可自定义分段,键名为分段的界限值,键值为对应的颜色" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } + "properties": [ + { + "label": { + "zh_CN": "基础信息" }, - { - "property": "voidColor", - "label": { - "text": { - "zh_CN": "未选中 icon 的颜色" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } + "description": { + "zh_CN": "基础信息" + }, + "collapse": { + "number": 6, + "text": { + "zh_CN": "显示更多" + } + }, + "content": [ + { + "property": "modelValue", + "label": { + "text": { + "zh_CN": "选中项绑定值" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "id", + "label": { + "text": { + "zh_CN": "原生 id 属性" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "lowThreshold", + "label": { + "text": { + "zh_CN": "低分和中等分数的界限值, 值本身被划分在低分中" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "highThreshold", + "label": { + "text": { + "zh_CN": "高分和中等分数的界限值, 值本身被划分在高分中" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "max", + "label": { + "text": { + "zh_CN": "最大分值" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "colors", + "label": { + "text": { + "zh_CN": "icon 的颜色。 若传入数组,共有 3 个元素,为 3 个分段所对应的颜色;若传入对象,可自定义分段,键名为分段的界限值,键值为对应的颜色" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "voidColor", + "label": { + "text": { + "zh_CN": "未选中 icon 的颜色" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "disabledVoidColor", + "label": { + "text": { + "zh_CN": "只读时未选中 icon 的颜色" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "icons", + "label": { + "text": { + "zh_CN": "图标组件 若传入数组,则需要传入 3 个元素,分别为 3 个部分所对应的类名;若传入对象,则可自定义分段,键名为分段的界限值,键值为对应的类名" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "voidIcon", + "label": { + "text": { + "zh_CN": "未被选中的图标组件" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "disabledVoidIcon", + "label": { + "text": { + "zh_CN": "禁用状态的未选择图标" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "disabled", + "label": { + "text": { + "zh_CN": "是否为只读" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "allowHalf", + "label": { + "text": { + "zh_CN": "是否允许半选" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "showText", + "label": { + "text": { + "zh_CN": "是否显示辅助文字,若为真,则会从 texts 数组中选取当前分数对应的文字内容" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "showScore", + "label": { + "text": { + "zh_CN": "是否显示当前分数, show-score 和 show-text 不能同时为真" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "textColor", + "label": { + "text": { + "zh_CN": "辅助文字的颜色" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "texts", + "label": { + "text": { + "zh_CN": "辅助文字数组" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "scoreTemplate", + "label": { + "text": { + "zh_CN": "分数显示模板" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "size", + "label": { + "text": { + "zh_CN": "尺寸" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "clearable", + "label": { + "text": { + "zh_CN": "是否可以重置值为 0" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "ariaLabel", + "label": { + "text": { + "zh_CN": "和 Rate 的 aria-label 属性保持一致" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + } + ] + } + ], + "events": { + "onChange": { + "label": { + "zh_CN": "分值改变时触发" }, - { - "property": "disabledVoidColor", - "label": { - "text": { - "zh_CN": "只读时未选中 icon 的颜色" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } + "description": { + "zh_CN": "分值改变时触发" }, - { - "property": "icons", - "label": { - "text": { - "zh_CN": "图标组件 若传入数组,则需要传入 3 个元素,分别为 3 个部分所对应的类名;若传入对象,则可自定义分段,键名为分段的界限值,键值为对应的类名" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } + "type": "event", + "functionInfo": { + "params": [], + "returns": {} }, - { - "property": "voidIcon", - "label": { - "text": { - "zh_CN": "未被选中的图标组件" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } + "defaultValue": "" + }, + "onUpdate:modelValue": { + "label": { + "zh_CN": "双向绑定的值改变时触发" }, - { - "property": "disabledVoidIcon", - "label": { - "text": { - "zh_CN": "禁用状态的未选择图标" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } + "description": { + "zh_CN": "双向绑定的值改变时触发" }, - { - "property": "disabled", - "label": { - "text": { - "zh_CN": "是否为只读" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "allowHalf", - "label": { - "text": { - "zh_CN": "是否允许半选" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "showText", - "label": { - "text": { - "zh_CN": "是否显示辅助文字,若为真,则会从 texts 数组中选取当前分数对应的文字内容" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "showScore", - "label": { - "text": { - "zh_CN": "是否显示当前分数, show-score 和 show-text 不能同时为真" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "textColor", - "label": { - "text": { - "zh_CN": "辅助文字的颜色" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "texts", - "label": { - "text": { - "zh_CN": "辅助文字数组" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "scoreTemplate", - "label": { - "text": { - "zh_CN": "分数显示模板" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "size", - "label": { - "text": { - "zh_CN": "尺寸" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "clearable", - "label": { - "text": { - "zh_CN": "是否可以重置值为 0" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "ariaLabel", - "label": { - "text": { - "zh_CN": "和 Rate 的 aria-label 属性保持一致" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - } - ] - }, - "events": { - "onChange": { - "label": { - "zh_CN": "分值改变时触发" - }, - "description": { - "zh_CN": "分值改变时触发" - }, - "type": "event", - "functionInfo": { - "params": [], - "returns": {} - }, - "defaultValue": "" - }, - "onUpdate:modelValue": { - "label": { - "zh_CN": "双向绑定的值改变时触发" - }, - "description": { - "zh_CN": "双向绑定的值改变时触发" - }, - "type": "event", - "functionInfo": { - "params": [], - "returns": {} + "type": "event", + "functionInfo": { + "params": [], + "returns": {} }, "defaultValue": "" } @@ -7465,726 +7503,728 @@ "framework": "Vue" }, "schema": { - "properties": { - "label": { - "zh_CN": "基础信息" - }, - "description": { - "zh_CN": "基础信息" - }, - "collapse": { - "number": 6, - "text": { - "zh_CN": "显示更多" - } - }, - "content": [ - { - "property": "name", - "label": { - "text": { - "zh_CN": "Select 输入框的原生 name 属性" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "id", - "label": { - "text": { - "zh_CN": "本机输入id" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "modelValue", - "label": { - "text": { - "zh_CN": "选中项绑定值" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "autocomplete", - "label": { - "text": { - "zh_CN": "Select 输入框的原生 autocomplete 属性" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "automaticDropdown", - "label": { - "text": { - "zh_CN": "对于不可搜索的 Select,是否在输入框获得焦点后自动弹出选项菜单" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "size", - "label": { - "text": { - "zh_CN": "输入框尺寸" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "effect", - "label": { - "text": { - "zh_CN": "tooltip 主题,内置了 dark / light 两种" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "disabled", - "label": { - "text": { - "zh_CN": "是否禁用" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "clearable", - "label": { - "text": { - "zh_CN": "是否可以清空选项" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "filterable", - "label": { - "text": { - "zh_CN": "Select 组件是否可筛选" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "allowCreate", - "label": { - "text": { - "zh_CN": "是否允许用户创建新条目, 只有当 filterable 设置为 true 时才会生效。" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "loading", - "label": { - "text": { - "zh_CN": "是否正在从远程获取数据" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "popperClass", - "label": { - "text": { - "zh_CN": "选择器下拉菜单的自定义类名" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "popperOptions", - "label": { - "text": { - "zh_CN": "popper.js 参数" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "remote", - "label": { - "text": { - "zh_CN": "其中的选项是否从服务器远程加载" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "loadingText", - "label": { - "text": { - "zh_CN": "从服务器加载数据时显示的文本,默认为“Loading”" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "noMatchText", - "label": { - "text": { - "zh_CN": "搜索条件无匹配时显示的文字,也可以使用 empty 插槽设置,默认是 “No matching data'”" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "noDataText", - "label": { - "text": { - "zh_CN": "无选项时显示的文字,也可以使用 empty 插槽设置自定义内容,默认是 “No data”" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "remoteMethod", - "label": { - "text": { - "zh_CN": "自定义远程搜索方法" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "filterMethod", - "label": { - "text": { - "zh_CN": "自定义筛选方法" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "multiple", - "label": { - "text": { - "zh_CN": "是否多选" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "multipleLimit", - "label": { - "text": { - "zh_CN": "multiple 属性设置为 true 时,代表多选场景下用户最多可以选择的项目数, 为 0 则不限制" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - }, - { - "property": "placeholder", - "label": { - "text": { - "zh_CN": "占位符,默认为“Select”" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "defaultFirstOption", - "label": { - "text": { - "zh_CN": "是否在输入框按下回车时,选择第一个匹配项。 需配合 filterable 或 remote 使用" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "reserveKeyword", - "label": { - "text": { - "zh_CN": "当 multiple 和 filterable被设置为 true 时,是否在选中一个选项后保留当前的搜索关键词" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "valueKey", - "label": { - "text": { - "zh_CN": "作为 value 唯一标识的键名,绑定值为对象类型时必填" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "collapseTags", - "label": { - "text": { - "zh_CN": "多选时是否将选中值按文字的形式展示" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "collapseTagsTooltip", - "label": { - "text": { - "zh_CN": "当鼠标悬停于折叠标签的文本时,是否显示所有选中的标签。 要使用此属性,collapse-tags属性必须设定为 true" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "maxCollapseTags", - "label": { - "text": { - "zh_CN": "需要显示的 Tag 的最大数量 只有当 collapse-tags 设置为 true 时才会生效。" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - }, - { - "property": "teleported", - "label": { - "text": { - "zh_CN": "是否将下拉列表插入至 body 元素" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "persistent", - "label": { - "text": { - "zh_CN": "当下拉选择器未被激活并且persistent设置为false,选择器会被删除。" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "clearIcon", - "label": { - "text": { - "zh_CN": "自定义清除图标" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "fitInputWidth", - "label": { - "text": { - "zh_CN": "下拉框的宽度是否与输入框相同" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "suffixIcon", - "label": { - "text": { - "zh_CN": "自定义后缀图标组件" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "tagType", - "label": { - "text": { - "zh_CN": "标签类型" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "tagEffect", - "label": { - "text": { - "zh_CN": "标签效果" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "validateEvent", - "label": { - "text": { - "zh_CN": "是否触发表单验证" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "remoteShowSuffix", - "label": { - "text": { - "zh_CN": "远程搜索方法显示后缀图标" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "placement", - "label": { - "text": { - "zh_CN": "下拉框出现的位置" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "fallbackPlacements", - "label": { - "text": { - "zh_CN": "dropdown 可用的 positions 请查看popper.js 文档" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "appendTo", - "label": { - "text": { - "zh_CN": "下拉框挂载到哪个 DOM 元素" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "emptyValues", - "label": { - "text": { - "zh_CN": "组件的空值配置 参考config-provider" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "valueOnClear", - "label": { - "text": { - "zh_CN": "清空选项的值 参考 config-provider" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } + "properties": [ + { + "label": { + "zh_CN": "基础信息" }, - { - "property": "ariaLabel", - "label": { - "text": { - "zh_CN": "等价于原生 input aria-label 属性" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - } - ] - }, + "description": { + "zh_CN": "基础信息" + }, + "collapse": { + "number": 6, + "text": { + "zh_CN": "显示更多" + } + }, + "content": [ + { + "property": "name", + "label": { + "text": { + "zh_CN": "Select 输入框的原生 name 属性" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "id", + "label": { + "text": { + "zh_CN": "本机输入id" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "modelValue", + "label": { + "text": { + "zh_CN": "选中项绑定值" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "autocomplete", + "label": { + "text": { + "zh_CN": "Select 输入框的原生 autocomplete 属性" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "automaticDropdown", + "label": { + "text": { + "zh_CN": "对于不可搜索的 Select,是否在输入框获得焦点后自动弹出选项菜单" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "size", + "label": { + "text": { + "zh_CN": "输入框尺寸" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "effect", + "label": { + "text": { + "zh_CN": "tooltip 主题,内置了 dark / light 两种" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "disabled", + "label": { + "text": { + "zh_CN": "是否禁用" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "clearable", + "label": { + "text": { + "zh_CN": "是否可以清空选项" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "filterable", + "label": { + "text": { + "zh_CN": "Select 组件是否可筛选" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "allowCreate", + "label": { + "text": { + "zh_CN": "是否允许用户创建新条目, 只有当 filterable 设置为 true 时才会生效。" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "loading", + "label": { + "text": { + "zh_CN": "是否正在从远程获取数据" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "popperClass", + "label": { + "text": { + "zh_CN": "选择器下拉菜单的自定义类名" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "popperOptions", + "label": { + "text": { + "zh_CN": "popper.js 参数" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "remote", + "label": { + "text": { + "zh_CN": "其中的选项是否从服务器远程加载" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "loadingText", + "label": { + "text": { + "zh_CN": "从服务器加载数据时显示的文本,默认为“Loading”" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "noMatchText", + "label": { + "text": { + "zh_CN": "搜索条件无匹配时显示的文字,也可以使用 empty 插槽设置,默认是 “No matching data'”" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "noDataText", + "label": { + "text": { + "zh_CN": "无选项时显示的文字,也可以使用 empty 插槽设置自定义内容,默认是 “No data”" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "remoteMethod", + "label": { + "text": { + "zh_CN": "自定义远程搜索方法" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "filterMethod", + "label": { + "text": { + "zh_CN": "自定义筛选方法" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "multiple", + "label": { + "text": { + "zh_CN": "是否多选" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "multipleLimit", + "label": { + "text": { + "zh_CN": "multiple 属性设置为 true 时,代表多选场景下用户最多可以选择的项目数, 为 0 则不限制" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "placeholder", + "label": { + "text": { + "zh_CN": "占位符,默认为“Select”" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "defaultFirstOption", + "label": { + "text": { + "zh_CN": "是否在输入框按下回车时,选择第一个匹配项。 需配合 filterable 或 remote 使用" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "reserveKeyword", + "label": { + "text": { + "zh_CN": "当 multiple 和 filterable被设置为 true 时,是否在选中一个选项后保留当前的搜索关键词" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "valueKey", + "label": { + "text": { + "zh_CN": "作为 value 唯一标识的键名,绑定值为对象类型时必填" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "collapseTags", + "label": { + "text": { + "zh_CN": "多选时是否将选中值按文字的形式展示" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "collapseTagsTooltip", + "label": { + "text": { + "zh_CN": "当鼠标悬停于折叠标签的文本时,是否显示所有选中的标签。 要使用此属性,collapse-tags属性必须设定为 true" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "maxCollapseTags", + "label": { + "text": { + "zh_CN": "需要显示的 Tag 的最大数量 只有当 collapse-tags 设置为 true 时才会生效。" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "teleported", + "label": { + "text": { + "zh_CN": "是否将下拉列表插入至 body 元素" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "persistent", + "label": { + "text": { + "zh_CN": "当下拉选择器未被激活并且persistent设置为false,选择器会被删除。" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "clearIcon", + "label": { + "text": { + "zh_CN": "自定义清除图标" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "fitInputWidth", + "label": { + "text": { + "zh_CN": "下拉框的宽度是否与输入框相同" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "suffixIcon", + "label": { + "text": { + "zh_CN": "自定义后缀图标组件" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "tagType", + "label": { + "text": { + "zh_CN": "标签类型" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "tagEffect", + "label": { + "text": { + "zh_CN": "标签效果" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "validateEvent", + "label": { + "text": { + "zh_CN": "是否触发表单验证" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "remoteShowSuffix", + "label": { + "text": { + "zh_CN": "远程搜索方法显示后缀图标" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "placement", + "label": { + "text": { + "zh_CN": "下拉框出现的位置" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "fallbackPlacements", + "label": { + "text": { + "zh_CN": "dropdown 可用的 positions 请查看popper.js 文档" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "appendTo", + "label": { + "text": { + "zh_CN": "下拉框挂载到哪个 DOM 元素" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "emptyValues", + "label": { + "text": { + "zh_CN": "组件的空值配置 参考config-provider" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "valueOnClear", + "label": { + "text": { + "zh_CN": "清空选项的值 参考 config-provider" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "ariaLabel", + "label": { + "text": { + "zh_CN": "等价于原生 input aria-label 属性" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + } + ] + } + ], "events": { "onUpdate:modelValue": { "label": { @@ -8339,422 +8379,424 @@ "framework": "Vue" }, "schema": { - "properties": { - "label": { - "zh_CN": "基础信息" - }, - "description": { - "zh_CN": "基础信息" - }, - "collapse": { - "number": 6, - "text": { - "zh_CN": "显示更多" - } - }, - "content": [ - { - "property": "modelValue", - "label": { - "text": { - "zh_CN": "选中项绑定值" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } + "properties": [ + { + "label": { + "zh_CN": "基础信息" }, - { - "property": "id", - "label": { - "text": { - "zh_CN": "本机输入id" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "min", - "label": { - "text": { - "zh_CN": "最小值" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - }, - { - "property": "max", - "label": { - "text": { - "zh_CN": "最大值" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - }, - { - "property": "step", - "label": { - "text": { - "zh_CN": "步长" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - }, - { - "property": "showInput", - "label": { - "text": { - "zh_CN": "是否显示输入框,仅在非范围选择时有效" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "showInputControls", - "label": { - "text": { - "zh_CN": "在显示输入框的情况下,是否显示输入框的控制按钮" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "size", - "label": { - "text": { - "zh_CN": "slider 包装器的大小,垂直模式下该属性不可用" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "inputSize", - "label": { - "text": { - "zh_CN": "输入框的大小,如果设置了 size 属性,默认值自动取 size" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "showStops", - "label": { - "text": { - "zh_CN": "是否显示间断点" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "showTooltip", - "label": { - "text": { - "zh_CN": "是否显示提示信息" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "formatTooltip", - "label": { - "text": { - "zh_CN": "格式化提示信息" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "disabled", - "label": { - "text": { - "zh_CN": "是否禁用" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "range", - "label": { - "text": { - "zh_CN": "是否开启选择范围" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "vertical", - "label": { - "text": { - "zh_CN": "垂直模式" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "height", - "label": { - "text": { - "zh_CN": "滑块高度,垂直模式必填" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "debounce", - "label": { - "text": { - "zh_CN": "输入时的去抖延迟,毫秒,仅在 show-input 等于 true 时有效" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - }, - { - "property": "rangeStartLabel", - "label": { - "text": { - "zh_CN": "当 range 为true时,屏幕阅读器标签开始的标记" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "rangeEndLabel", - "label": { - "text": { - "zh_CN": "当 range 为true时,屏幕阅读器标签结尾的标记" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "formatValueText", - "label": { - "text": { - "zh_CN": "显示屏幕阅读器的 aria-valuenow 属性的格式" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "tooltipClass", - "label": { - "text": { - "zh_CN": "tooltip 的自定义类名" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "placement", - "label": { - "text": { - "zh_CN": "Tooltip 出现的位置" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "marks", - "label": { - "text": { - "zh_CN": "标记, key 的类型必须为 number 且取值在闭区间 [min, max] 内,每个标记可以单独设置样式" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "validateEvent", - "label": { - "text": { - "zh_CN": "输入时是否触发表单的校验" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "ariaLabel", - "label": { - "text": { - "zh_CN": "原生 aria-label属性" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - } - ] - }, + "description": { + "zh_CN": "基础信息" + }, + "collapse": { + "number": 6, + "text": { + "zh_CN": "显示更多" + } + }, + "content": [ + { + "property": "modelValue", + "label": { + "text": { + "zh_CN": "选中项绑定值" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "id", + "label": { + "text": { + "zh_CN": "本机输入id" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "min", + "label": { + "text": { + "zh_CN": "最小值" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "max", + "label": { + "text": { + "zh_CN": "最大值" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "step", + "label": { + "text": { + "zh_CN": "步长" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "showInput", + "label": { + "text": { + "zh_CN": "是否显示输入框,仅在非范围选择时有效" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "showInputControls", + "label": { + "text": { + "zh_CN": "在显示输入框的情况下,是否显示输入框的控制按钮" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "size", + "label": { + "text": { + "zh_CN": "slider 包装器的大小,垂直模式下该属性不可用" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "inputSize", + "label": { + "text": { + "zh_CN": "输入框的大小,如果设置了 size 属性,默认值自动取 size" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "showStops", + "label": { + "text": { + "zh_CN": "是否显示间断点" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "showTooltip", + "label": { + "text": { + "zh_CN": "是否显示提示信息" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "formatTooltip", + "label": { + "text": { + "zh_CN": "格式化提示信息" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "disabled", + "label": { + "text": { + "zh_CN": "是否禁用" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "range", + "label": { + "text": { + "zh_CN": "是否开启选择范围" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "vertical", + "label": { + "text": { + "zh_CN": "垂直模式" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "height", + "label": { + "text": { + "zh_CN": "滑块高度,垂直模式必填" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "debounce", + "label": { + "text": { + "zh_CN": "输入时的去抖延迟,毫秒,仅在 show-input 等于 true 时有效" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "rangeStartLabel", + "label": { + "text": { + "zh_CN": "当 range 为true时,屏幕阅读器标签开始的标记" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "rangeEndLabel", + "label": { + "text": { + "zh_CN": "当 range 为true时,屏幕阅读器标签结尾的标记" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "formatValueText", + "label": { + "text": { + "zh_CN": "显示屏幕阅读器的 aria-valuenow 属性的格式" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "tooltipClass", + "label": { + "text": { + "zh_CN": "tooltip 的自定义类名" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "placement", + "label": { + "text": { + "zh_CN": "Tooltip 出现的位置" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "marks", + "label": { + "text": { + "zh_CN": "标记, key 的类型必须为 number 且取值在闭区间 [min, max] 内,每个标记可以单独设置样式" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "validateEvent", + "label": { + "text": { + "zh_CN": "输入时是否触发表单的校验" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "ariaLabel", + "label": { + "text": { + "zh_CN": "原生 aria-label属性" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + } + ] + } + ], "events": { "onUpdate:modelValue": { "label": { @@ -8876,342 +8918,344 @@ "framework": "Vue" }, "schema": { - "properties": { - "label": { - "zh_CN": "基础信息" - }, - "description": { - "zh_CN": "基础信息" - }, - "collapse": { - "number": 6, - "text": { - "zh_CN": "显示更多" - } - }, - "content": [ - { - "property": "modelValue", - "label": { - "text": { - "zh_CN": "绑定值,必须等于 active-value 或 inactive-value,默认为 Boolean 类型" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "disabled", - "label": { - "text": { - "zh_CN": "是否禁用" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "loading", - "label": { - "text": { - "zh_CN": "是否显示加载中" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "size", - "label": { - "text": { - "zh_CN": "switch 的大小" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "width", - "label": { - "text": { - "zh_CN": "switch 的宽度" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "inlinePrompt", - "label": { - "text": { - "zh_CN": "无论图标或文本是否显示在点内,只会呈现文本的第一个字符" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "inactiveActionIcon", - "label": { - "text": { - "zh_CN": "off状态下显示的图标组件" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "activeActionIcon", - "label": { - "text": { - "zh_CN": "on状态下显示的图标组件" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "activeIcon", - "label": { - "text": { - "zh_CN": "switch 状态为 on 时所显示图标,设置此项会忽略 active-text" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "inactiveIcon", - "label": { - "text": { - "zh_CN": "switch 状态为 off 时所显示图标,设置此项会忽略 inactive-text" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "activeText", - "label": { - "text": { - "zh_CN": "switch 打开时的文字描述" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "inactiveText", - "label": { - "text": { - "zh_CN": "switch 的状态为 off 时的文字描述" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "activeValue", - "label": { - "text": { - "zh_CN": "switch 状态为 on 时的值" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "inactiveValue", - "label": { - "text": { - "zh_CN": "switch的状态为 off 时的值" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "name", - "label": { - "text": { - "zh_CN": "switch 对应的 name 属性" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "validateEvent", - "label": { - "text": { - "zh_CN": "是否触发表单验证" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "beforeChange", - "label": { - "text": { - "zh_CN": "switch 状态改变前的钩子, 返回 false 或者返回 Promise 且被 reject 则停止切换" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "id", - "label": { - "text": { - "zh_CN": "input 的 id" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "tabindex", - "label": { - "text": { - "zh_CN": "input 的 tabindex" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } + "properties": [ + { + "label": { + "zh_CN": "基础信息" }, - { - "property": "ariaLabel", - "label": { - "text": { - "zh_CN": "等价于原生 input aria-label 属性" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - } - ] - }, + "description": { + "zh_CN": "基础信息" + }, + "collapse": { + "number": 6, + "text": { + "zh_CN": "显示更多" + } + }, + "content": [ + { + "property": "modelValue", + "label": { + "text": { + "zh_CN": "绑定值,必须等于 active-value 或 inactive-value,默认为 Boolean 类型" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "disabled", + "label": { + "text": { + "zh_CN": "是否禁用" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "loading", + "label": { + "text": { + "zh_CN": "是否显示加载中" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "size", + "label": { + "text": { + "zh_CN": "switch 的大小" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "width", + "label": { + "text": { + "zh_CN": "switch 的宽度" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "inlinePrompt", + "label": { + "text": { + "zh_CN": "无论图标或文本是否显示在点内,只会呈现文本的第一个字符" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "inactiveActionIcon", + "label": { + "text": { + "zh_CN": "off状态下显示的图标组件" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "activeActionIcon", + "label": { + "text": { + "zh_CN": "on状态下显示的图标组件" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "activeIcon", + "label": { + "text": { + "zh_CN": "switch 状态为 on 时所显示图标,设置此项会忽略 active-text" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "inactiveIcon", + "label": { + "text": { + "zh_CN": "switch 状态为 off 时所显示图标,设置此项会忽略 inactive-text" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "activeText", + "label": { + "text": { + "zh_CN": "switch 打开时的文字描述" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "inactiveText", + "label": { + "text": { + "zh_CN": "switch 的状态为 off 时的文字描述" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "activeValue", + "label": { + "text": { + "zh_CN": "switch 状态为 on 时的值" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "inactiveValue", + "label": { + "text": { + "zh_CN": "switch的状态为 off 时的值" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "name", + "label": { + "text": { + "zh_CN": "switch 对应的 name 属性" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "validateEvent", + "label": { + "text": { + "zh_CN": "是否触发表单验证" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "beforeChange", + "label": { + "text": { + "zh_CN": "switch 状态改变前的钩子, 返回 false 或者返回 Promise 且被 reject 则停止切换" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "id", + "label": { + "text": { + "zh_CN": "input 的 id" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "tabindex", + "label": { + "text": { + "zh_CN": "input 的 tabindex" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "ariaLabel", + "label": { + "text": { + "zh_CN": "等价于原生 input aria-label 属性" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + } + ] + } + ], "events": { "onUpdate:modelValue": { "label": { @@ -9338,658 +9382,660 @@ "framework": "Vue" }, "schema": { - "properties": { - "label": { - "zh_CN": "基础信息" - }, - "description": { - "zh_CN": "基础信息" - }, - "collapse": { - "number": 6, - "text": { - "zh_CN": "显示更多" - } - }, - "content": [ - { - "property": "id", - "label": { - "text": { - "zh_CN": "等价于原生 input id 属性" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "name", - "label": { - "text": { - "zh_CN": "等价于原生 input name 属性" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "popperClass", - "label": { - "text": { - "zh_CN": "TimePicker 下拉框的类名" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "format", - "label": { - "text": { - "zh_CN": "显示在输入框中的格式" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "valueFormat", - "label": { - "text": { - "zh_CN": "可选,绑定值的格式。 不指定则绑定值为 Date 对象" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "dateFormat", - "label": { - "text": { - "zh_CN": "可选,时间选择器下拉列表中显示的日期格式" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "timeFormat", - "label": { - "text": { - "zh_CN": "可选,时间选择器下拉列表中显示的时间格式" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "type", - "label": { - "text": { - "zh_CN": "显示类型" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "clearable", - "label": { - "text": { - "zh_CN": "是否显示清除按钮" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "clearIcon", - "label": { - "text": { - "zh_CN": "自定义清除图标" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } + "properties": [ + { + "label": { + "zh_CN": "基础信息" }, - { - "property": "editable", - "label": { - "text": { - "zh_CN": "文本框可输入" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } + "description": { + "zh_CN": "基础信息" + }, + "collapse": { + "number": 6, + "text": { + "zh_CN": "显示更多" + } + }, + "content": [ + { + "property": "id", + "label": { + "text": { + "zh_CN": "等价于原生 input id 属性" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "name", + "label": { + "text": { + "zh_CN": "等价于原生 input name 属性" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "popperClass", + "label": { + "text": { + "zh_CN": "TimePicker 下拉框的类名" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "format", + "label": { + "text": { + "zh_CN": "显示在输入框中的格式" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "valueFormat", + "label": { + "text": { + "zh_CN": "可选,绑定值的格式。 不指定则绑定值为 Date 对象" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "dateFormat", + "label": { + "text": { + "zh_CN": "可选,时间选择器下拉列表中显示的日期格式" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "timeFormat", + "label": { + "text": { + "zh_CN": "可选,时间选择器下拉列表中显示的时间格式" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "type", + "label": { + "text": { + "zh_CN": "显示类型" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "clearable", + "label": { + "text": { + "zh_CN": "是否显示清除按钮" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "clearIcon", + "label": { + "text": { + "zh_CN": "自定义清除图标" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "editable", + "label": { + "text": { + "zh_CN": "文本框可输入" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "prefixIcon", + "label": { + "text": { + "zh_CN": "自定义前缀图标" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "size", + "label": { + "text": { + "zh_CN": "输入框尺寸" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "readonly", + "label": { + "text": { + "zh_CN": "完全只读" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "disabled", + "label": { + "text": { + "zh_CN": "禁用" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "placeholder", + "label": { + "text": { + "zh_CN": "非范围选择时的占位内容" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "popperOptions", + "label": { + "text": { + "zh_CN": "自定义popper选项,详见[popper.js](https://popper.js.org/docs/v2/)" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "modelValue", + "label": { + "text": { + "zh_CN": "绑定值,如果它是数组,长度应该是 2" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaDatePicker", + "props": {} + } + }, + { + "property": "rangeSeparator", + "label": { + "text": { + "zh_CN": "选择范围时的分隔符" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "startPlaceholder", + "label": { + "text": { + "zh_CN": "范围选择时开始日期的占位内容" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "endPlaceholder", + "label": { + "text": { + "zh_CN": "范围选择时结束日期的占位内容" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "defaultValue", + "label": { + "text": { + "zh_CN": "可选,选择器打开时默认显示的时间" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaDatePicker", + "props": {} + } + }, + { + "property": "defaultTime", + "label": { + "text": { + "zh_CN": "选择日期后的默认时间值。 如未指定则默认时间值为 00:00:00" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaDatePicker", + "props": {} + } + }, + { + "property": "isRange", + "label": { + "text": { + "zh_CN": "是否为时间范围选择" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "disabledHours", + "label": { + "text": { + "zh_CN": "禁止选择部分小时选项" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "disabledMinutes", + "label": { + "text": { + "zh_CN": "禁止选择部分分钟选项" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "disabledSeconds", + "label": { + "text": { + "zh_CN": "禁止选择部分秒选项" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "disabledDate", + "label": { + "text": { + "zh_CN": "一个用来判断该日期是否被禁用的函数,接受一个 Date 对象作为参数。 应该返回一个 Boolean 值。" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "cellClassName", + "label": { + "text": { + "zh_CN": "设置自定义类名" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "shortcuts", + "label": { + "text": { + "zh_CN": "设置快捷选项,需要传入数组对象" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "arrowControl", + "label": { + "text": { + "zh_CN": "是否使用箭头进行时间选择" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "tabindex", + "label": { + "text": { + "zh_CN": "输入框的 tabindex" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "validateEvent", + "label": { + "text": { + "zh_CN": "是否触发表单验证" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "unlinkPanels", + "label": { + "text": { + "zh_CN": "在范围选择器里取消两个日期面板之间的联动" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "placement", + "label": { + "text": { + "zh_CN": "" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "fallbackPlacements", + "label": { + "text": { + "zh_CN": "" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "emptyValues", + "label": { + "text": { + "zh_CN": "组件的空值配置 参考config-provider" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "valueOnClear", + "label": { + "text": { + "zh_CN": "清空选项的值 参考 config-provider" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "ariaLabel", + "label": { + "text": { + "zh_CN": "等价于原生 input aria-label 属性" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + } + ] + } + ], + "events": { + "onUpdate:modelValue": { + "label": { + "zh_CN": "双向绑定的值改变时触发" }, - { - "property": "prefixIcon", - "label": { - "text": { - "zh_CN": "自定义前缀图标" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } + "description": { + "zh_CN": "双向绑定的值改变时触发" }, - { - "property": "size", - "label": { - "text": { - "zh_CN": "输入框尺寸" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "readonly", - "label": { - "text": { - "zh_CN": "完全只读" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "disabled", - "label": { - "text": { - "zh_CN": "禁用" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "placeholder", - "label": { - "text": { - "zh_CN": "非范围选择时的占位内容" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "popperOptions", - "label": { - "text": { - "zh_CN": "自定义popper选项,详见[popper.js](https://popper.js.org/docs/v2/)" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "modelValue", - "label": { - "text": { - "zh_CN": "绑定值,如果它是数组,长度应该是 2" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaDatePicker", - "props": {} - } - }, - { - "property": "rangeSeparator", - "label": { - "text": { - "zh_CN": "选择范围时的分隔符" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "startPlaceholder", - "label": { - "text": { - "zh_CN": "范围选择时开始日期的占位内容" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "endPlaceholder", - "label": { - "text": { - "zh_CN": "范围选择时结束日期的占位内容" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "defaultValue", - "label": { - "text": { - "zh_CN": "可选,选择器打开时默认显示的时间" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaDatePicker", - "props": {} - } - }, - { - "property": "defaultTime", - "label": { - "text": { - "zh_CN": "选择日期后的默认时间值。 如未指定则默认时间值为 00:00:00" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaDatePicker", - "props": {} - } - }, - { - "property": "isRange", - "label": { - "text": { - "zh_CN": "是否为时间范围选择" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "disabledHours", - "label": { - "text": { - "zh_CN": "禁止选择部分小时选项" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "disabledMinutes", - "label": { - "text": { - "zh_CN": "禁止选择部分分钟选项" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "disabledSeconds", - "label": { - "text": { - "zh_CN": "禁止选择部分秒选项" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "disabledDate", - "label": { - "text": { - "zh_CN": "一个用来判断该日期是否被禁用的函数,接受一个 Date 对象作为参数。 应该返回一个 Boolean 值。" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "cellClassName", - "label": { - "text": { - "zh_CN": "设置自定义类名" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "shortcuts", - "label": { - "text": { - "zh_CN": "设置快捷选项,需要传入数组对象" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "arrowControl", - "label": { - "text": { - "zh_CN": "是否使用箭头进行时间选择" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "tabindex", - "label": { - "text": { - "zh_CN": "输入框的 tabindex" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "validateEvent", - "label": { - "text": { - "zh_CN": "是否触发表单验证" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "unlinkPanels", - "label": { - "text": { - "zh_CN": "在范围选择器里取消两个日期面板之间的联动" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "placement", - "label": { - "text": { - "zh_CN": "" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "fallbackPlacements", - "label": { - "text": { - "zh_CN": "" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "emptyValues", - "label": { - "text": { - "zh_CN": "组件的空值配置 参考config-provider" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "valueOnClear", - "label": { - "text": { - "zh_CN": "清空选项的值 参考 config-provider" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "ariaLabel", - "label": { - "text": { - "zh_CN": "等价于原生 input aria-label 属性" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - } - ] - }, - "events": { - "onUpdate:modelValue": { - "label": { - "zh_CN": "双向绑定的值改变时触发" - }, - "description": { - "zh_CN": "双向绑定的值改变时触发" - }, - "type": "event", - "functionInfo": { - "params": [], - "returns": {} + "type": "event", + "functionInfo": { + "params": [], + "returns": {} }, "defaultValue": "" } @@ -10069,310 +10115,312 @@ "framework": "Vue" }, "schema": { - "properties": { - "label": { - "zh_CN": "基础信息" - }, - "description": { - "zh_CN": "基础信息" - }, - "collapse": { - "number": 6, - "text": { - "zh_CN": "显示更多" - } - }, - "content": [ - { - "property": "format", - "label": { - "text": { - "zh_CN": "设置时间格式" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "modelValue", - "label": { - "text": { - "zh_CN": "选中项绑定值" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "disabled", - "label": { - "text": { - "zh_CN": "禁用状态" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "editable", - "label": { - "text": { - "zh_CN": "文本框可输入" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "effect", - "label": { - "text": { - "zh_CN": "Tooltip 主题,内置了 dark / light 两种主题" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "clearable", - "label": { - "text": { - "zh_CN": "是否显示清除按钮" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "size", - "label": { - "text": { - "zh_CN": "输入框尺寸" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "placeholder", - "label": { - "text": { - "zh_CN": "非范围选择时的占位内容" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "start", - "label": { - "text": { - "zh_CN": "开始时间" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "end", - "label": { - "text": { - "zh_CN": "结束时间" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "step", - "label": { - "text": { - "zh_CN": "间隔时间" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "minTime", - "label": { - "text": { - "zh_CN": "最早时间点,早于该时间的时间段将被禁用" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "maxTime", - "label": { - "text": { - "zh_CN": "最晚时间点,晚于该时间的时间段将被禁用" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "name", - "label": { - "text": { - "zh_CN": "原生属性" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "prefixIcon", - "label": { - "text": { - "zh_CN": "自定义前缀图标" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "clearIcon", - "label": { - "text": { - "zh_CN": "自定义清除图标" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "emptyValues", - "label": { - "text": { - "zh_CN": "组件的空值配置 参考config-provider" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } + "properties": [ + { + "label": { + "zh_CN": "基础信息" }, - { - "property": "valueOnClear", - "label": { - "text": { - "zh_CN": "清空选项的值 参考 config-provider" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - } - ] - }, + "description": { + "zh_CN": "基础信息" + }, + "collapse": { + "number": 6, + "text": { + "zh_CN": "显示更多" + } + }, + "content": [ + { + "property": "format", + "label": { + "text": { + "zh_CN": "设置时间格式" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "modelValue", + "label": { + "text": { + "zh_CN": "选中项绑定值" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "disabled", + "label": { + "text": { + "zh_CN": "禁用状态" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "editable", + "label": { + "text": { + "zh_CN": "文本框可输入" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "effect", + "label": { + "text": { + "zh_CN": "Tooltip 主题,内置了 dark / light 两种主题" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "clearable", + "label": { + "text": { + "zh_CN": "是否显示清除按钮" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "size", + "label": { + "text": { + "zh_CN": "输入框尺寸" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "placeholder", + "label": { + "text": { + "zh_CN": "非范围选择时的占位内容" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "start", + "label": { + "text": { + "zh_CN": "开始时间" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "end", + "label": { + "text": { + "zh_CN": "结束时间" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "step", + "label": { + "text": { + "zh_CN": "间隔时间" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "minTime", + "label": { + "text": { + "zh_CN": "最早时间点,早于该时间的时间段将被禁用" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "maxTime", + "label": { + "text": { + "zh_CN": "最晚时间点,晚于该时间的时间段将被禁用" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "name", + "label": { + "text": { + "zh_CN": "原生属性" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "prefixIcon", + "label": { + "text": { + "zh_CN": "自定义前缀图标" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "clearIcon", + "label": { + "text": { + "zh_CN": "自定义清除图标" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "emptyValues", + "label": { + "text": { + "zh_CN": "组件的空值配置 参考config-provider" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "valueOnClear", + "label": { + "text": { + "zh_CN": "清空选项的值 参考 config-provider" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + } + ] + } + ], "events": { "onChange": { "label": { @@ -10516,280 +10564,282 @@ "framework": "Vue" }, "schema": { - "properties": { - "label": { - "zh_CN": "基础信息" - }, - "description": { - "zh_CN": "基础信息" - }, - "collapse": { - "number": 6, - "text": { - "zh_CN": "显示更多" - } - }, - "content": [ - { - "property": "data", - "label": { - "text": { - "zh_CN": "Transfer 的数据源" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } + "properties": [ + { + "label": { + "zh_CN": "基础信息" }, - { - "property": "titles", - "label": { - "text": { - "zh_CN": "自定义列表标题" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } + "description": { + "zh_CN": "基础信息" + }, + "collapse": { + "number": 6, + "text": { + "zh_CN": "显示更多" + } + }, + "content": [ + { + "property": "data", + "label": { + "text": { + "zh_CN": "Transfer 的数据源" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "titles", + "label": { + "text": { + "zh_CN": "自定义列表标题" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "buttonTexts", + "label": { + "text": { + "zh_CN": "自定义按钮文案" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "filterPlaceholder", + "label": { + "text": { + "zh_CN": "搜索框占位符" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "filterMethod", + "label": { + "text": { + "zh_CN": "自定义搜索方法" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "leftDefaultChecked", + "label": { + "text": { + "zh_CN": "初始状态下左侧列表的已勾选项的 key 数组" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "rightDefaultChecked", + "label": { + "text": { + "zh_CN": "初始状态下右侧列表的已勾选项的 key 数组" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "renderContent", + "label": { + "text": { + "zh_CN": "自定义数据项渲染函数" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "modelValue", + "label": { + "text": { + "zh_CN": "选中项绑定值" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "format", + "label": { + "text": { + "zh_CN": "列表顶部勾选状态文案" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "filterable", + "label": { + "text": { + "zh_CN": "是否可搜索" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "props", + "label": { + "text": { + "zh_CN": "数据源的字段别名" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "targetOrder", + "label": { + "text": { + "zh_CN": "右侧列表元素的排序策略: 若为 original,则保持与数据源相同的顺序; 若为 push,则新加入的元素排在最后; 若为 unshift,则新加入的元素排在最前" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "validateEvent", + "label": { + "text": { + "zh_CN": "是否触发表单验证" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + } + ] + } + ], + "events": { + "onChange": { + "label": { + "zh_CN": "右侧列表元素变化时触发" }, - { - "property": "buttonTexts", - "label": { - "text": { - "zh_CN": "自定义按钮文案" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } + "description": { + "zh_CN": "右侧列表元素变化时触发" }, - { - "property": "filterPlaceholder", - "label": { - "text": { - "zh_CN": "搜索框占位符" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } + "type": "event", + "functionInfo": { + "params": [], + "returns": {} }, - { - "property": "filterMethod", - "label": { - "text": { - "zh_CN": "自定义搜索方法" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } + "defaultValue": "" + }, + "onUpdate:modelValue": { + "label": { + "zh_CN": "双向绑定的值改变时触发" }, - { - "property": "leftDefaultChecked", - "label": { - "text": { - "zh_CN": "初始状态下左侧列表的已勾选项的 key 数组" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } + "description": { + "zh_CN": "双向绑定的值改变时触发" }, - { - "property": "rightDefaultChecked", - "label": { - "text": { - "zh_CN": "初始状态下右侧列表的已勾选项的 key 数组" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } + "type": "event", + "functionInfo": { + "params": [], + "returns": {} }, - { - "property": "renderContent", - "label": { - "text": { - "zh_CN": "自定义数据项渲染函数" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "modelValue", - "label": { - "text": { - "zh_CN": "选中项绑定值" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "format", - "label": { - "text": { - "zh_CN": "列表顶部勾选状态文案" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "filterable", - "label": { - "text": { - "zh_CN": "是否可搜索" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "props", - "label": { - "text": { - "zh_CN": "数据源的字段别名" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "targetOrder", - "label": { - "text": { - "zh_CN": "右侧列表元素的排序策略: 若为 original,则保持与数据源相同的顺序; 若为 push,则新加入的元素排在最后; 若为 unshift,则新加入的元素排在最前" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "validateEvent", - "label": { - "text": { - "zh_CN": "是否触发表单验证" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - } - ] - }, - "events": { - "onChange": { - "label": { - "zh_CN": "右侧列表元素变化时触发" - }, - "description": { - "zh_CN": "右侧列表元素变化时触发" - }, - "type": "event", - "functionInfo": { - "params": [], - "returns": {} - }, - "defaultValue": "" - }, - "onUpdate:modelValue": { - "label": { - "zh_CN": "双向绑定的值改变时触发" - }, - "description": { - "zh_CN": "双向绑定的值改变时触发" - }, - "type": "event", - "functionInfo": { - "params": [], - "returns": {} - }, - "defaultValue": "" - } - }, - "slots": { - "default": { - "label": { - "zh_CN": "自定义数据项的内容, 参数为 { option }" + "defaultValue": "" + } + }, + "slots": { + "default": { + "label": { + "zh_CN": "自定义数据项的内容, 参数为 { option }" }, "description": { "zh_CN": "自定义数据项的内容, 参数为 { option }" @@ -10923,1875 +10973,1881 @@ "framework": "Vue" }, "schema": { - "properties": { - "label": { - "zh_CN": "基础信息" - }, - "description": { - "zh_CN": "基础信息" - }, - "collapse": { - "number": 6, - "text": { - "zh_CN": "显示更多" + "properties": [ + { + "label": { + "zh_CN": "基础信息" + }, + "description": { + "zh_CN": "基础信息" + }, + "collapse": { + "number": 6, + "text": { + "zh_CN": "显示更多" + } + }, + "content": [ + { + "property": "name", + "label": { + "text": { + "zh_CN": "Select 输入框的原生 name 属性" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "id", + "label": { + "text": { + "zh_CN": "本机输入id" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "modelValue", + "label": { + "text": { + "zh_CN": "选中项绑定值" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "autocomplete", + "label": { + "text": { + "zh_CN": "Select 输入框的原生 autocomplete 属性" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "automaticDropdown", + "label": { + "text": { + "zh_CN": "对于不可搜索的 Select,是否在输入框获得焦点后自动弹出选项菜单" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "size", + "label": { + "text": { + "zh_CN": "输入框尺寸" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "effect", + "label": { + "text": { + "zh_CN": "tooltip 主题,内置了 dark / light 两种" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "disabled", + "label": { + "text": { + "zh_CN": "是否禁用" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "clearable", + "label": { + "text": { + "zh_CN": "是否可以清空选项" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "filterable", + "label": { + "text": { + "zh_CN": "Select 组件是否可筛选" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "allowCreate", + "label": { + "text": { + "zh_CN": "是否允许用户创建新条目, 只有当 filterable 设置为 true 时才会生效。" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "loading", + "label": { + "text": { + "zh_CN": "是否正在从远程获取数据" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "popperClass", + "label": { + "text": { + "zh_CN": "选择器下拉菜单的自定义类名" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "popperOptions", + "label": { + "text": { + "zh_CN": "popper.js 参数" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "remote", + "label": { + "text": { + "zh_CN": "其中的选项是否从服务器远程加载" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "loadingText", + "label": { + "text": { + "zh_CN": "从服务器加载数据时显示的文本,默认为“Loading”" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "noMatchText", + "label": { + "text": { + "zh_CN": "搜索条件无匹配时显示的文字,也可以使用 empty 插槽设置,默认是 “No matching data'”" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "noDataText", + "label": { + "text": { + "zh_CN": "无选项时显示的文字,也可以使用 empty 插槽设置自定义内容,默认是 “No data”" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "remoteMethod", + "label": { + "text": { + "zh_CN": "自定义远程搜索方法" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "filterMethod", + "label": { + "text": { + "zh_CN": "自定义筛选方法" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "multiple", + "label": { + "text": { + "zh_CN": "是否多选" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "multipleLimit", + "label": { + "text": { + "zh_CN": "multiple 属性设置为 true 时,代表多选场景下用户最多可以选择的项目数, 为 0 则不限制" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "placeholder", + "label": { + "text": { + "zh_CN": "占位符,默认为“Select”" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "defaultFirstOption", + "label": { + "text": { + "zh_CN": "是否在输入框按下回车时,选择第一个匹配项。 需配合 filterable 或 remote 使用" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "reserveKeyword", + "label": { + "text": { + "zh_CN": "当 multiple 和 filterable被设置为 true 时,是否在选中一个选项后保留当前的搜索关键词" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "valueKey", + "label": { + "text": { + "zh_CN": "作为 value 唯一标识的键名,绑定值为对象类型时必填" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "collapseTags", + "label": { + "text": { + "zh_CN": "多选时是否将选中值按文字的形式展示" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "collapseTagsTooltip", + "label": { + "text": { + "zh_CN": "当鼠标悬停于折叠标签的文本时,是否显示所有选中的标签。 要使用此属性,collapse-tags属性必须设定为 true" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "maxCollapseTags", + "label": { + "text": { + "zh_CN": "需要显示的 Tag 的最大数量 只有当 collapse-tags 设置为 true 时才会生效。" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "teleported", + "label": { + "text": { + "zh_CN": "是否将下拉列表插入至 body 元素" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "persistent", + "label": { + "text": { + "zh_CN": "当下拉选择器未被激活并且persistent设置为false,选择器会被删除。" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "clearIcon", + "label": { + "text": { + "zh_CN": "自定义清除图标" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "fitInputWidth", + "label": { + "text": { + "zh_CN": "下拉框的宽度是否与输入框相同" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "suffixIcon", + "label": { + "text": { + "zh_CN": "自定义后缀图标组件" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "tagType", + "label": { + "text": { + "zh_CN": "标签类型" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "tagEffect", + "label": { + "text": { + "zh_CN": "标签效果" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "validateEvent", + "label": { + "text": { + "zh_CN": "是否触发表单验证" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "remoteShowSuffix", + "label": { + "text": { + "zh_CN": "远程搜索方法显示后缀图标" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "placement", + "label": { + "text": { + "zh_CN": "下拉框出现的位置" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "fallbackPlacements", + "label": { + "text": { + "zh_CN": "dropdown 可用的 positions 请查看popper.js 文档" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "appendTo", + "label": { + "text": { + "zh_CN": "下拉框挂载到哪个 DOM 元素" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "emptyValues", + "label": { + "text": { + "zh_CN": "组件的空值配置 参考config-provider" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "valueOnClear", + "label": { + "text": { + "zh_CN": "清空选项的值 参考 config-provider" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "ariaLabel", + "label": { + "text": { + "zh_CN": "等价于原生 input aria-label 属性" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "data", + "label": { + "text": { + "zh_CN": "展示数据" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "emptyText", + "label": { + "text": { + "zh_CN": "内容为空的时候展示的文本" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "renderAfterExpand", + "label": { + "text": { + "zh_CN": "是否在第一次展开某个树节点后才渲染其子节点" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "nodeKey", + "label": { + "text": { + "zh_CN": "每个树节点用来作为唯一标识的属性,整棵树应该是唯一的" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "checkStrictly", + "label": { + "text": { + "zh_CN": "在显示复选框的情况下,是否严格的遵循父子不互相关联的做法,默认为 false" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "defaultExpandAll", + "label": { + "text": { + "zh_CN": "是否默认展开所有节点" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "expandOnClickNode", + "label": { + "text": { + "zh_CN": "是否在点击节点的时候展开或者收缩节点, 默认值为 true,如果为 false,则只有点箭头图标的时候才会展开或者收缩节点。" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "checkOnClickNode", + "label": { + "text": { + "zh_CN": "是否在点击节点的时候选中节点,默认值为 false,即只有在点击复选框时才会选中节点。" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "autoExpandParent", + "label": { + "text": { + "zh_CN": "展开子节点的时候是否自动展开父节点" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "defaultCheckedKeys", + "label": { + "text": { + "zh_CN": "默认勾选的节点的 key 的数组" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "defaultExpandedKeys", + "label": { + "text": { + "zh_CN": "默认展开的节点的 key 的数组" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "currentNodeKey", + "label": { + "text": { + "zh_CN": "当前选中的节点" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "renderContent", + "label": { + "text": { + "zh_CN": "树节点的内容区的渲染 Function" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "showCheckbox", + "label": { + "text": { + "zh_CN": "节点是否可被选择" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "draggable", + "label": { + "text": { + "zh_CN": "是否开启拖拽节点功能" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "allowDrag", + "label": { + "text": { + "zh_CN": "判断节点能否被拖拽 如果返回 false ,节点不能被拖动" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "allowDrop", + "label": { + "text": { + "zh_CN": "拖拽时判定目标节点能否成为拖动目标位置。 如果返回 false ,拖动节点不能被拖放到目标节点。 type 参数有三种情况:'prev'、'inner' 和 'next',分别表示放置在目标节点前、插入至目标节点和放置在目标节点后" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "props", + "label": { + "text": { + "zh_CN": "配置选项,具体看下表" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "lazy", + "label": { + "text": { + "zh_CN": "是否懒加载子节点,需与 load 方法结合使用" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "highlightCurrent", + "label": { + "text": { + "zh_CN": "是否高亮当前选中节点,默认值是 false。" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "load", + "label": { + "text": { + "zh_CN": "加载子树数据的方法,仅当 lazy 属性为true 时生效" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "filterNodeMethod", + "label": { + "text": { + "zh_CN": "对树节点进行筛选时执行的方法, 返回 false 则表示这个节点会被隐藏" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "accordion", + "label": { + "text": { + "zh_CN": "是否每次只打开一个同级树节点展开" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "indent", + "label": { + "text": { + "zh_CN": "相邻级节点间的水平缩进,单位为像素" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "icon", + "label": { + "text": { + "zh_CN": "自定义树节点图标组件" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "cacheData", + "label": { + "text": { + "zh_CN": "懒加载节点的缓存数据,结构与数据相同,用于获取未加载数据的标签" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + } + ] + } + ], + "events": {}, + "slots": {} + } + }, + { + "id": 27, + "version": "2.7.8", + "name": { + "zh_CN": "上传" + }, + "component": "ElUpload", + "icon": "upload", + "description": "通过点击或者拖拽上传文件。", + "doc_url": "", + "screenshot": "", + "tags": "", + "keywords": "", + "dev_mode": "proCode", + "npm": { + "package": "element-plus", + "version": "2.7.8", + "script": "https://npm.onmicrosoft.cn/element-plus@2.4.2/dist/index.full.mjs", + "css": "https://npm.onmicrosoft.cn/element-plus@2.4.2/dist/index.css", + "dependencies": null, + "exportName": "ElUpload", + "destructuring": true + }, + "group": "Form 表单组件", + "category": "element-plus", + "configure": { + "loop": true, + "condition": true, + "styles": true, + "isContainer": false, + "isModal": false, + "isPopper": false, + "nestingRule": { + "childWhitelist": "", + "parentWhitelist": "", + "descendantBlacklist": "", + "ancestorWhitelist": "" + }, + "isNullNode": false, + "isLayout": false, + "rootSelector": "", + "shortcuts": { + "properties": [ + "action", + "headers", + "method", + "data", + "multiple", + "name", + "drag", + "withCredentials", + "showFileList", + "accept", + "fileList", + "autoUpload", + "listType", + "httpRequest", + "disabled", + "limit", + "beforeUpload", + "beforeRemove", + "onRemove", + "onChange", + "onPreview", + "onSuccess", + "onProgress", + "onError", + "onExceed", + "crossorigin" + ] + }, + "contextMenu": { + "actions": ["copy", "remove", "insert", "updateAttr", "bindEevent", "createBlock"], + "disable": [] + }, + "invalidity": [""], + "clickCapture": true, + "framework": "Vue" + }, + "schema": { + "properties": [ + { + "label": { + "zh_CN": "基础信息" + }, + "description": { + "zh_CN": "基础信息" + }, + "collapse": { + "number": 6, + "text": { + "zh_CN": "显示更多" + } + }, + "content": [ + { + "property": "action", + "label": { + "text": { + "zh_CN": "请求 URL" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "headers", + "label": { + "text": { + "zh_CN": "设置上传的请求头部" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "method", + "label": { + "text": { + "zh_CN": "设置上传请求方法" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "data", + "label": { + "text": { + "zh_CN": "上传时附带的额外参数 从 v2.3.13 支持 Awaitable 数据,和 Function" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "multiple", + "label": { + "text": { + "zh_CN": "是否支持多选文件" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "name", + "label": { + "text": { + "zh_CN": "上传的文件字段名" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "drag", + "label": { + "text": { + "zh_CN": "是否启用拖拽上传" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "withCredentials", + "label": { + "text": { + "zh_CN": "支持发送 cookie 凭证信息" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "showFileList", + "label": { + "text": { + "zh_CN": "是否显示已上传文件列表" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "accept", + "label": { + "text": { + "zh_CN": "接受上传的文件类型(thumbnail-mode 模式下此参数无效)" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "fileList", + "label": { + "text": { + "zh_CN": "默认上传文件" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "autoUpload", + "label": { + "text": { + "zh_CN": "是否自动上传文件" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "listType", + "label": { + "text": { + "zh_CN": "文件列表的类型" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "httpRequest", + "label": { + "text": { + "zh_CN": "覆盖默认的 Xhr 行为,允许自行实现上传文件的请求" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "disabled", + "label": { + "text": { + "zh_CN": "是否禁用上传" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "limit", + "label": { + "text": { + "zh_CN": "允许上传文件的最大数量" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "beforeUpload", + "label": { + "text": { + "zh_CN": "上传文件之前的钩子,参数为上传的文件, 若返回false或者返回 Promise 且被 reject,则停止上传。" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "beforeRemove", + "label": { + "text": { + "zh_CN": "删除文件之前的钩子,参数为上传的文件和文件列表, 若返回 false 或者返回 Promise 且被 reject,则停止删除。" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "onRemove", + "label": { + "text": { + "zh_CN": "文件列表移除文件时的钩子" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "onChange", + "label": { + "text": { + "zh_CN": "文件状态改变时的钩子,添加文件、上传成功和上传失败时都会被调用" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "onPreview", + "label": { + "text": { + "zh_CN": "点击文件列表中已上传的文件时的钩子" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "onSuccess", + "label": { + "text": { + "zh_CN": "文件上传成功时的钩子" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "onProgress", + "label": { + "text": { + "zh_CN": "文件上传时的钩子" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "onError", + "label": { + "text": { + "zh_CN": "文件上传失败时的钩子" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "onExceed", + "label": { + "text": { + "zh_CN": "当超出限制时,执行的钩子函数" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "crossorigin", + "label": { + "text": { + "zh_CN": "原生属性 crossorigin" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + } + ] + } + ], + "events": {}, + "slots": { + "trigger": { + "label": { + "zh_CN": "触发文件选择框的内容" + }, + "description": { + "zh_CN": "触发文件选择框的内容" } }, - "content": [ - { - "property": "name", - "label": { - "text": { - "zh_CN": "Select 输入框的原生 name 属性" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } + "default": { + "label": { + "zh_CN": "自定义默认内容" }, - { - "property": "id", - "label": { - "text": { - "zh_CN": "本机输入id" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } + "description": { + "zh_CN": "自定义默认内容" + } + }, + "file": { + "label": { + "zh_CN": "缩略图模板的内容" }, - { - "property": "modelValue", - "label": { - "text": { - "zh_CN": "选中项绑定值" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } + "description": { + "zh_CN": "缩略图模板的内容" + } + } + } + } + }, + { + "id": 28, + "version": "2.7.8", + "name": { + "zh_CN": "头像" + }, + "component": "ElAvatar", + "icon": "avatar", + "description": "Avatar 组件可以用来代表人物或对象, 支持使用图片、图标或者文字作为 Avatar。", + "doc_url": "", + "screenshot": "", + "tags": "", + "keywords": "", + "dev_mode": "proCode", + "npm": { + "package": "element-plus", + "version": "2.7.8", + "script": "https://npm.onmicrosoft.cn/element-plus@2.4.2/dist/index.full.mjs", + "css": "https://npm.onmicrosoft.cn/element-plus@2.4.2/dist/index.css", + "dependencies": null, + "exportName": "ElAvatar", + "destructuring": true + }, + "group": "Data 数据展示", + "category": "element-plus", + "configure": { + "loop": true, + "condition": true, + "styles": true, + "isContainer": false, + "isModal": false, + "isPopper": false, + "nestingRule": { + "childWhitelist": "", + "parentWhitelist": "", + "descendantBlacklist": "", + "ancestorWhitelist": "" + }, + "isNullNode": false, + "isLayout": false, + "rootSelector": "", + "shortcuts": { + "properties": ["size", "shape", "icon", "src", "alt", "srcSet", "fit"] + }, + "contextMenu": { + "actions": ["copy", "remove", "insert", "updateAttr", "bindEevent", "createBlock"], + "disable": [] + }, + "invalidity": [""], + "clickCapture": true, + "framework": "Vue" + }, + "schema": { + "properties": [ + { + "label": { + "zh_CN": "基础信息" }, - { - "property": "autocomplete", - "label": { - "text": { - "zh_CN": "Select 输入框的原生 autocomplete 属性" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } + "description": { + "zh_CN": "基础信息" + }, + "collapse": { + "number": 6, + "text": { + "zh_CN": "显示更多" + } + }, + "content": [ + { + "property": "size", + "label": { + "text": { + "zh_CN": "Avatar 大小" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "shape", + "label": { + "text": { + "zh_CN": "Avatar 形状" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "icon", + "label": { + "text": { + "zh_CN": "设置 Avatar 的图标类型,具体参考 Icon 组件" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "src", + "label": { + "text": { + "zh_CN": "Avatar 图片的源地址" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "alt", + "label": { + "text": { + "zh_CN": "图片 Avatar 的原生 alt 属性" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "srcSet", + "label": { + "text": { + "zh_CN": "图片 Avatar 的原生 srcset 属性" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "fit", + "label": { + "text": { + "zh_CN": "当展示类型为图片的时候,设置图片如何适应容器" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + } + ] + } + ], + "events": { + "onError": { + "label": { + "zh_CN": "图片加载失败时触发" }, - { - "property": "automaticDropdown", - "label": { - "text": { - "zh_CN": "对于不可搜索的 Select,是否在输入框获得焦点后自动弹出选项菜单" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "size", - "label": { - "text": { - "zh_CN": "输入框尺寸" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "effect", - "label": { - "text": { - "zh_CN": "tooltip 主题,内置了 dark / light 两种" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "disabled", - "label": { - "text": { - "zh_CN": "是否禁用" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "clearable", - "label": { - "text": { - "zh_CN": "是否可以清空选项" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "filterable", - "label": { - "text": { - "zh_CN": "Select 组件是否可筛选" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "allowCreate", - "label": { - "text": { - "zh_CN": "是否允许用户创建新条目, 只有当 filterable 设置为 true 时才会生效。" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "loading", - "label": { - "text": { - "zh_CN": "是否正在从远程获取数据" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "popperClass", - "label": { - "text": { - "zh_CN": "选择器下拉菜单的自定义类名" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "popperOptions", - "label": { - "text": { - "zh_CN": "popper.js 参数" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "remote", - "label": { - "text": { - "zh_CN": "其中的选项是否从服务器远程加载" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "loadingText", - "label": { - "text": { - "zh_CN": "从服务器加载数据时显示的文本,默认为“Loading”" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "noMatchText", - "label": { - "text": { - "zh_CN": "搜索条件无匹配时显示的文字,也可以使用 empty 插槽设置,默认是 “No matching data'”" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "noDataText", - "label": { - "text": { - "zh_CN": "无选项时显示的文字,也可以使用 empty 插槽设置自定义内容,默认是 “No data”" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "remoteMethod", - "label": { - "text": { - "zh_CN": "自定义远程搜索方法" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "filterMethod", - "label": { - "text": { - "zh_CN": "自定义筛选方法" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "multiple", - "label": { - "text": { - "zh_CN": "是否多选" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "multipleLimit", - "label": { - "text": { - "zh_CN": "multiple 属性设置为 true 时,代表多选场景下用户最多可以选择的项目数, 为 0 则不限制" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - }, - { - "property": "placeholder", - "label": { - "text": { - "zh_CN": "占位符,默认为“Select”" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "defaultFirstOption", - "label": { - "text": { - "zh_CN": "是否在输入框按下回车时,选择第一个匹配项。 需配合 filterable 或 remote 使用" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "reserveKeyword", - "label": { - "text": { - "zh_CN": "当 multiple 和 filterable被设置为 true 时,是否在选中一个选项后保留当前的搜索关键词" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "valueKey", - "label": { - "text": { - "zh_CN": "作为 value 唯一标识的键名,绑定值为对象类型时必填" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "collapseTags", - "label": { - "text": { - "zh_CN": "多选时是否将选中值按文字的形式展示" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "collapseTagsTooltip", - "label": { - "text": { - "zh_CN": "当鼠标悬停于折叠标签的文本时,是否显示所有选中的标签。 要使用此属性,collapse-tags属性必须设定为 true" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "maxCollapseTags", - "label": { - "text": { - "zh_CN": "需要显示的 Tag 的最大数量 只有当 collapse-tags 设置为 true 时才会生效。" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - }, - { - "property": "teleported", - "label": { - "text": { - "zh_CN": "是否将下拉列表插入至 body 元素" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "persistent", - "label": { - "text": { - "zh_CN": "当下拉选择器未被激活并且persistent设置为false,选择器会被删除。" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "clearIcon", - "label": { - "text": { - "zh_CN": "自定义清除图标" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "fitInputWidth", - "label": { - "text": { - "zh_CN": "下拉框的宽度是否与输入框相同" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "suffixIcon", - "label": { - "text": { - "zh_CN": "自定义后缀图标组件" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "tagType", - "label": { - "text": { - "zh_CN": "标签类型" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "tagEffect", - "label": { - "text": { - "zh_CN": "标签效果" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "validateEvent", - "label": { - "text": { - "zh_CN": "是否触发表单验证" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "remoteShowSuffix", - "label": { - "text": { - "zh_CN": "远程搜索方法显示后缀图标" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "placement", - "label": { - "text": { - "zh_CN": "下拉框出现的位置" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "fallbackPlacements", - "label": { - "text": { - "zh_CN": "dropdown 可用的 positions 请查看popper.js 文档" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "appendTo", - "label": { - "text": { - "zh_CN": "下拉框挂载到哪个 DOM 元素" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "emptyValues", - "label": { - "text": { - "zh_CN": "组件的空值配置 参考config-provider" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "valueOnClear", - "label": { - "text": { - "zh_CN": "清空选项的值 参考 config-provider" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "ariaLabel", - "label": { - "text": { - "zh_CN": "等价于原生 input aria-label 属性" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "data", - "label": { - "text": { - "zh_CN": "展示数据" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "emptyText", - "label": { - "text": { - "zh_CN": "内容为空的时候展示的文本" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "renderAfterExpand", - "label": { - "text": { - "zh_CN": "是否在第一次展开某个树节点后才渲染其子节点" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "nodeKey", - "label": { - "text": { - "zh_CN": "每个树节点用来作为唯一标识的属性,整棵树应该是唯一的" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "checkStrictly", - "label": { - "text": { - "zh_CN": "在显示复选框的情况下,是否严格的遵循父子不互相关联的做法,默认为 false" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "defaultExpandAll", - "label": { - "text": { - "zh_CN": "是否默认展开所有节点" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "expandOnClickNode", - "label": { - "text": { - "zh_CN": "是否在点击节点的时候展开或者收缩节点, 默认值为 true,如果为 false,则只有点箭头图标的时候才会展开或者收缩节点。" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "checkOnClickNode", - "label": { - "text": { - "zh_CN": "是否在点击节点的时候选中节点,默认值为 false,即只有在点击复选框时才会选中节点。" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "autoExpandParent", - "label": { - "text": { - "zh_CN": "展开子节点的时候是否自动展开父节点" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "defaultCheckedKeys", - "label": { - "text": { - "zh_CN": "默认勾选的节点的 key 的数组" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "defaultExpandedKeys", - "label": { - "text": { - "zh_CN": "默认展开的节点的 key 的数组" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "currentNodeKey", - "label": { - "text": { - "zh_CN": "当前选中的节点" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "renderContent", - "label": { - "text": { - "zh_CN": "树节点的内容区的渲染 Function" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "showCheckbox", - "label": { - "text": { - "zh_CN": "节点是否可被选择" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "draggable", - "label": { - "text": { - "zh_CN": "是否开启拖拽节点功能" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "allowDrag", - "label": { - "text": { - "zh_CN": "判断节点能否被拖拽 如果返回 false ,节点不能被拖动" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "allowDrop", - "label": { - "text": { - "zh_CN": "拖拽时判定目标节点能否成为拖动目标位置。 如果返回 false ,拖动节点不能被拖放到目标节点。 type 参数有三种情况:'prev'、'inner' 和 'next',分别表示放置在目标节点前、插入至目标节点和放置在目标节点后" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "props", - "label": { - "text": { - "zh_CN": "配置选项,具体看下表" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "lazy", - "label": { - "text": { - "zh_CN": "是否懒加载子节点,需与 load 方法结合使用" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "highlightCurrent", - "label": { - "text": { - "zh_CN": "是否高亮当前选中节点,默认值是 false。" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "load", - "label": { - "text": { - "zh_CN": "加载子树数据的方法,仅当 lazy 属性为true 时生效" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "filterNodeMethod", - "label": { - "text": { - "zh_CN": "对树节点进行筛选时执行的方法, 返回 false 则表示这个节点会被隐藏" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "accordion", - "label": { - "text": { - "zh_CN": "是否每次只打开一个同级树节点展开" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "indent", - "label": { - "text": { - "zh_CN": "相邻级节点间的水平缩进,单位为像素" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - }, - { - "property": "icon", - "label": { - "text": { - "zh_CN": "自定义树节点图标组件" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "cacheData", - "label": { - "text": { - "zh_CN": "懒加载节点的缓存数据,结构与数据相同,用于获取未加载数据的标签" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - } - ] - }, - "events": {}, - "slots": {} - } - }, - { - "id": 27, - "version": "2.7.8", - "name": { - "zh_CN": "上传" - }, - "component": "ElUpload", - "icon": "upload", - "description": "通过点击或者拖拽上传文件。", - "doc_url": "", - "screenshot": "", - "tags": "", - "keywords": "", - "dev_mode": "proCode", - "npm": { - "package": "element-plus", - "version": "2.7.8", - "script": "https://npm.onmicrosoft.cn/element-plus@2.4.2/dist/index.full.mjs", - "css": "https://npm.onmicrosoft.cn/element-plus@2.4.2/dist/index.css", - "dependencies": null, - "exportName": "ElUpload", - "destructuring": true - }, - "group": "Form 表单组件", - "category": "element-plus", - "configure": { - "loop": true, - "condition": true, - "styles": true, - "isContainer": false, - "isModal": false, - "isPopper": false, - "nestingRule": { - "childWhitelist": "", - "parentWhitelist": "", - "descendantBlacklist": "", - "ancestorWhitelist": "" - }, - "isNullNode": false, - "isLayout": false, - "rootSelector": "", - "shortcuts": { - "properties": [ - "action", - "headers", - "method", - "data", - "multiple", - "name", - "drag", - "withCredentials", - "showFileList", - "accept", - "fileList", - "autoUpload", - "listType", - "httpRequest", - "disabled", - "limit", - "beforeUpload", - "beforeRemove", - "onRemove", - "onChange", - "onPreview", - "onSuccess", - "onProgress", - "onError", - "onExceed", - "crossorigin" - ] - }, - "contextMenu": { - "actions": ["copy", "remove", "insert", "updateAttr", "bindEevent", "createBlock"], - "disable": [] - }, - "invalidity": [""], - "clickCapture": true, - "framework": "Vue" - }, - "schema": { - "properties": { - "label": { - "zh_CN": "基础信息" - }, - "description": { - "zh_CN": "基础信息" - }, - "collapse": { - "number": 6, - "text": { - "zh_CN": "显示更多" - } - }, - "content": [ - { - "property": "action", - "label": { - "text": { - "zh_CN": "请求 URL" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "headers", - "label": { - "text": { - "zh_CN": "设置上传的请求头部" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "method", - "label": { - "text": { - "zh_CN": "设置上传请求方法" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "data", - "label": { - "text": { - "zh_CN": "上传时附带的额外参数 从 v2.3.13 支持 Awaitable 数据,和 Function" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "multiple", - "label": { - "text": { - "zh_CN": "是否支持多选文件" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "name", - "label": { - "text": { - "zh_CN": "上传的文件字段名" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "drag", - "label": { - "text": { - "zh_CN": "是否启用拖拽上传" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "withCredentials", - "label": { - "text": { - "zh_CN": "支持发送 cookie 凭证信息" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "showFileList", - "label": { - "text": { - "zh_CN": "是否显示已上传文件列表" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "accept", - "label": { - "text": { - "zh_CN": "接受上传的文件类型(thumbnail-mode 模式下此参数无效)" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "fileList", - "label": { - "text": { - "zh_CN": "默认上传文件" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "autoUpload", - "label": { - "text": { - "zh_CN": "是否自动上传文件" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "listType", - "label": { - "text": { - "zh_CN": "文件列表的类型" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "httpRequest", - "label": { - "text": { - "zh_CN": "覆盖默认的 Xhr 行为,允许自行实现上传文件的请求" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "disabled", - "label": { - "text": { - "zh_CN": "是否禁用上传" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "limit", - "label": { - "text": { - "zh_CN": "允许上传文件的最大数量" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - }, - { - "property": "beforeUpload", - "label": { - "text": { - "zh_CN": "上传文件之前的钩子,参数为上传的文件, 若返回false或者返回 Promise 且被 reject,则停止上传。" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "beforeRemove", - "label": { - "text": { - "zh_CN": "删除文件之前的钩子,参数为上传的文件和文件列表, 若返回 false 或者返回 Promise 且被 reject,则停止删除。" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "onRemove", - "label": { - "text": { - "zh_CN": "文件列表移除文件时的钩子" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "onChange", - "label": { - "text": { - "zh_CN": "文件状态改变时的钩子,添加文件、上传成功和上传失败时都会被调用" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "onPreview", - "label": { - "text": { - "zh_CN": "点击文件列表中已上传的文件时的钩子" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "onSuccess", - "label": { - "text": { - "zh_CN": "文件上传成功时的钩子" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "onProgress", - "label": { - "text": { - "zh_CN": "文件上传时的钩子" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "onError", - "label": { - "text": { - "zh_CN": "文件上传失败时的钩子" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "onExceed", - "label": { - "text": { - "zh_CN": "当超出限制时,执行的钩子函数" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "crossorigin", - "label": { - "text": { - "zh_CN": "原生属性 crossorigin" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - } - ] - }, - "events": {}, - "slots": { - "trigger": { - "label": { - "zh_CN": "触发文件选择框的内容" - }, - "description": { - "zh_CN": "触发文件选择框的内容" - } - }, - "default": { - "label": { - "zh_CN": "自定义默认内容" - }, - "description": { - "zh_CN": "自定义默认内容" - } - }, - "file": { - "label": { - "zh_CN": "缩略图模板的内容" - }, - "description": { - "zh_CN": "缩略图模板的内容" - } - } - } - } - }, - { - "id": 28, - "version": "2.7.8", - "name": { - "zh_CN": "头像" - }, - "component": "ElAvatar", - "icon": "avatar", - "description": "Avatar 组件可以用来代表人物或对象, 支持使用图片、图标或者文字作为 Avatar。", - "doc_url": "", - "screenshot": "", - "tags": "", - "keywords": "", - "dev_mode": "proCode", - "npm": { - "package": "element-plus", - "version": "2.7.8", - "script": "https://npm.onmicrosoft.cn/element-plus@2.4.2/dist/index.full.mjs", - "css": "https://npm.onmicrosoft.cn/element-plus@2.4.2/dist/index.css", - "dependencies": null, - "exportName": "ElAvatar", - "destructuring": true - }, - "group": "Data 数据展示", - "category": "element-plus", - "configure": { - "loop": true, - "condition": true, - "styles": true, - "isContainer": false, - "isModal": false, - "isPopper": false, - "nestingRule": { - "childWhitelist": "", - "parentWhitelist": "", - "descendantBlacklist": "", - "ancestorWhitelist": "" - }, - "isNullNode": false, - "isLayout": false, - "rootSelector": "", - "shortcuts": { - "properties": ["size", "shape", "icon", "src", "alt", "srcSet", "fit"] - }, - "contextMenu": { - "actions": ["copy", "remove", "insert", "updateAttr", "bindEevent", "createBlock"], - "disable": [] - }, - "invalidity": [""], - "clickCapture": true, - "framework": "Vue" - }, - "schema": { - "properties": { - "label": { - "zh_CN": "基础信息" - }, - "description": { - "zh_CN": "基础信息" - }, - "collapse": { - "number": 6, - "text": { - "zh_CN": "显示更多" - } - }, - "content": [ - { - "property": "size", - "label": { - "text": { - "zh_CN": "Avatar 大小" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - }, - { - "property": "shape", - "label": { - "text": { - "zh_CN": "Avatar 形状" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "icon", - "label": { - "text": { - "zh_CN": "设置 Avatar 的图标类型,具体参考 Icon 组件" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "src", - "label": { - "text": { - "zh_CN": "Avatar 图片的源地址" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "alt", - "label": { - "text": { - "zh_CN": "图片 Avatar 的原生 alt 属性" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "srcSet", - "label": { - "text": { - "zh_CN": "图片 Avatar 的原生 srcset 属性" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "fit", - "label": { - "text": { - "zh_CN": "当展示类型为图片的时候,设置图片如何适应容器" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - } - ] - }, - "events": { - "onError": { - "label": { - "zh_CN": "图片加载失败时触发" - }, - "description": { - "zh_CN": "图片加载失败时触发" + "description": { + "zh_CN": "图片加载失败时触发" }, "type": "event", "functionInfo": { @@ -12868,182 +12924,184 @@ "framework": "Vue" }, "schema": { - "properties": { - "label": { - "zh_CN": "基础信息" - }, - "description": { - "zh_CN": "基础信息" - }, - "collapse": { - "number": 6, - "text": { - "zh_CN": "显示更多" - } - }, - "content": [ - { - "property": "value", - "label": { - "text": { - "zh_CN": "显示值" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "max", - "label": { - "text": { - "zh_CN": "最大值,超过最大值会显示 {max}+。 只有当 value 是数字类型时起作用。" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - }, - { - "property": "isDot", - "label": { - "text": { - "zh_CN": "是否显示小圆点。" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "hidden", - "label": { - "text": { - "zh_CN": "是否隐藏 Badge。" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "type", - "label": { - "text": { - "zh_CN": "badge type." - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "showZero", - "label": { - "text": { - "zh_CN": "值为零时是否显示 Badge" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "color", - "label": { - "text": { - "zh_CN": "背景色" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "badgeStyle", - "label": { - "text": { - "zh_CN": "自定义 badge 样式" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "offset", - "label": { - "text": { - "zh_CN": "badge 的偏移量" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } + "properties": [ + { + "label": { + "zh_CN": "基础信息" }, - { - "property": "badgeClass", - "label": { - "text": { - "zh_CN": "自定义 badge 类名" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - } - ] - }, + "description": { + "zh_CN": "基础信息" + }, + "collapse": { + "number": 6, + "text": { + "zh_CN": "显示更多" + } + }, + "content": [ + { + "property": "value", + "label": { + "text": { + "zh_CN": "显示值" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "max", + "label": { + "text": { + "zh_CN": "最大值,超过最大值会显示 {max}+。 只有当 value 是数字类型时起作用。" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "isDot", + "label": { + "text": { + "zh_CN": "是否显示小圆点。" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "hidden", + "label": { + "text": { + "zh_CN": "是否隐藏 Badge。" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "type", + "label": { + "text": { + "zh_CN": "badge type." + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "showZero", + "label": { + "text": { + "zh_CN": "值为零时是否显示 Badge" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "color", + "label": { + "text": { + "zh_CN": "背景色" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "badgeStyle", + "label": { + "text": { + "zh_CN": "自定义 badge 样式" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "offset", + "label": { + "text": { + "zh_CN": "badge 的偏移量" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "badgeClass", + "label": { + "text": { + "zh_CN": "自定义 badge 类名" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + } + ] + } + ], "events": {}, "slots": { "default": { @@ -13110,54 +13168,56 @@ "framework": "Vue" }, "schema": { - "properties": { - "label": { - "zh_CN": "基础信息" - }, - "description": { - "zh_CN": "基础信息" - }, - "collapse": { - "number": 6, - "text": { - "zh_CN": "显示更多" - } - }, - "content": [ - { - "property": "modelValue", - "label": { - "text": { - "zh_CN": "选中项绑定值" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaDatePicker", - "props": {} - } + "properties": [ + { + "label": { + "zh_CN": "基础信息" }, - { - "property": "range", - "label": { - "text": { - "zh_CN": "时间范围,包括开始时间与结束时间。 开始时间必须是周起始日,结束时间必须是周结束日,且时间跨度不能超过两个月。" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - } - ] - }, + "description": { + "zh_CN": "基础信息" + }, + "collapse": { + "number": 6, + "text": { + "zh_CN": "显示更多" + } + }, + "content": [ + { + "property": "modelValue", + "label": { + "text": { + "zh_CN": "选中项绑定值" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaDatePicker", + "props": {} + } + }, + { + "property": "range", + "label": { + "text": { + "zh_CN": "时间范围,包括开始时间与结束时间。 开始时间必须是周起始日,结束时间必须是周结束日,且时间跨度不能超过两个月。" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + } + ] + } + ], "events": { "onUpdate:modelValue": { "label": { @@ -13208,124 +13268,126 @@ "styles": true, "isContainer": false, "isModal": false, - "isPopper": false, - "nestingRule": { - "childWhitelist": "", - "parentWhitelist": "", - "descendantBlacklist": "", - "ancestorWhitelist": "" - }, - "isNullNode": false, - "isLayout": false, - "rootSelector": "", - "shortcuts": { - "properties": ["header", "footer", "bodyStyle", "bodyClass", "shadow"] - }, - "contextMenu": { - "actions": ["copy", "remove", "insert", "updateAttr", "bindEevent", "createBlock"], - "disable": [] - }, - "invalidity": [""], - "clickCapture": true, - "framework": "Vue" - }, - "schema": { - "properties": { - "label": { - "zh_CN": "基础信息" - }, - "description": { - "zh_CN": "基础信息" - }, - "collapse": { - "number": 6, - "text": { - "zh_CN": "显示更多" - } - }, - "content": [ - { - "property": "header", - "label": { - "text": { - "zh_CN": "卡片的标题 你既可以通过设置 header 来修改标题,也可以通过 slot#header 传入 DOM 节点" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "footer", - "label": { - "text": { - "zh_CN": "卡片页脚。 你既可以通过设置 footer 来修改卡片底部内容,也可以通过 slot#footer 传入 DOM 节点" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "bodyStyle", - "label": { - "text": { - "zh_CN": "body 的 CSS 样式" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "bodyClass", - "label": { - "text": { - "zh_CN": "body 的自定义类名" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "shadow", - "label": { - "text": { - "zh_CN": "卡片阴影显示时机" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - } - ] + "isPopper": false, + "nestingRule": { + "childWhitelist": "", + "parentWhitelist": "", + "descendantBlacklist": "", + "ancestorWhitelist": "" + }, + "isNullNode": false, + "isLayout": false, + "rootSelector": "", + "shortcuts": { + "properties": ["header", "footer", "bodyStyle", "bodyClass", "shadow"] + }, + "contextMenu": { + "actions": ["copy", "remove", "insert", "updateAttr", "bindEevent", "createBlock"], + "disable": [] }, + "invalidity": [""], + "clickCapture": true, + "framework": "Vue" + }, + "schema": { + "properties": [ + { + "label": { + "zh_CN": "基础信息" + }, + "description": { + "zh_CN": "基础信息" + }, + "collapse": { + "number": 6, + "text": { + "zh_CN": "显示更多" + } + }, + "content": [ + { + "property": "header", + "label": { + "text": { + "zh_CN": "卡片的标题 你既可以通过设置 header 来修改标题,也可以通过 slot#header 传入 DOM 节点" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "footer", + "label": { + "text": { + "zh_CN": "卡片页脚。 你既可以通过设置 footer 来修改卡片底部内容,也可以通过 slot#footer 传入 DOM 节点" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "bodyStyle", + "label": { + "text": { + "zh_CN": "body 的 CSS 样式" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "bodyClass", + "label": { + "text": { + "zh_CN": "body 的自定义类名" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "shadow", + "label": { + "text": { + "zh_CN": "卡片阴影显示时机" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + } + ] + } + ], "events": {}, "slots": { "header": { @@ -13414,230 +13476,232 @@ "framework": "Vue" }, "schema": { - "properties": { - "label": { - "zh_CN": "基础信息" - }, - "description": { - "zh_CN": "基础信息" - }, - "collapse": { - "number": 6, - "text": { - "zh_CN": "显示更多" - } - }, - "content": [ - { - "property": "initialIndex", - "label": { - "text": { - "zh_CN": "初始状态激活的幻灯片的索引,从 0 开始" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - }, - { - "property": "height", - "label": { - "text": { - "zh_CN": "carousel 的高度" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "trigger", - "label": { - "text": { - "zh_CN": "指示器的触发方式" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "autoplay", - "label": { - "text": { - "zh_CN": "是否自动切换" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "interval", - "label": { - "text": { - "zh_CN": "自动切换的时间间隔,单位为毫秒" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - }, - { - "property": "indicatorPosition", - "label": { - "text": { - "zh_CN": "指示器的位置" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "arrow", - "label": { - "text": { - "zh_CN": "切换箭头的显示时机" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "type", - "label": { - "text": { - "zh_CN": "carousel 的类型" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "cardScale", - "label": { - "text": { - "zh_CN": "当 type 为 card时,二级卡的缩放大小" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - }, - { - "property": "loop", - "label": { - "text": { - "zh_CN": "是否循环显示" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "direction", - "label": { - "text": { - "zh_CN": "展示的方向" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "pauseOnHover", - "label": { - "text": { - "zh_CN": "鼠标悬浮时暂停自动切换" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } + "properties": [ + { + "label": { + "zh_CN": "基础信息" }, - { - "property": "motionBlur", - "label": { - "text": { - "zh_CN": "添加动态模糊以给走马灯注入活力和流畅性。" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - } - ] - }, + "description": { + "zh_CN": "基础信息" + }, + "collapse": { + "number": 6, + "text": { + "zh_CN": "显示更多" + } + }, + "content": [ + { + "property": "initialIndex", + "label": { + "text": { + "zh_CN": "初始状态激活的幻灯片的索引,从 0 开始" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "height", + "label": { + "text": { + "zh_CN": "carousel 的高度" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "trigger", + "label": { + "text": { + "zh_CN": "指示器的触发方式" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "autoplay", + "label": { + "text": { + "zh_CN": "是否自动切换" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "interval", + "label": { + "text": { + "zh_CN": "自动切换的时间间隔,单位为毫秒" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "indicatorPosition", + "label": { + "text": { + "zh_CN": "指示器的位置" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "arrow", + "label": { + "text": { + "zh_CN": "切换箭头的显示时机" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "type", + "label": { + "text": { + "zh_CN": "carousel 的类型" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "cardScale", + "label": { + "text": { + "zh_CN": "当 type 为 card时,二级卡的缩放大小" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "loop", + "label": { + "text": { + "zh_CN": "是否循环显示" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "direction", + "label": { + "text": { + "zh_CN": "展示的方向" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "pauseOnHover", + "label": { + "text": { + "zh_CN": "鼠标悬浮时暂停自动切换" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "motionBlur", + "label": { + "text": { + "zh_CN": "添加动态模糊以给走马灯注入活力和流畅性。" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + } + ] + } + ], "events": { "onChange": { "label": { @@ -13710,54 +13774,56 @@ "framework": "Vue" }, "schema": { - "properties": { - "label": { - "zh_CN": "基础信息" - }, - "description": { - "zh_CN": "基础信息" - }, - "collapse": { - "number": 6, - "text": { - "zh_CN": "显示更多" - } - }, - "content": [ - { - "property": "accordion", - "label": { - "text": { - "zh_CN": "是否手风琴模式" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } + "properties": [ + { + "label": { + "zh_CN": "基础信息" }, - { - "property": "modelValue", - "label": { - "text": { - "zh_CN": "当前活动面板,在手风琴模式下其类型是string,在其他模式下是array" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - } - ] - }, + "description": { + "zh_CN": "基础信息" + }, + "collapse": { + "number": 6, + "text": { + "zh_CN": "显示更多" + } + }, + "content": [ + { + "property": "accordion", + "label": { + "text": { + "zh_CN": "是否手风琴模式" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "modelValue", + "label": { + "text": { + "zh_CN": "当前活动面板,在手风琴模式下其类型是string,在其他模式下是array" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + } + ] + } + ], "events": { "onUpdate:modelValue": { "label": { @@ -13844,118 +13910,120 @@ "framework": "Vue" }, "schema": { - "properties": { - "label": { - "zh_CN": "基础信息" - }, - "description": { - "zh_CN": "基础信息" - }, - "collapse": { - "number": 6, - "text": { - "zh_CN": "显示更多" - } - }, - "content": [ - { - "property": "border", - "label": { - "text": { - "zh_CN": "是否带有边框" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "column", - "label": { - "text": { - "zh_CN": "一行 Descriptions Item 的数量" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - }, - { - "property": "direction", - "label": { - "text": { - "zh_CN": "排列的方向" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "size", - "label": { - "text": { - "zh_CN": "列表的尺寸" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "title", - "label": { - "text": { - "zh_CN": "标题文本,显示在左上方" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } + "properties": [ + { + "label": { + "zh_CN": "基础信息" }, - { - "property": "extra", - "label": { - "text": { - "zh_CN": "操作区文本,显示在右上方" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - } - ] - }, + "description": { + "zh_CN": "基础信息" + }, + "collapse": { + "number": 6, + "text": { + "zh_CN": "显示更多" + } + }, + "content": [ + { + "property": "border", + "label": { + "text": { + "zh_CN": "是否带有边框" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "column", + "label": { + "text": { + "zh_CN": "一行 Descriptions Item 的数量" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "direction", + "label": { + "text": { + "zh_CN": "排列的方向" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "size", + "label": { + "text": { + "zh_CN": "列表的尺寸" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "title", + "label": { + "text": { + "zh_CN": "标题文本,显示在左上方" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "extra", + "label": { + "text": { + "zh_CN": "操作区文本,显示在右上方" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + } + ] + } + ], "events": {}, "slots": { "default": { @@ -14038,70 +14106,72 @@ "framework": "Vue" }, "schema": { - "properties": { - "label": { - "zh_CN": "基础信息" - }, - "description": { - "zh_CN": "基础信息" - }, - "collapse": { - "number": 6, - "text": { - "zh_CN": "显示更多" - } - }, - "content": [ - { - "property": "image", - "label": { - "text": { - "zh_CN": "empty 组件的图像地址" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "imageSize", - "label": { - "text": { - "zh_CN": "empty 组件的图像尺寸(宽度)" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } + "properties": [ + { + "label": { + "zh_CN": "基础信息" }, - { - "property": "description", - "label": { - "text": { - "zh_CN": "empty 组件的描述信息" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - } - ] - }, + "description": { + "zh_CN": "基础信息" + }, + "collapse": { + "number": 6, + "text": { + "zh_CN": "显示更多" + } + }, + "content": [ + { + "property": "image", + "label": { + "text": { + "zh_CN": "empty 组件的图像地址" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "imageSize", + "label": { + "text": { + "zh_CN": "empty 组件的图像尺寸(宽度)" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "description", + "label": { + "text": { + "zh_CN": "empty 组件的描述信息" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + } + ] + } + ], "events": {}, "slots": { "description": { @@ -14158,313 +14228,315 @@ "nestingRule": { "childWhitelist": "", "parentWhitelist": "", - "descendantBlacklist": "", - "ancestorWhitelist": "" - }, - "isNullNode": false, - "isLayout": false, - "rootSelector": "", - "shortcuts": { - "properties": [ - "hideOnClickModal", - "src", - "fit", - "loading", - "lazy", - "scrollContainer", - "previewSrcList", - "previewTeleported", - "zIndex", - "initialIndex", - "infinite", - "closeOnPressEscape", - "zoomRate", - "minScale", - "maxScale", - "crossorigin" - ] - }, - "contextMenu": { - "actions": ["copy", "remove", "insert", "updateAttr", "bindEevent", "createBlock"], - "disable": [] - }, - "invalidity": [""], - "clickCapture": true, - "framework": "Vue" - }, - "schema": { - "properties": { - "label": { - "zh_CN": "基础信息" - }, - "description": { - "zh_CN": "基础信息" - }, - "collapse": { - "number": 6, - "text": { - "zh_CN": "显示更多" - } - }, - "content": [ - { - "property": "hideOnClickModal", - "label": { - "text": { - "zh_CN": "当开启 preview 功能时,是否可以通过点击遮罩层关闭 preview" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "src", - "label": { - "text": { - "zh_CN": "图片源地址,同原生属性一致" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "fit", - "label": { - "text": { - "zh_CN": "确定图片如何适应容器框,同原生 object-fit" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "loading", - "label": { - "text": { - "zh_CN": "浏览器加载图像的策略,和 浏览器原生能力一致" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "lazy", - "label": { - "text": { - "zh_CN": "是否使用懒加载" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "scrollContainer", - "label": { - "text": { - "zh_CN": "开启懒加载功能后,监听 scroll 事件的容器 默认情况下,开启懒加载功能后,监听 scroll 事件的容器" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "previewSrcList", - "label": { - "text": { - "zh_CN": "开启图片预览功能" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "previewTeleported", - "label": { - "text": { - "zh_CN": "image-viewer 是否插入至 body 元素上。 嵌套的父元素属性会发生修改时应该将此属性设置为 true" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "zIndex", - "label": { - "text": { - "zh_CN": "设置图片预览的 z-index" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - }, - { - "property": "initialIndex", - "label": { - "text": { - "zh_CN": "初始预览图像索引,小于 url-list 的长度" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - }, - { - "property": "infinite", - "label": { - "text": { - "zh_CN": "是否可以无限循环预览" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "closeOnPressEscape", - "label": { - "text": { - "zh_CN": "是否可以通过按下 ESC 关闭 Image Viewer" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "zoomRate", - "label": { - "text": { - "zh_CN": "图像查看器缩放事件的缩放速率。" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - }, - { - "property": "minScale", - "label": { - "text": { - "zh_CN": "图像查看器缩放事件的最小缩放比例" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - }, - { - "property": "maxScale", - "label": { - "text": { - "zh_CN": "图像查看器缩放事件的最大缩放比例" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - }, - { - "property": "crossorigin", - "label": { - "text": { - "zh_CN": "原生属性 crossorigin" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - } + "descendantBlacklist": "", + "ancestorWhitelist": "" + }, + "isNullNode": false, + "isLayout": false, + "rootSelector": "", + "shortcuts": { + "properties": [ + "hideOnClickModal", + "src", + "fit", + "loading", + "lazy", + "scrollContainer", + "previewSrcList", + "previewTeleported", + "zIndex", + "initialIndex", + "infinite", + "closeOnPressEscape", + "zoomRate", + "minScale", + "maxScale", + "crossorigin" ] }, + "contextMenu": { + "actions": ["copy", "remove", "insert", "updateAttr", "bindEevent", "createBlock"], + "disable": [] + }, + "invalidity": [""], + "clickCapture": true, + "framework": "Vue" + }, + "schema": { + "properties": [ + { + "label": { + "zh_CN": "基础信息" + }, + "description": { + "zh_CN": "基础信息" + }, + "collapse": { + "number": 6, + "text": { + "zh_CN": "显示更多" + } + }, + "content": [ + { + "property": "hideOnClickModal", + "label": { + "text": { + "zh_CN": "当开启 preview 功能时,是否可以通过点击遮罩层关闭 preview" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "src", + "label": { + "text": { + "zh_CN": "图片源地址,同原生属性一致" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "fit", + "label": { + "text": { + "zh_CN": "确定图片如何适应容器框,同原生 object-fit" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "loading", + "label": { + "text": { + "zh_CN": "浏览器加载图像的策略,和 浏览器原生能力一致" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "lazy", + "label": { + "text": { + "zh_CN": "是否使用懒加载" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "scrollContainer", + "label": { + "text": { + "zh_CN": "开启懒加载功能后,监听 scroll 事件的容器 默认情况下,开启懒加载功能后,监听 scroll 事件的容器" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "previewSrcList", + "label": { + "text": { + "zh_CN": "开启图片预览功能" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "previewTeleported", + "label": { + "text": { + "zh_CN": "image-viewer 是否插入至 body 元素上。 嵌套的父元素属性会发生修改时应该将此属性设置为 true" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "zIndex", + "label": { + "text": { + "zh_CN": "设置图片预览的 z-index" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "initialIndex", + "label": { + "text": { + "zh_CN": "初始预览图像索引,小于 url-list 的长度" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "infinite", + "label": { + "text": { + "zh_CN": "是否可以无限循环预览" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "closeOnPressEscape", + "label": { + "text": { + "zh_CN": "是否可以通过按下 ESC 关闭 Image Viewer" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "zoomRate", + "label": { + "text": { + "zh_CN": "图像查看器缩放事件的缩放速率。" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "minScale", + "label": { + "text": { + "zh_CN": "图像查看器缩放事件的最小缩放比例" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "maxScale", + "label": { + "text": { + "zh_CN": "图像查看器缩放事件的最大缩放比例" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "crossorigin", + "label": { + "text": { + "zh_CN": "原生属性 crossorigin" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + } + ] + } + ], "events": { "onLoad": { "label": { @@ -14682,358 +14754,360 @@ "framework": "Vue" }, "schema": { - "properties": { - "label": { - "zh_CN": "基础信息" - }, - "description": { - "zh_CN": "基础信息" - }, - "collapse": { - "number": 6, - "text": { - "zh_CN": "显示更多" - } - }, - "content": [ - { - "property": "pageSize", - "label": { - "text": { - "zh_CN": "每页显示条目个数" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - }, - { - "property": "defaultPageSize", - "label": { - "text": { - "zh_CN": "每页默认的条目个数,不设置时默认为10" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - }, - { - "property": "total", - "label": { - "text": { - "zh_CN": "总条目数" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - }, - { - "property": "pageCount", - "label": { - "text": { - "zh_CN": "总页数, total 和 page-count 设置任意一个就可以达到显示页码的功能;如果要支持 page-sizes 的更改,则需要使用 total 属性" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - }, - { - "property": "pagerCount", - "label": { - "text": { - "zh_CN": "设置最大页码按钮数。 页码按钮的数量,当总页数超过该值时会折叠" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - }, - { - "property": "currentPage", - "label": { - "text": { - "zh_CN": "当前页数" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - }, - { - "property": "defaultCurrentPage", - "label": { - "text": { - "zh_CN": "当前页数的默认初始值,不设置时默认为 1" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - }, - { - "property": "layout", - "label": { - "text": { - "zh_CN": "组件布局,子组件名用逗号分隔" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "pageSizes", - "label": { - "text": { - "zh_CN": "每页显示个数选择器的选项设置" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "popperClass", - "label": { - "text": { - "zh_CN": "每页显示个数选择器的下拉框类名" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "prevText", - "label": { - "text": { - "zh_CN": "替代图标显示的上一页文字" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "prevIcon", - "label": { - "text": { - "zh_CN": "上一页的图标, 比 prev-text 优先级更高" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "nextText", - "label": { - "text": { - "zh_CN": "替代图标显示的下一页文字" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "nextIcon", - "label": { - "text": { - "zh_CN": "下一页的图标, 比 next-text 优先级更低" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "teleported", - "label": { - "text": { - "zh_CN": "是否将下拉菜单teleport至 body" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "small", - "label": { - "text": { - "zh_CN": "是否使用小型分页样式" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "size", - "label": { - "text": { - "zh_CN": "分页大小" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "background", - "label": { - "text": { - "zh_CN": "是否为分页按钮添加背景色" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "disabled", - "label": { - "text": { - "zh_CN": "是否禁用分页" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "hideOnSinglePage", - "label": { - "text": { - "zh_CN": "只有一页时是否隐藏" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } + "properties": [ + { + "label": { + "zh_CN": "基础信息" }, - { - "property": "appendSizeTo", - "label": { - "text": { - "zh_CN": "下拉框挂载到哪个 DOM 元素" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - } - ] - }, + "description": { + "zh_CN": "基础信息" + }, + "collapse": { + "number": 6, + "text": { + "zh_CN": "显示更多" + } + }, + "content": [ + { + "property": "pageSize", + "label": { + "text": { + "zh_CN": "每页显示条目个数" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "defaultPageSize", + "label": { + "text": { + "zh_CN": "每页默认的条目个数,不设置时默认为10" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "total", + "label": { + "text": { + "zh_CN": "总条目数" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "pageCount", + "label": { + "text": { + "zh_CN": "总页数, total 和 page-count 设置任意一个就可以达到显示页码的功能;如果要支持 page-sizes 的更改,则需要使用 total 属性" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "pagerCount", + "label": { + "text": { + "zh_CN": "设置最大页码按钮数。 页码按钮的数量,当总页数超过该值时会折叠" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "currentPage", + "label": { + "text": { + "zh_CN": "当前页数" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "defaultCurrentPage", + "label": { + "text": { + "zh_CN": "当前页数的默认初始值,不设置时默认为 1" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "layout", + "label": { + "text": { + "zh_CN": "组件布局,子组件名用逗号分隔" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "pageSizes", + "label": { + "text": { + "zh_CN": "每页显示个数选择器的选项设置" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "popperClass", + "label": { + "text": { + "zh_CN": "每页显示个数选择器的下拉框类名" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "prevText", + "label": { + "text": { + "zh_CN": "替代图标显示的上一页文字" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "prevIcon", + "label": { + "text": { + "zh_CN": "上一页的图标, 比 prev-text 优先级更高" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "nextText", + "label": { + "text": { + "zh_CN": "替代图标显示的下一页文字" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "nextIcon", + "label": { + "text": { + "zh_CN": "下一页的图标, 比 next-text 优先级更低" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "teleported", + "label": { + "text": { + "zh_CN": "是否将下拉菜单teleport至 body" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "small", + "label": { + "text": { + "zh_CN": "是否使用小型分页样式" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "size", + "label": { + "text": { + "zh_CN": "分页大小" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "background", + "label": { + "text": { + "zh_CN": "是否为分页按钮添加背景色" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "disabled", + "label": { + "text": { + "zh_CN": "是否禁用分页" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "hideOnSinglePage", + "label": { + "text": { + "zh_CN": "只有一页时是否隐藏" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "appendSizeTo", + "label": { + "text": { + "zh_CN": "下拉框挂载到哪个 DOM 元素" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + } + ] + } + ], "events": { "onChange": { "label": { @@ -15130,246 +15204,248 @@ "framework": "Vue" }, "schema": { - "properties": { - "label": { - "zh_CN": "基础信息" - }, - "description": { - "zh_CN": "基础信息" - }, - "collapse": { - "number": 6, - "text": { - "zh_CN": "显示更多" - } - }, - "content": [ - { - "property": "type", - "label": { - "text": { - "zh_CN": "进度条类型" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "percentage", - "label": { - "text": { - "zh_CN": "percentage" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - }, - { - "property": "status", - "label": { - "text": { - "zh_CN": "进度条当前状态" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "indeterminate", - "label": { - "text": { - "zh_CN": "是否为动画进度条" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "duration", - "label": { - "text": { - "zh_CN": "控制动画进度条速度和条纹进度条流动速度" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - }, - { - "property": "strokeWidth", - "label": { - "text": { - "zh_CN": "进度条的宽度" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - }, - { - "property": "strokeLinecap", - "label": { - "text": { - "zh_CN": "circle/dashboard 类型路径两端的形状" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "textInside", - "label": { - "text": { - "zh_CN": "进度条显示文字内置在进度条内(仅 type 为 'line' 时可用)" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "width", - "label": { - "text": { - "zh_CN": "环形进度条画布宽度(只在 type 为 circle 或 dashboard 时可用)" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - }, - { - "property": "showText", - "label": { - "text": { - "zh_CN": "是否显示进度条文字内容" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "color", - "label": { - "text": { - "zh_CN": "进度条背景色 (会覆盖 status 状态颜色)" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "striped", - "label": { - "text": { - "zh_CN": "在进度条上增加条纹" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "stripedFlow", - "label": { - "text": { - "zh_CN": "让进度条上的条纹流动起来" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } + "properties": [ + { + "label": { + "zh_CN": "基础信息" }, - { - "property": "format", - "label": { - "text": { - "zh_CN": "指定进度条文字内容" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - } - ] - }, + "description": { + "zh_CN": "基础信息" + }, + "collapse": { + "number": 6, + "text": { + "zh_CN": "显示更多" + } + }, + "content": [ + { + "property": "type", + "label": { + "text": { + "zh_CN": "进度条类型" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "percentage", + "label": { + "text": { + "zh_CN": "percentage" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "status", + "label": { + "text": { + "zh_CN": "进度条当前状态" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "indeterminate", + "label": { + "text": { + "zh_CN": "是否为动画进度条" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "duration", + "label": { + "text": { + "zh_CN": "控制动画进度条速度和条纹进度条流动速度" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "strokeWidth", + "label": { + "text": { + "zh_CN": "进度条的宽度" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "strokeLinecap", + "label": { + "text": { + "zh_CN": "circle/dashboard 类型路径两端的形状" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "textInside", + "label": { + "text": { + "zh_CN": "进度条显示文字内置在进度条内(仅 type 为 'line' 时可用)" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "width", + "label": { + "text": { + "zh_CN": "环形进度条画布宽度(只在 type 为 circle 或 dashboard 时可用)" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "showText", + "label": { + "text": { + "zh_CN": "是否显示进度条文字内容" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "color", + "label": { + "text": { + "zh_CN": "进度条背景色 (会覆盖 status 状态颜色)" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "striped", + "label": { + "text": { + "zh_CN": "在进度条上增加条纹" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "stripedFlow", + "label": { + "text": { + "zh_CN": "让进度条上的条纹流动起来" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "format", + "label": { + "text": { + "zh_CN": "指定进度条文字内容" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + } + ] + } + ], "events": {}, "slots": { "default": { @@ -15436,70 +15512,72 @@ "framework": "Vue" }, "schema": { - "properties": { - "label": { - "zh_CN": "基础信息" - }, - "description": { - "zh_CN": "基础信息" - }, - "collapse": { - "number": 6, - "text": { - "zh_CN": "显示更多" - } - }, - "content": [ - { - "property": "title", - "label": { - "text": { - "zh_CN": "result 组件的标题" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "subTitle", - "label": { - "text": { - "zh_CN": "result 组件的副标题" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } + "properties": [ + { + "label": { + "zh_CN": "基础信息" }, - { - "property": "icon", - "label": { - "text": { - "zh_CN": "result 组件的图标类型" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - } - ] - }, + "description": { + "zh_CN": "基础信息" + }, + "collapse": { + "number": 6, + "text": { + "zh_CN": "显示更多" + } + }, + "content": [ + { + "property": "title", + "label": { + "text": { + "zh_CN": "result 组件的标题" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "subTitle", + "label": { + "text": { + "zh_CN": "result 组件的副标题" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "icon", + "label": { + "text": { + "zh_CN": "result 组件的图标类型" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + } + ] + } + ], "events": {}, "slots": { "title": { @@ -15556,120 +15634,122 @@ "nestingRule": { "childWhitelist": "", "parentWhitelist": "", - "descendantBlacklist": "", - "ancestorWhitelist": "" - }, - "isNullNode": false, - "isLayout": false, - "rootSelector": "", - "shortcuts": { - "properties": ["animated", "count", "rows", "loading", "throttle"] - }, - "contextMenu": { - "actions": ["copy", "remove", "insert", "updateAttr", "bindEevent", "createBlock"], - "disable": [] - }, - "invalidity": [""], - "clickCapture": true, - "framework": "Vue" - }, - "schema": { - "properties": { - "label": { - "zh_CN": "基础信息" - }, - "description": { - "zh_CN": "基础信息" - }, - "collapse": { - "number": 6, - "text": { - "zh_CN": "显示更多" - } - }, - "content": [ - { - "property": "animated", - "label": { - "text": { - "zh_CN": "是否使用动画" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "count", - "label": { - "text": { - "zh_CN": "渲染多少个 template, 建议使用尽可能小的数字" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - }, - { - "property": "rows", - "label": { - "text": { - "zh_CN": "骨架屏段落数量" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - }, - { - "property": "loading", - "label": { - "text": { - "zh_CN": "是否显示加载结束后的 DOM 结构" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "throttle", - "label": { - "text": { - "zh_CN": "渲染延迟(以毫秒为单位)" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - } - ] + "descendantBlacklist": "", + "ancestorWhitelist": "" + }, + "isNullNode": false, + "isLayout": false, + "rootSelector": "", + "shortcuts": { + "properties": ["animated", "count", "rows", "loading", "throttle"] }, + "contextMenu": { + "actions": ["copy", "remove", "insert", "updateAttr", "bindEevent", "createBlock"], + "disable": [] + }, + "invalidity": [""], + "clickCapture": true, + "framework": "Vue" + }, + "schema": { + "properties": [ + { + "label": { + "zh_CN": "基础信息" + }, + "description": { + "zh_CN": "基础信息" + }, + "collapse": { + "number": 6, + "text": { + "zh_CN": "显示更多" + } + }, + "content": [ + { + "property": "animated", + "label": { + "text": { + "zh_CN": "是否使用动画" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "count", + "label": { + "text": { + "zh_CN": "渲染多少个 template, 建议使用尽可能小的数字" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "rows", + "label": { + "text": { + "zh_CN": "骨架屏段落数量" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "loading", + "label": { + "text": { + "zh_CN": "是否显示加载结束后的 DOM 结构" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "throttle", + "label": { + "text": { + "zh_CN": "渲染延迟(以毫秒为单位)" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + } + ] + } + ], "events": {}, "slots": {} } @@ -15771,694 +15851,696 @@ "framework": "Vue" }, "schema": { - "properties": { - "label": { - "zh_CN": "基础信息" - }, - "description": { - "zh_CN": "基础信息" - }, - "collapse": { - "number": 6, - "text": { - "zh_CN": "显示更多" - } - }, - "content": [ - { - "property": "data", - "label": { - "text": { - "zh_CN": "表数据" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "size", - "label": { - "text": { - "zh_CN": "Table 的尺寸" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "width", - "label": { - "text": { - "zh_CN": "对应列的宽度" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "height", - "label": { - "text": { - "zh_CN": "table 的高度。 默认为自动高度。 如果 height 为 number 类型,单位 px;如果 height 为 string 类型,则这个高度会设置为 Table 的 style.height 的值,Table 的高度会受控于外部样式。" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "maxHeight", - "label": { - "text": { - "zh_CN": "table 的最大高度。 合法的值为数字或者单位为 px 的高度。" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "fit", - "label": { - "text": { - "zh_CN": "列的宽度是否自撑开" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "stripe", - "label": { - "text": { - "zh_CN": "是否为斑马纹 table" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "border", - "label": { - "text": { - "zh_CN": "是否带有纵向边框" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "rowKey", - "label": { - "text": { - "zh_CN": "行数据的 Key,用来优化 Table 的渲染; 在使用reserve-selection功能与显示树形数据时,该属性是必填的。 类型为 String 时,支持多层访问:user.info.id,但不支持 user.info[0].id,此种情况请使用 Function。" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "showHeader", - "label": { - "text": { - "zh_CN": "是否显示表头" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "showSummary", - "label": { - "text": { - "zh_CN": "是否在表尾显示合计行" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "sumText", - "label": { - "text": { - "zh_CN": "显示摘要行第一列的文本" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "summaryMethod", - "label": { - "text": { - "zh_CN": "自定义的合计计算方法" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "rowClassName", - "label": { - "text": { - "zh_CN": "行的 className 的回调方法,也可以使用字符串为所有行设置一个固定的 className。" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "rowStyle", - "label": { - "text": { - "zh_CN": "行的 style 的回调方法,也可以使用一个固定的 Object 为所有行设置一样的 Style。" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "cellClassName", - "label": { - "text": { - "zh_CN": "单元格的 className 的回调方法,也可以使用字符串为所有单元格设置一个固定的 className。" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "cellStyle", - "label": { - "text": { - "zh_CN": "单元格的 style 的回调方法,也可以使用一个固定的 Object 为所有单元格设置一样的 Style。" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "headerRowClassName", - "label": { - "text": { - "zh_CN": "表头行的 className 的回调方法,也可以使用字符串为所有表头行设置一个固定的 className。" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "headerRowStyle", - "label": { - "text": { - "zh_CN": "表头行的 style 的回调方法,也可以使用一个固定的 Object 为所有表头行设置一样的 Style。" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "headerCellClassName", - "label": { - "text": { - "zh_CN": "表头单元格的 className 的回调方法,也可以使用字符串为所有表头单元格设置一个固定的 className。" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "headerCellStyle", - "label": { - "text": { - "zh_CN": "表头单元格的 style 的回调方法,也可以使用一个固定的 Object 为所有表头单元格设置一样的 Style。" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "highlightCurrentRow", - "label": { - "text": { - "zh_CN": "是否要高亮当前行" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "currentRowKey", - "label": { - "text": { - "zh_CN": "当前行的 key,只写属性" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "emptyText", - "label": { - "text": { - "zh_CN": "空数据时显示的文本内容, 也可以通过 #empty 设置" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "expandRowKeys", - "label": { - "text": { - "zh_CN": "可以通过该属性设置 Table 目前的展开行,需要设置 row-key 属性才能使用,该属性为展开行的 keys 数组。" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "defaultExpandAll", - "label": { - "text": { - "zh_CN": "是否默认展开所有行,当 Table 包含展开行存在或者为树形表格时有效" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "defaultSort", - "label": { - "text": { - "zh_CN": "默认的排序列的 prop 和顺序。 它的 prop 属性指定默认的排序的列,order 指定默认排序的顺序" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "tooltipEffect", - "label": { - "text": { - "zh_CN": "溢出的 tooltip 的 effect" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "tooltipOptions", - "label": { - "text": { - "zh_CN": "溢出 tooltip 的选项,参见下述 tooltip 组件" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "spanMethod", - "label": { - "text": { - "zh_CN": "合并行或列的计算方法" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "selectOnIndeterminate", - "label": { - "text": { - "zh_CN": "在多选表格中,当仅有部分行被选中时,点击表头的多选框时的行为。 若为 true,则选中所有行;若为 false,则取消选择所有行" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "indent", - "label": { - "text": { - "zh_CN": "展示树形数据时,树节点的缩进" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - }, - { - "property": "treeProps", - "label": { - "text": { - "zh_CN": "渲染嵌套数据的配置选项" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "lazy", - "label": { - "text": { - "zh_CN": "是否懒加载子节点数据" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "load", - "label": { - "text": { - "zh_CN": "加载子节点数据的函数,lazy 为 true 时生效" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "className", - "label": { - "text": { - "zh_CN": "列的 className" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "tableLayout", - "label": { - "text": { - "zh_CN": "设置表格单元、行和列的布局方式" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "scrollbarAlwaysOn", - "label": { - "text": { - "zh_CN": "总是显示滚动条" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "flexible", - "label": { - "text": { - "zh_CN": "确保主轴的最小尺寸,以便不超过内容" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "showOverflowTooltip", - "label": { - "text": { - "zh_CN": "是否隐藏额外内容并在单元格悬停时使用 Tooltip 显示它们。这将影响全部列的展示,详请参考tooltip-options" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "appendFilterPanelTo", - "label": { - "text": { - "zh_CN": "挂载到哪个 DOM 元素" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } + "properties": [ + { + "label": { + "zh_CN": "基础信息" }, - { - "property": "scrollbarTabindex", - "label": { - "text": { - "zh_CN": "body 的滚动条的包裹容器 tabindex" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - } - ] - }, + "description": { + "zh_CN": "基础信息" + }, + "collapse": { + "number": 6, + "text": { + "zh_CN": "显示更多" + } + }, + "content": [ + { + "property": "data", + "label": { + "text": { + "zh_CN": "表数据" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "size", + "label": { + "text": { + "zh_CN": "Table 的尺寸" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "width", + "label": { + "text": { + "zh_CN": "对应列的宽度" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "height", + "label": { + "text": { + "zh_CN": "table 的高度。 默认为自动高度。 如果 height 为 number 类型,单位 px;如果 height 为 string 类型,则这个高度会设置为 Table 的 style.height 的值,Table 的高度会受控于外部样式。" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "maxHeight", + "label": { + "text": { + "zh_CN": "table 的最大高度。 合法的值为数字或者单位为 px 的高度。" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "fit", + "label": { + "text": { + "zh_CN": "列的宽度是否自撑开" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "stripe", + "label": { + "text": { + "zh_CN": "是否为斑马纹 table" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "border", + "label": { + "text": { + "zh_CN": "是否带有纵向边框" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "rowKey", + "label": { + "text": { + "zh_CN": "行数据的 Key,用来优化 Table 的渲染; 在使用reserve-selection功能与显示树形数据时,该属性是必填的。 类型为 String 时,支持多层访问:user.info.id,但不支持 user.info[0].id,此种情况请使用 Function。" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "showHeader", + "label": { + "text": { + "zh_CN": "是否显示表头" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "showSummary", + "label": { + "text": { + "zh_CN": "是否在表尾显示合计行" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "sumText", + "label": { + "text": { + "zh_CN": "显示摘要行第一列的文本" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "summaryMethod", + "label": { + "text": { + "zh_CN": "自定义的合计计算方法" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "rowClassName", + "label": { + "text": { + "zh_CN": "行的 className 的回调方法,也可以使用字符串为所有行设置一个固定的 className。" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "rowStyle", + "label": { + "text": { + "zh_CN": "行的 style 的回调方法,也可以使用一个固定的 Object 为所有行设置一样的 Style。" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "cellClassName", + "label": { + "text": { + "zh_CN": "单元格的 className 的回调方法,也可以使用字符串为所有单元格设置一个固定的 className。" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "cellStyle", + "label": { + "text": { + "zh_CN": "单元格的 style 的回调方法,也可以使用一个固定的 Object 为所有单元格设置一样的 Style。" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "headerRowClassName", + "label": { + "text": { + "zh_CN": "表头行的 className 的回调方法,也可以使用字符串为所有表头行设置一个固定的 className。" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "headerRowStyle", + "label": { + "text": { + "zh_CN": "表头行的 style 的回调方法,也可以使用一个固定的 Object 为所有表头行设置一样的 Style。" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "headerCellClassName", + "label": { + "text": { + "zh_CN": "表头单元格的 className 的回调方法,也可以使用字符串为所有表头单元格设置一个固定的 className。" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "headerCellStyle", + "label": { + "text": { + "zh_CN": "表头单元格的 style 的回调方法,也可以使用一个固定的 Object 为所有表头单元格设置一样的 Style。" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "highlightCurrentRow", + "label": { + "text": { + "zh_CN": "是否要高亮当前行" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "currentRowKey", + "label": { + "text": { + "zh_CN": "当前行的 key,只写属性" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "emptyText", + "label": { + "text": { + "zh_CN": "空数据时显示的文本内容, 也可以通过 #empty 设置" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "expandRowKeys", + "label": { + "text": { + "zh_CN": "可以通过该属性设置 Table 目前的展开行,需要设置 row-key 属性才能使用,该属性为展开行的 keys 数组。" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "defaultExpandAll", + "label": { + "text": { + "zh_CN": "是否默认展开所有行,当 Table 包含展开行存在或者为树形表格时有效" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "defaultSort", + "label": { + "text": { + "zh_CN": "默认的排序列的 prop 和顺序。 它的 prop 属性指定默认的排序的列,order 指定默认排序的顺序" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "tooltipEffect", + "label": { + "text": { + "zh_CN": "溢出的 tooltip 的 effect" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "tooltipOptions", + "label": { + "text": { + "zh_CN": "溢出 tooltip 的选项,参见下述 tooltip 组件" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "spanMethod", + "label": { + "text": { + "zh_CN": "合并行或列的计算方法" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "selectOnIndeterminate", + "label": { + "text": { + "zh_CN": "在多选表格中,当仅有部分行被选中时,点击表头的多选框时的行为。 若为 true,则选中所有行;若为 false,则取消选择所有行" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "indent", + "label": { + "text": { + "zh_CN": "展示树形数据时,树节点的缩进" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "treeProps", + "label": { + "text": { + "zh_CN": "渲染嵌套数据的配置选项" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "lazy", + "label": { + "text": { + "zh_CN": "是否懒加载子节点数据" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "load", + "label": { + "text": { + "zh_CN": "加载子节点数据的函数,lazy 为 true 时生效" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "className", + "label": { + "text": { + "zh_CN": "列的 className" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "tableLayout", + "label": { + "text": { + "zh_CN": "设置表格单元、行和列的布局方式" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "scrollbarAlwaysOn", + "label": { + "text": { + "zh_CN": "总是显示滚动条" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "flexible", + "label": { + "text": { + "zh_CN": "确保主轴的最小尺寸,以便不超过内容" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "showOverflowTooltip", + "label": { + "text": { + "zh_CN": "是否隐藏额外内容并在单元格悬停时使用 Tooltip 显示它们。这将影响全部列的展示,详请参考tooltip-options" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "appendFilterPanelTo", + "label": { + "text": { + "zh_CN": "挂载到哪个 DOM 元素" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "scrollbarTabindex", + "label": { + "text": { + "zh_CN": "body 的滚动条的包裹容器 tabindex" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + } + ] + } + ], "events": { "onSelect": { "label": { @@ -16509,172 +16591,174 @@ "styles": true, "isContainer": false, "isModal": false, - "isPopper": false, - "nestingRule": { - "childWhitelist": "", - "parentWhitelist": "", - "descendantBlacklist": "", - "ancestorWhitelist": "" - }, - "isNullNode": false, - "isLayout": false, - "rootSelector": "", - "shortcuts": { - "properties": ["type", "closable", "disableTransitions", "hit", "color", "size", "effect", "round"] - }, - "contextMenu": { - "actions": ["copy", "remove", "insert", "updateAttr", "bindEevent", "createBlock"], - "disable": [] - }, - "invalidity": [""], - "clickCapture": true, - "framework": "Vue" - }, - "schema": { - "properties": { - "label": { - "zh_CN": "基础信息" - }, - "description": { - "zh_CN": "基础信息" - }, - "collapse": { - "number": 6, - "text": { - "zh_CN": "显示更多" - } - }, - "content": [ - { - "property": "type", - "label": { - "text": { - "zh_CN": "Tag 的类型" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "closable", - "label": { - "text": { - "zh_CN": "是否可关闭" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "disableTransitions", - "label": { - "text": { - "zh_CN": "是否禁用渐变动画" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "hit", - "label": { - "text": { - "zh_CN": "是否有边框描边" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "color", - "label": { - "text": { - "zh_CN": "背景色" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "size", - "label": { - "text": { - "zh_CN": "Tag 的尺寸" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "effect", - "label": { - "text": { - "zh_CN": "Tag 的主题" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "round", - "label": { - "text": { - "zh_CN": "Tag 是否为圆形" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - } - ] + "isPopper": false, + "nestingRule": { + "childWhitelist": "", + "parentWhitelist": "", + "descendantBlacklist": "", + "ancestorWhitelist": "" + }, + "isNullNode": false, + "isLayout": false, + "rootSelector": "", + "shortcuts": { + "properties": ["type", "closable", "disableTransitions", "hit", "color", "size", "effect", "round"] + }, + "contextMenu": { + "actions": ["copy", "remove", "insert", "updateAttr", "bindEevent", "createBlock"], + "disable": [] }, + "invalidity": [""], + "clickCapture": true, + "framework": "Vue" + }, + "schema": { + "properties": [ + { + "label": { + "zh_CN": "基础信息" + }, + "description": { + "zh_CN": "基础信息" + }, + "collapse": { + "number": 6, + "text": { + "zh_CN": "显示更多" + } + }, + "content": [ + { + "property": "type", + "label": { + "text": { + "zh_CN": "Tag 的类型" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "closable", + "label": { + "text": { + "zh_CN": "是否可关闭" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "disableTransitions", + "label": { + "text": { + "zh_CN": "是否禁用渐变动画" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "hit", + "label": { + "text": { + "zh_CN": "是否有边框描边" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "color", + "label": { + "text": { + "zh_CN": "背景色" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "size", + "label": { + "text": { + "zh_CN": "Tag 的尺寸" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "effect", + "label": { + "text": { + "zh_CN": "Tag 的主题" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "round", + "label": { + "text": { + "zh_CN": "Tag 是否为圆形" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + } + ] + } + ], "events": { "onClose": { "label": { @@ -16835,230 +16919,232 @@ "framework": "Vue" }, "schema": { - "properties": { - "label": { - "zh_CN": "基础信息" - }, - "description": { - "zh_CN": "基础信息" - }, - "collapse": { - "number": 6, - "text": { - "zh_CN": "显示更多" - } - }, - "content": [ - { - "property": "modelValue", - "label": { - "text": { - "zh_CN": "打开引导" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "current", - "label": { - "text": { - "zh_CN": "当前值" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - }, - { - "property": "showArrow", - "label": { - "text": { - "zh_CN": "是否显示箭头" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "showClose", - "label": { - "text": { - "zh_CN": "是否显示关闭按钮" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "closeIcon", - "label": { - "text": { - "zh_CN": "自定义关闭图标,默认Close" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "placement", - "label": { - "text": { - "zh_CN": "引导卡片相对于目标元素的位置" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "contentStyle", - "label": { - "text": { - "zh_CN": "为content自定义样式" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "mask", - "label": { - "text": { - "zh_CN": "是否启用遮罩,通过自定义属性改变遮罩样式以及填充的颜色" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "zIndex", - "label": { - "text": { - "zh_CN": "Tour 的层级" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - }, - { - "property": "scrollIntoViewOptions", - "label": { - "text": { - "zh_CN": "是否支持当前元素滚动到视窗内,也可传入配置指定滚动视窗的相关参数" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "type", - "label": { - "text": { - "zh_CN": "类型,影响底色与文字颜色" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "closeOnPressEscape", - "label": { - "text": { - "zh_CN": "是否可以通过按下 ESC 关闭引导" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } + "properties": [ + { + "label": { + "zh_CN": "基础信息" }, - { - "property": "targetAreaClickable", - "label": { - "text": { - "zh_CN": "启用蒙层时,target 元素区域是否可以点击。" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - } - ] - }, + "description": { + "zh_CN": "基础信息" + }, + "collapse": { + "number": 6, + "text": { + "zh_CN": "显示更多" + } + }, + "content": [ + { + "property": "modelValue", + "label": { + "text": { + "zh_CN": "打开引导" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "current", + "label": { + "text": { + "zh_CN": "当前值" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "showArrow", + "label": { + "text": { + "zh_CN": "是否显示箭头" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "showClose", + "label": { + "text": { + "zh_CN": "是否显示关闭按钮" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "closeIcon", + "label": { + "text": { + "zh_CN": "自定义关闭图标,默认Close" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "placement", + "label": { + "text": { + "zh_CN": "引导卡片相对于目标元素的位置" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "contentStyle", + "label": { + "text": { + "zh_CN": "为content自定义样式" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "mask", + "label": { + "text": { + "zh_CN": "是否启用遮罩,通过自定义属性改变遮罩样式以及填充的颜色" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "zIndex", + "label": { + "text": { + "zh_CN": "Tour 的层级" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "scrollIntoViewOptions", + "label": { + "text": { + "zh_CN": "是否支持当前元素滚动到视窗内,也可传入配置指定滚动视窗的相关参数" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "type", + "label": { + "text": { + "zh_CN": "类型,影响底色与文字颜色" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "closeOnPressEscape", + "label": { + "text": { + "zh_CN": "是否可以通过按下 ESC 关闭引导" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "targetAreaClickable", + "label": { + "text": { + "zh_CN": "启用蒙层时,target 元素区域是否可以点击。" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + } + ] + } + ], "events": { "onUpdate:modelValue": { "label": { @@ -17133,489 +17219,491 @@ "screenshot": "", "tags": "", "keywords": "", - "dev_mode": "proCode", - "npm": { - "package": "element-plus", - "version": "2.7.8", - "script": "https://npm.onmicrosoft.cn/element-plus@2.4.2/dist/index.full.mjs", - "css": "https://npm.onmicrosoft.cn/element-plus@2.4.2/dist/index.css", - "dependencies": null, - "exportName": "ElTree", - "destructuring": true - }, - "group": "Data 数据展示", - "category": "element-plus", - "configure": { - "loop": true, - "condition": true, - "styles": true, - "isContainer": false, - "isModal": false, - "isPopper": false, - "nestingRule": { - "childWhitelist": "", - "parentWhitelist": "", - "descendantBlacklist": "", - "ancestorWhitelist": "" - }, - "isNullNode": false, - "isLayout": false, - "rootSelector": "", - "shortcuts": { - "properties": [ - "data", - "emptyText", - "renderAfterExpand", - "nodeKey", - "checkStrictly", - "defaultExpandAll", - "expandOnClickNode", - "checkOnClickNode", - "checkDescendants", - "autoExpandParent", - "defaultCheckedKeys", - "defaultExpandedKeys", - "currentNodeKey", - "renderContent", - "showCheckbox", - "draggable", - "allowDrag", - "allowDrop", - "props", - "lazy", - "highlightCurrent", - "load", - "filterNodeMethod", - "accordion", - "indent", - "icon" - ] - }, - "contextMenu": { - "actions": ["copy", "remove", "insert", "updateAttr", "bindEevent", "createBlock"], - "disable": [] - }, - "invalidity": [""], - "clickCapture": true, - "framework": "Vue" - }, - "schema": { - "properties": { - "label": { - "zh_CN": "基础信息" - }, - "description": { - "zh_CN": "基础信息" - }, - "collapse": { - "number": 6, - "text": { - "zh_CN": "显示更多" - } - }, - "content": [ - { - "property": "data", - "label": { - "text": { - "zh_CN": "展示数据" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "emptyText", - "label": { - "text": { - "zh_CN": "内容为空的时候展示的文本" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "renderAfterExpand", - "label": { - "text": { - "zh_CN": "是否在第一次展开某个树节点后才渲染其子节点" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "nodeKey", - "label": { - "text": { - "zh_CN": "每个树节点用来作为唯一标识的属性,整棵树应该是唯一的" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "checkStrictly", - "label": { - "text": { - "zh_CN": "在显示复选框的情况下,是否严格的遵循父子不互相关联的做法,默认为 false" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "defaultExpandAll", - "label": { - "text": { - "zh_CN": "是否默认展开所有节点" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "expandOnClickNode", - "label": { - "text": { - "zh_CN": "是否在点击节点的时候展开或者收缩节点, 默认值为 true,如果为 false,则只有点箭头图标的时候才会展开或者收缩节点。" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "checkOnClickNode", - "label": { - "text": { - "zh_CN": "是否在点击节点的时候选中节点,默认值为 false,即只有在点击复选框时才会选中节点。" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "autoExpandParent", - "label": { - "text": { - "zh_CN": "展开子节点的时候是否自动展开父节点" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "defaultCheckedKeys", - "label": { - "text": { - "zh_CN": "默认勾选的节点的 key 的数组" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "defaultExpandedKeys", - "label": { - "text": { - "zh_CN": "默认展开的节点的 key 的数组" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "currentNodeKey", - "label": { - "text": { - "zh_CN": "当前选中的节点" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "renderContent", - "label": { - "text": { - "zh_CN": "树节点的内容区的渲染 Function" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "showCheckbox", - "label": { - "text": { - "zh_CN": "节点是否可被选择" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "draggable", - "label": { - "text": { - "zh_CN": "是否开启拖拽节点功能" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "allowDrag", - "label": { - "text": { - "zh_CN": "判断节点能否被拖拽 如果返回 false ,节点不能被拖动" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "allowDrop", - "label": { - "text": { - "zh_CN": "拖拽时判定目标节点能否成为拖动目标位置。 如果返回 false ,拖动节点不能被拖放到目标节点。 type 参数有三种情况:'prev'、'inner' 和 'next',分别表示放置在目标节点前、插入至目标节点和放置在目标节点后" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "props", - "label": { - "text": { - "zh_CN": "配置选项,具体看下表" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "lazy", - "label": { - "text": { - "zh_CN": "是否懒加载子节点,需与 load 方法结合使用" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "highlightCurrent", - "label": { - "text": { - "zh_CN": "是否高亮当前选中节点,默认值是 false。" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "load", - "label": { - "text": { - "zh_CN": "加载子树数据的方法,仅当 lazy 属性为true 时生效" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "filterNodeMethod", - "label": { - "text": { - "zh_CN": "对树节点进行筛选时执行的方法, 返回 false 则表示这个节点会被隐藏" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "accordion", - "label": { - "text": { - "zh_CN": "是否每次只打开一个同级树节点展开" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "indent", - "label": { - "text": { - "zh_CN": "相邻级节点间的水平缩进,单位为像素" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - }, - { - "property": "icon", - "label": { - "text": { - "zh_CN": "自定义树节点图标组件" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - } + "dev_mode": "proCode", + "npm": { + "package": "element-plus", + "version": "2.7.8", + "script": "https://npm.onmicrosoft.cn/element-plus@2.4.2/dist/index.full.mjs", + "css": "https://npm.onmicrosoft.cn/element-plus@2.4.2/dist/index.css", + "dependencies": null, + "exportName": "ElTree", + "destructuring": true + }, + "group": "Data 数据展示", + "category": "element-plus", + "configure": { + "loop": true, + "condition": true, + "styles": true, + "isContainer": false, + "isModal": false, + "isPopper": false, + "nestingRule": { + "childWhitelist": "", + "parentWhitelist": "", + "descendantBlacklist": "", + "ancestorWhitelist": "" + }, + "isNullNode": false, + "isLayout": false, + "rootSelector": "", + "shortcuts": { + "properties": [ + "data", + "emptyText", + "renderAfterExpand", + "nodeKey", + "checkStrictly", + "defaultExpandAll", + "expandOnClickNode", + "checkOnClickNode", + "checkDescendants", + "autoExpandParent", + "defaultCheckedKeys", + "defaultExpandedKeys", + "currentNodeKey", + "renderContent", + "showCheckbox", + "draggable", + "allowDrag", + "allowDrop", + "props", + "lazy", + "highlightCurrent", + "load", + "filterNodeMethod", + "accordion", + "indent", + "icon" ] }, + "contextMenu": { + "actions": ["copy", "remove", "insert", "updateAttr", "bindEevent", "createBlock"], + "disable": [] + }, + "invalidity": [""], + "clickCapture": true, + "framework": "Vue" + }, + "schema": { + "properties": [ + { + "label": { + "zh_CN": "基础信息" + }, + "description": { + "zh_CN": "基础信息" + }, + "collapse": { + "number": 6, + "text": { + "zh_CN": "显示更多" + } + }, + "content": [ + { + "property": "data", + "label": { + "text": { + "zh_CN": "展示数据" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "emptyText", + "label": { + "text": { + "zh_CN": "内容为空的时候展示的文本" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "renderAfterExpand", + "label": { + "text": { + "zh_CN": "是否在第一次展开某个树节点后才渲染其子节点" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "nodeKey", + "label": { + "text": { + "zh_CN": "每个树节点用来作为唯一标识的属性,整棵树应该是唯一的" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "checkStrictly", + "label": { + "text": { + "zh_CN": "在显示复选框的情况下,是否严格的遵循父子不互相关联的做法,默认为 false" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "defaultExpandAll", + "label": { + "text": { + "zh_CN": "是否默认展开所有节点" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "expandOnClickNode", + "label": { + "text": { + "zh_CN": "是否在点击节点的时候展开或者收缩节点, 默认值为 true,如果为 false,则只有点箭头图标的时候才会展开或者收缩节点。" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "checkOnClickNode", + "label": { + "text": { + "zh_CN": "是否在点击节点的时候选中节点,默认值为 false,即只有在点击复选框时才会选中节点。" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "autoExpandParent", + "label": { + "text": { + "zh_CN": "展开子节点的时候是否自动展开父节点" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "defaultCheckedKeys", + "label": { + "text": { + "zh_CN": "默认勾选的节点的 key 的数组" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "defaultExpandedKeys", + "label": { + "text": { + "zh_CN": "默认展开的节点的 key 的数组" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "currentNodeKey", + "label": { + "text": { + "zh_CN": "当前选中的节点" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "renderContent", + "label": { + "text": { + "zh_CN": "树节点的内容区的渲染 Function" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "showCheckbox", + "label": { + "text": { + "zh_CN": "节点是否可被选择" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "draggable", + "label": { + "text": { + "zh_CN": "是否开启拖拽节点功能" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "allowDrag", + "label": { + "text": { + "zh_CN": "判断节点能否被拖拽 如果返回 false ,节点不能被拖动" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "allowDrop", + "label": { + "text": { + "zh_CN": "拖拽时判定目标节点能否成为拖动目标位置。 如果返回 false ,拖动节点不能被拖放到目标节点。 type 参数有三种情况:'prev'、'inner' 和 'next',分别表示放置在目标节点前、插入至目标节点和放置在目标节点后" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "props", + "label": { + "text": { + "zh_CN": "配置选项,具体看下表" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "lazy", + "label": { + "text": { + "zh_CN": "是否懒加载子节点,需与 load 方法结合使用" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "highlightCurrent", + "label": { + "text": { + "zh_CN": "是否高亮当前选中节点,默认值是 false。" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "load", + "label": { + "text": { + "zh_CN": "加载子树数据的方法,仅当 lazy 属性为true 时生效" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "filterNodeMethod", + "label": { + "text": { + "zh_CN": "对树节点进行筛选时执行的方法, 返回 false 则表示这个节点会被隐藏" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "accordion", + "label": { + "text": { + "zh_CN": "是否每次只打开一个同级树节点展开" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "indent", + "label": { + "text": { + "zh_CN": "相邻级节点间的水平缩进,单位为像素" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "icon", + "label": { + "text": { + "zh_CN": "自定义树节点图标组件" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + } + ] + } + ], "events": { "onCheck": { "label": { @@ -17698,166 +17786,168 @@ "framework": "Vue" }, "schema": { - "properties": { - "label": { - "zh_CN": "基础信息" - }, - "description": { - "zh_CN": "基础信息" - }, - "collapse": { - "number": 6, - "text": { - "zh_CN": "显示更多" - } - }, - "content": [ - { - "property": "decimalSeparator", - "label": { - "text": { - "zh_CN": "设置小数点符号" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "groupSeparator", - "label": { - "text": { - "zh_CN": "设置千分位标识符" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "precision", - "label": { - "text": { - "zh_CN": "数字精度" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - }, - { - "property": "formatter", - "label": { - "text": { - "zh_CN": "自定义数字格式化" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "value", - "label": { - "text": { - "zh_CN": "数字内容" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - }, - { - "property": "prefix", - "label": { - "text": { - "zh_CN": "设置数字的前缀" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "suffix", - "label": { - "text": { - "zh_CN": "设置数字的后缀" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "title", - "label": { - "text": { - "zh_CN": "数字标题" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } + "properties": [ + { + "label": { + "zh_CN": "基础信息" }, - { - "property": "valueStyle", - "label": { - "text": { - "zh_CN": "数字样式" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - } - ] - }, + "description": { + "zh_CN": "基础信息" + }, + "collapse": { + "number": 6, + "text": { + "zh_CN": "显示更多" + } + }, + "content": [ + { + "property": "decimalSeparator", + "label": { + "text": { + "zh_CN": "设置小数点符号" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "groupSeparator", + "label": { + "text": { + "zh_CN": "设置千分位标识符" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "precision", + "label": { + "text": { + "zh_CN": "数字精度" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "formatter", + "label": { + "text": { + "zh_CN": "自定义数字格式化" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "value", + "label": { + "text": { + "zh_CN": "数字内容" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "prefix", + "label": { + "text": { + "zh_CN": "设置数字的前缀" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "suffix", + "label": { + "text": { + "zh_CN": "设置数字的后缀" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "title", + "label": { + "text": { + "zh_CN": "数字标题" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "valueStyle", + "label": { + "text": { + "zh_CN": "数字样式" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + } + ] + } + ], "events": {}, "slots": { "title": { @@ -17950,166 +18040,168 @@ "framework": "Vue" }, "schema": { - "properties": { - "label": { - "zh_CN": "基础信息" - }, - "description": { - "zh_CN": "基础信息" - }, - "collapse": { - "number": 6, - "text": { - "zh_CN": "显示更多" - } - }, - "content": [ - { - "property": "options", - "label": { - "text": { - "zh_CN": "选项的数据" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "modelValue", - "label": { - "text": { - "zh_CN": "绑定值" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "block", - "label": { - "text": { - "zh_CN": "撑满父元素宽度" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "size", - "label": { - "text": { - "zh_CN": "组件大小" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "disabled", - "label": { - "text": { - "zh_CN": "是否禁用" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "validateEvent", - "label": { - "text": { - "zh_CN": "是否触发表单验证" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "id", - "label": { - "text": { - "zh_CN": "原生 id 属性" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "name", - "label": { - "text": { - "zh_CN": "原生 name 属性" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } + "properties": [ + { + "label": { + "zh_CN": "基础信息" }, - { - "property": "ariaLabel", - "label": { - "text": { - "zh_CN": "原生 aria-label 属性" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - } - ] - }, + "description": { + "zh_CN": "基础信息" + }, + "collapse": { + "number": 6, + "text": { + "zh_CN": "显示更多" + } + }, + "content": [ + { + "property": "options", + "label": { + "text": { + "zh_CN": "选项的数据" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "modelValue", + "label": { + "text": { + "zh_CN": "绑定值" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "block", + "label": { + "text": { + "zh_CN": "撑满父元素宽度" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "size", + "label": { + "text": { + "zh_CN": "组件大小" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "disabled", + "label": { + "text": { + "zh_CN": "是否禁用" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "validateEvent", + "label": { + "text": { + "zh_CN": "是否触发表单验证" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "id", + "label": { + "text": { + "zh_CN": "原生 id 属性" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "name", + "label": { + "text": { + "zh_CN": "原生 name 属性" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "ariaLabel", + "label": { + "text": { + "zh_CN": "原生 aria-label 属性" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + } + ] + } + ], "events": { "onUpdate:modelValue": { "label": { @@ -18196,86 +18288,88 @@ "framework": "Vue" }, "schema": { - "properties": { - "label": { - "zh_CN": "基础信息" - }, - "description": { - "zh_CN": "基础信息" - }, - "collapse": { - "number": 6, - "text": { - "zh_CN": "显示更多" - } - }, - "content": [ - { - "property": "zIndex", - "label": { - "text": { - "zh_CN": "z-index" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - }, - { - "property": "target", - "label": { - "text": { - "zh_CN": "指定容器(CSS 选择器)" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "offset", - "label": { - "text": { - "zh_CN": "偏移距离" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } + "properties": [ + { + "label": { + "zh_CN": "基础信息" }, - { - "property": "position", - "label": { - "text": { - "zh_CN": "固钉位置" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - } - ] - }, + "description": { + "zh_CN": "基础信息" + }, + "collapse": { + "number": 6, + "text": { + "zh_CN": "显示更多" + } + }, + "content": [ + { + "property": "zIndex", + "label": { + "text": { + "zh_CN": "z-index" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "target", + "label": { + "text": { + "zh_CN": "指定容器(CSS 选择器)" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "offset", + "label": { + "text": { + "zh_CN": "偏移距离" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "position", + "label": { + "text": { + "zh_CN": "固钉位置" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + } + ] + } + ], "events": { "onScroll": { "label": { @@ -18362,134 +18456,136 @@ "framework": "Vue" }, "schema": { - "properties": { - "label": { - "zh_CN": "基础信息" - }, - "description": { - "zh_CN": "基础信息" - }, - "collapse": { - "number": 6, - "text": { - "zh_CN": "显示更多" - } - }, - "content": [ - { - "property": "container", - "label": { - "text": { - "zh_CN": "滚动的容器" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "offset", - "label": { - "text": { - "zh_CN": "设置锚点滚动的偏移量" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - }, - { - "property": "bound", - "label": { - "text": { - "zh_CN": "触发锚点的元素的位置偏移量" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - }, - { - "property": "duration", - "label": { - "text": { - "zh_CN": "设置容器滚动持续时间,单位为毫秒。" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - }, - { - "property": "marker", - "label": { - "text": { - "zh_CN": "是否显示标记" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "type", - "label": { - "text": { - "zh_CN": "设置锚点类型" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } + "properties": [ + { + "label": { + "zh_CN": "基础信息" }, - { - "property": "direction", - "label": { - "text": { - "zh_CN": "设置锚点方向" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - } - ] - }, + "description": { + "zh_CN": "基础信息" + }, + "collapse": { + "number": 6, + "text": { + "zh_CN": "显示更多" + } + }, + "content": [ + { + "property": "container", + "label": { + "text": { + "zh_CN": "滚动的容器" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "offset", + "label": { + "text": { + "zh_CN": "设置锚点滚动的偏移量" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "bound", + "label": { + "text": { + "zh_CN": "触发锚点的元素的位置偏移量" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "duration", + "label": { + "text": { + "zh_CN": "设置容器滚动持续时间,单位为毫秒。" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "marker", + "label": { + "text": { + "zh_CN": "是否显示标记" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "type", + "label": { + "text": { + "zh_CN": "设置锚点类型" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "direction", + "label": { + "text": { + "zh_CN": "设置锚点方向" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + } + ] + } + ], "events": { "onChange": { "label": { @@ -18576,86 +18672,88 @@ "framework": "Vue" }, "schema": { - "properties": { - "label": { - "zh_CN": "基础信息" - }, - "description": { - "zh_CN": "基础信息" - }, - "collapse": { - "number": 6, - "text": { - "zh_CN": "显示更多" - } - }, - "content": [ - { - "property": "visibilityHeight", - "label": { - "text": { - "zh_CN": "滚动高度达到此参数值才出现" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - }, - { - "property": "target", - "label": { - "text": { - "zh_CN": "触发滚动的对象" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "right", - "label": { - "text": { - "zh_CN": "控制其显示位置,距离页面右边距" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } + "properties": [ + { + "label": { + "zh_CN": "基础信息" }, - { - "property": "bottom", - "label": { - "text": { - "zh_CN": "控制其显示位置,距离页面底部距离" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - } - ] - }, + "description": { + "zh_CN": "基础信息" + }, + "collapse": { + "number": 6, + "text": { + "zh_CN": "显示更多" + } + }, + "content": [ + { + "property": "visibilityHeight", + "label": { + "text": { + "zh_CN": "滚动高度达到此参数值才出现" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "target", + "label": { + "text": { + "zh_CN": "触发滚动的对象" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "right", + "label": { + "text": { + "zh_CN": "控制其显示位置,距离页面右边距" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "bottom", + "label": { + "text": { + "zh_CN": "控制其显示位置,距离页面底部距离" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + } + ] + } + ], "events": { "onClick": { "label": { @@ -18728,54 +18826,56 @@ "framework": "Vue" }, "schema": { - "properties": { - "label": { - "zh_CN": "基础信息" - }, - "description": { - "zh_CN": "基础信息" - }, - "collapse": { - "number": 6, - "text": { - "zh_CN": "显示更多" - } - }, - "content": [ - { - "property": "separator", - "label": { - "text": { - "zh_CN": "分隔符" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "separatorIcon", - "label": { - "text": { - "zh_CN": "图标分隔符的组件或组件名" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - } - ] - }, + "properties": [ + { + "label": { + "zh_CN": "基础信息" + }, + "description": { + "zh_CN": "基础信息" + }, + "collapse": { + "number": 6, + "text": { + "zh_CN": "显示更多" + } + }, + "content": [ + { + "property": "separator", + "label": { + "text": { + "zh_CN": "分隔符" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "separatorIcon", + "label": { + "text": { + "zh_CN": "图标分隔符的组件或组件名" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + } + ] + } + ], "events": {}, "slots": {} } @@ -18853,278 +18953,280 @@ "framework": "Vue" }, "schema": { - "properties": { - "label": { - "zh_CN": "基础信息" - }, - "description": { - "zh_CN": "基础信息" - }, - "collapse": { - "number": 6, - "text": { - "zh_CN": "显示更多" - } - }, - "content": [ - { - "property": "trigger", - "label": { - "text": { - "zh_CN": "触发下拉的行为" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "type", - "label": { - "text": { - "zh_CN": "菜单按钮类型,同 Button 组件一样,仅在 split-button 为 true 的情况下有效。" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "placement", - "label": { - "text": { - "zh_CN": "菜单弹出位置" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "popperOptions", - "label": { - "text": { - "zh_CN": "popper.js 参数" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "id", - "label": { - "text": { - "zh_CN": "本机输入id" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "size", - "label": { - "text": { - "zh_CN": "菜单尺寸,在 split-button 为 true 的情况下也对触发按钮生效。" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "splitButton", - "label": { - "text": { - "zh_CN": "下拉触发元素呈现为按钮组" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "hideOnClick", - "label": { - "text": { - "zh_CN": "是否在点击菜单项后隐藏菜单" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "showTimeout", - "label": { - "text": { - "zh_CN": "展开下拉菜单的延时,仅在 trigger 为 hover 时有效" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - }, - { - "property": "hideTimeout", - "label": { - "text": { - "zh_CN": "收起下拉菜单的延时(仅在 trigger 为 hover 时有效)" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - }, - { - "property": "tabindex", - "label": { - "text": { - "zh_CN": "Dropdown 组件的 tabindex" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - }, - { - "property": "maxHeight", - "label": { - "text": { - "zh_CN": "菜单最大高度" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - }, - { - "property": "popperClass", - "label": { - "text": { - "zh_CN": "自定义浮层类名" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "disabled", - "label": { - "text": { - "zh_CN": "是否禁用" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "role", - "label": { - "text": { - "zh_CN": "下拉菜单的 ARIA 属性。 根据具体场景,您可能想要将此更改为“navigation”" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } + "properties": [ + { + "label": { + "zh_CN": "基础信息" }, - { - "property": "teleported", - "label": { - "text": { - "zh_CN": "是否将下拉列表插入至 body 元素" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - } - ] - }, + "description": { + "zh_CN": "基础信息" + }, + "collapse": { + "number": 6, + "text": { + "zh_CN": "显示更多" + } + }, + "content": [ + { + "property": "trigger", + "label": { + "text": { + "zh_CN": "触发下拉的行为" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "type", + "label": { + "text": { + "zh_CN": "菜单按钮类型,同 Button 组件一样,仅在 split-button 为 true 的情况下有效。" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "placement", + "label": { + "text": { + "zh_CN": "菜单弹出位置" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "popperOptions", + "label": { + "text": { + "zh_CN": "popper.js 参数" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "id", + "label": { + "text": { + "zh_CN": "本机输入id" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "size", + "label": { + "text": { + "zh_CN": "菜单尺寸,在 split-button 为 true 的情况下也对触发按钮生效。" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "splitButton", + "label": { + "text": { + "zh_CN": "下拉触发元素呈现为按钮组" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "hideOnClick", + "label": { + "text": { + "zh_CN": "是否在点击菜单项后隐藏菜单" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "showTimeout", + "label": { + "text": { + "zh_CN": "展开下拉菜单的延时,仅在 trigger 为 hover 时有效" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "hideTimeout", + "label": { + "text": { + "zh_CN": "收起下拉菜单的延时(仅在 trigger 为 hover 时有效)" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "tabindex", + "label": { + "text": { + "zh_CN": "Dropdown 组件的 tabindex" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "maxHeight", + "label": { + "text": { + "zh_CN": "菜单最大高度" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "popperClass", + "label": { + "text": { + "zh_CN": "自定义浮层类名" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "disabled", + "label": { + "text": { + "zh_CN": "是否禁用" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "role", + "label": { + "text": { + "zh_CN": "下拉菜单的 ARIA 属性。 根据具体场景,您可能想要将此更改为“navigation”" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "teleported", + "label": { + "text": { + "zh_CN": "是否将下拉列表插入至 body 元素" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + } + ] + } + ], "events": { "onClick": { "label": { @@ -19231,326 +19333,328 @@ "framework": "Vue" }, "schema": { - "properties": { - "label": { - "zh_CN": "基础信息" - }, - "description": { - "zh_CN": "基础信息" - }, - "collapse": { - "number": 6, - "text": { - "zh_CN": "显示更多" - } - }, - "content": [ - { - "property": "mode", - "label": { - "text": { - "zh_CN": "菜单展示模式" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "defaultActive", - "label": { - "text": { - "zh_CN": "页面加载时默认激活菜单的 index" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "defaultOpeneds", - "label": { - "text": { - "zh_CN": "默认打开的 sub-menu 的 index 的数组" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "uniqueOpened", - "label": { - "text": { - "zh_CN": "是否只保持一个子菜单的展开" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "router", - "label": { - "text": { - "zh_CN": "是否启用 vue-router 模式。 启用该模式会在激活导航时以 index 作为 path 进行路由跳转 使用 default-active 来设置加载时的激活项。" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "menuTrigger", - "label": { - "text": { - "zh_CN": "子菜单打开的触发方式,只在 mode 为 horizontal 时有效。" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "collapse", - "label": { - "text": { - "zh_CN": "是否水平折叠收起菜单(仅在 mode 为 vertical 时可用)" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "backgroundColor", - "label": { - "text": { - "zh_CN": "菜单的背景颜色 (十六进制格式) (推荐在样式类中使用 --el-menu-bg-color)" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "textColor", - "label": { - "text": { - "zh_CN": "菜单的文字颜色 (十六进制格式) (推荐在样式类中使用 --el-menu-text-color)" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "activeTextColor", - "label": { - "text": { - "zh_CN": "活动菜单项的文本颜色(十六进制格式)(推荐使用 css var --el-menu-active-color)" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "closeOnClickOutside", - "label": { - "text": { - "zh_CN": "可选,单击外部时是否折叠菜单" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "collapseTransition", - "label": { - "text": { - "zh_CN": "是否开启折叠动画" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "ellipsis", - "label": { - "text": { - "zh_CN": "是否省略多余的子项(仅在横向模式生效)" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "popperOffset", - "label": { - "text": { - "zh_CN": "弹出层的偏移量(对所有子菜单有效)" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - }, - { - "property": "ellipsisIcon", - "label": { - "text": { - "zh_CN": "自定义省略图标 (仅在水平模式下可用)" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "popperEffect", - "label": { - "text": { - "zh_CN": "Tooltip 主题,内置了 dark / light 两种主题,当菜单折叠时生效。" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "popperClass", - "label": { - "text": { - "zh_CN": "为 popper 添加类名" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "showTimeout", - "label": { - "text": { - "zh_CN": "菜单出现前的延迟" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } + "properties": [ + { + "label": { + "zh_CN": "基础信息" }, - { - "property": "hideTimeout", - "label": { - "text": { - "zh_CN": "菜单消失前的延迟" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - } - ] - }, + "description": { + "zh_CN": "基础信息" + }, + "collapse": { + "number": 6, + "text": { + "zh_CN": "显示更多" + } + }, + "content": [ + { + "property": "mode", + "label": { + "text": { + "zh_CN": "菜单展示模式" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "defaultActive", + "label": { + "text": { + "zh_CN": "页面加载时默认激活菜单的 index" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "defaultOpeneds", + "label": { + "text": { + "zh_CN": "默认打开的 sub-menu 的 index 的数组" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "uniqueOpened", + "label": { + "text": { + "zh_CN": "是否只保持一个子菜单的展开" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "router", + "label": { + "text": { + "zh_CN": "是否启用 vue-router 模式。 启用该模式会在激活导航时以 index 作为 path 进行路由跳转 使用 default-active 来设置加载时的激活项。" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "menuTrigger", + "label": { + "text": { + "zh_CN": "子菜单打开的触发方式,只在 mode 为 horizontal 时有效。" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "collapse", + "label": { + "text": { + "zh_CN": "是否水平折叠收起菜单(仅在 mode 为 vertical 时可用)" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "backgroundColor", + "label": { + "text": { + "zh_CN": "菜单的背景颜色 (十六进制格式) (推荐在样式类中使用 --el-menu-bg-color)" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "textColor", + "label": { + "text": { + "zh_CN": "菜单的文字颜色 (十六进制格式) (推荐在样式类中使用 --el-menu-text-color)" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "activeTextColor", + "label": { + "text": { + "zh_CN": "活动菜单项的文本颜色(十六进制格式)(推荐使用 css var --el-menu-active-color)" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "closeOnClickOutside", + "label": { + "text": { + "zh_CN": "可选,单击外部时是否折叠菜单" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "collapseTransition", + "label": { + "text": { + "zh_CN": "是否开启折叠动画" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "ellipsis", + "label": { + "text": { + "zh_CN": "是否省略多余的子项(仅在横向模式生效)" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "popperOffset", + "label": { + "text": { + "zh_CN": "弹出层的偏移量(对所有子菜单有效)" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "ellipsisIcon", + "label": { + "text": { + "zh_CN": "自定义省略图标 (仅在水平模式下可用)" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "popperEffect", + "label": { + "text": { + "zh_CN": "Tooltip 主题,内置了 dark / light 两种主题,当菜单折叠时生效。" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "popperClass", + "label": { + "text": { + "zh_CN": "为 popper 添加类名" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "showTimeout", + "label": { + "text": { + "zh_CN": "菜单出现前的延迟" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "hideTimeout", + "label": { + "text": { + "zh_CN": "菜单消失前的延迟" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + } + ] + } + ], "events": { "onClose": { "label": { @@ -19660,70 +19764,72 @@ "framework": "Vue" }, "schema": { - "properties": { - "label": { - "zh_CN": "基础信息" - }, - "description": { - "zh_CN": "基础信息" - }, - "collapse": { - "number": 6, - "text": { - "zh_CN": "显示更多" - } - }, - "content": [ - { - "property": "icon", - "label": { - "text": { - "zh_CN": "Page Header 的图标 Icon 组件" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "title", - "label": { - "text": { - "zh_CN": "Page Header 的主标题,默认是 Back (内置 a11y)" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } + "properties": [ + { + "label": { + "zh_CN": "基础信息" }, - { - "property": "content", - "label": { - "text": { - "zh_CN": "Page Header 的内容" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - } - ] - }, + "description": { + "zh_CN": "基础信息" + }, + "collapse": { + "number": 6, + "text": { + "zh_CN": "显示更多" + } + }, + "content": [ + { + "property": "icon", + "label": { + "text": { + "zh_CN": "Page Header 的图标 Icon 组件" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "title", + "label": { + "text": { + "zh_CN": "Page Header 的主标题,默认是 Back (内置 a11y)" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "content", + "label": { + "text": { + "zh_CN": "Page Header 的内容" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + } + ] + } + ], "events": { "onBack": { "label": { @@ -19829,134 +19935,136 @@ "framework": "Vue" }, "schema": { - "properties": { - "label": { - "zh_CN": "基础信息" - }, - "description": { - "zh_CN": "基础信息" - }, - "collapse": { - "number": 6, - "text": { - "zh_CN": "显示更多" - } - }, - "content": [ - { - "property": "space", - "label": { - "text": { - "zh_CN": "每个 step 的间距,不填写将自适应间距。 支持百分比。" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - }, - { - "property": "active", - "label": { - "text": { - "zh_CN": "设置当前激活步骤" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - }, - { - "property": "direction", - "label": { - "text": { - "zh_CN": "显示方向" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "alignCenter", - "label": { - "text": { - "zh_CN": "进行居中对齐" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "simple", - "label": { - "text": { - "zh_CN": "是否应用简洁风格" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "finishStatus", - "label": { - "text": { - "zh_CN": "设置结束步骤的状态" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } + "properties": [ + { + "label": { + "zh_CN": "基础信息" }, - { - "property": "processStatus", - "label": { - "text": { - "zh_CN": "设置当前步骤的状态" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - } - ] - }, + "description": { + "zh_CN": "基础信息" + }, + "collapse": { + "number": 6, + "text": { + "zh_CN": "显示更多" + } + }, + "content": [ + { + "property": "space", + "label": { + "text": { + "zh_CN": "每个 step 的间距,不填写将自适应间距。 支持百分比。" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "active", + "label": { + "text": { + "zh_CN": "设置当前激活步骤" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "direction", + "label": { + "text": { + "zh_CN": "显示方向" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "alignCenter", + "label": { + "text": { + "zh_CN": "进行居中对齐" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "simple", + "label": { + "text": { + "zh_CN": "是否应用简洁风格" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "finishStatus", + "label": { + "text": { + "zh_CN": "设置结束步骤的状态" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "processStatus", + "label": { + "text": { + "zh_CN": "设置当前步骤的状态" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + } + ] + } + ], "events": {}, "slots": {} } @@ -20020,153 +20128,155 @@ }, "invalidity": [""], "clickCapture": true, - "framework": "Vue" - }, - "schema": { - "properties": { - "label": { - "zh_CN": "基础信息" - }, - "description": { - "zh_CN": "基础信息" - }, - "collapse": { - "number": 6, - "text": { - "zh_CN": "显示更多" - } - }, - "content": [ - { - "property": "type", - "label": { - "text": { - "zh_CN": "风格类型" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "closable", - "label": { - "text": { - "zh_CN": "标签是否可关闭" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "addable", - "label": { - "text": { - "zh_CN": "标签是否可增加" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "modelValue", - "label": { - "text": { - "zh_CN": "绑定值,选中选项卡的 name,默认值是第一个 tab 的 name" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "editable", - "label": { - "text": { - "zh_CN": "标签是否同时可增加和关闭" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "tabPosition", - "label": { - "text": { - "zh_CN": "选项卡所在位置" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "beforeLeave", - "label": { - "text": { - "zh_CN": "切换标签之前的钩子函数, 若返回 false 或者返回被 reject 的 Promise,则阻止切换。" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "stretch", - "label": { - "text": { - "zh_CN": "标签的宽度是否自撑开" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - } - ] - }, + "framework": "Vue" + }, + "schema": { + "properties": [ + { + "label": { + "zh_CN": "基础信息" + }, + "description": { + "zh_CN": "基础信息" + }, + "collapse": { + "number": 6, + "text": { + "zh_CN": "显示更多" + } + }, + "content": [ + { + "property": "type", + "label": { + "text": { + "zh_CN": "风格类型" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "closable", + "label": { + "text": { + "zh_CN": "标签是否可关闭" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "addable", + "label": { + "text": { + "zh_CN": "标签是否可增加" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "modelValue", + "label": { + "text": { + "zh_CN": "绑定值,选中选项卡的 name,默认值是第一个 tab 的 name" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "editable", + "label": { + "text": { + "zh_CN": "标签是否同时可增加和关闭" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "tabPosition", + "label": { + "text": { + "zh_CN": "选项卡所在位置" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "beforeLeave", + "label": { + "text": { + "zh_CN": "切换标签之前的钩子函数, 若返回 false 或者返回被 reject 的 Promise,则阻止切换。" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "stretch", + "label": { + "text": { + "zh_CN": "标签的宽度是否自撑开" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + } + ] + } + ], "events": { "onUpdate:modelValue": { "label": { @@ -20318,150 +20428,152 @@ "framework": "Vue" }, "schema": { - "properties": { - "label": { - "zh_CN": "基础信息" - }, - "description": { - "zh_CN": "基础信息" - }, - "collapse": { - "number": 6, - "text": { - "zh_CN": "显示更多" - } - }, - "content": [ - { - "property": "title", - "label": { - "text": { - "zh_CN": "Alert 标题。" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "description", - "label": { - "text": { - "zh_CN": "描述性文本" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "type", - "label": { - "text": { - "zh_CN": "Alert 类型。" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "closable", - "label": { - "text": { - "zh_CN": "是否可以关闭" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "closeText", - "label": { - "text": { - "zh_CN": "自定义关闭按钮文本" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "showIcon", - "label": { - "text": { - "zh_CN": "是否显示类型图标" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "center", - "label": { - "text": { - "zh_CN": "文字是否居中" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } + "properties": [ + { + "label": { + "zh_CN": "基础信息" }, - { - "property": "effect", - "label": { - "text": { - "zh_CN": "主题样式" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - } - ] - }, + "description": { + "zh_CN": "基础信息" + }, + "collapse": { + "number": 6, + "text": { + "zh_CN": "显示更多" + } + }, + "content": [ + { + "property": "title", + "label": { + "text": { + "zh_CN": "Alert 标题。" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "description", + "label": { + "text": { + "zh_CN": "描述性文本" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "type", + "label": { + "text": { + "zh_CN": "Alert 类型。" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "closable", + "label": { + "text": { + "zh_CN": "是否可以关闭" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "closeText", + "label": { + "text": { + "zh_CN": "自定义关闭按钮文本" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "showIcon", + "label": { + "text": { + "zh_CN": "是否显示类型图标" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "center", + "label": { + "text": { + "zh_CN": "文字是否居中" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "effect", + "label": { + "text": { + "zh_CN": "主题样式" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + } + ] + } + ], "events": { "onClose": { "label": { @@ -20578,406 +20690,408 @@ "framework": "Vue" }, "schema": { - "properties": { - "label": { - "zh_CN": "基础信息" - }, - "description": { - "zh_CN": "基础信息" - }, - "collapse": { - "number": 6, - "text": { - "zh_CN": "显示更多" - } - }, - "content": [ - { - "property": "center", - "label": { - "text": { - "zh_CN": "是否让 Dialog 的 header 和 footer 部分居中排列" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "alignCenter", - "label": { - "text": { - "zh_CN": "是否水平垂直对齐对话框" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "closeIcon", - "label": { - "text": { - "zh_CN": "自定义关闭图标,默认 Close" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "draggable", - "label": { - "text": { - "zh_CN": "为 Dialog 启用可拖拽功能" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "overflow", - "label": { - "text": { - "zh_CN": "拖动范围可以超出可视区" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "fullscreen", - "label": { - "text": { - "zh_CN": "是否为全屏 Dialog" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "showClose", - "label": { - "text": { - "zh_CN": "是否显示关闭按钮" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "title", - "label": { - "text": { - "zh_CN": "Dialog 对话框 Dialog 的标题, 也可通过具名 slot (见下表)传入" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "appendToBody", - "label": { - "text": { - "zh_CN": "Dialog 自身是否插入至 body 元素上。 嵌套的 Dialog 必须指定该属性并赋值为 true" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "appendTo", - "label": { - "text": { - "zh_CN": "Dialog 挂载到哪个 DOM 元素 将覆盖 append-to-body" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "beforeClose", - "label": { - "text": { - "zh_CN": "关闭前的回调,会暂停 Dialog 的关闭. 回调函数内执行 done 参数方法的时候才是真正关闭对话框的时候." - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "destroyOnClose", - "label": { - "text": { - "zh_CN": "当关闭 Dialog 时,销毁其中的元素" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "closeOnClickModal", - "label": { - "text": { - "zh_CN": "是否可以通过点击 modal 关闭 Dialog" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "closeOnPressEscape", - "label": { - "text": { - "zh_CN": "是否可以通过按下 ESC 关闭 Dialog" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "lockScroll", - "label": { - "text": { - "zh_CN": "是否在 Dialog 出现时将 body 滚动锁定" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "modal", - "label": { - "text": { - "zh_CN": "是否需要遮罩层" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "openDelay", - "label": { - "text": { - "zh_CN": "dialog 打开的延时时间,单位毫秒" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - }, - { - "property": "closeDelay", - "label": { - "text": { - "zh_CN": "dialog 关闭的延时时间,单位毫秒" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - }, - { - "property": "top", - "label": { - "text": { - "zh_CN": "dialog CSS 中的 margin-top 值,默认为 15vh" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "modelValue", - "label": { - "text": { - "zh_CN": "是否显示 Dialog" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "modalClass", - "label": { - "text": { - "zh_CN": "遮罩的自定义类名" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "width", - "label": { - "text": { - "zh_CN": "对话框的宽度,默认值为 50%" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "zIndex", - "label": { - "text": { - "zh_CN": "和原生的 CSS 的 z-index 相同,改变 z 轴的顺序" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } + "properties": [ + { + "label": { + "zh_CN": "基础信息" }, - { - "property": "headerAriaLevel", - "label": { - "text": { - "zh_CN": "header 的 aria-level 属性" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - } - ] - }, + "description": { + "zh_CN": "基础信息" + }, + "collapse": { + "number": 6, + "text": { + "zh_CN": "显示更多" + } + }, + "content": [ + { + "property": "center", + "label": { + "text": { + "zh_CN": "是否让 Dialog 的 header 和 footer 部分居中排列" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "alignCenter", + "label": { + "text": { + "zh_CN": "是否水平垂直对齐对话框" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "closeIcon", + "label": { + "text": { + "zh_CN": "自定义关闭图标,默认 Close" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "draggable", + "label": { + "text": { + "zh_CN": "为 Dialog 启用可拖拽功能" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "overflow", + "label": { + "text": { + "zh_CN": "拖动范围可以超出可视区" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "fullscreen", + "label": { + "text": { + "zh_CN": "是否为全屏 Dialog" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "showClose", + "label": { + "text": { + "zh_CN": "是否显示关闭按钮" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "title", + "label": { + "text": { + "zh_CN": "Dialog 对话框 Dialog 的标题, 也可通过具名 slot (见下表)传入" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "appendToBody", + "label": { + "text": { + "zh_CN": "Dialog 自身是否插入至 body 元素上。 嵌套的 Dialog 必须指定该属性并赋值为 true" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "appendTo", + "label": { + "text": { + "zh_CN": "Dialog 挂载到哪个 DOM 元素 将覆盖 append-to-body" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "beforeClose", + "label": { + "text": { + "zh_CN": "关闭前的回调,会暂停 Dialog 的关闭. 回调函数内执行 done 参数方法的时候才是真正关闭对话框的时候." + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "destroyOnClose", + "label": { + "text": { + "zh_CN": "当关闭 Dialog 时,销毁其中的元素" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "closeOnClickModal", + "label": { + "text": { + "zh_CN": "是否可以通过点击 modal 关闭 Dialog" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "closeOnPressEscape", + "label": { + "text": { + "zh_CN": "是否可以通过按下 ESC 关闭 Dialog" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "lockScroll", + "label": { + "text": { + "zh_CN": "是否在 Dialog 出现时将 body 滚动锁定" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "modal", + "label": { + "text": { + "zh_CN": "是否需要遮罩层" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "openDelay", + "label": { + "text": { + "zh_CN": "dialog 打开的延时时间,单位毫秒" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "closeDelay", + "label": { + "text": { + "zh_CN": "dialog 关闭的延时时间,单位毫秒" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "top", + "label": { + "text": { + "zh_CN": "dialog CSS 中的 margin-top 值,默认为 15vh" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "modelValue", + "label": { + "text": { + "zh_CN": "是否显示 Dialog" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "modalClass", + "label": { + "text": { + "zh_CN": "遮罩的自定义类名" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "width", + "label": { + "text": { + "zh_CN": "对话框的宽度,默认值为 50%" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "zIndex", + "label": { + "text": { + "zh_CN": "和原生的 CSS 的 z-index 相同,改变 z 轴的顺序" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "headerAriaLevel", + "label": { + "text": { + "zh_CN": "header 的 aria-level 属性" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + } + ] + } + ], "events": { "onOpen": { "label": { @@ -21157,351 +21271,353 @@ "closeOnClickModal", "closeOnPressEscape", "lockScroll", - "modal", - "openDelay", - "closeDelay", - "top", - "modelValue", - "modalClass", - "width", - "zIndex", - "trapFocus", - "headerAriaLevel", - "direction", - "size", - "withHeader", - "modalFade" - ] - }, - "contextMenu": { - "actions": ["copy", "remove", "insert", "updateAttr", "bindEevent", "createBlock"], - "disable": [] - }, - "invalidity": [""], - "clickCapture": true, - "framework": "Vue" - }, - "schema": { - "properties": { - "label": { - "zh_CN": "基础信息" - }, - "description": { - "zh_CN": "基础信息" - }, - "collapse": { - "number": 6, - "text": { - "zh_CN": "显示更多" - } - }, - "content": [ - { - "property": "showClose", - "label": { - "text": { - "zh_CN": "是否显示关闭按钮" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "title", - "label": { - "text": { - "zh_CN": "Drawer 的标题,也可通过具名 slot (见下表)传入" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "appendToBody", - "label": { - "text": { - "zh_CN": "Drawer 自身是否插入至 body 元素上。嵌套的 Drawer 必须指定该属性并赋值为 true" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "appendTo", - "label": { - "text": { - "zh_CN": "挂载到哪个 DOM 元素 将覆盖 append-to-body" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "beforeClose", - "label": { - "text": { - "zh_CN": "关闭前的回调,会暂停 Drawer 的关闭" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "destroyOnClose", - "label": { - "text": { - "zh_CN": "控制是否在关闭 Drawer 之后将子元素全部销毁" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "closeOnClickModal", - "label": { - "text": { - "zh_CN": "是否可以通过点击 modal 关闭 Drawer" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "closeOnPressEscape", - "label": { - "text": { - "zh_CN": "是否可以通过按下 ESC 关闭 Drawer" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "lockScroll", - "label": { - "text": { - "zh_CN": "是否在 Drawer 出现时将 body 滚动锁定" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "modal", - "label": { - "text": { - "zh_CN": "是否需要遮罩层" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "openDelay", - "label": { - "text": { - "zh_CN": "Drawer 打开的延时时间,单位毫秒" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - }, - { - "property": "closeDelay", - "label": { - "text": { - "zh_CN": "Drawer 关闭的延时时间,单位毫秒" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - }, - { - "property": "modelValue", - "label": { - "text": { - "zh_CN": "是否显示 Drawer" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "modalClass", - "label": { - "text": { - "zh_CN": "遮罩层的自定义类名" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "zIndex", - "label": { - "text": { - "zh_CN": "设置 z-index" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - }, - { - "property": "headerAriaLevel", - "label": { - "text": { - "zh_CN": "header 的 aria-level 属性" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "direction", - "label": { - "text": { - "zh_CN": "Drawer 打开的方向" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "size", - "label": { - "text": { - "zh_CN": "Drawer 窗体的大小, 当使用 number 类型时, 以像素为单位, 当使用 string 类型时, 请传入 'x%', 否则便会以 number 类型解释" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "withHeader", - "label": { - "text": { - "zh_CN": "控制是否显示 header 栏, 默认为 true, 当此项为 false 时, title attribute 和 title slot 均不生效" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - } + "modal", + "openDelay", + "closeDelay", + "top", + "modelValue", + "modalClass", + "width", + "zIndex", + "trapFocus", + "headerAriaLevel", + "direction", + "size", + "withHeader", + "modalFade" ] }, + "contextMenu": { + "actions": ["copy", "remove", "insert", "updateAttr", "bindEevent", "createBlock"], + "disable": [] + }, + "invalidity": [""], + "clickCapture": true, + "framework": "Vue" + }, + "schema": { + "properties": [ + { + "label": { + "zh_CN": "基础信息" + }, + "description": { + "zh_CN": "基础信息" + }, + "collapse": { + "number": 6, + "text": { + "zh_CN": "显示更多" + } + }, + "content": [ + { + "property": "showClose", + "label": { + "text": { + "zh_CN": "是否显示关闭按钮" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "title", + "label": { + "text": { + "zh_CN": "Drawer 的标题,也可通过具名 slot (见下表)传入" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "appendToBody", + "label": { + "text": { + "zh_CN": "Drawer 自身是否插入至 body 元素上。嵌套的 Drawer 必须指定该属性并赋值为 true" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "appendTo", + "label": { + "text": { + "zh_CN": "挂载到哪个 DOM 元素 将覆盖 append-to-body" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "beforeClose", + "label": { + "text": { + "zh_CN": "关闭前的回调,会暂停 Drawer 的关闭" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "destroyOnClose", + "label": { + "text": { + "zh_CN": "控制是否在关闭 Drawer 之后将子元素全部销毁" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "closeOnClickModal", + "label": { + "text": { + "zh_CN": "是否可以通过点击 modal 关闭 Drawer" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "closeOnPressEscape", + "label": { + "text": { + "zh_CN": "是否可以通过按下 ESC 关闭 Drawer" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "lockScroll", + "label": { + "text": { + "zh_CN": "是否在 Drawer 出现时将 body 滚动锁定" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "modal", + "label": { + "text": { + "zh_CN": "是否需要遮罩层" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "openDelay", + "label": { + "text": { + "zh_CN": "Drawer 打开的延时时间,单位毫秒" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "closeDelay", + "label": { + "text": { + "zh_CN": "Drawer 关闭的延时时间,单位毫秒" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "modelValue", + "label": { + "text": { + "zh_CN": "是否显示 Drawer" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "modalClass", + "label": { + "text": { + "zh_CN": "遮罩层的自定义类名" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "zIndex", + "label": { + "text": { + "zh_CN": "设置 z-index" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "headerAriaLevel", + "label": { + "text": { + "zh_CN": "header 的 aria-level 属性" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "direction", + "label": { + "text": { + "zh_CN": "Drawer 打开的方向" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "size", + "label": { + "text": { + "zh_CN": "Drawer 窗体的大小, 当使用 number 类型时, 以像素为单位, 当使用 string 类型时, 请传入 'x%', 否则便会以 number 类型解释" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "withHeader", + "label": { + "text": { + "zh_CN": "控制是否显示 header 栏, 默认为 true, 当此项为 false 时, title attribute 和 title slot 均不生效" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + } + ] + } + ], "events": { "onOpen": { "label": { @@ -21920,690 +22036,267 @@ "framework": "Vue" }, "schema": { - "properties": { - "label": { - "zh_CN": "基础信息" - }, - "description": { - "zh_CN": "基础信息" - }, - "collapse": { - "number": 6, - "text": { - "zh_CN": "显示更多" - } - }, - "content": [ - { - "property": "title", - "label": { - "text": { - "zh_CN": "标题" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "confirmButtonText", - "label": { - "text": { - "zh_CN": "确认按钮文字" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "cancelButtonText", - "label": { - "text": { - "zh_CN": "取消按钮文字" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "confirmButtonType", - "label": { - "text": { - "zh_CN": "确认按钮类型" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "cancelButtonType", - "label": { - "text": { - "zh_CN": "取消按钮类型" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "icon", - "label": { - "text": { - "zh_CN": "自定义图标" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "iconColor", - "label": { - "text": { - "zh_CN": "Icon 颜色" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "hideIcon", - "label": { - "text": { - "zh_CN": "是否隐藏 Icon" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "hideAfter", - "label": { - "text": { - "zh_CN": "关闭时的延迟" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - }, - { - "property": "teleported", - "label": { - "text": { - "zh_CN": "是否将 popover 的下拉列表插入至 body 元素" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "persistent", - "label": { - "text": { - "zh_CN": "当 popover 组件长时间不触发且 persistent 属性设置为 false 时, popover 将会被删除" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "width", - "label": { - "text": { - "zh_CN": "弹层宽度,最小宽度 150px" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - } - ] - }, - "events": { - "onConfirm": { - "label": { - "zh_CN": "点击确认按钮时触发" - }, - "description": { - "zh_CN": "点击确认按钮时触发" - }, - "type": "event", - "functionInfo": { - "params": [], - "returns": {} - }, - "defaultValue": "" - }, - "onCancel": { - "label": { - "zh_CN": "点击取消按钮时触发" - }, - "description": { - "zh_CN": "点击取消按钮时触发" - }, - "type": "event", - "functionInfo": { - "params": [], - "returns": {} - }, - "defaultValue": "" - } - }, - "slots": { - "reference": { + "properties": [ + { "label": { - "zh_CN": "触发 Popconfirm 显示的 HTML 元素" - }, - "description": { - "zh_CN": "触发 Popconfirm 显示的 HTML 元素" - } - } - } - } - }, - { - "id": 66, - "version": "2.7.8", - "name": { - "zh_CN": "弹出框" - }, - "component": "ElPopover", - "icon": "popover", - "description": "", - "doc_url": "", - "screenshot": "", - "tags": "", - "keywords": "", - "dev_mode": "proCode", - "npm": { - "package": "element-plus", - "version": "2.7.8", - "script": "https://npm.onmicrosoft.cn/element-plus@2.4.2/dist/index.full.mjs", - "css": "https://npm.onmicrosoft.cn/element-plus@2.4.2/dist/index.css", - "dependencies": null, - "exportName": "ElPopover", - "destructuring": true - }, - "group": "Feedback 反馈组件", - "category": "element-plus", - "configure": { - "loop": true, - "condition": true, - "styles": true, - "isContainer": false, - "isModal": false, - "isPopper": false, - "nestingRule": { - "childWhitelist": "", - "parentWhitelist": "", - "descendantBlacklist": "", - "ancestorWhitelist": "" - }, - "isNullNode": false, - "isLayout": false, - "rootSelector": "", - "shortcuts": { - "properties": [ - "trigger", - "placement", - "disabled", - "visible", - "transition", - "popperOptions", - "tabindex", - "content", - "popperStyle", - "popperClass", - "enterable", - "effect", - "teleported", - "title", - "width", - "offset", - "showAfter", - "hideAfter", - "autoClose", - "showArrow", - "persistent", - "onUpdate:visible" - ] - }, - "contextMenu": { - "actions": ["copy", "remove", "insert", "updateAttr", "bindEevent", "createBlock"], - "disable": [] - }, - "invalidity": [""], - "clickCapture": true, - "framework": "Vue" - }, - "schema": { - "properties": { - "label": { - "zh_CN": "基础信息" - }, - "description": { - "zh_CN": "基础信息" - }, - "collapse": { - "number": 6, - "text": { - "zh_CN": "显示更多" - } - }, - "content": [ - { - "property": "trigger", - "label": { - "text": { - "zh_CN": "触发方式" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "placement", - "label": { - "text": { - "zh_CN": "出现位置" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "disabled", - "label": { - "text": { - "zh_CN": "Popover 是否可用" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "visible", - "label": { - "text": { - "zh_CN": "Popover 是否显示" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "transition", - "label": { - "text": { - "zh_CN": "定义渐变动画,默认是 el-fade-in-linear" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "popperOptions", - "label": { - "text": { - "zh_CN": "popper.js 的参数" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "tabindex", - "label": { - "text": { - "zh_CN": "Popover 组件的 tabindex" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - }, - { - "property": "content", - "label": { - "text": { - "zh_CN": "显示的内容,也可以通过写入默认 slot 修改显示内容" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "popperStyle", - "label": { - "text": { - "zh_CN": "为 popper 自定义样式" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "popperClass", - "label": { - "text": { - "zh_CN": "为 popper 添加类名" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "effect", - "label": { - "text": { - "zh_CN": "Tooltip 主题,Element Plus 内置了 dark / light 两种主题" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "teleported", - "label": { - "text": { - "zh_CN": "是否将 popover 的下拉列表插入至 body 元素" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "title", - "label": { - "text": { - "zh_CN": "标题" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } + "zh_CN": "基础信息" }, - { - "property": "width", - "label": { - "text": { - "zh_CN": "宽度" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } + "description": { + "zh_CN": "基础信息" + }, + "collapse": { + "number": 6, + "text": { + "zh_CN": "显示更多" + } + }, + "content": [ + { + "property": "title", + "label": { + "text": { + "zh_CN": "标题" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "confirmButtonText", + "label": { + "text": { + "zh_CN": "确认按钮文字" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "cancelButtonText", + "label": { + "text": { + "zh_CN": "取消按钮文字" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "confirmButtonType", + "label": { + "text": { + "zh_CN": "确认按钮类型" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "cancelButtonType", + "label": { + "text": { + "zh_CN": "取消按钮类型" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "icon", + "label": { + "text": { + "zh_CN": "自定义图标" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "iconColor", + "label": { + "text": { + "zh_CN": "Icon 颜色" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "hideIcon", + "label": { + "text": { + "zh_CN": "是否隐藏 Icon" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "hideAfter", + "label": { + "text": { + "zh_CN": "关闭时的延迟" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "teleported", + "label": { + "text": { + "zh_CN": "是否将 popover 的下拉列表插入至 body 元素" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "persistent", + "label": { + "text": { + "zh_CN": "当 popover 组件长时间不触发且 persistent 属性设置为 false 时, popover 将会被删除" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "width", + "label": { + "text": { + "zh_CN": "弹层宽度,最小宽度 150px" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + } + ] + } + ], + "events": { + "onConfirm": { + "label": { + "zh_CN": "点击确认按钮时触发" }, - { - "property": "offset", - "label": { - "text": { - "zh_CN": "浮层偏移量, Popover 是在 Tooltip,基础上开发的, Popover的 offset 是 undefined, 但Tooltip 的 offset 是12" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } + "description": { + "zh_CN": "点击确认按钮时触发" }, - { - "property": "showAfter", - "label": { - "text": { - "zh_CN": "在触发后多久显示内容,单位毫秒" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } + "type": "event", + "functionInfo": { + "params": [], + "returns": {} }, - { - "property": "hideAfter", - "label": { - "text": { - "zh_CN": "延迟关闭,单位毫秒" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } + "defaultValue": "" + }, + "onCancel": { + "label": { + "zh_CN": "点击取消按钮时触发" }, - { - "property": "autoClose", - "label": { - "text": { - "zh_CN": "tooltip 出现后自动隐藏延时,单位毫秒" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } + "description": { + "zh_CN": "点击取消按钮时触发" }, - { - "property": "showArrow", - "label": { - "text": { - "zh_CN": "是否显示 Tooltip 箭头, 欲了解更多信息,请参考 ElPopper" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } + "type": "event", + "functionInfo": { + "params": [], + "returns": {} }, - { - "property": "persistent", - "label": { - "text": { - "zh_CN": "当 popover 组件长时间不触发且 persistent 属性设置为 false 时, popover 将会被删除" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - } - ] + "defaultValue": "" + } }, - "events": {}, "slots": { "reference": { "label": { - "zh_CN": "触发 Popover 显示的 HTML 元素" + "zh_CN": "触发 Popconfirm 显示的 HTML 元素" }, "description": { - "zh_CN": "触发 Popover 显示的 HTML 元素" + "zh_CN": "触发 Popconfirm 显示的 HTML 元素" } } } } }, { - "id": 67, + "id": 66, "version": "2.7.8", "name": { - "zh_CN": "文字提示" + "zh_CN": "弹出框" }, - "component": "ElTooltip", - "icon": "tooltip", - "description": "常用于展示鼠标 hover 时的提示信息。", + "component": "ElPopover", + "icon": "popover", + "description": "", "doc_url": "", "screenshot": "", "tags": "", @@ -22615,7 +22308,7 @@ "script": "https://npm.onmicrosoft.cn/element-plus@2.4.2/dist/index.full.mjs", "css": "https://npm.onmicrosoft.cn/element-plus@2.4.2/dist/index.css", "dependencies": null, - "exportName": "ElTooltip", + "exportName": "ElPopover", "destructuring": true }, "group": "Feedback 反馈组件", @@ -22638,55 +22331,28 @@ "rootSelector": "", "shortcuts": { "properties": [ - "role", + "trigger", + "placement", + "disabled", "visible", - "onUpdate:visible", + "transition", + "popperOptions", + "tabindex", + "content", + "popperStyle", + "popperClass", + "enterable", + "effect", + "teleported", + "title", + "width", + "offset", "showAfter", "hideAfter", "autoClose", - "boundariesPadding", - "fallbackPlacements", - "gpuAcceleration", - "offset", - "placement", - "popperOptions", - "strategy", - "id", - "style", - "className", - "effect", - "enterable", - "pure", - "focusOnShow", - "trapping", - "popperClass", - "popperStyle", - "referenceEl", - "triggerTargetEl", - "stopPopperMouseEvent", - "virtualTriggering", - "zIndex", - "ariaLabel", - "appendTo", - "content", - "rawContent", + "showArrow", "persistent", - "transition", - "teleported", - "disabled", - "virtualRef", - "onMouseenter", - "onMouseleave", - "onClick", - "onKeydown", - "onFocus", - "onBlur", - "onContextmenu", - "open", - "trigger", - "triggerKeys", - "arrowOffset", - "showArrow" + "onUpdate:visible" ] }, "contextMenu": { @@ -22698,438 +22364,894 @@ "framework": "Vue" }, "schema": { - "properties": { - "label": { - "zh_CN": "基础信息" - }, - "description": { - "zh_CN": "基础信息" - }, - "collapse": { - "number": 6, - "text": { - "zh_CN": "显示更多" - } - }, - "content": [ - { - "property": "role", - "label": { - "text": { - "zh_CN": "容器角色,为选择器组件提供的内部属性" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "visible", - "label": { - "text": { - "zh_CN": "Tooltip 组件可见性" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "showAfter", - "label": { - "text": { - "zh_CN": "在触发后多久显示内容,单位毫秒" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - }, - { - "property": "hideAfter", - "label": { - "text": { - "zh_CN": "延迟关闭,单位毫秒" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - }, - { - "property": "autoClose", - "label": { - "text": { - "zh_CN": "tooltip 出现后自动隐藏延时,单位毫秒" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - }, - { - "property": "fallbackPlacements", - "label": { - "text": { - "zh_CN": "Tooltip 可用的 positions 请查看popper.js 文档" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "offset", - "label": { - "text": { - "zh_CN": "出现位置的偏移量" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - }, - { - "property": "placement", - "label": { - "text": { - "zh_CN": "Tooltip 组件出现的位置" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "popperOptions", - "label": { - "text": { - "zh_CN": "popper.js 参数" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "id", - "label": { - "text": { - "zh_CN": "本机输入id" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "effect", - "label": { - "text": { - "zh_CN": "Tooltip 主题,内置了 dark / light 两种" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "enterable", - "label": { - "text": { - "zh_CN": "鼠标是否可进入到 tooltip 中" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "popperClass", - "label": { - "text": { - "zh_CN": "为 Tooltip 的 popper 添加类名" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "virtualTriggering", - "label": { - "text": { - "zh_CN": "用来标识虚拟触发是否被启用" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "ariaLabel", - "label": { - "text": { - "zh_CN": "和 aria-label 属性保持一致" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "appendTo", - "label": { - "text": { - "zh_CN": "指示 Tooltip 的内容将附加在哪一个网页元素上" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "content", - "label": { - "text": { - "zh_CN": "显示的内容,也可被 slot#content 覆盖" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "rawContent", - "label": { - "text": { - "zh_CN": "content 中的内容是否作为 HTML 字符串处理" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "persistent", - "label": { - "text": { - "zh_CN": "当 tooltip 组件长时间不触发且 persistent 属性设置为 false 时, popconfirm 将会被删除" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "transition", - "label": { - "text": { - "zh_CN": "动画名称" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "teleported", - "label": { - "text": { - "zh_CN": "是否使用 teleport。设置成 true则会被追加到 append-to 的位置" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "disabled", - "label": { - "text": { - "zh_CN": "Tooltip 组件是否禁用" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } - }, - { - "property": "virtualRef", - "label": { - "text": { - "zh_CN": "标识虚拟触发时的触发元素" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "trigger", - "label": { - "text": { - "zh_CN": "如何触发 Tooltip" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } + "properties": [ + { + "label": { + "zh_CN": "基础信息" }, - { - "property": "triggerKeys", - "label": { - "text": { - "zh_CN": "当鼠标点击或者聚焦在触发元素上时, 可以定义一组键盘按键并且通过它们来控制 Tooltip 的显示" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } + "description": { + "zh_CN": "基础信息" + }, + "collapse": { + "number": 6, + "text": { + "zh_CN": "显示更多" + } + }, + "content": [ + { + "property": "trigger", + "label": { + "text": { + "zh_CN": "触发方式" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "placement", + "label": { + "text": { + "zh_CN": "出现位置" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "disabled", + "label": { + "text": { + "zh_CN": "Popover 是否可用" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "visible", + "label": { + "text": { + "zh_CN": "Popover 是否显示" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "transition", + "label": { + "text": { + "zh_CN": "定义渐变动画,默认是 el-fade-in-linear" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "popperOptions", + "label": { + "text": { + "zh_CN": "popper.js 的参数" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "tabindex", + "label": { + "text": { + "zh_CN": "Popover 组件的 tabindex" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "content", + "label": { + "text": { + "zh_CN": "显示的内容,也可以通过写入默认 slot 修改显示内容" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "popperStyle", + "label": { + "text": { + "zh_CN": "为 popper 自定义样式" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "popperClass", + "label": { + "text": { + "zh_CN": "为 popper 添加类名" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "effect", + "label": { + "text": { + "zh_CN": "Tooltip 主题,Element Plus 内置了 dark / light 两种主题" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "teleported", + "label": { + "text": { + "zh_CN": "是否将 popover 的下拉列表插入至 body 元素" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "title", + "label": { + "text": { + "zh_CN": "标题" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "width", + "label": { + "text": { + "zh_CN": "宽度" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "offset", + "label": { + "text": { + "zh_CN": "浮层偏移量, Popover 是在 Tooltip,基础上开发的, Popover的 offset 是 undefined, 但Tooltip 的 offset 是12" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "showAfter", + "label": { + "text": { + "zh_CN": "在触发后多久显示内容,单位毫秒" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "hideAfter", + "label": { + "text": { + "zh_CN": "延迟关闭,单位毫秒" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "autoClose", + "label": { + "text": { + "zh_CN": "tooltip 出现后自动隐藏延时,单位毫秒" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "showArrow", + "label": { + "text": { + "zh_CN": "是否显示 Tooltip 箭头, 欲了解更多信息,请参考 ElPopper" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "persistent", + "label": { + "text": { + "zh_CN": "当 popover 组件长时间不触发且 persistent 属性设置为 false 时, popover 将会被删除" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + } + ] + } + ], + "events": {}, + "slots": { + "reference": { + "label": { + "zh_CN": "触发 Popover 显示的 HTML 元素" }, - { - "property": "showArrow", - "label": { - "text": { - "zh_CN": "tooltip 的内容是否有箭头" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaSwitch", - "props": {} - } + "description": { + "zh_CN": "触发 Popover 显示的 HTML 元素" } + } + } + } + }, + { + "id": 67, + "version": "2.7.8", + "name": { + "zh_CN": "文字提示" + }, + "component": "ElTooltip", + "icon": "tooltip", + "description": "常用于展示鼠标 hover 时的提示信息。", + "doc_url": "", + "screenshot": "", + "tags": "", + "keywords": "", + "dev_mode": "proCode", + "npm": { + "package": "element-plus", + "version": "2.7.8", + "script": "https://npm.onmicrosoft.cn/element-plus@2.4.2/dist/index.full.mjs", + "css": "https://npm.onmicrosoft.cn/element-plus@2.4.2/dist/index.css", + "dependencies": null, + "exportName": "ElTooltip", + "destructuring": true + }, + "group": "Feedback 反馈组件", + "category": "element-plus", + "configure": { + "loop": true, + "condition": true, + "styles": true, + "isContainer": false, + "isModal": false, + "isPopper": false, + "nestingRule": { + "childWhitelist": "", + "parentWhitelist": "", + "descendantBlacklist": "", + "ancestorWhitelist": "" + }, + "isNullNode": false, + "isLayout": false, + "rootSelector": "", + "shortcuts": { + "properties": [ + "role", + "visible", + "onUpdate:visible", + "showAfter", + "hideAfter", + "autoClose", + "boundariesPadding", + "fallbackPlacements", + "gpuAcceleration", + "offset", + "placement", + "popperOptions", + "strategy", + "id", + "style", + "className", + "effect", + "enterable", + "pure", + "focusOnShow", + "trapping", + "popperClass", + "popperStyle", + "referenceEl", + "triggerTargetEl", + "stopPopperMouseEvent", + "virtualTriggering", + "zIndex", + "ariaLabel", + "appendTo", + "content", + "rawContent", + "persistent", + "transition", + "teleported", + "disabled", + "virtualRef", + "onMouseenter", + "onMouseleave", + "onClick", + "onKeydown", + "onFocus", + "onBlur", + "onContextmenu", + "open", + "trigger", + "triggerKeys", + "arrowOffset", + "showArrow" ] }, + "contextMenu": { + "actions": ["copy", "remove", "insert", "updateAttr", "bindEevent", "createBlock"], + "disable": [] + }, + "invalidity": [""], + "clickCapture": true, + "framework": "Vue" + }, + "schema": { + "properties": [ + { + "label": { + "zh_CN": "基础信息" + }, + "description": { + "zh_CN": "基础信息" + }, + "collapse": { + "number": 6, + "text": { + "zh_CN": "显示更多" + } + }, + "content": [ + { + "property": "role", + "label": { + "text": { + "zh_CN": "容器角色,为选择器组件提供的内部属性" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "visible", + "label": { + "text": { + "zh_CN": "Tooltip 组件可见性" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "showAfter", + "label": { + "text": { + "zh_CN": "在触发后多久显示内容,单位毫秒" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "hideAfter", + "label": { + "text": { + "zh_CN": "延迟关闭,单位毫秒" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "autoClose", + "label": { + "text": { + "zh_CN": "tooltip 出现后自动隐藏延时,单位毫秒" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "fallbackPlacements", + "label": { + "text": { + "zh_CN": "Tooltip 可用的 positions 请查看popper.js 文档" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "offset", + "label": { + "text": { + "zh_CN": "出现位置的偏移量" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "placement", + "label": { + "text": { + "zh_CN": "Tooltip 组件出现的位置" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "popperOptions", + "label": { + "text": { + "zh_CN": "popper.js 参数" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "id", + "label": { + "text": { + "zh_CN": "本机输入id" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "effect", + "label": { + "text": { + "zh_CN": "Tooltip 主题,内置了 dark / light 两种" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "enterable", + "label": { + "text": { + "zh_CN": "鼠标是否可进入到 tooltip 中" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "popperClass", + "label": { + "text": { + "zh_CN": "为 Tooltip 的 popper 添加类名" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "virtualTriggering", + "label": { + "text": { + "zh_CN": "用来标识虚拟触发是否被启用" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "ariaLabel", + "label": { + "text": { + "zh_CN": "和 aria-label 属性保持一致" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "appendTo", + "label": { + "text": { + "zh_CN": "指示 Tooltip 的内容将附加在哪一个网页元素上" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "content", + "label": { + "text": { + "zh_CN": "显示的内容,也可被 slot#content 覆盖" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "rawContent", + "label": { + "text": { + "zh_CN": "content 中的内容是否作为 HTML 字符串处理" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "persistent", + "label": { + "text": { + "zh_CN": "当 tooltip 组件长时间不触发且 persistent 属性设置为 false 时, popconfirm 将会被删除" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "transition", + "label": { + "text": { + "zh_CN": "动画名称" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "teleported", + "label": { + "text": { + "zh_CN": "是否使用 teleport。设置成 true则会被追加到 append-to 的位置" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "disabled", + "label": { + "text": { + "zh_CN": "Tooltip 组件是否禁用" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + }, + { + "property": "virtualRef", + "label": { + "text": { + "zh_CN": "标识虚拟触发时的触发元素" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "trigger", + "label": { + "text": { + "zh_CN": "如何触发 Tooltip" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "triggerKeys", + "label": { + "text": { + "zh_CN": "当鼠标点击或者聚焦在触发元素上时, 可以定义一组键盘按键并且通过它们来控制 Tooltip 的显示" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "showArrow", + "label": { + "text": { + "zh_CN": "tooltip 的内容是否有箭头" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaSwitch", + "props": {} + } + } + ] + } + ], "events": { "onHide": { "label": { @@ -23211,70 +23333,72 @@ "framework": "Vue" }, "schema": { - "properties": { - "label": { - "zh_CN": "基础信息" - }, - "description": { - "zh_CN": "基础信息" - }, - "collapse": { - "number": 6, - "text": { - "zh_CN": "显示更多" - } - }, - "content": [ - { - "property": "direction", - "label": { - "text": { - "zh_CN": "设置分割线方向" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "contentPosition", - "label": { - "text": { - "zh_CN": "自定义分隔线内容的位置" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } + "properties": [ + { + "label": { + "zh_CN": "基础信息" }, - { - "property": "borderStyle", - "label": { - "text": { - "zh_CN": "设置分隔符样式" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - } - ] - }, + "description": { + "zh_CN": "基础信息" + }, + "collapse": { + "number": 6, + "text": { + "zh_CN": "显示更多" + } + }, + "content": [ + { + "property": "direction", + "label": { + "text": { + "zh_CN": "设置分割线方向" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "contentPosition", + "label": { + "text": { + "zh_CN": "自定义分隔线内容的位置" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "borderStyle", + "label": { + "text": { + "zh_CN": "设置分隔符样式" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + } + ] + } + ], "events": {}, "slots": { "default": { @@ -23341,166 +23465,168 @@ "framework": "Vue" }, "schema": { - "properties": { - "label": { - "zh_CN": "基础信息" - }, - "description": { - "zh_CN": "基础信息" - }, - "collapse": { - "number": 6, - "text": { - "zh_CN": "显示更多" - } - }, - "content": [ - { - "property": "zIndex", - "label": { - "text": { - "zh_CN": "水印元素的z-index值" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - }, - { - "property": "rotate", - "label": { - "text": { - "zh_CN": "水印的旋转角度, 单位 °" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - }, - { - "property": "width", - "label": { - "text": { - "zh_CN": "水印的宽度, content 的默认值是它自己的宽度" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - }, - { - "property": "height", - "label": { - "text": { - "zh_CN": "水印的高度, content 的默认值是它自己的高度" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaNumber", - "props": {} - } - }, - { - "property": "image", - "label": { - "text": { - "zh_CN": "水印图片,建议使用 2x 或 3x 图像" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "content", - "label": { - "text": { - "zh_CN": "水印文本内容" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaInput", - "props": {} - } - }, - { - "property": "font", - "label": { - "text": { - "zh_CN": "文字样式" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - }, - { - "property": "gap", - "label": { - "text": { - "zh_CN": "水印之间的间距" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } + "properties": [ + { + "label": { + "zh_CN": "基础信息" }, - { - "property": "offset", - "label": { - "text": { - "zh_CN": "水印从容器左上角的偏移 默认值为 gap/2" - } - }, - "required": false, - "readOnly": false, - "disabled": false, - "cols": 12, - "widget": { - "component": "MetaCodeEditor", - "props": {} - } - } - ] - }, + "description": { + "zh_CN": "基础信息" + }, + "collapse": { + "number": 6, + "text": { + "zh_CN": "显示更多" + } + }, + "content": [ + { + "property": "zIndex", + "label": { + "text": { + "zh_CN": "水印元素的z-index值" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "rotate", + "label": { + "text": { + "zh_CN": "水印的旋转角度, 单位 °" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "width", + "label": { + "text": { + "zh_CN": "水印的宽度, content 的默认值是它自己的宽度" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "height", + "label": { + "text": { + "zh_CN": "水印的高度, content 的默认值是它自己的高度" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaNumber", + "props": {} + } + }, + { + "property": "image", + "label": { + "text": { + "zh_CN": "水印图片,建议使用 2x 或 3x 图像" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "content", + "label": { + "text": { + "zh_CN": "水印文本内容" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaInput", + "props": {} + } + }, + { + "property": "font", + "label": { + "text": { + "zh_CN": "文字样式" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "gap", + "label": { + "text": { + "zh_CN": "水印之间的间距" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + }, + { + "property": "offset", + "label": { + "text": { + "zh_CN": "水印从容器左上角的偏移 默认值为 gap/2" + } + }, + "required": false, + "readOnly": false, + "disabled": false, + "cols": 12, + "widget": { + "component": "MetaCodeEditor", + "props": {} + } + } + ] + } + ], "events": {}, "slots": {} } @@ -23518,16 +23644,16 @@ "icon": "button", "screenshot": "", "snippetName": "ElButton", - "schema": {} - }, - { - "name": { - "zh_CN": "布局容器" - }, - "icon": "breadcrumb", - "screenshot": "", - "snippetName": "ElContainer", - "schema": {} + "schema": { + "children": [ + { + "componentName": "Text", + "props": { + "text": "按钮文本" + } + } + ] + } }, { "name": { @@ -23538,51 +23664,6 @@ "snippetName": "ElIcon", "schema": {} }, - { - "name": { - "zh_CN": "链接" - }, - "icon": "link", - "screenshot": "", - "snippetName": "ElLink", - "schema": {} - }, - { - "name": { - "zh_CN": "文本2.3.0" - }, - "icon": "text", - "screenshot": "", - "snippetName": "ElText", - "schema": {} - }, - { - "name": { - "zh_CN": "滚动条" - }, - "icon": "expand", - "screenshot": "", - "snippetName": "ElScrollbar", - "schema": {} - }, - { - "name": { - "zh_CN": "间距" - }, - "icon": "overflow-scroll", - "screenshot": "", - "snippetName": "ElSpace", - "schema": {} - }, - { - "name": { - "zh_CN": "Provider 全局配置" - }, - "icon": "plugin-icon-language", - "screenshot": "", - "snippetName": "ElConfigProvider", - "schema": {} - }, { "name": { "zh_CN": "自动补全输入框" @@ -23635,7 +23716,78 @@ "icon": "form", "screenshot": "", "snippetName": "ElForm", - "schema": {} + "schema": { + "children": [ + { + "componentName": "ElFormItem", + "props": { + "label": "账号", + "prop": "account" + }, + "children": [ + { + "componentName": "ElInput", + "props": { + "modelValue": "", + "placeholder": "请输入账号" + } + } + ] + }, + { + "componentName": "ElFormItem", + "props": { + "label": "密码", + "prop": "password" + }, + "children": [ + { + "componentName": "ElInput", + "props": { + "modelValue": "", + "placeholder": "请输入密码", + "type": "password" + } + } + ] + }, + { + "componentName": "ElFormItem", + "props": {}, + "children": [ + { + "componentName": "ElButton", + "props": { + "type": "primary", + "style": "margin-right: 10px" + }, + "children": [ + { + "componentName": "Text", + "props": { + "text": "提交" + } + } + ] + }, + { + "componentName": "ElButton", + "props": { + "type": "primary" + }, + "children": [ + { + "componentName": "Text", + "props": { + "text": "重置" + } + } + ] + } + ] + } + ] + } }, { "name": { @@ -23655,15 +23807,6 @@ "snippetName": "ElInputNumber", "schema": {} }, - { - "name": { - "zh_CN": "提及2.8.0" - }, - "icon": "text-page-review", - "screenshot": "", - "snippetName": "ElMention", - "schema": {} - }, { "name": { "zh_CN": "单选框" @@ -23763,15 +23906,6 @@ "snippetName": "ElAvatar", "schema": {} }, - { - "name": { - "zh_CN": "徽章" - }, - "icon": "flowchart-rds", - "screenshot": "", - "snippetName": "ElBadge", - "schema": {} - }, { "name": { "zh_CN": "日历" @@ -23808,15 +23942,6 @@ "snippetName": "ElCollapse", "schema": {} }, - { - "name": { - "zh_CN": "描述列表" - }, - "icon": "grid-row-auto", - "screenshot": "", - "snippetName": "ElDescriptions", - "schema": {} - }, { "name": { "zh_CN": "空状态" @@ -23835,15 +23960,6 @@ "snippetName": "ElImage", "schema": {} }, - { - "name": { - "zh_CN": "Scroll 无限滚动" - }, - "icon": "full-screen", - "screenshot": "", - "snippetName": "ElInfiniteScroll", - "schema": {} - }, { "name": { "zh_CN": "分页" @@ -23887,7 +24003,49 @@ "icon": "table", "screenshot": "", "snippetName": "ElTable", - "schema": {} + "schema": { + "props": { + "data": [ + { + "date": "2016-05-03", + "name": "Tom", + "address": "No. 189, Grove St, Los Angeles" + }, + { + "date": "2016-05-02", + "name": "Tom", + "address": "No. 189, Grove St, Los Angeles" + }, + { + "date": "2016-05-04", + "name": "Tom", + "address": "No. 189, Grove St, Los Angeles" + }, + { + "date": "2016-05-01", + "name": "Tom", + "address": "No. 189, Grove St, Los Angeles" + } + ], + "columns": [ + { + "type": "index" + }, + { + "label": "Date", + "prop": "date" + }, + { + "label": "Name", + "prop": "name" + }, + { + "label": "Address", + "prop": "address" + } + ] + } + } }, { "name": { @@ -23907,15 +24065,6 @@ "snippetName": "ElTimeline", "schema": {} }, - { - "name": { - "zh_CN": "漫游式引导2.5.0" - }, - "icon": "checkout", - "screenshot": "", - "snippetName": "ElTour", - "schema": {} - }, { "name": { "zh_CN": "树形控件" @@ -23934,15 +24083,6 @@ "snippetName": "ElStatistic", "schema": {} }, - { - "name": { - "zh_CN": "分段控制器2.7.0" - }, - "icon": "align-content-space-around", - "screenshot": "", - "snippetName": "ElSegmented", - "schema": {} - }, { "name": { "zh_CN": "固钉" @@ -23952,24 +24092,6 @@ "snippetName": "ElAffix", "schema": {} }, - { - "name": { - "zh_CN": "锚点2.6.0" - }, - "icon": "clock-small", - "screenshot": "", - "snippetName": "ElAnchor", - "schema": {} - }, - { - "name": { - "zh_CN": "回到顶部" - }, - "icon": "unfold-outline", - "screenshot": "", - "snippetName": "ElBacktop", - "schema": {} - }, { "name": { "zh_CN": "面包屑" @@ -24122,15 +24244,6 @@ "screenshot": "", "snippetName": "ElDivider", "schema": {} - }, - { - "name": { - "zh_CN": "水印 2.4.0" - }, - "icon": "carouselitem", - "screenshot": "", - "snippetName": "ElWatermark", - "schema": {} } ] }