resolver-egretimp-plus 0.1.141 → 0.1.142
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/h5/index.js +2 -2
- package/dist/web/index.js +2 -2
- package/package.json +1 -1
- package/src/rules/parseCondition.js +9 -4
- package/src/rulesOfDate/parseCondition.js +9 -3
- package/src/utils/common.js +10 -1
- package/src/utils/render.jsx +3 -3
- package//346/270/262/346/237/223/345/231/250/344/275/277/347/224/250/346/211/213/345/206/214.md +2242 -0
- package//344/275/277/347/224/250/346/211/213/345/206/214.md +0 -1216
- package//347/273/204/344/273/266/351/205/215/347/275/256/345/261/236/346/200/247/345/256/214/346/225/264/345/217/202/350/200/203.md +0 -1094
|
@@ -1,1094 +0,0 @@
|
|
|
1
|
-
# 组件配置属性完整参考
|
|
2
|
-
|
|
3
|
-
## 目录
|
|
4
|
-
|
|
5
|
-
- [全局通用属性](#全局通用属性)
|
|
6
|
-
- [表单输入组件](#表单输入组件)
|
|
7
|
-
- [ElInput - 文本输入框](#elinput---文本输入框)
|
|
8
|
-
- [ElSelect - 下拉选择框](#elselect---下拉选择框)
|
|
9
|
-
- [ElRadio - 单选框](#elradio---单选框)
|
|
10
|
-
- [ElCheckbox - 复选框](#elcheckbox---复选框)
|
|
11
|
-
- [ElDatePicker - 日期选择器](#eldatepicker---日期选择器)
|
|
12
|
-
- [ElTimePicker - 时间选择器](#eltimepicker---时间选择器)
|
|
13
|
-
- [ElInputNumber - 数字输入框](#elinputnumber---数字输入框)
|
|
14
|
-
- [按钮与文本组件](#按钮与文本组件)
|
|
15
|
-
- [ElButton - 按钮](#elbutton---按钮)
|
|
16
|
-
- [ElText - 静态文本](#eltext---静态文本)
|
|
17
|
-
- [布局组件](#布局组件)
|
|
18
|
-
- [CustomComponentFormLayout - 表单布局](#customcomponentformlayout---表单布局)
|
|
19
|
-
- [CustomComponentTabs - 标签页](#customcomponenttabs---标签页)
|
|
20
|
-
- [CustomComponentCollapse - 折叠面板](#customcomponentcollapse---折叠面板)
|
|
21
|
-
- [CustomComponentDialog - 对话框](#customcomponentdialog---对话框)
|
|
22
|
-
- [CustomComponentCycle - 循环列表](#customcomponentcycle---循环列表)
|
|
23
|
-
- [数据展示组件](#数据展示组件)
|
|
24
|
-
- [CustomComponentTable - 表格](#customcomponenttable---表格)
|
|
25
|
-
- [ElPagination - 分页](#elpagination---分页)
|
|
26
|
-
|
|
27
|
-
---
|
|
28
|
-
|
|
29
|
-
## 全局通用属性
|
|
30
|
-
|
|
31
|
-
以下属性**所有组件**都可以使用,由 `commonPropsType` 定义:
|
|
32
|
-
|
|
33
|
-
| 属性名 | 类型 | 说明 | 配置字段 |
|
|
34
|
-
|--------|------|------|----------|
|
|
35
|
-
| `modelValue` | Any | 双向绑定的值 | - |
|
|
36
|
-
| `config` | Object | 配置对象 | - |
|
|
37
|
-
| `refValue` | Any | 组件引用值 | - |
|
|
38
|
-
| `disabled` | Boolean | 是否禁用 | `editFlag == '0'` 或根据 mode 计算 |
|
|
39
|
-
| `clearable` | Boolean | 是否可清除 | `clearableFlag == '1'` |
|
|
40
|
-
| `required` | Boolean | 是否必填 | `requiredFlag == '1'` |
|
|
41
|
-
| `hidden` | Boolean | 是否隐藏 | `hidden == '1'` 或 `collapseHidden == '1'` |
|
|
42
|
-
| `onlyRequiredFlag` | Boolean | 仅显示必填标识 | `onlyRequiredFlag` |
|
|
43
|
-
| `tableData` | Array | 表格数据(表格列中) | - |
|
|
44
|
-
| `rowScope` | Object | 行数据 `{row, $index}` | - |
|
|
45
|
-
| `width` | String/Number | 组件宽度 | `config.width` |
|
|
46
|
-
| `mode` | String | 当前模式: operate/detail/log | - |
|
|
47
|
-
| `options` | Array | 下拉选项数据 | 根据 `selectKey` 从 selects 获取 |
|
|
48
|
-
| `placeholder` | String | 占位符(中文) | `config.defPlacehold` |
|
|
49
|
-
| `placeholderEn` | String | 占位符(英文) | `config.defPlaceholdEn` |
|
|
50
|
-
| `compInfo` | Object | 组件配置信息 | - |
|
|
51
|
-
|
|
52
|
-
### 全局布局属性
|
|
53
|
-
|
|
54
|
-
| 属性名 | 类型 | 说明 | 配置字段 |
|
|
55
|
-
|--------|------|------|----------|
|
|
56
|
-
| `span` | Number | 栅格占位(1-24) | `config.span` |
|
|
57
|
-
| `offset` | Number | 左侧偏移格数 | `config.offset` |
|
|
58
|
-
| `md` | Number/Object | 中等屏幕占位 | `config.md` |
|
|
59
|
-
| `lg` | Number/Object | 大屏幕占位 | `config.lg` |
|
|
60
|
-
| `marginRight` | String/Number | 右边距 | `config.marginRight` |
|
|
61
|
-
| `marginLeft` | String/Number | 左边距 | `config.marginLeft` |
|
|
62
|
-
| `marginTop` | String/Number | 上边距 | `config.marginTop` |
|
|
63
|
-
| `marginBottom` | String/Number | 下边距 | `config.marginBottom` |
|
|
64
|
-
| `paddingRight` | String/Number | 右内边距 | `config.paddingRight` |
|
|
65
|
-
| `paddingLeft` | String/Number | 左内边距 | `config.paddingLeft` |
|
|
66
|
-
| `paddingTop` | String/Number | 上内边距 | `config.paddingTop` |
|
|
67
|
-
| `paddingBottom` | String/Number | 下内边距 | `config.paddingBottom` |
|
|
68
|
-
| `style` | Object | 内联样式 | `config.defStyle` (JSON字符串) |
|
|
69
|
-
| `class` | String | CSS类名 | `config.class` |
|
|
70
|
-
|
|
71
|
-
### 全局表单项属性
|
|
72
|
-
|
|
73
|
-
| 属性名 | 类型 | 说明 | 配置字段 |
|
|
74
|
-
|--------|------|------|----------|
|
|
75
|
-
| `labelZh` | String | 中文标签 | `config.labelZh` 或 `config.metaNameZh` |
|
|
76
|
-
| `labelEn` | String | 英文标签 | `config.labelEn` 或 `config.metaNameEn` |
|
|
77
|
-
| `labelWidth` | String | 标签宽度 | `config.labelWidth` |
|
|
78
|
-
| `labelHidden` | String | 隐藏标签 | `config.labelHidden == '1'` |
|
|
79
|
-
| `label-position` | String | 标签位置: right/left/top | `config.labelPosition` |
|
|
80
|
-
| `label-vertical` | String | 标签垂直对齐 | `config.labelVertical` |
|
|
81
|
-
| `hintFlag` | String | 显示提示图标 | `config.hintFlag == '1'` |
|
|
82
|
-
| `hintContentZh` | String | 提示内容(中文) | `config.hintContentZh` |
|
|
83
|
-
| `hintContentEn` | String | 提示内容(英文) | `config.hintContentEn` |
|
|
84
|
-
| `hintType` | String | 提示图标类型 | `config.hintType` |
|
|
85
|
-
| `formItemMarginRight` | String/Number | 表单项右边距 | `config.formItemMarginRight` |
|
|
86
|
-
| `formItemMarginLeft` | String/Number | 表单项左边距 | `config.formItemMarginLeft` |
|
|
87
|
-
| `formItemMarginTop` | String/Number | 表单项上边距 | `config.formItemMarginTop` |
|
|
88
|
-
| `formItemMarginBottom` | String/Number | 表单项下边距 | `config.formItemMarginBottom` |
|
|
89
|
-
|
|
90
|
-
### 全局校验属性
|
|
91
|
-
|
|
92
|
-
| 属性名 | 类型 | 说明 | 配置字段 |
|
|
93
|
-
|--------|------|------|----------|
|
|
94
|
-
| `requiredFlag` | String | 是否必填 | `'1'`-必填, `'0'`-非必填 |
|
|
95
|
-
| `regexPattern` | String | 正则校验(JSON) | `config.regexPattern` |
|
|
96
|
-
| `validRegs` | Array/Object | 校验规则 | `config.validRegs` |
|
|
97
|
-
| `validators` | Array | 自定义校验函数 | `config.validators` |
|
|
98
|
-
| `alongValidate` | String | 禁用时是否校验 | `config.alongValidate == '1'` |
|
|
99
|
-
|
|
100
|
-
### 全局事件属性
|
|
101
|
-
|
|
102
|
-
| 属性名 | 类型 | 说明 | 配置字段 |
|
|
103
|
-
|--------|------|------|----------|
|
|
104
|
-
| `onClick` | Function | 点击事件 | `config.onClick` |
|
|
105
|
-
| `onMounted` | String/Function | 挂载完成事件 | `config.onMounted` |
|
|
106
|
-
| `onVnodeMounted` | Function | VNode挂载事件 | `config.onVnodeMounted` |
|
|
107
|
-
| `onVnodeUnmounted` | Function | VNode卸载事件 | `config.onVnodeUnmounted` |
|
|
108
|
-
| `immediateClickEvent` | Boolean | 立即执行点击事件 | `config.immediateClickEvent` |
|
|
109
|
-
|
|
110
|
-
### 全局服务编排属性
|
|
111
|
-
|
|
112
|
-
| 属性名 | 类型 | 说明 | 配置字段 |
|
|
113
|
-
|--------|------|------|----------|
|
|
114
|
-
| `lcpPageServiceMapVOList` | Array | 服务调用配置 | `config.lcpPageServiceMapVOList` |
|
|
115
|
-
| `lcpPagePopupMapVO` | Object | 弹窗配置 | `config.lcpPagePopupMapVO` |
|
|
116
|
-
| `lcpPageRuleVOList` | Array | 规则配置 | `config.lcpPageRuleVOList` |
|
|
117
|
-
| `lcpPageClosedMapVO` | Object | 页面关闭配置 | `config.lcpPageClosedMapVO` |
|
|
118
|
-
| `beforeRequestService` | Function | 请求前钩子 | `config.beforeRequestService` |
|
|
119
|
-
| `afterRequestService` | Function | 请求后钩子 | `config.afterRequestService` |
|
|
120
|
-
| `beforeOpenDialog` | Function | 打开弹窗前钩子 | `config.beforeOpenDialog` |
|
|
121
|
-
| `afterOpenDialog` | Function | 关闭弹窗后钩子 | `config.afterOpenDialog` |
|
|
122
|
-
| `middleOpenDialog` | Function | 弹窗中间钩子 | `config.middleOpenDialog` |
|
|
123
|
-
|
|
124
|
-
---
|
|
125
|
-
|
|
126
|
-
## 表单输入组件
|
|
127
|
-
|
|
128
|
-
### ElInput - 文本输入框
|
|
129
|
-
|
|
130
|
-
**metaType**: `input`, `textarea`
|
|
131
|
-
|
|
132
|
-
#### Element Plus 原生属性
|
|
133
|
-
|
|
134
|
-
| 属性名 | 类型 | 默认值 | 说明 |
|
|
135
|
-
|--------|------|--------|------|
|
|
136
|
-
| `type` | String | text | 类型: text/textarea/password 等 |
|
|
137
|
-
| `maxlength` | Number | - | 最大输入长度 |
|
|
138
|
-
| `minlength` | Number | - | 最小输入长度 |
|
|
139
|
-
| `show-word-limit` | Boolean | false | 显示字数统计 |
|
|
140
|
-
| `prefix-icon` | String/Object | - | 前缀图标 |
|
|
141
|
-
| `suffix-icon` | String/Object | - | 后缀图标 |
|
|
142
|
-
| `rows` | Number | 2 | textarea行数 |
|
|
143
|
-
| `autosize` | Boolean/Object | false | 自适应高度 |
|
|
144
|
-
| `autocomplete` | String | off | 自动完成 |
|
|
145
|
-
| `readonly` | Boolean | false | 只读 |
|
|
146
|
-
| `disabled` | Boolean | false | 禁用 |
|
|
147
|
-
|
|
148
|
-
#### 扩展属性
|
|
149
|
-
|
|
150
|
-
| 属性名 | 类型 | 默认值 | 说明 | 配置字段 |
|
|
151
|
-
|--------|------|--------|------|----------|
|
|
152
|
-
| `textAreaCnt` | Number/String | 2 | textarea行数 | `config.textAreaCnt` |
|
|
153
|
-
| `showTooltip` | String/Number | '' | 超出时显示tooltip | `config.showTooltip == '1'` |
|
|
154
|
-
| `showMoney` | String/Number | '' | 金额显示模式 | `config.showMoney == '1'` |
|
|
155
|
-
| `moneySeg` | String | ',' | 金额分割符 | `config.moneySeg` |
|
|
156
|
-
| `min` | Number | -Infinity | 金额最小值 | `config.min` |
|
|
157
|
-
| `max` | Number | Infinity | 金额最大值 | `config.max` |
|
|
158
|
-
| `decimal` | Number | 2 | 金额小数位数 | `config.decimal` |
|
|
159
|
-
| `keepLastZero` | String/Number | '0' | 保留小数点后缀0 | `config.keepLastZero == '1'` |
|
|
160
|
-
| `canShowFlag` | Array | ['na', '-'] | 金额可显示的特殊值 | `config.canShowFlag` |
|
|
161
|
-
| `showSymbol` | String | '' | 显示货币符号 | `config.showSymbol == '1'` |
|
|
162
|
-
| `symbol` | String | '¥' | 货币符号 | `config.symbol` |
|
|
163
|
-
| `symbolPosition` | String | before | 符号位置: before/after | `config.symbolPosition` |
|
|
164
|
-
| `maxLength` | Number | - | 最大长度(自动转maxlength) | `config.maxLength` |
|
|
165
|
-
| `icon` | String | - | 后缀图标 | `config.icon` |
|
|
166
|
-
| `onlyIconClickFlag` | String | '1' | 仅图标可点击 | `config.onlyIconClickFlag` |
|
|
167
|
-
| `pagePopupEditFlag` | String | '0' | 弹窗输入可编辑 | `config.pagePopupEditFlag == '1'` |
|
|
168
|
-
|
|
169
|
-
#### 示例
|
|
170
|
-
|
|
171
|
-
```json
|
|
172
|
-
{
|
|
173
|
-
"metaCode": "username",
|
|
174
|
-
"metaType": "input",
|
|
175
|
-
"labelZh": "用户名",
|
|
176
|
-
"requiredFlag": "1",
|
|
177
|
-
"clearableFlag": "1",
|
|
178
|
-
"maxLength": 50,
|
|
179
|
-
"defPlacehold": "请输入用户名",
|
|
180
|
-
"icon": "User"
|
|
181
|
-
}
|
|
182
|
-
```
|
|
183
|
-
|
|
184
|
-
```json
|
|
185
|
-
{
|
|
186
|
-
"metaCode": "amount",
|
|
187
|
-
"metaType": "input",
|
|
188
|
-
"labelZh": "金额",
|
|
189
|
-
"showMoney": "1",
|
|
190
|
-
"decimal": 2,
|
|
191
|
-
"showSymbol": "1",
|
|
192
|
-
"symbol": "¥",
|
|
193
|
-
"symbolPosition": "before"
|
|
194
|
-
}
|
|
195
|
-
```
|
|
196
|
-
|
|
197
|
-
---
|
|
198
|
-
|
|
199
|
-
### ElSelect - 下拉选择框
|
|
200
|
-
|
|
201
|
-
**metaType**: `select`
|
|
202
|
-
|
|
203
|
-
#### Element Plus 原生属性
|
|
204
|
-
|
|
205
|
-
| 属性名 | 类型 | 默认值 | 说明 |
|
|
206
|
-
|--------|------|--------|------|
|
|
207
|
-
| `multiple` | Boolean | false | 多选 |
|
|
208
|
-
| `disabled` | Boolean | false | 禁用 |
|
|
209
|
-
| `filterable` | Boolean | false | 可搜索 |
|
|
210
|
-
| `clearable` | Boolean | false | 可清除 |
|
|
211
|
-
| `multiple-limit` | Number | 0 | 多选限制数量 |
|
|
212
|
-
| `placeholder` | String | - | 占位符 |
|
|
213
|
-
| `remote` | Boolean | false | 远程搜索 |
|
|
214
|
-
| `loading` | Boolean | false | 加载中 |
|
|
215
|
-
|
|
216
|
-
#### 扩展属性
|
|
217
|
-
|
|
218
|
-
| 属性名 | 类型 | 默认值 | 说明 | 配置字段 |
|
|
219
|
-
|--------|------|--------|------|----------|
|
|
220
|
-
| `multiple` | String/Boolean/Number | - | 多选(支持字符串) | `config.multiple == '1'` |
|
|
221
|
-
| `filterable` | String/Boolean/Number | - | 可搜索(支持字符串) | `config.filterable == '1'` |
|
|
222
|
-
| `multipleLimit` | String/Number | 0 | 多选限制 | `config.multipleLimit` |
|
|
223
|
-
| `rangeOptions` | Array | - | 范围选项(过滤) | `config.rangeOptions` |
|
|
224
|
-
| `excludeOptions` | Array | - | 排除选项(过滤) | `config.excludeOptions` |
|
|
225
|
-
| `separator` | String | ',' | 多选分隔符 | `config.separator` |
|
|
226
|
-
| `virtualized` | String/Boolean/Number | '' | 虚拟化滚动 | `config.virtualized == '1'` |
|
|
227
|
-
| `valueType` | String | string | 值类型: list/object/string | `config.valueType` |
|
|
228
|
-
| `selectKey` | String | - | 枚举数据key | `config.selectKey` |
|
|
229
|
-
|
|
230
|
-
#### 选项数据结构
|
|
231
|
-
|
|
232
|
-
```javascript
|
|
233
|
-
{
|
|
234
|
-
columnValue: '1', // 选项值
|
|
235
|
-
columnDesc_zh: '启用', // 中文描述
|
|
236
|
-
columnDesc: 'Enabled', // 英文描述
|
|
237
|
-
columnStatus: '1' // 状态: '0'-禁用, '1'-启用, '2'-隐藏
|
|
238
|
-
}
|
|
239
|
-
```
|
|
240
|
-
|
|
241
|
-
#### 示例
|
|
242
|
-
|
|
243
|
-
```json
|
|
244
|
-
{
|
|
245
|
-
"metaCode": "status",
|
|
246
|
-
"metaType": "select",
|
|
247
|
-
"labelZh": "状态",
|
|
248
|
-
"selectKey": "status_options",
|
|
249
|
-
"filterable": "1",
|
|
250
|
-
"clearableFlag": "1",
|
|
251
|
-
"multiple": "0"
|
|
252
|
-
}
|
|
253
|
-
```
|
|
254
|
-
|
|
255
|
-
```json
|
|
256
|
-
{
|
|
257
|
-
"metaCode": "tags",
|
|
258
|
-
"metaType": "select",
|
|
259
|
-
"labelZh": "标签",
|
|
260
|
-
"selectKey": "tag_options",
|
|
261
|
-
"multiple": "1",
|
|
262
|
-
"filterable": "1",
|
|
263
|
-
"separator": ",",
|
|
264
|
-
"valueType": "list"
|
|
265
|
-
}
|
|
266
|
-
```
|
|
267
|
-
|
|
268
|
-
---
|
|
269
|
-
|
|
270
|
-
### ElRadio - 单选框
|
|
271
|
-
|
|
272
|
-
**metaType**: `radio`
|
|
273
|
-
|
|
274
|
-
#### Element Plus 原生属性
|
|
275
|
-
|
|
276
|
-
| 属性名 | 类型 | 默认值 | 说明 |
|
|
277
|
-
|--------|------|--------|------|
|
|
278
|
-
| `disabled` | Boolean | false | 禁用 |
|
|
279
|
-
| `size` | String | default | 尺寸: large/default/small |
|
|
280
|
-
|
|
281
|
-
#### 扩展属性
|
|
282
|
-
|
|
283
|
-
| 属性名 | 类型 | 默认值 | 说明 | 配置字段 |
|
|
284
|
-
|--------|------|--------|------|----------|
|
|
285
|
-
| `type` | String | default | 类型: default/button | `config.type` |
|
|
286
|
-
|
|
287
|
-
#### 示例
|
|
288
|
-
|
|
289
|
-
```json
|
|
290
|
-
{
|
|
291
|
-
"metaCode": "gender",
|
|
292
|
-
"metaType": "radio",
|
|
293
|
-
"labelZh": "性别",
|
|
294
|
-
"selectKey": "gender_options",
|
|
295
|
-
"type": "button"
|
|
296
|
-
}
|
|
297
|
-
```
|
|
298
|
-
|
|
299
|
-
---
|
|
300
|
-
|
|
301
|
-
### ElCheckbox - 复选框
|
|
302
|
-
|
|
303
|
-
**metaType**: `checkbox`
|
|
304
|
-
|
|
305
|
-
#### Element Plus 原生属性
|
|
306
|
-
|
|
307
|
-
| 属性名 | 类型 | 默认值 | 说明 |
|
|
308
|
-
|--------|------|--------|------|
|
|
309
|
-
| `disabled` | Boolean | false | 禁用 |
|
|
310
|
-
| `size` | String | default | 尺寸 |
|
|
311
|
-
| `true-value` | String/Number | - | 选中时的值 |
|
|
312
|
-
| `false-value` | String/Number | - | 未选中时的值 |
|
|
313
|
-
|
|
314
|
-
#### 扩展属性
|
|
315
|
-
|
|
316
|
-
| 属性名 | 类型 | 默认值 | 说明 | 配置字段 |
|
|
317
|
-
|--------|------|--------|------|----------|
|
|
318
|
-
| `notShowLabel` | String/Number | '0' | 不显示标签 | `config.notShowLabel == '1'` |
|
|
319
|
-
| `valueType` | String | string | 值类型: list/string | `config.valueType` |
|
|
320
|
-
|
|
321
|
-
**说明**:
|
|
322
|
-
- 当 `options` 存在时,自动渲染为 `ElCheckboxGroup`(多选组)
|
|
323
|
-
- 当 `options` 不存在时,渲染为单个 `ElCheckbox`
|
|
324
|
-
- 默认 `true-value='1'`, `false-value='0'`
|
|
325
|
-
|
|
326
|
-
#### 示例
|
|
327
|
-
|
|
328
|
-
```json
|
|
329
|
-
{
|
|
330
|
-
"metaCode": "hobbies",
|
|
331
|
-
"metaType": "checkbox",
|
|
332
|
-
"labelZh": "爱好",
|
|
333
|
-
"selectKey": "hobby_options",
|
|
334
|
-
"valueType": "list"
|
|
335
|
-
}
|
|
336
|
-
```
|
|
337
|
-
|
|
338
|
-
```json
|
|
339
|
-
{
|
|
340
|
-
"metaCode": "agree",
|
|
341
|
-
"metaType": "checkbox",
|
|
342
|
-
"labelZh": "同意协议",
|
|
343
|
-
"notShowLabel": "0"
|
|
344
|
-
}
|
|
345
|
-
```
|
|
346
|
-
|
|
347
|
-
---
|
|
348
|
-
|
|
349
|
-
### ElDatePicker - 日期选择器
|
|
350
|
-
|
|
351
|
-
**metaType**: `date`, `date-range`
|
|
352
|
-
|
|
353
|
-
#### Element Plus 原生属性
|
|
354
|
-
|
|
355
|
-
| 属性名 | 类型 | 默认值 | 说明 |
|
|
356
|
-
|--------|------|--------|------|
|
|
357
|
-
| `type` | String | date | 类型: date/daterange/month/year 等 |
|
|
358
|
-
| `format` | String | YYYY-MM-DD | 显示格式 |
|
|
359
|
-
| `value-format` | String | YYYY-MM-DD | 绑定值格式 |
|
|
360
|
-
| `placeholder` | String | - | 占位符 |
|
|
361
|
-
| `start-placeholder` | String | - | 范围开始占位符 |
|
|
362
|
-
| `end-placeholder` | String | - | 范围结束占位符 |
|
|
363
|
-
| `disabled` | Boolean | false | 禁用 |
|
|
364
|
-
| `clearable` | Boolean | true | 可清除 |
|
|
365
|
-
|
|
366
|
-
#### 扩展属性
|
|
367
|
-
|
|
368
|
-
| 属性名 | 类型 | 默认值 | 说明 | 配置字段 |
|
|
369
|
-
|--------|------|--------|------|----------|
|
|
370
|
-
| `min` | Date/String | null | 最小可选日期 | `config.min` |
|
|
371
|
-
| `max` | Date/String | null | 最大可选日期 | `config.max` |
|
|
372
|
-
| `displayType` | String | - | 日期类型(覆盖type) | `config.displayType` |
|
|
373
|
-
| `prefix-icon` | String/Object | - | 前缀图标 | `config.prefixIcon` |
|
|
374
|
-
|
|
375
|
-
**说明**:
|
|
376
|
-
- `date-range` 类型自动设置 `type='daterange'` 和 `isRange=true`
|
|
377
|
-
- 默认 `value-format='YYYY-MM-DD'`
|
|
378
|
-
- 支持时间戳格式: `value-format='x'` 或 `value-format='timestamp'`
|
|
379
|
-
|
|
380
|
-
#### 示例
|
|
381
|
-
|
|
382
|
-
```json
|
|
383
|
-
{
|
|
384
|
-
"metaCode": "birthday",
|
|
385
|
-
"metaType": "date",
|
|
386
|
-
"labelZh": "生日",
|
|
387
|
-
"format": "YYYY-MM-DD",
|
|
388
|
-
"value-format": "YYYY-MM-DD"
|
|
389
|
-
}
|
|
390
|
-
```
|
|
391
|
-
|
|
392
|
-
```json
|
|
393
|
-
{
|
|
394
|
-
"metaCode": "date_range",
|
|
395
|
-
"metaType": "date-range",
|
|
396
|
-
"labelZh": "日期范围",
|
|
397
|
-
"min": "2024-01-01",
|
|
398
|
-
"max": "2024-12-31"
|
|
399
|
-
}
|
|
400
|
-
```
|
|
401
|
-
|
|
402
|
-
---
|
|
403
|
-
|
|
404
|
-
### ElTimePicker - 时间选择器
|
|
405
|
-
|
|
406
|
-
**metaType**: `time`, `time-range`
|
|
407
|
-
|
|
408
|
-
#### Element Plus 原生属性
|
|
409
|
-
|
|
410
|
-
| 属性名 | 类型 | 默认值 | 说明 |
|
|
411
|
-
|--------|------|--------|------|
|
|
412
|
-
| `type` | String | - | 类型: time 等 |
|
|
413
|
-
| `format` | String | HH:mm:ss | 显示格式 |
|
|
414
|
-
| `value-format` | String | - | 绑定值格式 |
|
|
415
|
-
| `placeholder` | String | - | 占位符 |
|
|
416
|
-
| `disabled` | Boolean | false | 禁用 |
|
|
417
|
-
| `clearable` | Boolean | true | 可清除 |
|
|
418
|
-
|
|
419
|
-
#### 示例
|
|
420
|
-
|
|
421
|
-
```json
|
|
422
|
-
{
|
|
423
|
-
"metaCode": "start_time",
|
|
424
|
-
"metaType": "time",
|
|
425
|
-
"labelZh": "开始时间",
|
|
426
|
-
"format": "HH:mm"
|
|
427
|
-
}
|
|
428
|
-
```
|
|
429
|
-
|
|
430
|
-
---
|
|
431
|
-
|
|
432
|
-
### ElInputNumber - 数字输入框
|
|
433
|
-
|
|
434
|
-
**metaType**: `number`
|
|
435
|
-
|
|
436
|
-
#### Element Plus 原生属性
|
|
437
|
-
|
|
438
|
-
| 属性名 | 类型 | 默认值 | 说明 |
|
|
439
|
-
|--------|------|--------|------|
|
|
440
|
-
| `min` | Number | -Infinity | 最小值 |
|
|
441
|
-
| `max` | Number | Infinity | 最大值 |
|
|
442
|
-
| `step` | Number | 1 | 步长 |
|
|
443
|
-
| `precision` | Number | - | 精度(小数位数) |
|
|
444
|
-
| `disabled` | Boolean | false | 禁用 |
|
|
445
|
-
| `controls` | Boolean | true | 显示控制按钮 |
|
|
446
|
-
| `controls-position` | String | - | 控制按钮位置: right |
|
|
447
|
-
|
|
448
|
-
#### 扩展属性
|
|
449
|
-
|
|
450
|
-
| 属性名 | 类型 | 默认值 | 说明 | 配置字段 |
|
|
451
|
-
|--------|------|--------|------|----------|
|
|
452
|
-
| `textAlign` | String | - | 文本对齐: left/right | `config.textAlign` |
|
|
453
|
-
| `step` | String/Number | 1 | 步长 | `config.step` |
|
|
454
|
-
| `precision` | String/Number | - | 精度 | `config.precision` |
|
|
455
|
-
| `maxValue` | Number | - | 最大值 | `config.maxValue` |
|
|
456
|
-
| `minValue` | Number | - | 最小值 | `config.minValue` |
|
|
457
|
-
| `precise` | Number | - | 精度(同precision) | `config.precise` |
|
|
458
|
-
|
|
459
|
-
#### 示例
|
|
460
|
-
|
|
461
|
-
```json
|
|
462
|
-
{
|
|
463
|
-
"metaCode": "quantity",
|
|
464
|
-
"metaType": "number",
|
|
465
|
-
"labelZh": "数量",
|
|
466
|
-
"minValue": 0,
|
|
467
|
-
"maxValue": 100,
|
|
468
|
-
"step": 1,
|
|
469
|
-
"precise": 0,
|
|
470
|
-
"textAlign": "right"
|
|
471
|
-
}
|
|
472
|
-
```
|
|
473
|
-
|
|
474
|
-
---
|
|
475
|
-
|
|
476
|
-
## 按钮与文本组件
|
|
477
|
-
|
|
478
|
-
### ElButton - 按钮
|
|
479
|
-
|
|
480
|
-
**metaType**: `button`
|
|
481
|
-
|
|
482
|
-
#### Element Plus 原生属性
|
|
483
|
-
|
|
484
|
-
| 属性名 | 类型 | 默认值 | 说明 |
|
|
485
|
-
|--------|------|--------|------|
|
|
486
|
-
| `type` | String | default | 类型: primary/success/warning/danger/info |
|
|
487
|
-
| `size` | String | default | 尺寸: large/default/small |
|
|
488
|
-
| `plain` | Boolean | false | 朴素按钮 |
|
|
489
|
-
| `round` | Boolean | false | 圆角按钮 |
|
|
490
|
-
| `circle` | Boolean | false | 圆形按钮 |
|
|
491
|
-
| `disabled` | Boolean | false | 禁用 |
|
|
492
|
-
| `loading` | Boolean | false | 加载状态 |
|
|
493
|
-
| `icon` | String/Object | - | 图标 |
|
|
494
|
-
|
|
495
|
-
#### 扩展属性
|
|
496
|
-
|
|
497
|
-
| 属性名 | 类型 | 默认值 | 说明 | 配置字段 |
|
|
498
|
-
|--------|------|--------|------|----------|
|
|
499
|
-
| `plain` | String/Number/Boolean | false | 朴素按钮 | `config.plain == '1'` |
|
|
500
|
-
| `circle` | String/Number/Boolean | false | 圆形按钮 | `config.circle == '1'` |
|
|
501
|
-
| `size` | String | - | 按钮尺寸 | `config.widgetSize` |
|
|
502
|
-
| `displayType` | String | - | 按钮类型(覆盖type) | `config.displayType` |
|
|
503
|
-
| `rounds` | String/Boolean | - | 圆角按钮 | `config.rounds == '1'` |
|
|
504
|
-
| `icon` | String | - | 图标 | `config.icon` |
|
|
505
|
-
| `clickActionKey` | String | - | 点击动作key | `config.clickActionKey` |
|
|
506
|
-
| `buttonActionKey` | String | - | 按钮动作key | `config.buttonActionKey` |
|
|
507
|
-
| `widgetSize` | String | - | 组件尺寸: def/large/small | `config.widgetSize` |
|
|
508
|
-
|
|
509
|
-
#### 示例
|
|
510
|
-
|
|
511
|
-
```json
|
|
512
|
-
{
|
|
513
|
-
"metaCode": "submit_btn",
|
|
514
|
-
"metaType": "button",
|
|
515
|
-
"labelZh": "提交",
|
|
516
|
-
"displayType": "primary",
|
|
517
|
-
"widgetSize": "large",
|
|
518
|
-
"rounds": "1",
|
|
519
|
-
"lcpPageServiceMapVOList": [
|
|
520
|
-
{
|
|
521
|
-
"serviceCode": "/api/submit",
|
|
522
|
-
"httpMethod": "post",
|
|
523
|
-
"transactionType": "1"
|
|
524
|
-
}
|
|
525
|
-
]
|
|
526
|
-
}
|
|
527
|
-
```
|
|
528
|
-
|
|
529
|
-
---
|
|
530
|
-
|
|
531
|
-
### ElText - 静态文本
|
|
532
|
-
|
|
533
|
-
**metaType**: `static-text`
|
|
534
|
-
|
|
535
|
-
#### Element Plus 原生属性
|
|
536
|
-
|
|
537
|
-
| 属性名 | 类型 | 默认值 | 说明 |
|
|
538
|
-
|--------|------|--------|------|
|
|
539
|
-
| `type` | String | - | 类型: primary/success/warning/danger |
|
|
540
|
-
| `size` | String | default | 尺寸 |
|
|
541
|
-
| `truncated` | Boolean | false | 截断文本 |
|
|
542
|
-
| `tag` | String | span | HTML标签 |
|
|
543
|
-
|
|
544
|
-
#### 扩展属性
|
|
545
|
-
|
|
546
|
-
| 属性名 | 类型 | 默认值 | 说明 | 配置字段 |
|
|
547
|
-
|--------|------|--------|------|----------|
|
|
548
|
-
| `fontSize` | String/Number | - | 字体大小 | `config.fontSize` |
|
|
549
|
-
| `needWrap` | String/Number | '0' | 显示包裹容器 | `config.needWrap == '1'` |
|
|
550
|
-
| `suffixIcon` | String/Object | '' | 后缀图标 | `config.suffixIcon` |
|
|
551
|
-
| `isPointer` | String/Number | - | 鼠标指针样式 | `config.isPointer == '1'` |
|
|
552
|
-
| `showTooltip` | String/Number | '0' | 超出显示tooltip | `config.showTooltip == '1'` |
|
|
553
|
-
| `truncated` | String/Number/Boolean | '0' | 文本截断 | `config.truncated == '1'` |
|
|
554
|
-
|
|
555
|
-
#### 示例
|
|
556
|
-
|
|
557
|
-
```json
|
|
558
|
-
{
|
|
559
|
-
"metaCode": "info_text",
|
|
560
|
-
"metaType": "static-text",
|
|
561
|
-
"labelZh": "提示信息",
|
|
562
|
-
"truncated": "1",
|
|
563
|
-
"showTooltip": "1"
|
|
564
|
-
}
|
|
565
|
-
```
|
|
566
|
-
|
|
567
|
-
---
|
|
568
|
-
|
|
569
|
-
## 布局组件
|
|
570
|
-
|
|
571
|
-
### CustomComponentFormLayout - 表单布局
|
|
572
|
-
|
|
573
|
-
**metaType**: `CustomComponentFormLayout`
|
|
574
|
-
|
|
575
|
-
#### Element Plus 属性 (ElForm)
|
|
576
|
-
|
|
577
|
-
| 属性名 | 类型 | 默认值 | 说明 |
|
|
578
|
-
|--------|------|--------|------|
|
|
579
|
-
| `model` | Object | - | 表单数据对象 |
|
|
580
|
-
| `rules` | Object | - | 表单验证规则 |
|
|
581
|
-
| `inline` | Boolean | false | 行内表单 |
|
|
582
|
-
| `label-position` | String | right | 标签位置: right/left/top |
|
|
583
|
-
| `label-width` | String | - | 标签宽度 |
|
|
584
|
-
| `size` | String | default | 尺寸 |
|
|
585
|
-
| `disabled` | Boolean | false | 禁用 |
|
|
586
|
-
|
|
587
|
-
#### Element Plus 属性 (ElRow)
|
|
588
|
-
|
|
589
|
-
| 属性名 | 类型 | 默认值 | 说明 |
|
|
590
|
-
|--------|------|--------|------|
|
|
591
|
-
| `gutter` | Number | 0 | 栅格间隔 |
|
|
592
|
-
| `justify` | String | start | 水平对齐方式 |
|
|
593
|
-
| `align` | String | top | 垂直对齐方式 |
|
|
594
|
-
|
|
595
|
-
#### 扩展属性
|
|
596
|
-
|
|
597
|
-
| 属性名 | 类型 | 默认值 | 说明 | 配置字段 |
|
|
598
|
-
|--------|------|--------|------|----------|
|
|
599
|
-
| `span` | Number | 24 | 栅格占位 | `config.span` |
|
|
600
|
-
| `rootForm` | Boolean | true | 是否为根表单 | `config.rootForm` |
|
|
601
|
-
| `labelWidth` | String | 84px/120px | 标签宽度(根据语言) | `config.labelWidth` |
|
|
602
|
-
|
|
603
|
-
#### 示例
|
|
604
|
-
|
|
605
|
-
```json
|
|
606
|
-
{
|
|
607
|
-
"metaType": "CustomComponentFormLayout",
|
|
608
|
-
"span": 24,
|
|
609
|
-
"labelWidth": "100px",
|
|
610
|
-
"label-position": "right",
|
|
611
|
-
"inline": true,
|
|
612
|
-
"pmPageMetaList": []
|
|
613
|
-
}
|
|
614
|
-
```
|
|
615
|
-
|
|
616
|
-
---
|
|
617
|
-
|
|
618
|
-
### CustomComponentTabs - 标签页
|
|
619
|
-
|
|
620
|
-
**metaType**: `tab`
|
|
621
|
-
|
|
622
|
-
#### Element Plus 原生属性
|
|
623
|
-
|
|
624
|
-
| 属性名 | 类型 | 默认值 | 说明 |
|
|
625
|
-
|--------|------|--------|------|
|
|
626
|
-
| `type` | String | - | 风格类型: card/border-card |
|
|
627
|
-
| `tab-position` | String | top | 标签位置: top/right/bottom/left |
|
|
628
|
-
| `stretch` | Boolean | false | 标签宽度自撑 |
|
|
629
|
-
|
|
630
|
-
#### 扩展属性
|
|
631
|
-
|
|
632
|
-
| 属性名 | 类型 | 默认值 | 说明 | 配置字段 |
|
|
633
|
-
|--------|------|--------|------|----------|
|
|
634
|
-
| `showBar` | Boolean | true | 显示标签栏 | `config.showBar` |
|
|
635
|
-
| `hiddenHeadUnderline` | String/Number | '0' | 隐藏头部下划线 | `config.hiddenHeadUnderline == '1'` |
|
|
636
|
-
| `autoHeader` | String | - | 自动头部 | `config.autoHeader == '1'` |
|
|
637
|
-
| `level` | Number | 1 | 层级: 1/2/3 | `config.level` |
|
|
638
|
-
|
|
639
|
-
**层级说明**:
|
|
640
|
-
- `level=1`: `type='border-card'`, `stretch=true`
|
|
641
|
-
- `level=2`: 默认样式
|
|
642
|
-
- `level=3`: `type='card'`
|
|
643
|
-
|
|
644
|
-
#### TabPane 配置 (子项)
|
|
645
|
-
|
|
646
|
-
| 属性名 | 类型 | 默认值 | 说明 | 配置字段 |
|
|
647
|
-
|--------|------|--------|------|----------|
|
|
648
|
-
| `metaType` | String | tab-pane | 页签类型 | `config.metaType` |
|
|
649
|
-
| `labelZh` | String | - | 中文标签 | `config.labelZh` |
|
|
650
|
-
| `labelEn` | String | - | 英文标签 | `config.labelEn` |
|
|
651
|
-
| `defaultShowFlag` | String | '0' | 默认显示 | `config.defaultShowFlag == '1'` |
|
|
652
|
-
| `isCycle` | String | '0' | 是否循环 | `config.isCycle == '1'` |
|
|
653
|
-
| `currentCode` | String | - | 当前激活编码 | `config.currentCode` |
|
|
654
|
-
| `tabExtendAttr` | Object | - | 标签扩展属性 | `config.tabExtendAttr` |
|
|
655
|
-
|
|
656
|
-
#### 示例
|
|
657
|
-
|
|
658
|
-
```json
|
|
659
|
-
{
|
|
660
|
-
"metaCode": "main_tabs",
|
|
661
|
-
"metaType": "tab",
|
|
662
|
-
"level": 1,
|
|
663
|
-
"pmPageMetaList": [
|
|
664
|
-
{
|
|
665
|
-
"metaCode": "tab1",
|
|
666
|
-
"metaType": "tab-pane",
|
|
667
|
-
"labelZh": "基本信息",
|
|
668
|
-
"defaultShowFlag": "1",
|
|
669
|
-
"pmPageMetaList": []
|
|
670
|
-
},
|
|
671
|
-
{
|
|
672
|
-
"metaCode": "tab2",
|
|
673
|
-
"metaType": "tab-pane",
|
|
674
|
-
"labelZh": "详细信息",
|
|
675
|
-
"pmPageMetaList": []
|
|
676
|
-
}
|
|
677
|
-
]
|
|
678
|
-
}
|
|
679
|
-
```
|
|
680
|
-
|
|
681
|
-
---
|
|
682
|
-
|
|
683
|
-
### CustomComponentCollapse - 折叠面板
|
|
684
|
-
|
|
685
|
-
**metaType**: `collapse`, `card`
|
|
686
|
-
|
|
687
|
-
#### Element Plus 原生属性 (ElCollapse)
|
|
688
|
-
|
|
689
|
-
| 属性名 | 类型 | 默认值 | 说明 |
|
|
690
|
-
|--------|------|--------|------|
|
|
691
|
-
| `accordion` | Boolean | false | 手风琴模式 |
|
|
692
|
-
| `modelValue` | Array/String | - | 激活面板 |
|
|
693
|
-
|
|
694
|
-
#### Element Plus 原生属性 (ElCollapseItem)
|
|
695
|
-
|
|
696
|
-
| 属性名 | 类型 | 默认值 | 说明 |
|
|
697
|
-
|--------|------|--------|------|
|
|
698
|
-
| `name` | String/Number | - | 面板标识 |
|
|
699
|
-
| `title` | String | - | 面板标题 |
|
|
700
|
-
| `disabled` | Boolean | false | 禁用 |
|
|
701
|
-
|
|
702
|
-
#### Element Plus 原生属性 (ElCard)
|
|
703
|
-
|
|
704
|
-
| 属性名 | 类型 | 默认值 | 说明 |
|
|
705
|
-
|--------|------|--------|------|
|
|
706
|
-
| `header` | String | - | 标题 |
|
|
707
|
-
| `footer` | String | - | 底栏 |
|
|
708
|
-
| `shadow` | String | always | 阴影显示: always/hover/never |
|
|
709
|
-
|
|
710
|
-
#### 扩展属性
|
|
711
|
-
|
|
712
|
-
| 属性名 | 类型 | 默认值 | 说明 | 配置字段 |
|
|
713
|
-
|--------|------|--------|------|----------|
|
|
714
|
-
| `showSegment` | String | '0' | 显示分割线 | `config.showSegment == '1'` |
|
|
715
|
-
| `defaultOpenFlag` | String | '0' | 默认展开 | `config.defaultOpenFlag == '1'` |
|
|
716
|
-
| `noCollpase` | String | '0' | 禁止折叠 | `config.noCollpase == '1'` |
|
|
717
|
-
| `hiddenHead` | String | '0' | 隐藏头部 | `config.hiddenHead == '1'` |
|
|
718
|
-
| `hiddenHeadFlag` | String | '0' | 隐藏头部绿标 | `config.hiddenHeadFlag == '1'` |
|
|
719
|
-
| `needWrap` | String/Boolean | - | 使用卡片包裹 | `config.needWrap == '1'` |
|
|
720
|
-
| `needSegment` | Boolean | - | 显示边框 | `config.needSegment` |
|
|
721
|
-
| `underlineHidden` | Boolean | - | 隐藏下划线 | `config.underlineHidden` |
|
|
722
|
-
| `collapseHidden` | String | '0' | 折叠隐藏 | `config.collapseHidden == '1'` |
|
|
723
|
-
| `collapseSlot` | String | - | 标题插槽 | `config.collapseSlot` |
|
|
724
|
-
| `collapseRightSlot` | String | - | 标题右侧插槽 | `config.collapseRightSlot` |
|
|
725
|
-
|
|
726
|
-
#### 示例
|
|
727
|
-
|
|
728
|
-
```json
|
|
729
|
-
{
|
|
730
|
-
"metaCode": "info_collapse",
|
|
731
|
-
"metaType": "collapse",
|
|
732
|
-
"metaNameZh": "基本信息",
|
|
733
|
-
"defaultOpenFlag": "1",
|
|
734
|
-
"needWrap": "1",
|
|
735
|
-
"showSegment": "1",
|
|
736
|
-
"pmPageMetaList": []
|
|
737
|
-
}
|
|
738
|
-
```
|
|
739
|
-
|
|
740
|
-
---
|
|
741
|
-
|
|
742
|
-
### CustomComponentDialog - 对话框
|
|
743
|
-
|
|
744
|
-
**metaType**: `CustomComponentDialog`
|
|
745
|
-
|
|
746
|
-
#### Element Plus 原生属性
|
|
747
|
-
|
|
748
|
-
| 属性名 | 类型 | 默认值 | 说明 |
|
|
749
|
-
|--------|------|--------|------|
|
|
750
|
-
| `modelValue` | Boolean | false | 是否显示 |
|
|
751
|
-
| `title` | String | - | 标题 |
|
|
752
|
-
| `width` | String | 50% | 宽度 |
|
|
753
|
-
| `fullscreen` | Boolean | false | 全屏 |
|
|
754
|
-
| `top` | String | 15vh | 顶部距离 |
|
|
755
|
-
| `modal` | Boolean | true | 遮罩层 |
|
|
756
|
-
| `append-to-body` | Boolean | false | 插入到body |
|
|
757
|
-
| `lock-scroll` | Boolean | true | 锁定滚动 |
|
|
758
|
-
| `open-delay` | Number | 0 | 打开延迟 |
|
|
759
|
-
| `close-delay` | Number | 0 | 关闭延迟 |
|
|
760
|
-
| `close-on-click-modal` | Boolean | true | 点击遮罩关闭 |
|
|
761
|
-
| `close-on-press-escape` | Boolean | true | ESC关闭 |
|
|
762
|
-
| `show-close` | Boolean | true | 显示关闭按钮 |
|
|
763
|
-
| `before-close` | Function | - | 关闭前回调 |
|
|
764
|
-
| `draggable` | Boolean | false | 可拖拽 |
|
|
765
|
-
| `align-center` | Boolean | false | 居中对齐 |
|
|
766
|
-
| `destroy-on-close` | Boolean | false | 关闭销毁 |
|
|
767
|
-
|
|
768
|
-
#### 扩展属性
|
|
769
|
-
|
|
770
|
-
| 属性名 | 类型 | 默认值 | 说明 | 配置字段 |
|
|
771
|
-
|--------|------|--------|------|----------|
|
|
772
|
-
| `titleEn` | String | '' | 英文标题 | `config.titleEn` |
|
|
773
|
-
| `showConfirmButton` | String/Boolean | - | 显示确认按钮 | `config.showConfirmButton == '1'` |
|
|
774
|
-
| `showConfirm` | String/Boolean | - | 显示确认按钮(别名) | `config.showConfirm == '1'` |
|
|
775
|
-
| `showCloseButton` | String/Boolean | - | 显示关闭按钮 | `config.showCloseButton` |
|
|
776
|
-
| `showClose` | String/Boolean | true | 显示关闭按钮(别名) | `config.showClose` |
|
|
777
|
-
| `dialogVisible` | Boolean | - | 对话框显示状态 | `config.dialogVisible` |
|
|
778
|
-
| `handlePromise` | Promise | - | 处理Promise | `config.handlePromise` |
|
|
779
|
-
|
|
780
|
-
#### 示例
|
|
781
|
-
|
|
782
|
-
```json
|
|
783
|
-
{
|
|
784
|
-
"metaCode": "detail_dialog",
|
|
785
|
-
"metaType": "CustomComponentDialog",
|
|
786
|
-
"title": "详情",
|
|
787
|
-
"titleEn": "Detail",
|
|
788
|
-
"width": "600px",
|
|
789
|
-
"showConfirmButton": "1",
|
|
790
|
-
"showCloseButton": "1",
|
|
791
|
-
"dialogVisible": false,
|
|
792
|
-
"pmPageMetaList": []
|
|
793
|
-
}
|
|
794
|
-
```
|
|
795
|
-
|
|
796
|
-
---
|
|
797
|
-
|
|
798
|
-
### CustomComponentCycle - 循环列表
|
|
799
|
-
|
|
800
|
-
**metaType**: `cycle`
|
|
801
|
-
|
|
802
|
-
#### 扩展属性
|
|
803
|
-
|
|
804
|
-
| 属性名 | 类型 | 默认值 | 说明 | 配置字段 |
|
|
805
|
-
|--------|------|--------|------|----------|
|
|
806
|
-
| `needWrap` | Boolean/String | true | 使用卡片包裹 | `config.needWrap` |
|
|
807
|
-
| `multiPmPageMetaList` | Array | - | 多行配置(自动生成) | `config.multiPmPageMetaList` |
|
|
808
|
-
|
|
809
|
-
**说明**:
|
|
810
|
-
- 循环列表根据数据数组动态生成多行配置
|
|
811
|
-
- 每行数据对应独立的配置实例
|
|
812
|
-
- 数据路径格式: `field[0]->subField`, `field[1]->subField`
|
|
813
|
-
|
|
814
|
-
#### 示例
|
|
815
|
-
|
|
816
|
-
```json
|
|
817
|
-
{
|
|
818
|
-
"metaCode": "items",
|
|
819
|
-
"metaType": "cycle",
|
|
820
|
-
"metaNameZh": "明细列表",
|
|
821
|
-
"needWrap": true,
|
|
822
|
-
"pmPageMetaList": [
|
|
823
|
-
{
|
|
824
|
-
"metaCode": "item_name",
|
|
825
|
-
"metaType": "input",
|
|
826
|
-
"labelZh": "项目名称"
|
|
827
|
-
},
|
|
828
|
-
{
|
|
829
|
-
"metaCode": "item_amount",
|
|
830
|
-
"metaType": "number",
|
|
831
|
-
"labelZh": "金额"
|
|
832
|
-
}
|
|
833
|
-
]
|
|
834
|
-
}
|
|
835
|
-
```
|
|
836
|
-
|
|
837
|
-
对应的数据结构:
|
|
838
|
-
|
|
839
|
-
```javascript
|
|
840
|
-
{
|
|
841
|
-
items: [
|
|
842
|
-
{ item_name: '项目A', item_amount: 1000 },
|
|
843
|
-
{ item_name: '项目B', item_amount: 2000 }
|
|
844
|
-
]
|
|
845
|
-
}
|
|
846
|
-
```
|
|
847
|
-
|
|
848
|
-
---
|
|
849
|
-
|
|
850
|
-
## 数据展示组件
|
|
851
|
-
|
|
852
|
-
### CustomComponentTable - 表格
|
|
853
|
-
|
|
854
|
-
**metaType**: `table`, `checkbox-table`
|
|
855
|
-
|
|
856
|
-
#### Element Plus 原生属性 (ElTable)
|
|
857
|
-
|
|
858
|
-
| 属性名 | 类型 | 默认值 | 说明 |
|
|
859
|
-
|--------|------|--------|------|
|
|
860
|
-
| `data` | Array | [] | 表格数据 |
|
|
861
|
-
| `height` | String/Number | - | 高度 |
|
|
862
|
-
| `max-height` | String/Number | - | 最大高度 |
|
|
863
|
-
| `stripe` | Boolean | false | 斑马纹 |
|
|
864
|
-
| `border` | Boolean | false | 纵向边框 |
|
|
865
|
-
| `fit` | Boolean | true | 列宽自撑 |
|
|
866
|
-
| `show-header` | Boolean | true | 显示表头 |
|
|
867
|
-
| `highlight-current-row` | Boolean | false | 高亮当前行 |
|
|
868
|
-
| `row-key` | String/Function | - | 行数据key |
|
|
869
|
-
|
|
870
|
-
#### Element Plus 原生属性 (ElTableV2 虚拟表格)
|
|
871
|
-
|
|
872
|
-
| 属性名 | 类型 | 默认值 | 说明 |
|
|
873
|
-
|--------|------|--------|------|
|
|
874
|
-
| `width` | Number | - | 宽度 |
|
|
875
|
-
| `height` | Number | - | 高度 |
|
|
876
|
-
| `data` | Array | [] | 表格数据 |
|
|
877
|
-
| `columns` | Array | [] | 列配置 |
|
|
878
|
-
|
|
879
|
-
#### Element Plus 原生属性 (ElPagination)
|
|
880
|
-
|
|
881
|
-
| 属性名 | 类型 | 默认值 | 说明 |
|
|
882
|
-
|--------|------|--------|------|
|
|
883
|
-
| `current-page` | Number | 1 | 当前页码 |
|
|
884
|
-
| `page-size` | Number | 10 | 每页条数 |
|
|
885
|
-
| `total` | Number | 0 | 总条数 |
|
|
886
|
-
| `page-sizes` | Array | [10, 20, 30, 40] | 每页条数选项 |
|
|
887
|
-
| `layout` | String | prev, pager, next | 布局 |
|
|
888
|
-
| `background` | Boolean | false | 背景色 |
|
|
889
|
-
|
|
890
|
-
#### 扩展属性
|
|
891
|
-
|
|
892
|
-
| 属性名 | 类型 | 默认值 | 说明 | 配置字段 |
|
|
893
|
-
|--------|------|--------|------|----------|
|
|
894
|
-
| `isVirtualized` | String | '0' | 虚拟化表格 | `config.isVirtualized == '1'` |
|
|
895
|
-
| `pageable` | String | '0' | 开启分页 | `config.pageable == '1'` |
|
|
896
|
-
| `frontPageFlag` | String | '0' | 前端分页 | `config.frontPageFlag == '1'` |
|
|
897
|
-
| `defaultPageablePageSize` | Number | 10 | 默认分页大小 | `config.defaultPageablePageSize` |
|
|
898
|
-
| `pageSize` | Number | 5 | 每页条数 | `config.pageSize` |
|
|
899
|
-
| `selectable` | String | '0' | 单选模式 | `config.selectable == '1'` |
|
|
900
|
-
| `canSelect` | Boolean | - | 可选择(别名) | `config.canSelect` |
|
|
901
|
-
| `pageAlign` | String | right | 分页对齐: left/center/right | `config.pageAlign` |
|
|
902
|
-
| `totalMetaCodes` | Array | [] | 统计列编码 | `config.totalMetaCodes` |
|
|
903
|
-
| `showOverflowTooltip` | String | - | 超出显示tooltip | `config.showOverflowTooltip` |
|
|
904
|
-
| `columnWidth` | Number/String | - | 列宽 | `config.columnWidth` |
|
|
905
|
-
|
|
906
|
-
#### 表格列配置 (pmPageMetaList)
|
|
907
|
-
|
|
908
|
-
| 属性名 | 类型 | 默认值 | 说明 | 配置字段 |
|
|
909
|
-
|--------|------|--------|------|----------|
|
|
910
|
-
| `metaCode` | String | - | 列编码 | `config.metaCode` |
|
|
911
|
-
| `metaType` | String | - | 组件类型 | `config.metaType` |
|
|
912
|
-
| `type` | String | - | 列类型: selection/index | `config.type` |
|
|
913
|
-
| `width` | Number/String | - | 列宽 | `config.width` |
|
|
914
|
-
| `columnWidth` | Number/String | - | 列宽(优先) | `config.columnWidth` |
|
|
915
|
-
| `minWidth` | Number | 160 | 最小列宽 | `config.minWidth` |
|
|
916
|
-
| `fixed` | String | - | 固定列: left/right | `config.fixed` |
|
|
917
|
-
| `sortable` | Boolean/String | false | 可排序 | `config.sortable` |
|
|
918
|
-
| `align` | String | left | 对齐: left/center/right | `config.align` |
|
|
919
|
-
| `labelHidden` | String | '1' | 隐藏标签(表格列) | `config.labelHidden` |
|
|
920
|
-
| `isColumn` | Boolean | false | 是否为表格列 | 自动设置 |
|
|
921
|
-
| `rowIndex` | Number | - | 行索引 | 自动设置 |
|
|
922
|
-
| `columnId` | String | - | 列唯一ID | 自动生成 |
|
|
923
|
-
| `rowScope` | Object | - | 行数据 `{row, $index}` | 自动设置 |
|
|
924
|
-
| `headerRender` | Function | - | 自定义表头渲染 | `config.headerRender` |
|
|
925
|
-
|
|
926
|
-
#### 统计行配置
|
|
927
|
-
|
|
928
|
-
```javascript
|
|
929
|
-
totalMetaCodes: [
|
|
930
|
-
'amount', // 简单统计(求和)
|
|
931
|
-
{
|
|
932
|
-
code: 'quantity',
|
|
933
|
-
totalFn: (total, val, row) => {
|
|
934
|
-
// 自定义统计函数
|
|
935
|
-
return total + val
|
|
936
|
-
}
|
|
937
|
-
}
|
|
938
|
-
]
|
|
939
|
-
```
|
|
940
|
-
|
|
941
|
-
#### 示例
|
|
942
|
-
|
|
943
|
-
```json
|
|
944
|
-
{
|
|
945
|
-
"metaCode": "data_table",
|
|
946
|
-
"metaType": "table",
|
|
947
|
-
"pageable": "1",
|
|
948
|
-
"pageSize": 10,
|
|
949
|
-
"pageAlign": "right",
|
|
950
|
-
"selectable": "0",
|
|
951
|
-
"totalMetaCodes": ["amount", "quantity"],
|
|
952
|
-
"pmPageMetaList": [
|
|
953
|
-
{
|
|
954
|
-
"metaCode": "name",
|
|
955
|
-
"metaType": "input",
|
|
956
|
-
"labelZh": "名称",
|
|
957
|
-
"width": 200
|
|
958
|
-
},
|
|
959
|
-
{
|
|
960
|
-
"metaCode": "amount",
|
|
961
|
-
"metaType": "input",
|
|
962
|
-
"labelZh": "金额",
|
|
963
|
-
"columnWidth": 150,
|
|
964
|
-
"showMoney": "1"
|
|
965
|
-
},
|
|
966
|
-
{
|
|
967
|
-
"metaCode": "status",
|
|
968
|
-
"metaType": "select",
|
|
969
|
-
"labelZh": "状态",
|
|
970
|
-
"selectKey": "status_options",
|
|
971
|
-
"width": 120
|
|
972
|
-
}
|
|
973
|
-
]
|
|
974
|
-
}
|
|
975
|
-
```
|
|
976
|
-
|
|
977
|
-
#### 虚拟化表格
|
|
978
|
-
|
|
979
|
-
```json
|
|
980
|
-
{
|
|
981
|
-
"metaCode": "virtual_table",
|
|
982
|
-
"metaType": "table",
|
|
983
|
-
"isVirtualized": "1",
|
|
984
|
-
"height": 400,
|
|
985
|
-
"pmPageMetaList": []
|
|
986
|
-
}
|
|
987
|
-
```
|
|
988
|
-
|
|
989
|
-
---
|
|
990
|
-
|
|
991
|
-
### ElPagination - 分页
|
|
992
|
-
|
|
993
|
-
**metaType**: `pagination`
|
|
994
|
-
|
|
995
|
-
#### Element Plus 原生属性
|
|
996
|
-
|
|
997
|
-
| 属性名 | 类型 | 默认值 | 说明 |
|
|
998
|
-
|--------|------|--------|------|
|
|
999
|
-
| `current-page` | Number | 1 | 当前页码 |
|
|
1000
|
-
| `page-size` | Number | 10 | 每页条数 |
|
|
1001
|
-
| `total` | Number | 0 | 总条数 |
|
|
1002
|
-
| `page-sizes` | Array | [10, 20, 30, 40] | 每页条数选项 |
|
|
1003
|
-
| `layout` | String | prev, pager, next, jumper, sizes, total | 布局 |
|
|
1004
|
-
| `background` | Boolean | false | 背景色 |
|
|
1005
|
-
| `small` | Boolean | false | 小型分页 |
|
|
1006
|
-
| `disabled` | Boolean | false | 禁用 |
|
|
1007
|
-
| `pager-count` | Number | 7 | 页码按钮数量 |
|
|
1008
|
-
|
|
1009
|
-
#### 示例
|
|
1010
|
-
|
|
1011
|
-
```json
|
|
1012
|
-
{
|
|
1013
|
-
"metaCode": "pagination",
|
|
1014
|
-
"metaType": "pagination",
|
|
1015
|
-
"page-sizes": [5, 10, 20, 40],
|
|
1016
|
-
"layout": "prev, pager, next, jumper, sizes, total",
|
|
1017
|
-
"background": true
|
|
1018
|
-
}
|
|
1019
|
-
```
|
|
1020
|
-
|
|
1021
|
-
---
|
|
1022
|
-
|
|
1023
|
-
## 附录
|
|
1024
|
-
|
|
1025
|
-
### 组件类型完整映射表
|
|
1026
|
-
|
|
1027
|
-
| metaType | 渲染组件 | 说明 |
|
|
1028
|
-
|----------|----------|------|
|
|
1029
|
-
| `input` | ElInput | 文本输入框 |
|
|
1030
|
-
| `textarea` | ElInput | 多行文本 |
|
|
1031
|
-
| `select` | ElSelect | 下拉选择 |
|
|
1032
|
-
| `radio` | ElRadio | 单选框 |
|
|
1033
|
-
| `checkbox` | ElCheckbox | 复选框 |
|
|
1034
|
-
| `date` | ElDatePicker | 日期选择 |
|
|
1035
|
-
| `date-range` | ElDatePicker | 日期范围 |
|
|
1036
|
-
| `time` | ElTimePicker | 时间选择 |
|
|
1037
|
-
| `time-range` | ElTimePicker | 时间范围 |
|
|
1038
|
-
| `number` | ElInputNumber | 数字输入 |
|
|
1039
|
-
| `button` | ElButton | 按钮 |
|
|
1040
|
-
| `static-text` | ElText | 静态文本 |
|
|
1041
|
-
| `table` | CustomComponentTable | 表格 |
|
|
1042
|
-
| `checkbox-table` | CustomComponentTable | 可选择表格 |
|
|
1043
|
-
| `tab` | CustomComponentTabs | 标签页 |
|
|
1044
|
-
| `tab-pane` | CustomComponentTabPane | 标签页面板 |
|
|
1045
|
-
| `collapse` | CustomComponentCollapse | 折叠面板 |
|
|
1046
|
-
| `card` | CustomComponentCollapse | 卡片 |
|
|
1047
|
-
| `cycle` | CustomComponentCycle | 循环列表 |
|
|
1048
|
-
| `tree` | CustomComponentTree | 树形控件 |
|
|
1049
|
-
| `pagination` | ElPagination | 分页 |
|
|
1050
|
-
| `steps` | CustomComponentSteps | 步骤条 |
|
|
1051
|
-
| `select-employees` | CustomComponentSelectEmployees | 员工选择器 |
|
|
1052
|
-
| `rich-editor` | CustomComponentEditor | 富文本编辑器 |
|
|
1053
|
-
| `mail-send` | CustomComponentSendMail | 邮件发送 |
|
|
1054
|
-
| `file-import` | CustomComponentFileImport | 文件导入 |
|
|
1055
|
-
| `file-export` | CustomComponentFileExport | 文件导出 |
|
|
1056
|
-
| `CustomComponentFormLayout` | CustomComponentFormLayout | 表单布局 |
|
|
1057
|
-
| `CustomComponentDialog` | CustomComponentDialog | 对话框 |
|
|
1058
|
-
| `CustomComponentRow` | CustomComponentRow | 行布局 |
|
|
1059
|
-
| `CustomComponentCol` | CustomComponentCol | 列布局 |
|
|
1060
|
-
| `CustomComponentCycleTabPane` | CustomComponentCycleTabPane | 循环标签页 |
|
|
1061
|
-
| `CustomComponentInputDialog` | CustomComponentInputDialog | 输入对话框 |
|
|
1062
|
-
| `CustomComponentPlain` | CustomComponentPlain | 纯文本(表格列) |
|
|
1063
|
-
| `CustomComponentSelectEmployees` | CustomComponentSelectEmployees | 员工选择器 |
|
|
1064
|
-
| `CustomComponentEditor` | CustomComponentEditor | 富文本编辑器 |
|
|
1065
|
-
| `CustomComponentSendMail` | CustomComponentSendMail | 邮件发送 |
|
|
1066
|
-
| `CustomComponentFileImport` | CustomComponentFileImport | 文件导入 |
|
|
1067
|
-
| `CustomComponentFileExport` | CustomComponentFileExport | 文件导出 |
|
|
1068
|
-
| `CustomComponentTree` | CustomComponentTree | 树形控件 |
|
|
1069
|
-
| `CustomComponentSteps` | CustomComponentSteps | 步骤条 |
|
|
1070
|
-
|
|
1071
|
-
### 配置属性命名规则
|
|
1072
|
-
|
|
1073
|
-
1. **布尔值属性**: 使用 `'1'`/`'0'` 字符串或 `true`/`false` 布尔值
|
|
1074
|
-
2. **数字属性**: 可使用字符串,组件内部会自动转换
|
|
1075
|
-
3. **样式属性**: `defStyle` 为 JSON 字符串,需序列化
|
|
1076
|
-
4. **扩展属性**: `extendAttr` 为 JSON 字符串,可包含函数(字符串形式)
|
|
1077
|
-
5. **事件属性**: 以 `on` 开头的属性会被识别为事件处理器
|
|
1078
|
-
6. **国际化属性**: 中文用 `Zh` 后缀,英文用 `En` 后缀
|
|
1079
|
-
|
|
1080
|
-
### 特殊说明
|
|
1081
|
-
|
|
1082
|
-
1. **表格列配置**: 表格列自动设置 `labelHidden='1'`, `isColumn=true`
|
|
1083
|
-
2. **循环组件**: 根据数据动态生成 `multiPmPageMetaList`
|
|
1084
|
-
3. **规则引擎**: `hireRelat` 存储组件关联路径,用于规则匹配
|
|
1085
|
-
4. **动态映射**: `dynamicMapComp` 存储 `dynamicHireRelat` 到配置的映射
|
|
1086
|
-
5. **表单校验**: `requiredFlag='1'` 自动生成必填校验规则
|
|
1087
|
-
6. **禁用计算**: 根据 `mode` 和 `editFlag` 自动计算 `disabled`
|
|
1088
|
-
7. **隐藏计算**: `hidden='1'` 或 `collapseHidden='1'` 隐藏组件
|
|
1089
|
-
|
|
1090
|
-
---
|
|
1091
|
-
|
|
1092
|
-
**文档版本**: 1.0
|
|
1093
|
-
**更新日期**: 2024-01-15
|
|
1094
|
-
**适用版本**: resolver-egretimp-plus v0.1.140
|