From f9a789c535e08585c46f33d5e1974157fcfb53dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=A3=95=E8=B4=A2?= Date: Thu, 1 Feb 2024 00:59:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mdp-ui/mdp-select-table/README.md | 30 +++++++++++++++++++ src/views/mdp/sys/user/Form.vue | 6 ++-- 2 files changed, 33 insertions(+), 3 deletions(-) diff --git a/src/components/mdp-ui/mdp-select-table/README.md b/src/components/mdp-ui/mdp-select-table/README.md index 8b08f59..7c405fd 100644 --- a/src/components/mdp-ui/mdp-select-table/README.md +++ b/src/components/mdp-ui/mdp-select-table/README.md @@ -6,6 +6,28 @@ ### 用法 +#### 最简单的用法,通过props定义编号及名称 +```html + + +``` +```js + +``` + #### 通过属性columnCfgs传入表格字段列表,mdp框架将解析出表头内容,用于配置显示列,排序,高级查询等 ```html @@ -65,6 +87,7 @@ |show-hi-query|是否显示高级查询|boolean|—|true |show-common-query|是否显示常规查询|boolean|—|true |column-cfgs|表头列配置项列表|Array|-|- +|props|简化版的column-cfgs,如果配置了column-cfgs则该属性不起作用,只有两列编号及名称|Object|-|{id:'id',name:'name'} @@ -107,6 +130,13 @@ itemCode|字典表中itemCode字段,填写了该值将从字典表加载下拉 colPrefix|属性需要添加前缀时使用,比如res.id=xxxxx,此次填写res.|string|—|— disabledHq|是否允许编辑查询条件|boolean|—|— +### props 简易列配置 + +|参数|说明|类型|可选值|默认值| +|--------|------|--------|-----------------|----------------| +id|编号列|string|id|id +name|名称列|string|name|name + ### Methods |方法名|说明|参数| diff --git a/src/views/mdp/sys/user/Form.vue b/src/views/mdp/sys/user/Form.vue index de9a0a4..861f22d 100644 --- a/src/views/mdp/sys/user/Form.vue +++ b/src/views/mdp/sys/user/Form.vue @@ -44,13 +44,13 @@ - + - + - +