@epic-designer/antd 1.1.0 → 1.1.2-beta.1
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/chunks/button.cjs +1 -1
- package/dist/chunks/button.mjs +1 -1
- package/dist/chunks/form.cjs +5 -5
- package/dist/chunks/form.mjs +5 -5
- package/dist/chunks/modal.cjs +2 -2
- package/dist/chunks/modal.mjs +2 -2
- package/dist/chunks/tabPane.cjs +42 -0
- package/dist/chunks/tabPane.mjs +40 -0
- package/dist/chunks/tabs.cjs +65 -0
- package/dist/chunks/tabs.mjs +63 -0
- package/dist/chunks/uploadImage.cjs +1 -1
- package/dist/chunks/uploadImage.mjs +1 -1
- package/dist/index.cjs +679 -706
- package/dist/index.mjs +679 -706
- package/package.json +1 -2
- package/src/button/button.vue +1 -1
- package/src/button/index.ts +25 -25
- package/src/card/index.ts +9 -9
- package/src/cascader/cascader.vue +2 -2
- package/src/cascader/index.ts +41 -41
- package/src/checkbox/index.ts +16 -16
- package/src/col/index.ts +6 -3
- package/src/color-picker/index.ts +16 -16
- package/src/date-picker/index.ts +79 -79
- package/src/form/form.vue +5 -5
- package/src/form/index.ts +34 -34
- package/src/index.ts +7 -15
- package/src/input/index.ts +25 -25
- package/src/input-number/index.ts +36 -36
- package/src/modal/modal.vue +2 -2
- package/src/radio/index.ts +16 -16
- package/src/row/index.ts +18 -15
- package/src/select/index.ts +37 -38
- package/src/slider/index.ts +28 -28
- package/src/switch/index.ts +38 -38
- package/src/tab-pane/index.ts +22 -0
- package/src/tab-pane/tabPane.ts +43 -0
- package/src/tabs/index.ts +107 -0
- package/src/tabs/tabs.ts +69 -0
- package/src/textarea/index.ts +28 -28
- package/src/time-picker/index.ts +42 -42
- package/src/upload-file/index.ts +18 -18
- package/src/upload-image/index.ts +15 -15
- package/src/upload-image/uploadImage.vue +1 -1
- package/src/input-password/index.ts +0 -154
package/dist/index.mjs
CHANGED
|
@@ -12,7 +12,9 @@ const Button = {
|
|
|
12
12
|
type: "input"
|
|
13
13
|
},
|
|
14
14
|
{
|
|
15
|
-
|
|
15
|
+
field: "props.type",
|
|
16
|
+
label: "\u7C7B\u578B",
|
|
17
|
+
props: {
|
|
16
18
|
clearable: true,
|
|
17
19
|
options: [
|
|
18
20
|
{
|
|
@@ -42,12 +44,12 @@ const Button = {
|
|
|
42
44
|
],
|
|
43
45
|
placeholder: "\u8BF7\u9009\u62E9"
|
|
44
46
|
},
|
|
45
|
-
field: "componentProps.type",
|
|
46
|
-
label: "\u7C7B\u578B",
|
|
47
47
|
type: "select"
|
|
48
48
|
},
|
|
49
49
|
{
|
|
50
|
-
|
|
50
|
+
field: "props.htmlType",
|
|
51
|
+
label: "\u64CD\u4F5C\u7C7B\u578B",
|
|
52
|
+
props: {
|
|
51
53
|
clearable: true,
|
|
52
54
|
options: [
|
|
53
55
|
{
|
|
@@ -65,21 +67,21 @@ const Button = {
|
|
|
65
67
|
],
|
|
66
68
|
placeholder: "\u8BF7\u9009\u62E9"
|
|
67
69
|
},
|
|
68
|
-
field: "componentProps.htmlType",
|
|
69
|
-
label: "\u64CD\u4F5C\u7C7B\u578B",
|
|
70
70
|
type: "select"
|
|
71
71
|
},
|
|
72
72
|
{
|
|
73
|
-
|
|
73
|
+
field: "props.href",
|
|
74
|
+
label: "\u94FE\u63A5",
|
|
75
|
+
props: {
|
|
74
76
|
allowClear: true,
|
|
75
77
|
placeholder: "\u8BF7\u8F93\u5165"
|
|
76
78
|
},
|
|
77
|
-
field: "componentProps.href",
|
|
78
|
-
label: "\u94FE\u63A5",
|
|
79
79
|
type: "input"
|
|
80
80
|
},
|
|
81
81
|
{
|
|
82
|
-
|
|
82
|
+
field: "props.target",
|
|
83
|
+
label: "\u94FE\u63A5\u6253\u5F00\u65B9\u5F0F",
|
|
84
|
+
props: {
|
|
83
85
|
clearable: true,
|
|
84
86
|
options: [
|
|
85
87
|
{
|
|
@@ -101,16 +103,16 @@ const Button = {
|
|
|
101
103
|
],
|
|
102
104
|
placeholder: "\u8BF7\u9009\u62E9"
|
|
103
105
|
},
|
|
104
|
-
field: "componentProps.target",
|
|
105
|
-
label: "\u94FE\u63A5\u6253\u5F00\u65B9\u5F0F",
|
|
106
106
|
show: ({ values }) => {
|
|
107
107
|
var _a;
|
|
108
|
-
return (_a = values.
|
|
108
|
+
return (_a = values.props) == null ? void 0 : _a.href;
|
|
109
109
|
},
|
|
110
110
|
type: "select"
|
|
111
111
|
},
|
|
112
112
|
{
|
|
113
|
-
|
|
113
|
+
field: "props.size",
|
|
114
|
+
label: "\u5C3A\u5BF8",
|
|
115
|
+
props: {
|
|
114
116
|
allowClear: true,
|
|
115
117
|
options: [
|
|
116
118
|
{
|
|
@@ -128,12 +130,12 @@ const Button = {
|
|
|
128
130
|
],
|
|
129
131
|
placeholder: "\u8BF7\u9009\u62E9"
|
|
130
132
|
},
|
|
131
|
-
field: "componentProps.size",
|
|
132
|
-
label: "\u5C3A\u5BF8",
|
|
133
133
|
type: "select"
|
|
134
134
|
},
|
|
135
135
|
{
|
|
136
|
-
|
|
136
|
+
field: "props.shape",
|
|
137
|
+
label: "\u5F62\u72B6",
|
|
138
|
+
props: {
|
|
137
139
|
clearable: true,
|
|
138
140
|
options: [
|
|
139
141
|
{
|
|
@@ -151,37 +153,35 @@ const Button = {
|
|
|
151
153
|
],
|
|
152
154
|
placeholder: "\u8BF7\u9009\u62E9"
|
|
153
155
|
},
|
|
154
|
-
field: "componentProps.shape",
|
|
155
|
-
label: "\u5F62\u72B6",
|
|
156
156
|
type: "select"
|
|
157
157
|
},
|
|
158
158
|
{
|
|
159
|
-
field: "
|
|
159
|
+
field: "props.ghost",
|
|
160
160
|
label: "\u5E7D\u7075\u6309\u94AE",
|
|
161
161
|
type: "switch"
|
|
162
162
|
},
|
|
163
163
|
{
|
|
164
|
-
field: "
|
|
164
|
+
field: "props.loading",
|
|
165
165
|
label: "\u52A0\u8F7D\u72B6\u6001",
|
|
166
166
|
type: "switch"
|
|
167
167
|
},
|
|
168
168
|
{
|
|
169
|
-
field: "
|
|
169
|
+
field: "props.block",
|
|
170
170
|
label: "\u5BBD\u5EA6\u81EA\u9002\u5E94",
|
|
171
171
|
type: "switch"
|
|
172
172
|
},
|
|
173
173
|
{
|
|
174
|
-
field: "
|
|
174
|
+
field: "props.danger",
|
|
175
175
|
label: "\u5371\u9669\u6309\u94AE",
|
|
176
176
|
type: "switch"
|
|
177
177
|
},
|
|
178
178
|
{
|
|
179
|
-
field: "
|
|
179
|
+
field: "props.disabled",
|
|
180
180
|
label: "\u7981\u7528",
|
|
181
181
|
type: "switch"
|
|
182
182
|
},
|
|
183
183
|
{
|
|
184
|
-
field: "
|
|
184
|
+
field: "props.hidden",
|
|
185
185
|
label: "\u9690\u85CF",
|
|
186
186
|
type: "switch"
|
|
187
187
|
}
|
|
@@ -218,7 +218,9 @@ const Card = {
|
|
|
218
218
|
type: "input"
|
|
219
219
|
},
|
|
220
220
|
{
|
|
221
|
-
|
|
221
|
+
field: "props.size",
|
|
222
|
+
label: "\u5C3A\u5BF8",
|
|
223
|
+
props: {
|
|
222
224
|
allowClear: true,
|
|
223
225
|
options: [
|
|
224
226
|
{
|
|
@@ -232,31 +234,29 @@ const Card = {
|
|
|
232
234
|
],
|
|
233
235
|
placeholder: "\u8BF7\u9009\u62E9"
|
|
234
236
|
},
|
|
235
|
-
field: "componentProps.size",
|
|
236
|
-
label: "\u5C3A\u5BF8",
|
|
237
237
|
type: "select"
|
|
238
238
|
},
|
|
239
239
|
{
|
|
240
|
-
|
|
240
|
+
field: "props.bordered",
|
|
241
|
+
label: "\u65E0\u8FB9\u6846",
|
|
242
|
+
props: {
|
|
241
243
|
checkedValue: false,
|
|
242
244
|
unCheckedValue: true
|
|
243
245
|
},
|
|
244
|
-
field: "componentProps.bordered",
|
|
245
|
-
label: "\u65E0\u8FB9\u6846",
|
|
246
246
|
type: "switch"
|
|
247
247
|
},
|
|
248
248
|
{
|
|
249
|
-
field: "
|
|
249
|
+
field: "props.hoverable",
|
|
250
250
|
label: "\u9F20\u6807\u60AC\u505C\u9634\u5F71",
|
|
251
251
|
type: "switch"
|
|
252
252
|
},
|
|
253
253
|
{
|
|
254
|
-
field: "
|
|
254
|
+
field: "props.loading",
|
|
255
255
|
label: "\u52A0\u8F7D\u72B6\u6001",
|
|
256
256
|
type: "switch"
|
|
257
257
|
},
|
|
258
258
|
{
|
|
259
|
-
field: "
|
|
259
|
+
field: "props.hidden",
|
|
260
260
|
label: "\u9690\u85CF",
|
|
261
261
|
type: "switch"
|
|
262
262
|
}
|
|
@@ -279,8 +279,8 @@ const Cascader = {
|
|
|
279
279
|
attribute: [
|
|
280
280
|
{
|
|
281
281
|
field: "field",
|
|
282
|
-
label: "\u5B57\u6BB5
|
|
283
|
-
type: "
|
|
282
|
+
label: "\u6570\u636E\u5B57\u6BB5",
|
|
283
|
+
type: "EpField"
|
|
284
284
|
},
|
|
285
285
|
{
|
|
286
286
|
field: "label",
|
|
@@ -288,17 +288,19 @@ const Cascader = {
|
|
|
288
288
|
type: "input"
|
|
289
289
|
},
|
|
290
290
|
{
|
|
291
|
-
field: "
|
|
291
|
+
field: "props.defaultValue",
|
|
292
292
|
label: "\u9ED8\u8BA4\u503C",
|
|
293
293
|
type: "cascader"
|
|
294
294
|
},
|
|
295
295
|
{
|
|
296
|
-
field: "
|
|
296
|
+
field: "props.placeholder",
|
|
297
297
|
label: "\u5360\u4F4D\u5185\u5BB9",
|
|
298
298
|
type: "input"
|
|
299
299
|
},
|
|
300
300
|
{
|
|
301
|
-
|
|
301
|
+
field: "props.size",
|
|
302
|
+
label: "\u5C3A\u5BF8",
|
|
303
|
+
props: {
|
|
302
304
|
allowClear: true,
|
|
303
305
|
options: [
|
|
304
306
|
{
|
|
@@ -316,12 +318,12 @@ const Cascader = {
|
|
|
316
318
|
],
|
|
317
319
|
placeholder: "\u8BF7\u9009\u62E9"
|
|
318
320
|
},
|
|
319
|
-
field: "componentProps.size",
|
|
320
|
-
label: "\u5C3A\u5BF8",
|
|
321
321
|
type: "select"
|
|
322
322
|
},
|
|
323
323
|
{
|
|
324
|
-
|
|
324
|
+
field: "props.placement",
|
|
325
|
+
label: "\u5F39\u51FA\u6846\u4F4D\u7F6E",
|
|
326
|
+
props: {
|
|
325
327
|
allowClear: true,
|
|
326
328
|
options: [
|
|
327
329
|
{
|
|
@@ -343,49 +345,49 @@ const Cascader = {
|
|
|
343
345
|
],
|
|
344
346
|
placeholder: "\u8BF7\u9009\u62E9"
|
|
345
347
|
},
|
|
346
|
-
field: "componentProps.placement",
|
|
347
|
-
label: "\u5F39\u51FA\u6846\u4F4D\u7F6E",
|
|
348
348
|
type: "select"
|
|
349
349
|
},
|
|
350
350
|
{
|
|
351
|
-
field: "
|
|
351
|
+
field: "props.showSearch",
|
|
352
352
|
label: "\u53EF\u641C\u7D22",
|
|
353
353
|
type: "switch"
|
|
354
354
|
},
|
|
355
355
|
{
|
|
356
|
-
|
|
356
|
+
field: "props.bordered",
|
|
357
|
+
label: "\u65E0\u8FB9\u6846",
|
|
358
|
+
props: {
|
|
357
359
|
checkedValue: false,
|
|
358
360
|
unCheckedValue: true
|
|
359
361
|
},
|
|
360
|
-
field: "componentProps.bordered",
|
|
361
|
-
label: "\u65E0\u8FB9\u6846",
|
|
362
362
|
type: "switch"
|
|
363
363
|
},
|
|
364
364
|
{
|
|
365
|
-
field: "
|
|
365
|
+
field: "props.multiple",
|
|
366
366
|
label: "\u591A\u9009",
|
|
367
367
|
type: "switch"
|
|
368
368
|
},
|
|
369
369
|
{
|
|
370
|
-
|
|
370
|
+
field: "props.maxTagTextLength",
|
|
371
|
+
label: "\u6807\u7B7E\u6700\u5927\u957F\u5EA6",
|
|
372
|
+
props: {
|
|
371
373
|
placeholder: "\u8BF7\u8F93\u5165"
|
|
372
374
|
},
|
|
373
|
-
|
|
374
|
-
label: "\u6807\u7B7E\u6700\u5927\u957F\u5EA6",
|
|
375
|
-
show: ({ values }) => values.componentProps.multiple,
|
|
375
|
+
show: ({ values }) => values.props.multiple,
|
|
376
376
|
type: "number"
|
|
377
377
|
},
|
|
378
378
|
{
|
|
379
|
-
|
|
379
|
+
field: "props.maxTagCount",
|
|
380
|
+
label: "\u6807\u7B7E\u663E\u793A\u6570\u91CF",
|
|
381
|
+
props: {
|
|
380
382
|
placeholder: "\u8BF7\u8F93\u5165"
|
|
381
383
|
},
|
|
382
|
-
|
|
383
|
-
label: "\u6807\u7B7E\u663E\u793A\u6570\u91CF",
|
|
384
|
-
show: ({ values }) => values.componentProps.multiple,
|
|
384
|
+
show: ({ values }) => values.props.multiple,
|
|
385
385
|
type: "number"
|
|
386
386
|
},
|
|
387
387
|
{
|
|
388
|
-
|
|
388
|
+
field: "props.showCheckedStrategy",
|
|
389
|
+
label: "\u56DE\u586B\u65B9\u5F0F",
|
|
390
|
+
props: {
|
|
389
391
|
clearable: true,
|
|
390
392
|
options: [
|
|
391
393
|
{
|
|
@@ -399,43 +401,41 @@ const Cascader = {
|
|
|
399
401
|
],
|
|
400
402
|
placeholder: "\u8BF7\u9009\u62E9"
|
|
401
403
|
},
|
|
402
|
-
|
|
403
|
-
label: "\u56DE\u586B\u65B9\u5F0F",
|
|
404
|
-
show: ({ values }) => values.componentProps.multiple,
|
|
404
|
+
show: ({ values }) => values.props.multiple,
|
|
405
405
|
type: "select"
|
|
406
406
|
},
|
|
407
407
|
{
|
|
408
|
-
field: "
|
|
408
|
+
field: "props.allowClear",
|
|
409
409
|
label: "\u53EF\u6E05\u7A7A",
|
|
410
410
|
type: "switch"
|
|
411
411
|
},
|
|
412
412
|
{
|
|
413
|
-
field: "
|
|
413
|
+
field: "props.disabled",
|
|
414
414
|
label: "\u7981\u7528",
|
|
415
415
|
type: "switch"
|
|
416
416
|
},
|
|
417
417
|
{
|
|
418
|
-
field: "
|
|
418
|
+
field: "props.hidden",
|
|
419
419
|
label: "\u9690\u85CF",
|
|
420
420
|
type: "switch"
|
|
421
421
|
},
|
|
422
422
|
{
|
|
423
|
-
|
|
424
|
-
tree: true
|
|
425
|
-
},
|
|
426
|
-
field: "componentProps.options",
|
|
423
|
+
field: "props.options",
|
|
427
424
|
label: "\u9009\u9879\u7BA1\u7406",
|
|
428
425
|
layout: "vertical",
|
|
426
|
+
props: {
|
|
427
|
+
tree: true
|
|
428
|
+
},
|
|
429
429
|
type: "EOptionsEditor"
|
|
430
430
|
},
|
|
431
431
|
{
|
|
432
|
-
componentProps: {
|
|
433
|
-
ruleType: "array"
|
|
434
|
-
},
|
|
435
432
|
description: "\u6821\u9A8C\u89C4\u5219\u9700\u8981\u914D\u5408\u8868\u5355\u4F7F\u7528",
|
|
436
433
|
field: "rules",
|
|
437
434
|
label: "\u8868\u5355\u6821\u9A8C",
|
|
438
435
|
layout: "vertical",
|
|
436
|
+
props: {
|
|
437
|
+
ruleType: "array"
|
|
438
|
+
},
|
|
439
439
|
type: "ERuleEditor"
|
|
440
440
|
}
|
|
441
441
|
],
|
|
@@ -447,7 +447,10 @@ const Cascader = {
|
|
|
447
447
|
]
|
|
448
448
|
},
|
|
449
449
|
defaultSchema: {
|
|
450
|
-
|
|
450
|
+
field: "cascader",
|
|
451
|
+
input: true,
|
|
452
|
+
label: "\u7EA7\u8054\u9009\u62E9\u5668",
|
|
453
|
+
props: {
|
|
451
454
|
options: [
|
|
452
455
|
{
|
|
453
456
|
label: "\u9009\u98791",
|
|
@@ -460,9 +463,6 @@ const Cascader = {
|
|
|
460
463
|
],
|
|
461
464
|
placeholder: "\u8BF7\u9009\u62E9"
|
|
462
465
|
},
|
|
463
|
-
field: "cascader",
|
|
464
|
-
input: true,
|
|
465
|
-
label: "\u7EA7\u8054\u9009\u62E9\u5668",
|
|
466
466
|
type: "cascader"
|
|
467
467
|
},
|
|
468
468
|
groupName: "\u8868\u5355",
|
|
@@ -477,8 +477,8 @@ const Checkbox = {
|
|
|
477
477
|
attribute: [
|
|
478
478
|
{
|
|
479
479
|
field: "field",
|
|
480
|
-
label: "\u5B57\u6BB5
|
|
481
|
-
type: "
|
|
480
|
+
label: "\u6570\u636E\u5B57\u6BB5",
|
|
481
|
+
type: "EpField"
|
|
482
482
|
},
|
|
483
483
|
{
|
|
484
484
|
field: "label",
|
|
@@ -486,12 +486,14 @@ const Checkbox = {
|
|
|
486
486
|
type: "input"
|
|
487
487
|
},
|
|
488
488
|
{
|
|
489
|
-
field: "
|
|
489
|
+
field: "props.defaultValue",
|
|
490
490
|
label: "\u9ED8\u8BA4\u503C",
|
|
491
491
|
type: "checkbox"
|
|
492
492
|
},
|
|
493
493
|
{
|
|
494
|
-
|
|
494
|
+
field: "props.size",
|
|
495
|
+
label: "\u5C3A\u5BF8",
|
|
496
|
+
props: {
|
|
495
497
|
allowClear: true,
|
|
496
498
|
options: [
|
|
497
499
|
{
|
|
@@ -509,34 +511,32 @@ const Checkbox = {
|
|
|
509
511
|
],
|
|
510
512
|
placeholder: "\u8BF7\u9009\u62E9"
|
|
511
513
|
},
|
|
512
|
-
field: "componentProps.size",
|
|
513
|
-
label: "\u5C3A\u5BF8",
|
|
514
514
|
type: "select"
|
|
515
515
|
},
|
|
516
516
|
{
|
|
517
|
-
field: "
|
|
517
|
+
field: "props.disabled",
|
|
518
518
|
label: "\u7981\u7528",
|
|
519
519
|
type: "switch"
|
|
520
520
|
},
|
|
521
521
|
{
|
|
522
|
-
field: "
|
|
522
|
+
field: "props.hidden",
|
|
523
523
|
label: "\u9690\u85CF",
|
|
524
524
|
type: "switch"
|
|
525
525
|
},
|
|
526
526
|
{
|
|
527
|
-
field: "
|
|
527
|
+
field: "props.options",
|
|
528
528
|
label: "\u9009\u9879\u7BA1\u7406",
|
|
529
529
|
layout: "vertical",
|
|
530
530
|
type: "EOptionsEditor"
|
|
531
531
|
},
|
|
532
532
|
{
|
|
533
|
-
componentProps: {
|
|
534
|
-
ruleType: "array"
|
|
535
|
-
},
|
|
536
533
|
description: "\u6821\u9A8C\u89C4\u5219\u9700\u8981\u914D\u5408\u8868\u5355\u4F7F\u7528",
|
|
537
534
|
field: "rules",
|
|
538
535
|
label: "\u8868\u5355\u6821\u9A8C",
|
|
539
536
|
layout: "vertical",
|
|
537
|
+
props: {
|
|
538
|
+
ruleType: "array"
|
|
539
|
+
},
|
|
540
540
|
type: "ERuleEditor"
|
|
541
541
|
}
|
|
542
542
|
],
|
|
@@ -548,7 +548,10 @@ const Checkbox = {
|
|
|
548
548
|
]
|
|
549
549
|
},
|
|
550
550
|
defaultSchema: {
|
|
551
|
-
|
|
551
|
+
field: "checkbox",
|
|
552
|
+
input: true,
|
|
553
|
+
label: "\u591A\u9009\u6846",
|
|
554
|
+
props: {
|
|
552
555
|
options: [
|
|
553
556
|
{
|
|
554
557
|
label: "\u9009\u98791",
|
|
@@ -560,9 +563,6 @@ const Checkbox = {
|
|
|
560
563
|
}
|
|
561
564
|
]
|
|
562
565
|
},
|
|
563
|
-
field: "checkbox",
|
|
564
|
-
input: true,
|
|
565
|
-
label: "\u591A\u9009\u6846",
|
|
566
566
|
type: "checkbox"
|
|
567
567
|
},
|
|
568
568
|
groupName: "\u8868\u5355",
|
|
@@ -575,19 +575,22 @@ const Col = {
|
|
|
575
575
|
config: {
|
|
576
576
|
attribute: [
|
|
577
577
|
{
|
|
578
|
-
field: "
|
|
578
|
+
field: "props.span",
|
|
579
579
|
label: "\u5360\u4F4D\u683C\u6570",
|
|
580
580
|
type: "number"
|
|
581
581
|
}
|
|
582
582
|
]
|
|
583
583
|
},
|
|
584
584
|
defaultSchema: {
|
|
585
|
-
|
|
585
|
+
label: "\u6805\u683C\u5E03\u5C40-\u5217",
|
|
586
|
+
props: {
|
|
586
587
|
span: 6
|
|
587
588
|
},
|
|
588
|
-
label: "\u6805\u683C\u5E03\u5C40-\u5217",
|
|
589
589
|
type: "col",
|
|
590
590
|
children: []
|
|
591
|
+
},
|
|
592
|
+
editConstraints: {
|
|
593
|
+
locked: true
|
|
591
594
|
}
|
|
592
595
|
};
|
|
593
596
|
|
|
@@ -599,8 +602,8 @@ const colorPicker = {
|
|
|
599
602
|
attribute: [
|
|
600
603
|
{
|
|
601
604
|
field: "field",
|
|
602
|
-
label: "\u5B57\u6BB5
|
|
603
|
-
type: "
|
|
605
|
+
label: "\u6570\u636E\u5B57\u6BB5",
|
|
606
|
+
type: "EpField"
|
|
604
607
|
},
|
|
605
608
|
{
|
|
606
609
|
field: "label",
|
|
@@ -608,12 +611,14 @@ const colorPicker = {
|
|
|
608
611
|
type: "input"
|
|
609
612
|
},
|
|
610
613
|
{
|
|
611
|
-
field: "
|
|
614
|
+
field: "props.defaultValue",
|
|
612
615
|
label: "\u9ED8\u8BA4\u503C",
|
|
613
616
|
type: "input"
|
|
614
617
|
},
|
|
615
618
|
{
|
|
616
|
-
|
|
619
|
+
field: "props.size",
|
|
620
|
+
label: "\u5C3A\u5BF8",
|
|
621
|
+
props: {
|
|
617
622
|
allowClear: true,
|
|
618
623
|
options: [
|
|
619
624
|
{
|
|
@@ -631,31 +636,29 @@ const colorPicker = {
|
|
|
631
636
|
],
|
|
632
637
|
placeholder: "\u8BF7\u9009\u62E9"
|
|
633
638
|
},
|
|
634
|
-
field: "componentProps.size",
|
|
635
|
-
label: "\u5C3A\u5BF8",
|
|
636
639
|
type: "select"
|
|
637
640
|
},
|
|
638
641
|
{
|
|
639
|
-
|
|
642
|
+
field: "props.bordered",
|
|
643
|
+
label: "\u65E0\u8FB9\u6846",
|
|
644
|
+
props: {
|
|
640
645
|
checkedValue: false,
|
|
641
646
|
unCheckedValue: true
|
|
642
647
|
},
|
|
643
|
-
field: "componentProps.bordered",
|
|
644
|
-
label: "\u65E0\u8FB9\u6846",
|
|
645
648
|
type: "switch"
|
|
646
649
|
},
|
|
647
650
|
{
|
|
648
|
-
field: "
|
|
651
|
+
field: "props.allowClear",
|
|
649
652
|
label: "\u53EF\u6E05\u7A7A",
|
|
650
653
|
type: "switch"
|
|
651
654
|
},
|
|
652
655
|
{
|
|
653
|
-
field: "
|
|
656
|
+
field: "props.disabled",
|
|
654
657
|
label: "\u7981\u7528",
|
|
655
658
|
type: "switch"
|
|
656
659
|
},
|
|
657
660
|
{
|
|
658
|
-
field: "
|
|
661
|
+
field: "props.hidden",
|
|
659
662
|
label: "\u9690\u85CF",
|
|
660
663
|
type: "switch"
|
|
661
664
|
},
|
|
@@ -683,15 +686,15 @@ const colorPicker = {
|
|
|
683
686
|
]
|
|
684
687
|
},
|
|
685
688
|
defaultSchema: {
|
|
686
|
-
|
|
689
|
+
field: "color-picker",
|
|
690
|
+
input: true,
|
|
691
|
+
label: "\u989C\u8272\u9009\u62E9\u5668",
|
|
692
|
+
props: {
|
|
687
693
|
style: {
|
|
688
694
|
width: "80px"
|
|
689
695
|
},
|
|
690
696
|
type: "color"
|
|
691
697
|
},
|
|
692
|
-
field: "color-picker",
|
|
693
|
-
input: true,
|
|
694
|
-
label: "\u989C\u8272\u9009\u62E9\u5668",
|
|
695
698
|
type: "color-picker"
|
|
696
699
|
},
|
|
697
700
|
groupName: "\u8868\u5355",
|
|
@@ -706,25 +709,53 @@ const DatePicker = {
|
|
|
706
709
|
attribute: [
|
|
707
710
|
{
|
|
708
711
|
field: "field",
|
|
709
|
-
label: "\u5B57\u6BB5
|
|
710
|
-
type: "
|
|
712
|
+
label: "\u6570\u636E\u5B57\u6BB5",
|
|
713
|
+
type: "EpField"
|
|
711
714
|
},
|
|
712
715
|
{
|
|
713
|
-
componentProps: {
|
|
714
|
-
placeholder: "\u8BF7\u8F93\u5165"
|
|
715
|
-
},
|
|
716
716
|
field: "label",
|
|
717
717
|
label: "\u6807\u9898",
|
|
718
|
+
props: {
|
|
719
|
+
placeholder: "\u8BF7\u8F93\u5165"
|
|
720
|
+
},
|
|
718
721
|
type: "input"
|
|
719
722
|
},
|
|
720
723
|
{
|
|
721
|
-
field: "
|
|
724
|
+
field: "props.defaultValue",
|
|
722
725
|
label: "\u9ED8\u8BA4\u503C",
|
|
723
726
|
type: "date"
|
|
724
727
|
},
|
|
725
728
|
{
|
|
726
729
|
changeSync: true,
|
|
727
|
-
|
|
730
|
+
field: "props.type",
|
|
731
|
+
label: "\u65E5\u671F\u7C7B\u578B",
|
|
732
|
+
onChange({ value, values }) {
|
|
733
|
+
values.props.defaultValue = null;
|
|
734
|
+
values.props.placeholder = [
|
|
735
|
+
"daterange",
|
|
736
|
+
"monthrange",
|
|
737
|
+
"quarterrange",
|
|
738
|
+
"weekrange",
|
|
739
|
+
"yearrange"
|
|
740
|
+
].includes(value) ? ["\u8BF7\u8F93\u5165", "\u8BF7\u8F93\u5165"] : "\u8BF7\u8F93\u5165";
|
|
741
|
+
if (["date", "daterange"].includes(value)) {
|
|
742
|
+
values.props.format = "YYYY-MM-DD";
|
|
743
|
+
values.props.valueFormat = "YYYY-MM-DD";
|
|
744
|
+
} else if (["week", "weekrange"].includes(value)) {
|
|
745
|
+
values.props.format = "ww [\u5468]";
|
|
746
|
+
values.props.valueFormat = "YYYY-MM-DD";
|
|
747
|
+
} else if (["month", "monthrange"].includes(value)) {
|
|
748
|
+
values.props.format = "YYYY-MM";
|
|
749
|
+
values.props.valueFormat = "YYYY-MM";
|
|
750
|
+
} else if (["quarter", "quarterrange"].includes(value)) {
|
|
751
|
+
values.props.format = "YYYY-Q\u5B63\u5EA6";
|
|
752
|
+
values.props.valueFormat = "YYYY-Q\u5B63\u5EA6";
|
|
753
|
+
} else if (['"yearrange"', "year"].includes(value)) {
|
|
754
|
+
values.props.format = "YYYY";
|
|
755
|
+
values.props.valueFormat = "YYYY";
|
|
756
|
+
}
|
|
757
|
+
},
|
|
758
|
+
props: {
|
|
728
759
|
options: [
|
|
729
760
|
{
|
|
730
761
|
label: "\u65E5\u671F",
|
|
@@ -768,116 +799,90 @@ const DatePicker = {
|
|
|
768
799
|
}
|
|
769
800
|
]
|
|
770
801
|
},
|
|
771
|
-
field: "componentProps.type",
|
|
772
|
-
label: "\u65E5\u671F\u7C7B\u578B",
|
|
773
|
-
onChange({ value, values }) {
|
|
774
|
-
values.componentProps.defaultValue = null;
|
|
775
|
-
values.componentProps.placeholder = [
|
|
776
|
-
"daterange",
|
|
777
|
-
"monthrange",
|
|
778
|
-
"quarterrange",
|
|
779
|
-
"weekrange",
|
|
780
|
-
"yearrange"
|
|
781
|
-
].includes(value) ? ["\u8BF7\u8F93\u5165", "\u8BF7\u8F93\u5165"] : "\u8BF7\u8F93\u5165";
|
|
782
|
-
if (["date", "daterange"].includes(value)) {
|
|
783
|
-
values.componentProps.format = "YYYY-MM-DD";
|
|
784
|
-
values.componentProps.valueFormat = "YYYY-MM-DD";
|
|
785
|
-
} else if (["week", "weekrange"].includes(value)) {
|
|
786
|
-
values.componentProps.format = "ww [\u5468]";
|
|
787
|
-
values.componentProps.valueFormat = "YYYY-MM-DD";
|
|
788
|
-
} else if (["month", "monthrange"].includes(value)) {
|
|
789
|
-
values.componentProps.format = "YYYY-MM";
|
|
790
|
-
values.componentProps.valueFormat = "YYYY-MM";
|
|
791
|
-
} else if (["quarter", "quarterrange"].includes(value)) {
|
|
792
|
-
values.componentProps.format = "YYYY-Q\u5B63\u5EA6";
|
|
793
|
-
values.componentProps.valueFormat = "YYYY-Q\u5B63\u5EA6";
|
|
794
|
-
} else if (['"yearrange"', "year"].includes(value)) {
|
|
795
|
-
values.componentProps.format = "YYYY";
|
|
796
|
-
values.componentProps.valueFormat = "YYYY";
|
|
797
|
-
}
|
|
798
|
-
},
|
|
799
802
|
type: "select"
|
|
800
803
|
},
|
|
801
804
|
{
|
|
802
|
-
field: "
|
|
805
|
+
field: "props.showTime",
|
|
803
806
|
label: "\u589E\u52A0\u65F6\u95F4\u9009\u62E9",
|
|
804
807
|
onChange: ({ value, values }) => {
|
|
805
808
|
if (value) {
|
|
806
|
-
values.
|
|
807
|
-
values.
|
|
809
|
+
values.props.valueFormat = "YYYY-MM-DD HH:mm:ss";
|
|
810
|
+
values.props.format = "YYYY-MM-DD HH:mm:ss";
|
|
808
811
|
} else {
|
|
809
|
-
values.
|
|
810
|
-
values.
|
|
812
|
+
values.props.valueFormat = "YYYY-MM-DD";
|
|
813
|
+
values.props.format = "YYYY-MM-DD";
|
|
811
814
|
}
|
|
812
815
|
},
|
|
813
816
|
show({ values }) {
|
|
814
|
-
return ["date", "daterange"].includes(values.
|
|
817
|
+
return ["date", "daterange"].includes(values.props.type);
|
|
815
818
|
},
|
|
816
819
|
type: "switch"
|
|
817
820
|
},
|
|
818
821
|
{
|
|
819
|
-
|
|
822
|
+
field: "props.placeholder",
|
|
823
|
+
label: "\u5360\u4F4D\u5185\u5BB9",
|
|
824
|
+
props: {
|
|
820
825
|
placeholder: "\u8BF7\u8F93\u5165"
|
|
821
826
|
},
|
|
822
|
-
field: "componentProps.placeholder",
|
|
823
|
-
label: "\u5360\u4F4D\u5185\u5BB9",
|
|
824
827
|
show: ({ values }) => ![
|
|
825
828
|
"daterange",
|
|
826
829
|
"monthrange",
|
|
827
830
|
"quarterrange",
|
|
828
831
|
"weekrange",
|
|
829
832
|
"yearrange"
|
|
830
|
-
].includes(values.
|
|
833
|
+
].includes(values.props.type),
|
|
831
834
|
type: "input"
|
|
832
835
|
},
|
|
833
836
|
{
|
|
834
|
-
|
|
837
|
+
field: "props.placeholder.0",
|
|
838
|
+
label: "\u5F00\u59CB\u5360\u4F4D\u7B26",
|
|
839
|
+
props: {
|
|
835
840
|
placeholder: "\u8BF7\u8F93\u5165"
|
|
836
841
|
},
|
|
837
|
-
field: "componentProps.placeholder.0",
|
|
838
|
-
label: "\u5F00\u59CB\u5360\u4F4D\u7B26",
|
|
839
842
|
show: ({ values }) => [
|
|
840
843
|
"daterange",
|
|
841
844
|
"monthrange",
|
|
842
845
|
"quarterrange",
|
|
843
846
|
"weekrange",
|
|
844
847
|
"yearrange"
|
|
845
|
-
].includes(values.
|
|
848
|
+
].includes(values.props.type),
|
|
846
849
|
type: "input"
|
|
847
850
|
},
|
|
848
851
|
{
|
|
849
|
-
|
|
852
|
+
field: "props.placeholder.1",
|
|
853
|
+
label: "\u7ED3\u675F\u5360\u4F4D\u7B26",
|
|
854
|
+
props: {
|
|
850
855
|
placeholder: "\u8BF7\u8F93\u5165"
|
|
851
856
|
},
|
|
852
|
-
field: "componentProps.placeholder.1",
|
|
853
|
-
label: "\u7ED3\u675F\u5360\u4F4D\u7B26",
|
|
854
857
|
show: ({ values }) => [
|
|
855
858
|
"daterange",
|
|
856
859
|
"monthrange",
|
|
857
860
|
"quarterrange",
|
|
858
861
|
"weekrange",
|
|
859
862
|
"yearrange"
|
|
860
|
-
].includes(values.
|
|
863
|
+
].includes(values.props.type),
|
|
861
864
|
type: "input"
|
|
862
865
|
},
|
|
863
866
|
{
|
|
864
|
-
|
|
867
|
+
field: "props.format",
|
|
868
|
+
label: "\u663E\u793A\u683C\u5F0F",
|
|
869
|
+
props: {
|
|
865
870
|
placeholder: "\u8BF7\u8F93\u5165"
|
|
866
871
|
},
|
|
867
|
-
field: "componentProps.format",
|
|
868
|
-
label: "\u663E\u793A\u683C\u5F0F",
|
|
869
872
|
type: "input"
|
|
870
873
|
},
|
|
871
874
|
{
|
|
872
|
-
|
|
875
|
+
field: "props.valueFormat",
|
|
876
|
+
label: "\u6570\u636E\u683C\u5F0F",
|
|
877
|
+
props: {
|
|
873
878
|
placeholder: "\u8BF7\u8F93\u5165"
|
|
874
879
|
},
|
|
875
|
-
field: "componentProps.valueFormat",
|
|
876
|
-
label: "\u6570\u636E\u683C\u5F0F",
|
|
877
880
|
type: "input"
|
|
878
881
|
},
|
|
879
882
|
{
|
|
880
|
-
|
|
883
|
+
field: "props.size",
|
|
884
|
+
label: "\u5C3A\u5BF8",
|
|
885
|
+
props: {
|
|
881
886
|
allowClear: true,
|
|
882
887
|
options: [
|
|
883
888
|
{
|
|
@@ -895,12 +900,12 @@ const DatePicker = {
|
|
|
895
900
|
],
|
|
896
901
|
placeholder: "\u8BF7\u9009\u62E9"
|
|
897
902
|
},
|
|
898
|
-
field: "componentProps.size",
|
|
899
|
-
label: "\u5C3A\u5BF8",
|
|
900
903
|
type: "select"
|
|
901
904
|
},
|
|
902
905
|
{
|
|
903
|
-
|
|
906
|
+
field: "props.placement",
|
|
907
|
+
label: "\u5F39\u51FA\u6846\u4F4D\u7F6E",
|
|
908
|
+
props: {
|
|
904
909
|
allowClear: true,
|
|
905
910
|
options: [
|
|
906
911
|
{
|
|
@@ -922,36 +927,34 @@ const DatePicker = {
|
|
|
922
927
|
],
|
|
923
928
|
placeholder: "\u8BF7\u9009\u62E9"
|
|
924
929
|
},
|
|
925
|
-
field: "componentProps.placement",
|
|
926
|
-
label: "\u5F39\u51FA\u6846\u4F4D\u7F6E",
|
|
927
930
|
type: "select"
|
|
928
931
|
},
|
|
929
932
|
{
|
|
930
|
-
|
|
933
|
+
field: "props.bordered",
|
|
934
|
+
label: "\u65E0\u8FB9\u6846",
|
|
935
|
+
props: {
|
|
931
936
|
checkedValue: false,
|
|
932
937
|
unCheckedValue: true
|
|
933
938
|
},
|
|
934
|
-
field: "componentProps.bordered",
|
|
935
|
-
label: "\u65E0\u8FB9\u6846",
|
|
936
939
|
type: "switch"
|
|
937
940
|
},
|
|
938
941
|
{
|
|
939
|
-
field: "
|
|
942
|
+
field: "props.inputReadOnly",
|
|
940
943
|
label: "\u7981\u6B62\u952E\u76D8\u8F93\u5165",
|
|
941
944
|
type: "switch"
|
|
942
945
|
},
|
|
943
946
|
{
|
|
944
|
-
field: "
|
|
947
|
+
field: "props.allowClear",
|
|
945
948
|
label: "\u53EF\u6E05\u7A7A",
|
|
946
949
|
type: "switch"
|
|
947
950
|
},
|
|
948
951
|
{
|
|
949
|
-
field: "
|
|
952
|
+
field: "props.disabled",
|
|
950
953
|
label: "\u7981\u7528",
|
|
951
954
|
type: "switch"
|
|
952
955
|
},
|
|
953
956
|
{
|
|
954
|
-
field: "
|
|
957
|
+
field: "props.hidden",
|
|
955
958
|
label: "\u9690\u85CF",
|
|
956
959
|
type: "switch"
|
|
957
960
|
},
|
|
@@ -975,15 +978,15 @@ const DatePicker = {
|
|
|
975
978
|
]
|
|
976
979
|
},
|
|
977
980
|
defaultSchema: {
|
|
978
|
-
|
|
981
|
+
field: "date",
|
|
982
|
+
input: true,
|
|
983
|
+
label: "\u65E5\u671F\u9009\u62E9\u5668",
|
|
984
|
+
props: {
|
|
979
985
|
format: "YYYY-MM-DD",
|
|
980
986
|
placeholder: "\u8BF7\u9009\u62E9",
|
|
981
987
|
type: "date",
|
|
982
988
|
valueFormat: "YYYY-MM-DD"
|
|
983
989
|
},
|
|
984
|
-
field: "date",
|
|
985
|
-
input: true,
|
|
986
|
-
label: "\u65E5\u671F\u9009\u62E9\u5668",
|
|
987
990
|
type: "date"
|
|
988
991
|
},
|
|
989
992
|
groupName: "\u8868\u5355",
|
|
@@ -1010,12 +1013,14 @@ const Form = {
|
|
|
1010
1013
|
],
|
|
1011
1014
|
attribute: [
|
|
1012
1015
|
{
|
|
1013
|
-
field: "
|
|
1016
|
+
field: "props.name",
|
|
1014
1017
|
label: "Name",
|
|
1015
1018
|
type: "input"
|
|
1016
1019
|
},
|
|
1017
1020
|
{
|
|
1018
|
-
|
|
1021
|
+
field: "props.layout",
|
|
1022
|
+
label: "\u8868\u5355\u5E03\u5C40",
|
|
1023
|
+
props: {
|
|
1019
1024
|
allowClear: true,
|
|
1020
1025
|
"option-type": "button",
|
|
1021
1026
|
options: [
|
|
@@ -1034,12 +1039,12 @@ const Form = {
|
|
|
1034
1039
|
],
|
|
1035
1040
|
placeholder: "\u8BF7\u9009\u62E9"
|
|
1036
1041
|
},
|
|
1037
|
-
field: "componentProps.layout",
|
|
1038
|
-
label: "\u8868\u5355\u5E03\u5C40",
|
|
1039
1042
|
type: "radio"
|
|
1040
1043
|
},
|
|
1041
1044
|
{
|
|
1042
|
-
|
|
1045
|
+
field: "props.labelLayout",
|
|
1046
|
+
label: "\u6807\u7B7E\u5E03\u5C40",
|
|
1047
|
+
props: {
|
|
1043
1048
|
"option-type": "button",
|
|
1044
1049
|
options: [
|
|
1045
1050
|
{
|
|
@@ -1052,45 +1057,45 @@ const Form = {
|
|
|
1052
1057
|
}
|
|
1053
1058
|
]
|
|
1054
1059
|
},
|
|
1055
|
-
field: "componentProps.labelLayout",
|
|
1056
|
-
label: "\u6807\u7B7E\u5E03\u5C40",
|
|
1057
1060
|
type: "radio"
|
|
1058
1061
|
},
|
|
1059
1062
|
{
|
|
1060
|
-
field: "
|
|
1063
|
+
field: "props.labelWidth",
|
|
1061
1064
|
label: "\u6807\u7B7E\u5BBD\u5EA6",
|
|
1062
1065
|
show: ({ values }) => {
|
|
1063
1066
|
var _a;
|
|
1064
|
-
return ((_a = values.
|
|
1067
|
+
return ((_a = values.props) == null ? void 0 : _a.labelLayout) === "fixed";
|
|
1065
1068
|
},
|
|
1066
1069
|
type: "EInputSize"
|
|
1067
1070
|
},
|
|
1068
1071
|
{
|
|
1069
|
-
|
|
1072
|
+
field: "props.labelCol.span",
|
|
1073
|
+
label: "\u6807\u7B7E\u5360\u6BD4",
|
|
1074
|
+
props: {
|
|
1070
1075
|
placeholder: "\u8BF7\u8F93\u5165"
|
|
1071
1076
|
},
|
|
1072
|
-
field: "componentProps.labelCol.span",
|
|
1073
|
-
label: "\u6807\u7B7E\u5360\u6BD4",
|
|
1074
1077
|
show: ({ values }) => {
|
|
1075
1078
|
var _a;
|
|
1076
|
-
return ((_a = values.
|
|
1079
|
+
return ((_a = values.props) == null ? void 0 : _a.labelLayout) === "flex";
|
|
1077
1080
|
},
|
|
1078
1081
|
type: "input"
|
|
1079
1082
|
},
|
|
1080
1083
|
{
|
|
1081
|
-
|
|
1084
|
+
field: "props.wrapperCol.span",
|
|
1085
|
+
label: "\u63A7\u4EF6\u5360\u6BD4",
|
|
1086
|
+
props: {
|
|
1082
1087
|
placeholder: "\u8BF7\u8F93\u5165"
|
|
1083
1088
|
},
|
|
1084
|
-
field: "componentProps.wrapperCol.span",
|
|
1085
|
-
label: "\u63A7\u4EF6\u5360\u6BD4",
|
|
1086
1089
|
show: ({ values }) => {
|
|
1087
1090
|
var _a;
|
|
1088
|
-
return ((_a = values.
|
|
1091
|
+
return ((_a = values.props) == null ? void 0 : _a.labelLayout) === "flex";
|
|
1089
1092
|
},
|
|
1090
1093
|
type: "input"
|
|
1091
1094
|
},
|
|
1092
1095
|
{
|
|
1093
|
-
|
|
1096
|
+
field: "props.labelAlign",
|
|
1097
|
+
label: "\u6807\u7B7E\u5BF9\u9F50",
|
|
1098
|
+
props: {
|
|
1094
1099
|
"option-type": "button",
|
|
1095
1100
|
options: [
|
|
1096
1101
|
{
|
|
@@ -1103,12 +1108,13 @@ const Form = {
|
|
|
1103
1108
|
}
|
|
1104
1109
|
]
|
|
1105
1110
|
},
|
|
1106
|
-
field: "componentProps.labelAlign",
|
|
1107
|
-
label: "\u6807\u7B7E\u5BF9\u9F50",
|
|
1108
1111
|
type: "radio"
|
|
1109
1112
|
},
|
|
1110
1113
|
{
|
|
1111
|
-
|
|
1114
|
+
defaultValue: "default",
|
|
1115
|
+
field: "props.size",
|
|
1116
|
+
label: "\u5C3A\u5BF8",
|
|
1117
|
+
props: {
|
|
1112
1118
|
allowClear: true,
|
|
1113
1119
|
options: [
|
|
1114
1120
|
{
|
|
@@ -1126,49 +1132,47 @@ const Form = {
|
|
|
1126
1132
|
],
|
|
1127
1133
|
placeholder: "\u8BF7\u9009\u62E9"
|
|
1128
1134
|
},
|
|
1129
|
-
defaultValue: "default",
|
|
1130
|
-
field: "componentProps.size",
|
|
1131
|
-
label: "\u5C3A\u5BF8",
|
|
1132
1135
|
type: "select"
|
|
1133
1136
|
},
|
|
1134
1137
|
{
|
|
1135
|
-
|
|
1138
|
+
field: "props.colon",
|
|
1139
|
+
label: "\u9690\u85CF\u5192\u53F7",
|
|
1140
|
+
props: {
|
|
1136
1141
|
checkedValue: false,
|
|
1137
1142
|
unCheckedValue: true
|
|
1138
1143
|
},
|
|
1139
|
-
field: "componentProps.colon",
|
|
1140
|
-
label: "\u9690\u85CF\u5192\u53F7",
|
|
1141
1144
|
type: "switch"
|
|
1142
1145
|
},
|
|
1143
1146
|
{
|
|
1144
|
-
field: "
|
|
1147
|
+
field: "props.hideRequiredMark",
|
|
1145
1148
|
label: "\u9690\u85CF\u5FC5\u987B\u6807\u5FD7",
|
|
1146
1149
|
type: "switch"
|
|
1147
1150
|
},
|
|
1148
1151
|
{
|
|
1149
|
-
field: "
|
|
1152
|
+
field: "props.labelWrap",
|
|
1150
1153
|
label: "\u6807\u7B7E\u6587\u672C\u6362\u884C",
|
|
1151
1154
|
type: "switch"
|
|
1152
1155
|
},
|
|
1153
1156
|
{
|
|
1154
|
-
field: "
|
|
1157
|
+
field: "props.scrollToFirstError",
|
|
1155
1158
|
label: "\u6EDA\u52A8\u6821\u9A8C\u9519\u8BEF\u5904",
|
|
1156
1159
|
type: "switch"
|
|
1157
1160
|
},
|
|
1158
1161
|
{
|
|
1159
|
-
field: "
|
|
1162
|
+
field: "props.disabled",
|
|
1160
1163
|
label: "\u7981\u7528",
|
|
1161
1164
|
type: "switch"
|
|
1162
1165
|
},
|
|
1163
1166
|
{
|
|
1164
|
-
field: "
|
|
1167
|
+
field: "props.hidden",
|
|
1165
1168
|
label: "\u9690\u85CF",
|
|
1166
1169
|
type: "switch"
|
|
1167
1170
|
}
|
|
1168
1171
|
]
|
|
1169
1172
|
},
|
|
1170
1173
|
defaultSchema: {
|
|
1171
|
-
|
|
1174
|
+
label: "\u8868\u5355",
|
|
1175
|
+
props: {
|
|
1172
1176
|
labelCol: {
|
|
1173
1177
|
span: 5
|
|
1174
1178
|
},
|
|
@@ -1179,7 +1183,6 @@ const Form = {
|
|
|
1179
1183
|
span: 19
|
|
1180
1184
|
}
|
|
1181
1185
|
},
|
|
1182
|
-
label: "\u8868\u5355",
|
|
1183
1186
|
type: "form",
|
|
1184
1187
|
children: []
|
|
1185
1188
|
},
|
|
@@ -1218,8 +1221,8 @@ const Input = {
|
|
|
1218
1221
|
attribute: [
|
|
1219
1222
|
{
|
|
1220
1223
|
field: "field",
|
|
1221
|
-
label: "\u5B57\u6BB5
|
|
1222
|
-
type: "
|
|
1224
|
+
label: "\u6570\u636E\u5B57\u6BB5",
|
|
1225
|
+
type: "EpField"
|
|
1223
1226
|
},
|
|
1224
1227
|
{
|
|
1225
1228
|
field: "label",
|
|
@@ -1227,20 +1230,22 @@ const Input = {
|
|
|
1227
1230
|
type: "input"
|
|
1228
1231
|
},
|
|
1229
1232
|
{
|
|
1230
|
-
field: "
|
|
1233
|
+
field: "props.placeholder",
|
|
1231
1234
|
label: "\u5360\u4F4D\u5185\u5BB9",
|
|
1232
1235
|
type: "input"
|
|
1233
1236
|
},
|
|
1234
1237
|
{
|
|
1235
|
-
|
|
1238
|
+
field: "props.defaultValue",
|
|
1239
|
+
label: "\u9ED8\u8BA4\u503C",
|
|
1240
|
+
props: {
|
|
1236
1241
|
placeholder: "\u8BF7\u8F93\u5165"
|
|
1237
1242
|
},
|
|
1238
|
-
field: "componentProps.defaultValue",
|
|
1239
|
-
label: "\u9ED8\u8BA4\u503C",
|
|
1240
1243
|
type: "input"
|
|
1241
1244
|
},
|
|
1242
1245
|
{
|
|
1243
|
-
|
|
1246
|
+
field: "props.type",
|
|
1247
|
+
label: "\u8F93\u5165\u7C7B\u578B",
|
|
1248
|
+
props: {
|
|
1244
1249
|
allowClear: true,
|
|
1245
1250
|
options: [
|
|
1246
1251
|
{
|
|
@@ -1258,12 +1263,12 @@ const Input = {
|
|
|
1258
1263
|
],
|
|
1259
1264
|
placeholder: "\u8BF7\u9009\u62E9"
|
|
1260
1265
|
},
|
|
1261
|
-
field: "componentProps.type",
|
|
1262
|
-
label: "\u8F93\u5165\u7C7B\u578B",
|
|
1263
1266
|
type: "select"
|
|
1264
1267
|
},
|
|
1265
1268
|
{
|
|
1266
|
-
|
|
1269
|
+
field: "props.size",
|
|
1270
|
+
label: "\u5C3A\u5BF8",
|
|
1271
|
+
props: {
|
|
1267
1272
|
allowClear: true,
|
|
1268
1273
|
options: [
|
|
1269
1274
|
{
|
|
@@ -1281,44 +1286,42 @@ const Input = {
|
|
|
1281
1286
|
],
|
|
1282
1287
|
placeholder: "\u8BF7\u9009\u62E9"
|
|
1283
1288
|
},
|
|
1284
|
-
field: "componentProps.size",
|
|
1285
|
-
label: "\u5C3A\u5BF8",
|
|
1286
1289
|
type: "select"
|
|
1287
1290
|
},
|
|
1288
1291
|
{
|
|
1289
|
-
|
|
1292
|
+
field: "props.bordered",
|
|
1293
|
+
label: "\u65E0\u8FB9\u6846",
|
|
1294
|
+
props: {
|
|
1290
1295
|
checkedValue: false,
|
|
1291
1296
|
unCheckedValue: true
|
|
1292
1297
|
},
|
|
1293
|
-
field: "componentProps.bordered",
|
|
1294
|
-
label: "\u65E0\u8FB9\u6846",
|
|
1295
1298
|
type: "switch"
|
|
1296
1299
|
},
|
|
1297
1300
|
{
|
|
1298
|
-
|
|
1301
|
+
field: "props.maxlength",
|
|
1302
|
+
label: "\u6700\u5927\u8F93\u5165\u957F\u5EA6",
|
|
1303
|
+
props: {
|
|
1299
1304
|
placeholder: "\u8BF7\u8F93\u5165"
|
|
1300
1305
|
},
|
|
1301
|
-
field: "componentProps.maxlength",
|
|
1302
|
-
label: "\u6700\u5927\u8F93\u5165\u957F\u5EA6",
|
|
1303
1306
|
type: "number"
|
|
1304
1307
|
},
|
|
1305
1308
|
{
|
|
1306
|
-
field: "
|
|
1309
|
+
field: "props.showCount",
|
|
1307
1310
|
label: "\u5C55\u793A\u5B57\u6570",
|
|
1308
1311
|
type: "switch"
|
|
1309
1312
|
},
|
|
1310
1313
|
{
|
|
1311
|
-
field: "
|
|
1314
|
+
field: "props.allowClear",
|
|
1312
1315
|
label: "\u53EF\u6E05\u7A7A",
|
|
1313
1316
|
type: "switch"
|
|
1314
1317
|
},
|
|
1315
1318
|
{
|
|
1316
|
-
field: "
|
|
1319
|
+
field: "props.disabled",
|
|
1317
1320
|
label: "\u7981\u7528",
|
|
1318
1321
|
type: "switch"
|
|
1319
1322
|
},
|
|
1320
1323
|
{
|
|
1321
|
-
field: "
|
|
1324
|
+
field: "props.hidden",
|
|
1322
1325
|
label: "\u9690\u85CF",
|
|
1323
1326
|
type: "switch"
|
|
1324
1327
|
},
|
|
@@ -1354,12 +1357,12 @@ const Input = {
|
|
|
1354
1357
|
]
|
|
1355
1358
|
},
|
|
1356
1359
|
defaultSchema: {
|
|
1357
|
-
componentProps: {
|
|
1358
|
-
placeholder: "\u8BF7\u8F93\u5165"
|
|
1359
|
-
},
|
|
1360
1360
|
field: "input",
|
|
1361
1361
|
input: true,
|
|
1362
1362
|
label: "\u8F93\u5165\u6846",
|
|
1363
|
+
props: {
|
|
1364
|
+
placeholder: "\u8BF7\u8F93\u5165"
|
|
1365
|
+
},
|
|
1363
1366
|
type: "input"
|
|
1364
1367
|
},
|
|
1365
1368
|
groupName: "\u8868\u5355",
|
|
@@ -1388,8 +1391,8 @@ const InputNumber = {
|
|
|
1388
1391
|
attribute: [
|
|
1389
1392
|
{
|
|
1390
1393
|
field: "field",
|
|
1391
|
-
label: "\u5B57\u6BB5
|
|
1392
|
-
type: "
|
|
1394
|
+
label: "\u6570\u636E\u5B57\u6BB5",
|
|
1395
|
+
type: "EpField"
|
|
1393
1396
|
},
|
|
1394
1397
|
{
|
|
1395
1398
|
field: "label",
|
|
@@ -1397,21 +1400,23 @@ const InputNumber = {
|
|
|
1397
1400
|
type: "input"
|
|
1398
1401
|
},
|
|
1399
1402
|
{
|
|
1400
|
-
|
|
1403
|
+
field: "props.defaultValue",
|
|
1404
|
+
label: "\u9ED8\u8BA4\u503C",
|
|
1405
|
+
props: {
|
|
1401
1406
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
1402
1407
|
size: "middle"
|
|
1403
1408
|
},
|
|
1404
|
-
field: "componentProps.defaultValue",
|
|
1405
|
-
label: "\u9ED8\u8BA4\u503C",
|
|
1406
1409
|
type: "number"
|
|
1407
1410
|
},
|
|
1408
1411
|
{
|
|
1409
|
-
field: "
|
|
1412
|
+
field: "props.placeholder",
|
|
1410
1413
|
label: "\u5360\u4F4D\u5185\u5BB9",
|
|
1411
1414
|
type: "input"
|
|
1412
1415
|
},
|
|
1413
1416
|
{
|
|
1414
|
-
|
|
1417
|
+
field: "props.size",
|
|
1418
|
+
label: "\u5C3A\u5BF8",
|
|
1419
|
+
props: {
|
|
1415
1420
|
allowClear: true,
|
|
1416
1421
|
options: [
|
|
1417
1422
|
{
|
|
@@ -1429,84 +1434,82 @@ const InputNumber = {
|
|
|
1429
1434
|
],
|
|
1430
1435
|
placeholder: "\u8BF7\u9009\u62E9"
|
|
1431
1436
|
},
|
|
1432
|
-
field: "componentProps.size",
|
|
1433
|
-
label: "\u5C3A\u5BF8",
|
|
1434
1437
|
type: "select"
|
|
1435
1438
|
},
|
|
1436
1439
|
{
|
|
1437
|
-
field: "
|
|
1440
|
+
field: "props.keyboard",
|
|
1438
1441
|
label: "\u952E\u76D8\u5FEB\u6377\u884C\u4E3A",
|
|
1439
1442
|
type: "switch"
|
|
1440
1443
|
},
|
|
1441
1444
|
{
|
|
1442
|
-
|
|
1445
|
+
field: "props.max",
|
|
1446
|
+
label: "\u6700\u5927\u503C",
|
|
1447
|
+
props: {
|
|
1443
1448
|
placeholder: "\u8BF7\u8F93\u5165"
|
|
1444
1449
|
},
|
|
1445
|
-
field: "componentProps.max",
|
|
1446
|
-
label: "\u6700\u5927\u503C",
|
|
1447
1450
|
type: "number"
|
|
1448
1451
|
},
|
|
1449
1452
|
{
|
|
1450
|
-
|
|
1453
|
+
field: "props.min",
|
|
1454
|
+
label: "\u6700\u5C0F\u503C",
|
|
1455
|
+
props: {
|
|
1451
1456
|
placeholder: "\u8BF7\u8F93\u5165"
|
|
1452
1457
|
},
|
|
1453
|
-
field: "componentProps.min",
|
|
1454
|
-
label: "\u6700\u5C0F\u503C",
|
|
1455
1458
|
type: "number"
|
|
1456
1459
|
},
|
|
1457
1460
|
{
|
|
1458
|
-
|
|
1461
|
+
field: "props.precision",
|
|
1462
|
+
label: "\u7CBE\u5EA6",
|
|
1463
|
+
props: {
|
|
1459
1464
|
placeholder: "\u8BF7\u8F93\u5165"
|
|
1460
1465
|
},
|
|
1461
|
-
field: "componentProps.precision",
|
|
1462
|
-
label: "\u7CBE\u5EA6",
|
|
1463
1466
|
type: "number"
|
|
1464
1467
|
},
|
|
1465
1468
|
{
|
|
1466
|
-
|
|
1469
|
+
field: "props.step",
|
|
1470
|
+
label: "\u6B65\u957F",
|
|
1471
|
+
props: {
|
|
1467
1472
|
placeholder: "\u8BF7\u8F93\u5165"
|
|
1468
1473
|
},
|
|
1469
|
-
field: "componentProps.step",
|
|
1470
|
-
label: "\u6B65\u957F",
|
|
1471
1474
|
type: "number"
|
|
1472
1475
|
},
|
|
1473
1476
|
{
|
|
1474
|
-
field: "
|
|
1477
|
+
field: "props.stringMode",
|
|
1475
1478
|
label: "\u5B57\u7B26\u6A21\u5F0F",
|
|
1476
1479
|
type: "switch"
|
|
1477
1480
|
},
|
|
1478
1481
|
{
|
|
1479
|
-
|
|
1482
|
+
field: "props.bordered",
|
|
1483
|
+
label: "\u65E0\u8FB9\u6846",
|
|
1484
|
+
props: {
|
|
1480
1485
|
checkedValue: false,
|
|
1481
1486
|
unCheckedValue: true
|
|
1482
1487
|
},
|
|
1483
|
-
field: "componentProps.bordered",
|
|
1484
|
-
label: "\u65E0\u8FB9\u6846",
|
|
1485
1488
|
type: "switch"
|
|
1486
1489
|
},
|
|
1487
1490
|
{
|
|
1488
|
-
field: "
|
|
1491
|
+
field: "props.allowClear",
|
|
1489
1492
|
label: "\u53EF\u6E05\u7A7A",
|
|
1490
1493
|
type: "switch"
|
|
1491
1494
|
},
|
|
1492
1495
|
{
|
|
1493
|
-
field: "
|
|
1496
|
+
field: "props.disabled",
|
|
1494
1497
|
label: "\u7981\u7528",
|
|
1495
1498
|
type: "switch"
|
|
1496
1499
|
},
|
|
1497
1500
|
{
|
|
1498
|
-
field: "
|
|
1501
|
+
field: "props.hidden",
|
|
1499
1502
|
label: "\u9690\u85CF",
|
|
1500
1503
|
type: "switch"
|
|
1501
1504
|
},
|
|
1502
1505
|
{
|
|
1503
|
-
componentProps: {
|
|
1504
|
-
ruleType: "number"
|
|
1505
|
-
},
|
|
1506
1506
|
description: "\u6821\u9A8C\u89C4\u5219\u9700\u8981\u914D\u5408\u8868\u5355\u4F7F\u7528",
|
|
1507
1507
|
field: "rules",
|
|
1508
1508
|
label: "\u8868\u5355\u6821\u9A8C",
|
|
1509
1509
|
layout: "vertical",
|
|
1510
|
+
props: {
|
|
1511
|
+
ruleType: "number"
|
|
1512
|
+
},
|
|
1510
1513
|
type: "ERuleEditor"
|
|
1511
1514
|
}
|
|
1512
1515
|
],
|
|
@@ -1534,13 +1537,13 @@ const InputNumber = {
|
|
|
1534
1537
|
]
|
|
1535
1538
|
},
|
|
1536
1539
|
defaultSchema: {
|
|
1537
|
-
componentProps: {
|
|
1538
|
-
placeholder: "\u8BF7\u8F93\u5165",
|
|
1539
|
-
style: { width: "100%" }
|
|
1540
|
-
},
|
|
1541
1540
|
field: "number",
|
|
1542
1541
|
input: true,
|
|
1543
1542
|
label: "\u6570\u5B57\u8F93\u5165\u6846",
|
|
1543
|
+
props: {
|
|
1544
|
+
placeholder: "\u8BF7\u8F93\u5165",
|
|
1545
|
+
style: { width: "100%" }
|
|
1546
|
+
},
|
|
1544
1547
|
type: "number"
|
|
1545
1548
|
},
|
|
1546
1549
|
groupName: "\u8868\u5355",
|
|
@@ -1548,29 +1551,34 @@ const InputNumber = {
|
|
|
1548
1551
|
sort: 710
|
|
1549
1552
|
};
|
|
1550
1553
|
|
|
1551
|
-
const
|
|
1552
|
-
|
|
1553
|
-
component: async () => (await import('ant-design-vue')).InputPassword,
|
|
1554
|
+
const Modal = {
|
|
1555
|
+
component: () => import('./chunks/modal.mjs'),
|
|
1554
1556
|
config: {
|
|
1555
|
-
|
|
1556
|
-
{
|
|
1557
|
-
description: "\u4F7F input \u83B7\u53D6\u7126\u70B9",
|
|
1558
|
-
type: "focus"
|
|
1559
|
-
},
|
|
1560
|
-
{
|
|
1561
|
-
description: "\u4F7F input \u5931\u53BB\u7126\u70B9",
|
|
1562
|
-
type: "blur"
|
|
1563
|
-
},
|
|
1557
|
+
attribute: [
|
|
1564
1558
|
{
|
|
1565
|
-
|
|
1566
|
-
|
|
1559
|
+
field: "title",
|
|
1560
|
+
label: "\u6807\u9898",
|
|
1561
|
+
type: "input"
|
|
1567
1562
|
}
|
|
1568
|
-
]
|
|
1563
|
+
]
|
|
1564
|
+
},
|
|
1565
|
+
defaultSchema: {
|
|
1566
|
+
label: "\u6A21\u6001\u6846",
|
|
1567
|
+
type: "modal",
|
|
1568
|
+
children: []
|
|
1569
|
+
},
|
|
1570
|
+
icon: "epic-icon-xiala"
|
|
1571
|
+
};
|
|
1572
|
+
|
|
1573
|
+
const Radio = {
|
|
1574
|
+
bindModel: "value",
|
|
1575
|
+
component: async () => (await import('ant-design-vue')).RadioGroup,
|
|
1576
|
+
config: {
|
|
1569
1577
|
attribute: [
|
|
1570
1578
|
{
|
|
1571
1579
|
field: "field",
|
|
1572
|
-
label: "\u5B57\u6BB5
|
|
1573
|
-
type: "
|
|
1580
|
+
label: "\u6570\u636E\u5B57\u6BB5",
|
|
1581
|
+
type: "EpField"
|
|
1574
1582
|
},
|
|
1575
1583
|
{
|
|
1576
1584
|
field: "label",
|
|
@@ -1578,12 +1586,14 @@ const InputPassword = {
|
|
|
1578
1586
|
type: "input"
|
|
1579
1587
|
},
|
|
1580
1588
|
{
|
|
1581
|
-
field: "
|
|
1582
|
-
label: "\
|
|
1583
|
-
type: "
|
|
1589
|
+
field: "props.defaultValue",
|
|
1590
|
+
label: "\u9ED8\u8BA4\u503C",
|
|
1591
|
+
type: "radio"
|
|
1584
1592
|
},
|
|
1585
1593
|
{
|
|
1586
|
-
|
|
1594
|
+
field: "props.size",
|
|
1595
|
+
label: "\u5C3A\u5BF8",
|
|
1596
|
+
props: {
|
|
1587
1597
|
allowClear: true,
|
|
1588
1598
|
options: [
|
|
1589
1599
|
{
|
|
@@ -1601,189 +1611,29 @@ const InputPassword = {
|
|
|
1601
1611
|
],
|
|
1602
1612
|
placeholder: "\u8BF7\u9009\u62E9"
|
|
1603
1613
|
},
|
|
1604
|
-
field: "componentProps.size",
|
|
1605
|
-
label: "\u5C3A\u5BF8",
|
|
1606
1614
|
type: "select"
|
|
1607
1615
|
},
|
|
1608
1616
|
{
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
label: "\u65E0\u8FB9\u6846",
|
|
1615
|
-
type: "switch"
|
|
1616
|
-
},
|
|
1617
|
-
{
|
|
1618
|
-
componentProps: {
|
|
1619
|
-
placeholder: "\u8BF7\u8F93\u5165"
|
|
1620
|
-
},
|
|
1621
|
-
field: "componentProps.maxLength",
|
|
1622
|
-
label: "\u6700\u5927\u8F93\u5165\u957F\u5EA6",
|
|
1623
|
-
type: "number"
|
|
1624
|
-
},
|
|
1625
|
-
{
|
|
1626
|
-
field: "componentProps.showCount",
|
|
1627
|
-
label: "\u7EDF\u8BA1\u5B57\u6570",
|
|
1628
|
-
type: "switch"
|
|
1629
|
-
},
|
|
1630
|
-
{
|
|
1631
|
-
field: "componentProps.visible",
|
|
1632
|
-
label: "\u5BC6\u7801\u53EF\u89C1",
|
|
1633
|
-
type: "switch"
|
|
1634
|
-
},
|
|
1635
|
-
{
|
|
1636
|
-
componentProps: {
|
|
1637
|
-
checkedValue: false,
|
|
1638
|
-
unCheckedValue: true
|
|
1617
|
+
field: "props.optionType",
|
|
1618
|
+
label: "\u6309\u94AE\u6837\u5F0F",
|
|
1619
|
+
props: {
|
|
1620
|
+
checkedValue: "button",
|
|
1621
|
+
unCheckedValue: "default"
|
|
1639
1622
|
},
|
|
1640
|
-
field: "componentProps.visibilityToggle",
|
|
1641
|
-
label: "\u9690\u85CF\u5207\u6362\u6309\u94AE",
|
|
1642
|
-
type: "switch"
|
|
1643
|
-
},
|
|
1644
|
-
{
|
|
1645
|
-
field: "componentProps.allowClear",
|
|
1646
|
-
label: "\u53EF\u6E05\u7A7A",
|
|
1647
1623
|
type: "switch"
|
|
1648
1624
|
},
|
|
1649
1625
|
{
|
|
1650
|
-
field: "
|
|
1626
|
+
field: "props.disabled",
|
|
1651
1627
|
label: "\u7981\u7528",
|
|
1652
1628
|
type: "switch"
|
|
1653
1629
|
},
|
|
1654
1630
|
{
|
|
1655
|
-
field: "
|
|
1631
|
+
field: "props.hidden",
|
|
1656
1632
|
label: "\u9690\u85CF",
|
|
1657
1633
|
type: "switch"
|
|
1658
1634
|
},
|
|
1659
1635
|
{
|
|
1660
|
-
|
|
1661
|
-
field: "rules",
|
|
1662
|
-
label: "\u8868\u5355\u6821\u9A8C",
|
|
1663
|
-
layout: "vertical",
|
|
1664
|
-
type: "ERuleEditor"
|
|
1665
|
-
}
|
|
1666
|
-
],
|
|
1667
|
-
event: [
|
|
1668
|
-
{
|
|
1669
|
-
description: "\u8F93\u5165\u503C",
|
|
1670
|
-
type: "input"
|
|
1671
|
-
},
|
|
1672
|
-
{
|
|
1673
|
-
description: "\u503C\u4FEE\u6539",
|
|
1674
|
-
type: "change"
|
|
1675
|
-
},
|
|
1676
|
-
{
|
|
1677
|
-
description: "\u6309\u4E0B\u56DE\u8F66\u7684\u56DE\u8C03",
|
|
1678
|
-
type: "pressEnter"
|
|
1679
|
-
},
|
|
1680
|
-
{
|
|
1681
|
-
description: "\u83B7\u53D6\u7126\u70B9",
|
|
1682
|
-
type: "focus"
|
|
1683
|
-
},
|
|
1684
|
-
{
|
|
1685
|
-
description: "\u5931\u53BB\u7126\u70B9",
|
|
1686
|
-
type: "blur"
|
|
1687
|
-
}
|
|
1688
|
-
]
|
|
1689
|
-
},
|
|
1690
|
-
defaultSchema: {
|
|
1691
|
-
componentProps: {
|
|
1692
|
-
placeholder: "\u8BF7\u8F93\u5165"
|
|
1693
|
-
},
|
|
1694
|
-
field: "password",
|
|
1695
|
-
input: true,
|
|
1696
|
-
label: "\u5BC6\u7801\u8F93\u5165\u6846",
|
|
1697
|
-
type: "password"
|
|
1698
|
-
},
|
|
1699
|
-
groupName: "\u8868\u5355",
|
|
1700
|
-
icon: "icon--epic--lock-outline",
|
|
1701
|
-
sort: 720
|
|
1702
|
-
};
|
|
1703
|
-
|
|
1704
|
-
const Modal = {
|
|
1705
|
-
component: () => import('./chunks/modal.mjs'),
|
|
1706
|
-
config: {
|
|
1707
|
-
attribute: [
|
|
1708
|
-
{
|
|
1709
|
-
field: "title",
|
|
1710
|
-
label: "\u6807\u9898",
|
|
1711
|
-
type: "input"
|
|
1712
|
-
}
|
|
1713
|
-
]
|
|
1714
|
-
},
|
|
1715
|
-
defaultSchema: {
|
|
1716
|
-
label: "\u6A21\u6001\u6846",
|
|
1717
|
-
type: "modal",
|
|
1718
|
-
children: []
|
|
1719
|
-
},
|
|
1720
|
-
icon: "epic-icon-xiala"
|
|
1721
|
-
};
|
|
1722
|
-
|
|
1723
|
-
const Radio = {
|
|
1724
|
-
bindModel: "value",
|
|
1725
|
-
component: async () => (await import('ant-design-vue')).RadioGroup,
|
|
1726
|
-
config: {
|
|
1727
|
-
attribute: [
|
|
1728
|
-
{
|
|
1729
|
-
field: "field",
|
|
1730
|
-
label: "\u5B57\u6BB5\u540D",
|
|
1731
|
-
type: "input"
|
|
1732
|
-
},
|
|
1733
|
-
{
|
|
1734
|
-
field: "label",
|
|
1735
|
-
label: "\u6807\u9898",
|
|
1736
|
-
type: "input"
|
|
1737
|
-
},
|
|
1738
|
-
{
|
|
1739
|
-
field: "componentProps.defaultValue",
|
|
1740
|
-
label: "\u9ED8\u8BA4\u503C",
|
|
1741
|
-
type: "radio"
|
|
1742
|
-
},
|
|
1743
|
-
{
|
|
1744
|
-
componentProps: {
|
|
1745
|
-
allowClear: true,
|
|
1746
|
-
options: [
|
|
1747
|
-
{
|
|
1748
|
-
label: "\u5927\u53F7",
|
|
1749
|
-
value: "large"
|
|
1750
|
-
},
|
|
1751
|
-
{
|
|
1752
|
-
label: "\u4E2D\u7B49",
|
|
1753
|
-
value: "middle"
|
|
1754
|
-
},
|
|
1755
|
-
{
|
|
1756
|
-
label: "\u5C0F\u578B",
|
|
1757
|
-
value: "small"
|
|
1758
|
-
}
|
|
1759
|
-
],
|
|
1760
|
-
placeholder: "\u8BF7\u9009\u62E9"
|
|
1761
|
-
},
|
|
1762
|
-
field: "componentProps.size",
|
|
1763
|
-
label: "\u5C3A\u5BF8",
|
|
1764
|
-
type: "select"
|
|
1765
|
-
},
|
|
1766
|
-
{
|
|
1767
|
-
componentProps: {
|
|
1768
|
-
checkedValue: "button",
|
|
1769
|
-
unCheckedValue: "default"
|
|
1770
|
-
},
|
|
1771
|
-
field: "componentProps.optionType",
|
|
1772
|
-
label: "\u6309\u94AE\u6837\u5F0F",
|
|
1773
|
-
type: "switch"
|
|
1774
|
-
},
|
|
1775
|
-
{
|
|
1776
|
-
field: "componentProps.disabled",
|
|
1777
|
-
label: "\u7981\u7528",
|
|
1778
|
-
type: "switch"
|
|
1779
|
-
},
|
|
1780
|
-
{
|
|
1781
|
-
field: "componentProps.hidden",
|
|
1782
|
-
label: "\u9690\u85CF",
|
|
1783
|
-
type: "switch"
|
|
1784
|
-
},
|
|
1785
|
-
{
|
|
1786
|
-
field: "componentProps.options",
|
|
1636
|
+
field: "props.options",
|
|
1787
1637
|
label: "\u9009\u9879\u7BA1\u7406",
|
|
1788
1638
|
layout: "vertical",
|
|
1789
1639
|
type: "EOptionsEditor"
|
|
@@ -1804,7 +1654,10 @@ const Radio = {
|
|
|
1804
1654
|
]
|
|
1805
1655
|
},
|
|
1806
1656
|
defaultSchema: {
|
|
1807
|
-
|
|
1657
|
+
field: "radio",
|
|
1658
|
+
input: true,
|
|
1659
|
+
label: "\u5355\u9009\u6846",
|
|
1660
|
+
props: {
|
|
1808
1661
|
options: [
|
|
1809
1662
|
{
|
|
1810
1663
|
label: "\u9009\u98791",
|
|
@@ -1816,9 +1669,6 @@ const Radio = {
|
|
|
1816
1669
|
}
|
|
1817
1670
|
]
|
|
1818
1671
|
},
|
|
1819
|
-
field: "radio",
|
|
1820
|
-
input: true,
|
|
1821
|
-
label: "\u5355\u9009\u6846",
|
|
1822
1672
|
type: "radio"
|
|
1823
1673
|
},
|
|
1824
1674
|
groupName: "\u8868\u5355",
|
|
@@ -1831,7 +1681,9 @@ const Row = {
|
|
|
1831
1681
|
config: {
|
|
1832
1682
|
attribute: [
|
|
1833
1683
|
{
|
|
1834
|
-
|
|
1684
|
+
field: "props.align",
|
|
1685
|
+
label: "\u5782\u76F4\u5BF9\u9F50\u65B9\u5F0F",
|
|
1686
|
+
props: {
|
|
1835
1687
|
options: [
|
|
1836
1688
|
{
|
|
1837
1689
|
label: "top",
|
|
@@ -1849,12 +1701,12 @@ const Row = {
|
|
|
1849
1701
|
placeholder: "\u8BF7\u9009\u62E9",
|
|
1850
1702
|
style: { width: "100%" }
|
|
1851
1703
|
},
|
|
1852
|
-
field: "componentProps.align",
|
|
1853
|
-
label: "\u5782\u76F4\u5BF9\u9F50\u65B9\u5F0F",
|
|
1854
1704
|
type: "select"
|
|
1855
1705
|
},
|
|
1856
1706
|
{
|
|
1857
|
-
|
|
1707
|
+
field: "props.justify",
|
|
1708
|
+
label: "\u6C34\u5E73\u6392\u5217\u65B9\u5F0F",
|
|
1709
|
+
props: {
|
|
1858
1710
|
options: [
|
|
1859
1711
|
{
|
|
1860
1712
|
label: "start",
|
|
@@ -1880,16 +1732,14 @@ const Row = {
|
|
|
1880
1732
|
placeholder: "\u8BF7\u9009\u62E9",
|
|
1881
1733
|
style: { width: "100%" }
|
|
1882
1734
|
},
|
|
1883
|
-
field: "componentProps.justify",
|
|
1884
|
-
label: "\u6C34\u5E73\u6392\u5217\u65B9\u5F0F",
|
|
1885
1735
|
type: "select"
|
|
1886
1736
|
},
|
|
1887
1737
|
{
|
|
1888
|
-
|
|
1738
|
+
field: "props.gutter",
|
|
1739
|
+
label: "\u6805\u683C\u95F4\u8DDD",
|
|
1740
|
+
props: {
|
|
1889
1741
|
placeholder: "\u8BF7\u8F93\u5165"
|
|
1890
1742
|
},
|
|
1891
|
-
field: "componentProps.gutter",
|
|
1892
|
-
label: "\u6805\u683C\u95F4\u8DDD",
|
|
1893
1743
|
type: "input"
|
|
1894
1744
|
},
|
|
1895
1745
|
{
|
|
@@ -1898,16 +1748,16 @@ const Row = {
|
|
|
1898
1748
|
type: "EColEditor"
|
|
1899
1749
|
},
|
|
1900
1750
|
{
|
|
1901
|
-
|
|
1751
|
+
field: "props.wrap",
|
|
1752
|
+
label: "\u4E0D\u81EA\u52A8\u6362\u884C",
|
|
1753
|
+
props: {
|
|
1902
1754
|
checkedValue: false,
|
|
1903
1755
|
unCheckedValue: true
|
|
1904
1756
|
},
|
|
1905
|
-
field: "componentProps.wrap",
|
|
1906
|
-
label: "\u4E0D\u81EA\u52A8\u6362\u884C",
|
|
1907
1757
|
type: "switch"
|
|
1908
1758
|
},
|
|
1909
1759
|
{
|
|
1910
|
-
field: "
|
|
1760
|
+
field: "props.hidden",
|
|
1911
1761
|
label: "\u9690\u85CF",
|
|
1912
1762
|
type: "switch"
|
|
1913
1763
|
}
|
|
@@ -1915,19 +1765,22 @@ const Row = {
|
|
|
1915
1765
|
},
|
|
1916
1766
|
defaultSchema: {
|
|
1917
1767
|
label: "\u6805\u683C\u5E03\u5C40",
|
|
1768
|
+
props: {
|
|
1769
|
+
gutter: 12
|
|
1770
|
+
},
|
|
1918
1771
|
type: "row",
|
|
1919
1772
|
children: [
|
|
1920
1773
|
{
|
|
1921
1774
|
type: "col",
|
|
1922
1775
|
children: [],
|
|
1923
|
-
|
|
1776
|
+
props: {
|
|
1924
1777
|
span: 12
|
|
1925
1778
|
}
|
|
1926
1779
|
},
|
|
1927
1780
|
{
|
|
1928
1781
|
type: "col",
|
|
1929
1782
|
children: [],
|
|
1930
|
-
|
|
1783
|
+
props: {
|
|
1931
1784
|
span: 12
|
|
1932
1785
|
}
|
|
1933
1786
|
}
|
|
@@ -1962,8 +1815,8 @@ const Select = {
|
|
|
1962
1815
|
attribute: [
|
|
1963
1816
|
{
|
|
1964
1817
|
field: "field",
|
|
1965
|
-
label: "\u5B57\u6BB5
|
|
1966
|
-
type: "
|
|
1818
|
+
label: "\u6570\u636E\u5B57\u6BB5",
|
|
1819
|
+
type: "EpField"
|
|
1967
1820
|
},
|
|
1968
1821
|
{
|
|
1969
1822
|
field: "label",
|
|
@@ -1971,20 +1824,22 @@ const Select = {
|
|
|
1971
1824
|
type: "input"
|
|
1972
1825
|
},
|
|
1973
1826
|
{
|
|
1974
|
-
|
|
1827
|
+
field: "props.placeholder",
|
|
1828
|
+
label: "\u5360\u4F4D\u5185\u5BB9",
|
|
1829
|
+
props: {
|
|
1975
1830
|
placeholder: "\u8BF7\u8F93\u5165"
|
|
1976
1831
|
},
|
|
1977
|
-
field: "componentProps.placeholder",
|
|
1978
|
-
label: "\u5360\u4F4D\u5185\u5BB9",
|
|
1979
1832
|
type: "input"
|
|
1980
1833
|
},
|
|
1981
1834
|
{
|
|
1982
|
-
field: "
|
|
1835
|
+
field: "props.defaultValue",
|
|
1983
1836
|
label: "\u9ED8\u8BA4\u503C",
|
|
1984
1837
|
type: "select"
|
|
1985
1838
|
},
|
|
1986
1839
|
{
|
|
1987
|
-
|
|
1840
|
+
field: "props.size",
|
|
1841
|
+
label: "\u5C3A\u5BF8",
|
|
1842
|
+
props: {
|
|
1988
1843
|
allowClear: true,
|
|
1989
1844
|
options: [
|
|
1990
1845
|
{
|
|
@@ -2002,20 +1857,20 @@ const Select = {
|
|
|
2002
1857
|
],
|
|
2003
1858
|
placeholder: "\u8BF7\u9009\u62E9"
|
|
2004
1859
|
},
|
|
2005
|
-
field: "componentProps.size",
|
|
2006
|
-
label: "\u5C3A\u5BF8",
|
|
2007
1860
|
type: "select"
|
|
2008
1861
|
},
|
|
2009
1862
|
{
|
|
2010
|
-
|
|
1863
|
+
field: "props.listHeight",
|
|
1864
|
+
label: "\u5F39\u7A97\u9AD8\u5EA6",
|
|
1865
|
+
props: {
|
|
2011
1866
|
placeholder: "\u8BF7\u8F93\u5165"
|
|
2012
1867
|
},
|
|
2013
|
-
field: "componentProps.listHeight",
|
|
2014
|
-
label: "\u5F39\u7A97\u9AD8\u5EA6",
|
|
2015
1868
|
type: "number"
|
|
2016
1869
|
},
|
|
2017
1870
|
{
|
|
2018
|
-
|
|
1871
|
+
field: "props.mode",
|
|
1872
|
+
label: "\u6A21\u5F0F",
|
|
1873
|
+
props: {
|
|
2019
1874
|
allowClear: true,
|
|
2020
1875
|
options: [
|
|
2021
1876
|
{
|
|
@@ -2033,35 +1888,35 @@ const Select = {
|
|
|
2033
1888
|
],
|
|
2034
1889
|
placeholder: "\u8BF7\u9009\u62E9"
|
|
2035
1890
|
},
|
|
2036
|
-
field: "componentProps.mode",
|
|
2037
|
-
label: "\u6A21\u5F0F",
|
|
2038
1891
|
type: "select"
|
|
2039
1892
|
},
|
|
2040
1893
|
{
|
|
2041
|
-
field: "
|
|
1894
|
+
field: "props.showSearch",
|
|
2042
1895
|
label: "\u53EF\u641C\u7D22",
|
|
2043
1896
|
type: "switch"
|
|
2044
1897
|
},
|
|
2045
1898
|
{
|
|
2046
|
-
field: "
|
|
1899
|
+
field: "props.autoClearSearchValue",
|
|
2047
1900
|
label: "\u9009\u4E2D\u9009\u9879\u540E\u6E05\u7A7A\u641C\u7D22\u6846",
|
|
2048
|
-
show: ({ values }) => values.
|
|
1901
|
+
show: ({ values }) => values.props.mode && values.props.showSearch,
|
|
2049
1902
|
type: "switch"
|
|
2050
1903
|
},
|
|
2051
1904
|
{
|
|
2052
|
-
field: "
|
|
1905
|
+
field: "props.maxTagTextLength",
|
|
2053
1906
|
label: "\u6700\u5927tag\u6587\u672C\u957F\u5EA6",
|
|
2054
|
-
show: ({ values }) => values.
|
|
1907
|
+
show: ({ values }) => values.props.mode,
|
|
2055
1908
|
type: "number"
|
|
2056
1909
|
},
|
|
2057
1910
|
{
|
|
2058
|
-
field: "
|
|
1911
|
+
field: "props.maxTagCount",
|
|
2059
1912
|
label: "\u6700\u5927tag\u663E\u793A\u6570",
|
|
2060
|
-
show: ({ values }) => values.
|
|
1913
|
+
show: ({ values }) => values.props.mode,
|
|
2061
1914
|
type: "number"
|
|
2062
1915
|
},
|
|
2063
1916
|
{
|
|
2064
|
-
|
|
1917
|
+
field: "props.placement",
|
|
1918
|
+
label: "\u5F39\u51FA\u6846\u4F4D\u7F6E",
|
|
1919
|
+
props: {
|
|
2065
1920
|
allowClear: true,
|
|
2066
1921
|
options: [
|
|
2067
1922
|
{
|
|
@@ -2083,41 +1938,39 @@ const Select = {
|
|
|
2083
1938
|
],
|
|
2084
1939
|
placeholder: "\u8BF7\u9009\u62E9"
|
|
2085
1940
|
},
|
|
2086
|
-
field: "componentProps.placement",
|
|
2087
|
-
label: "\u5F39\u51FA\u6846\u4F4D\u7F6E",
|
|
2088
1941
|
type: "select"
|
|
2089
1942
|
},
|
|
2090
1943
|
{
|
|
2091
|
-
|
|
1944
|
+
field: "props.bordered",
|
|
1945
|
+
label: "\u65E0\u8FB9\u6846",
|
|
1946
|
+
props: {
|
|
2092
1947
|
checkedValue: false,
|
|
2093
1948
|
unCheckedValue: true
|
|
2094
1949
|
},
|
|
2095
|
-
field: "componentProps.bordered",
|
|
2096
|
-
label: "\u65E0\u8FB9\u6846",
|
|
2097
1950
|
type: "switch"
|
|
2098
1951
|
},
|
|
2099
1952
|
{
|
|
2100
|
-
field: "
|
|
1953
|
+
field: "props.allowClear",
|
|
2101
1954
|
label: "\u53EF\u6E05\u7A7A",
|
|
2102
1955
|
type: "switch"
|
|
2103
1956
|
},
|
|
2104
1957
|
{
|
|
2105
|
-
field: "
|
|
1958
|
+
field: "props.labelInValue",
|
|
2106
1959
|
label: "labelInValue",
|
|
2107
1960
|
type: "switch"
|
|
2108
1961
|
},
|
|
2109
1962
|
{
|
|
2110
|
-
field: "
|
|
1963
|
+
field: "props.disabled",
|
|
2111
1964
|
label: "\u7981\u7528",
|
|
2112
1965
|
type: "switch"
|
|
2113
1966
|
},
|
|
2114
1967
|
{
|
|
2115
|
-
field: "
|
|
1968
|
+
field: "props.hidden",
|
|
2116
1969
|
label: "\u9690\u85CF",
|
|
2117
1970
|
type: "switch"
|
|
2118
1971
|
},
|
|
2119
1972
|
{
|
|
2120
|
-
field: "
|
|
1973
|
+
field: "props.options",
|
|
2121
1974
|
label: "\u9009\u9879\u7BA1\u7406",
|
|
2122
1975
|
layout: "vertical",
|
|
2123
1976
|
type: "EOptionsEditor"
|
|
@@ -2146,7 +1999,10 @@ const Select = {
|
|
|
2146
1999
|
]
|
|
2147
2000
|
},
|
|
2148
2001
|
defaultSchema: {
|
|
2149
|
-
|
|
2002
|
+
field: "select",
|
|
2003
|
+
input: true,
|
|
2004
|
+
label: "\u9009\u62E9\u6846",
|
|
2005
|
+
props: {
|
|
2150
2006
|
options: [
|
|
2151
2007
|
{
|
|
2152
2008
|
label: "\u9009\u98791",
|
|
@@ -2159,9 +2015,6 @@ const Select = {
|
|
|
2159
2015
|
],
|
|
2160
2016
|
placeholder: "\u8BF7\u9009\u62E9"
|
|
2161
2017
|
},
|
|
2162
|
-
field: "select",
|
|
2163
|
-
input: true,
|
|
2164
|
-
label: "\u9009\u62E9\u6846",
|
|
2165
2018
|
type: "select"
|
|
2166
2019
|
},
|
|
2167
2020
|
groupName: "\u8868\u5355",
|
|
@@ -2176,8 +2029,8 @@ const Slider = {
|
|
|
2176
2029
|
attribute: [
|
|
2177
2030
|
{
|
|
2178
2031
|
field: "field",
|
|
2179
|
-
label: "\u5B57\u6BB5
|
|
2180
|
-
type: "
|
|
2032
|
+
label: "\u6570\u636E\u5B57\u6BB5",
|
|
2033
|
+
type: "EpField"
|
|
2181
2034
|
},
|
|
2182
2035
|
{
|
|
2183
2036
|
field: "label",
|
|
@@ -2185,17 +2038,19 @@ const Slider = {
|
|
|
2185
2038
|
type: "input"
|
|
2186
2039
|
},
|
|
2187
2040
|
{
|
|
2188
|
-
|
|
2041
|
+
field: "props.defaultValue",
|
|
2042
|
+
label: "\u9ED8\u8BA4\u503C",
|
|
2043
|
+
props: {
|
|
2189
2044
|
style: {
|
|
2190
2045
|
width: "100%"
|
|
2191
2046
|
}
|
|
2192
2047
|
},
|
|
2193
|
-
field: "componentProps.defaultValue",
|
|
2194
|
-
label: "\u9ED8\u8BA4\u503C",
|
|
2195
2048
|
type: "slider"
|
|
2196
2049
|
},
|
|
2197
2050
|
{
|
|
2198
|
-
|
|
2051
|
+
field: "props.size",
|
|
2052
|
+
label: "\u5C3A\u5BF8",
|
|
2053
|
+
props: {
|
|
2199
2054
|
allowClear: true,
|
|
2200
2055
|
options: [
|
|
2201
2056
|
{
|
|
@@ -2213,81 +2068,79 @@ const Slider = {
|
|
|
2213
2068
|
],
|
|
2214
2069
|
placeholder: "\u8BF7\u9009\u62E9"
|
|
2215
2070
|
},
|
|
2216
|
-
field: "componentProps.size",
|
|
2217
|
-
label: "\u5C3A\u5BF8",
|
|
2218
2071
|
type: "select"
|
|
2219
2072
|
},
|
|
2220
2073
|
{
|
|
2221
2074
|
changeSync: true,
|
|
2222
|
-
field: "
|
|
2075
|
+
field: "props.range",
|
|
2223
2076
|
label: "\u8303\u56F4\u9009\u62E9",
|
|
2224
2077
|
onChange: ({ value, values }) => {
|
|
2225
|
-
values.
|
|
2078
|
+
values.props.defaultValue = value ? [0, 100] : 0;
|
|
2226
2079
|
},
|
|
2227
2080
|
type: "switch"
|
|
2228
2081
|
},
|
|
2229
2082
|
{
|
|
2230
|
-
field: "
|
|
2083
|
+
field: "props.reverse",
|
|
2231
2084
|
label: "\u5012\u8F6C\u8F68\u9053",
|
|
2232
2085
|
type: "switch"
|
|
2233
2086
|
},
|
|
2234
2087
|
{
|
|
2235
|
-
|
|
2088
|
+
field: "props.step",
|
|
2089
|
+
label: "\u6B65\u957F",
|
|
2090
|
+
props: {
|
|
2236
2091
|
placeholder: "\u8BF7\u8F93\u5165"
|
|
2237
2092
|
},
|
|
2238
|
-
field: "componentProps.step",
|
|
2239
|
-
label: "\u6B65\u957F",
|
|
2240
2093
|
type: "number"
|
|
2241
2094
|
},
|
|
2242
2095
|
{
|
|
2243
|
-
|
|
2096
|
+
field: "props.min",
|
|
2097
|
+
label: "\u6700\u5C0F\u503C",
|
|
2098
|
+
props: {
|
|
2244
2099
|
placeholder: "\u8BF7\u8F93\u5165"
|
|
2245
2100
|
},
|
|
2246
|
-
field: "componentProps.min",
|
|
2247
|
-
label: "\u6700\u5C0F\u503C",
|
|
2248
2101
|
type: "number"
|
|
2249
2102
|
},
|
|
2250
2103
|
{
|
|
2251
|
-
|
|
2104
|
+
field: "props.max",
|
|
2105
|
+
label: "\u6700\u5927\u503C",
|
|
2106
|
+
props: {
|
|
2252
2107
|
placeholder: "\u8BF7\u8F93\u5165"
|
|
2253
2108
|
},
|
|
2254
|
-
field: "componentProps.max",
|
|
2255
|
-
label: "\u6700\u5927\u503C",
|
|
2256
2109
|
type: "number"
|
|
2257
2110
|
},
|
|
2258
2111
|
{
|
|
2259
|
-
field: "
|
|
2112
|
+
field: "props.vertical",
|
|
2260
2113
|
label: "\u5782\u76F4\u6A21\u5F0F",
|
|
2261
2114
|
type: "switch"
|
|
2262
2115
|
},
|
|
2263
2116
|
{
|
|
2264
|
-
field: "
|
|
2117
|
+
field: "props.dots",
|
|
2265
2118
|
label: "\u663E\u793A\u523B\u5EA6",
|
|
2266
2119
|
type: "switch"
|
|
2267
2120
|
},
|
|
2268
2121
|
// {
|
|
2269
2122
|
// label: "持续显示提示",
|
|
2270
2123
|
// type: "switch",
|
|
2271
|
-
// field: "
|
|
2124
|
+
// field: "props.tooltipOpen",
|
|
2272
2125
|
// },
|
|
2273
2126
|
{
|
|
2274
|
-
field: "
|
|
2127
|
+
field: "props.disabled",
|
|
2275
2128
|
label: "\u7981\u7528",
|
|
2276
2129
|
type: "switch"
|
|
2277
2130
|
},
|
|
2278
2131
|
{
|
|
2279
|
-
field: "
|
|
2132
|
+
field: "props.hidden",
|
|
2280
2133
|
label: "\u9690\u85CF",
|
|
2281
2134
|
type: "switch"
|
|
2282
2135
|
},
|
|
2283
2136
|
{
|
|
2284
|
-
componentProps: {
|
|
2285
|
-
ruleType: "number"
|
|
2286
|
-
},
|
|
2287
2137
|
description: "\u6821\u9A8C\u89C4\u5219\u9700\u8981\u914D\u5408\u8868\u5355\u4F7F\u7528",
|
|
2288
2138
|
field: "rules",
|
|
2289
2139
|
label: "\u8868\u5355\u6821\u9A8C",
|
|
2290
2140
|
layout: "vertical",
|
|
2141
|
+
props: {
|
|
2142
|
+
ruleType: "number"
|
|
2143
|
+
},
|
|
2291
2144
|
type: "ERuleEditor"
|
|
2292
2145
|
}
|
|
2293
2146
|
],
|
|
@@ -2320,8 +2173,8 @@ const Switch = {
|
|
|
2320
2173
|
attribute: [
|
|
2321
2174
|
{
|
|
2322
2175
|
field: "field",
|
|
2323
|
-
label: "\u5B57\u6BB5
|
|
2324
|
-
type: "
|
|
2176
|
+
label: "\u6570\u636E\u5B57\u6BB5",
|
|
2177
|
+
type: "EpField"
|
|
2325
2178
|
},
|
|
2326
2179
|
{
|
|
2327
2180
|
field: "label",
|
|
@@ -2329,50 +2182,52 @@ const Switch = {
|
|
|
2329
2182
|
type: "input"
|
|
2330
2183
|
},
|
|
2331
2184
|
{
|
|
2332
|
-
field: "
|
|
2185
|
+
field: "props.defaultValue",
|
|
2333
2186
|
label: "\u9ED8\u8BA4\u503C",
|
|
2334
2187
|
type: "switch"
|
|
2335
2188
|
},
|
|
2336
2189
|
{
|
|
2337
|
-
|
|
2338
|
-
placeholder: "\u8BF7\u8F93\u5165"
|
|
2339
|
-
},
|
|
2340
|
-
field: "componentProps.checkedValue",
|
|
2190
|
+
field: "props.checkedValue",
|
|
2341
2191
|
label: "ON\u72B6\u6001\u503C",
|
|
2342
2192
|
onChange(e) {
|
|
2343
2193
|
setTimeout(() => setDefaultValue(e));
|
|
2344
2194
|
},
|
|
2195
|
+
props: {
|
|
2196
|
+
placeholder: "\u8BF7\u8F93\u5165"
|
|
2197
|
+
},
|
|
2345
2198
|
type: "input"
|
|
2346
2199
|
},
|
|
2347
2200
|
{
|
|
2348
|
-
|
|
2349
|
-
placeholder: "\u8BF7\u8F93\u5165"
|
|
2350
|
-
},
|
|
2351
|
-
field: "componentProps.unCheckedValue",
|
|
2201
|
+
field: "props.unCheckedValue",
|
|
2352
2202
|
label: "OFF\u72B6\u6001\u503C",
|
|
2353
2203
|
onChange(e) {
|
|
2354
2204
|
setTimeout(() => setDefaultValue(e));
|
|
2355
2205
|
},
|
|
2206
|
+
props: {
|
|
2207
|
+
placeholder: "\u8BF7\u8F93\u5165"
|
|
2208
|
+
},
|
|
2356
2209
|
type: "input"
|
|
2357
2210
|
},
|
|
2358
2211
|
{
|
|
2359
|
-
|
|
2212
|
+
field: "props.checkedChildren",
|
|
2213
|
+
label: "ON\u72B6\u6001\u63CF\u8FF0",
|
|
2214
|
+
props: {
|
|
2360
2215
|
placeholder: "\u8BF7\u8F93\u5165"
|
|
2361
2216
|
},
|
|
2362
|
-
field: "componentProps.checkedChildren",
|
|
2363
|
-
label: "ON\u72B6\u6001\u63CF\u8FF0",
|
|
2364
2217
|
type: "input"
|
|
2365
2218
|
},
|
|
2366
2219
|
{
|
|
2367
|
-
|
|
2220
|
+
field: "props.unCheckedChildren",
|
|
2221
|
+
label: "OFF\u72B6\u6001\u63CF\u8FF0",
|
|
2222
|
+
props: {
|
|
2368
2223
|
placeholder: "\u8BF7\u8F93\u5165"
|
|
2369
2224
|
},
|
|
2370
|
-
field: "componentProps.unCheckedChildren",
|
|
2371
|
-
label: "OFF\u72B6\u6001\u63CF\u8FF0",
|
|
2372
2225
|
type: "input"
|
|
2373
2226
|
},
|
|
2374
2227
|
{
|
|
2375
|
-
|
|
2228
|
+
field: "props.size",
|
|
2229
|
+
label: "\u5C3A\u5BF8",
|
|
2230
|
+
props: {
|
|
2376
2231
|
allowClear: true,
|
|
2377
2232
|
options: [
|
|
2378
2233
|
{
|
|
@@ -2386,28 +2241,26 @@ const Switch = {
|
|
|
2386
2241
|
],
|
|
2387
2242
|
placeholder: "\u8BF7\u9009\u62E9"
|
|
2388
2243
|
},
|
|
2389
|
-
field: "componentProps.size",
|
|
2390
|
-
label: "\u5C3A\u5BF8",
|
|
2391
2244
|
type: "select"
|
|
2392
2245
|
},
|
|
2393
2246
|
{
|
|
2394
|
-
field: "
|
|
2247
|
+
field: "props.disabled",
|
|
2395
2248
|
label: "\u7981\u7528",
|
|
2396
2249
|
type: "switch"
|
|
2397
2250
|
},
|
|
2398
2251
|
{
|
|
2399
|
-
field: "
|
|
2252
|
+
field: "props.hidden",
|
|
2400
2253
|
label: "\u9690\u85CF",
|
|
2401
2254
|
type: "switch"
|
|
2402
2255
|
},
|
|
2403
2256
|
{
|
|
2404
|
-
componentProps: {
|
|
2405
|
-
ruleType: "boolean"
|
|
2406
|
-
},
|
|
2407
2257
|
description: "\u6821\u9A8C\u89C4\u5219\u9700\u8981\u914D\u5408\u8868\u5355\u4F7F\u7528",
|
|
2408
2258
|
field: "rules",
|
|
2409
2259
|
label: "\u8868\u5355\u6821\u9A8C",
|
|
2410
2260
|
layout: "vertical",
|
|
2261
|
+
props: {
|
|
2262
|
+
ruleType: "boolean"
|
|
2263
|
+
},
|
|
2411
2264
|
type: "ERuleEditor"
|
|
2412
2265
|
}
|
|
2413
2266
|
],
|
|
@@ -2419,12 +2272,12 @@ const Switch = {
|
|
|
2419
2272
|
]
|
|
2420
2273
|
},
|
|
2421
2274
|
defaultSchema: {
|
|
2422
|
-
componentProps: {
|
|
2423
|
-
defaultValue: false
|
|
2424
|
-
},
|
|
2425
2275
|
field: "switch",
|
|
2426
2276
|
input: true,
|
|
2427
2277
|
label: "\u5F00\u5173",
|
|
2278
|
+
props: {
|
|
2279
|
+
defaultValue: false
|
|
2280
|
+
},
|
|
2428
2281
|
type: "switch"
|
|
2429
2282
|
},
|
|
2430
2283
|
groupName: "\u8868\u5355",
|
|
@@ -2433,22 +2286,149 @@ const Switch = {
|
|
|
2433
2286
|
};
|
|
2434
2287
|
function setDefaultValue(e) {
|
|
2435
2288
|
var _a;
|
|
2436
|
-
const defaultValue = ((_a = e.values.
|
|
2437
|
-
if (e.values.
|
|
2438
|
-
delete e.values.
|
|
2289
|
+
const defaultValue = ((_a = e.values.props) == null ? void 0 : _a.unCheckedValue) || false;
|
|
2290
|
+
if (e.values.props.unCheckedValue === "") {
|
|
2291
|
+
delete e.values.props.unCheckedValue;
|
|
2439
2292
|
}
|
|
2440
|
-
if (e.values.
|
|
2441
|
-
delete e.values.
|
|
2293
|
+
if (e.values.props.checkedValue === "") {
|
|
2294
|
+
delete e.values.props.checkedValue;
|
|
2442
2295
|
}
|
|
2443
|
-
if (e.values.
|
|
2444
|
-
e.values.
|
|
2296
|
+
if (e.values.props) {
|
|
2297
|
+
e.values.props.defaultValue = defaultValue;
|
|
2445
2298
|
} else {
|
|
2446
|
-
e.values.
|
|
2299
|
+
e.values.props = {
|
|
2447
2300
|
defaultValue
|
|
2448
2301
|
};
|
|
2449
2302
|
}
|
|
2450
2303
|
}
|
|
2451
2304
|
|
|
2305
|
+
const TabsPane = {
|
|
2306
|
+
component: () => import('./chunks/tabPane.mjs'),
|
|
2307
|
+
config: {
|
|
2308
|
+
attribute: [
|
|
2309
|
+
{
|
|
2310
|
+
field: "props.tab",
|
|
2311
|
+
label: "\u6807\u7B7E\u540D\u79F0",
|
|
2312
|
+
type: "input"
|
|
2313
|
+
}
|
|
2314
|
+
]
|
|
2315
|
+
},
|
|
2316
|
+
defaultSchema: {
|
|
2317
|
+
label: "\u6807\u7B7E",
|
|
2318
|
+
type: "tab-pane",
|
|
2319
|
+
children: []
|
|
2320
|
+
},
|
|
2321
|
+
editConstraints: {
|
|
2322
|
+
locked: true
|
|
2323
|
+
}
|
|
2324
|
+
};
|
|
2325
|
+
|
|
2326
|
+
const Tabs = {
|
|
2327
|
+
component: () => import('./chunks/tabs.mjs'),
|
|
2328
|
+
config: {
|
|
2329
|
+
attribute: [
|
|
2330
|
+
{
|
|
2331
|
+
field: "props.tabPosition",
|
|
2332
|
+
label: "\u9875\u7B7E\u4F4D\u7F6E",
|
|
2333
|
+
props: {
|
|
2334
|
+
allowClear: true,
|
|
2335
|
+
options: [
|
|
2336
|
+
{
|
|
2337
|
+
label: "top",
|
|
2338
|
+
value: "top"
|
|
2339
|
+
},
|
|
2340
|
+
{
|
|
2341
|
+
label: "right",
|
|
2342
|
+
value: "right"
|
|
2343
|
+
},
|
|
2344
|
+
{
|
|
2345
|
+
label: "bottom",
|
|
2346
|
+
value: "bottom"
|
|
2347
|
+
},
|
|
2348
|
+
{
|
|
2349
|
+
label: "left",
|
|
2350
|
+
value: "left"
|
|
2351
|
+
}
|
|
2352
|
+
],
|
|
2353
|
+
placeholder: "\u8BF7\u9009\u62E9"
|
|
2354
|
+
},
|
|
2355
|
+
type: "select"
|
|
2356
|
+
},
|
|
2357
|
+
{
|
|
2358
|
+
field: "props.animated",
|
|
2359
|
+
label: "\u5207\u6362\u52A8\u753B",
|
|
2360
|
+
type: "switch"
|
|
2361
|
+
},
|
|
2362
|
+
{
|
|
2363
|
+
field: "props.tabBarGutter",
|
|
2364
|
+
label: "\u6807\u7B7E\u95F4\u9699",
|
|
2365
|
+
props: {
|
|
2366
|
+
placeholder: "\u8BF7\u8F93\u5165"
|
|
2367
|
+
},
|
|
2368
|
+
type: "number"
|
|
2369
|
+
},
|
|
2370
|
+
{
|
|
2371
|
+
field: "children",
|
|
2372
|
+
label: "\u9875\u7B7E\u7BA1\u7406",
|
|
2373
|
+
layout: "vertical",
|
|
2374
|
+
type: "ETabPaneEditor"
|
|
2375
|
+
},
|
|
2376
|
+
{
|
|
2377
|
+
field: "props.size",
|
|
2378
|
+
label: "\u5C3A\u5BF8",
|
|
2379
|
+
props: {
|
|
2380
|
+
allowClear: true,
|
|
2381
|
+
options: [
|
|
2382
|
+
{
|
|
2383
|
+
label: "large",
|
|
2384
|
+
value: "large"
|
|
2385
|
+
},
|
|
2386
|
+
{
|
|
2387
|
+
label: "middle",
|
|
2388
|
+
value: "middle"
|
|
2389
|
+
},
|
|
2390
|
+
{
|
|
2391
|
+
label: "small",
|
|
2392
|
+
value: "small"
|
|
2393
|
+
}
|
|
2394
|
+
],
|
|
2395
|
+
placeholder: "\u8BF7\u9009\u62E9"
|
|
2396
|
+
},
|
|
2397
|
+
type: "select"
|
|
2398
|
+
},
|
|
2399
|
+
{
|
|
2400
|
+
field: "props.hidden",
|
|
2401
|
+
label: "\u9690\u85CF",
|
|
2402
|
+
type: "switch"
|
|
2403
|
+
}
|
|
2404
|
+
]
|
|
2405
|
+
},
|
|
2406
|
+
defaultSchema: {
|
|
2407
|
+
label: "\u6807\u7B7E\u9875",
|
|
2408
|
+
props: {
|
|
2409
|
+
defaultValue: "\u6807\u7B7E1"
|
|
2410
|
+
},
|
|
2411
|
+
type: "tabs",
|
|
2412
|
+
children: [
|
|
2413
|
+
{
|
|
2414
|
+
label: "\u6807\u7B7E1",
|
|
2415
|
+
type: "tab-pane",
|
|
2416
|
+
children: []
|
|
2417
|
+
},
|
|
2418
|
+
{
|
|
2419
|
+
label: "\u6807\u7B7E2",
|
|
2420
|
+
type: "tab-pane",
|
|
2421
|
+
children: []
|
|
2422
|
+
}
|
|
2423
|
+
]
|
|
2424
|
+
},
|
|
2425
|
+
editConstraints: {
|
|
2426
|
+
childImmovable: true
|
|
2427
|
+
},
|
|
2428
|
+
groupName: "\u5E03\u5C40",
|
|
2429
|
+
icon: "icon--epic--layout-tabs"
|
|
2430
|
+
};
|
|
2431
|
+
|
|
2452
2432
|
const Textarea = {
|
|
2453
2433
|
bindModel: "value",
|
|
2454
2434
|
component: async () => (await import('ant-design-vue')).Textarea,
|
|
@@ -2470,8 +2450,8 @@ const Textarea = {
|
|
|
2470
2450
|
attribute: [
|
|
2471
2451
|
{
|
|
2472
2452
|
field: "field",
|
|
2473
|
-
label: "\u5B57\u6BB5
|
|
2474
|
-
type: "
|
|
2453
|
+
label: "\u6570\u636E\u5B57\u6BB5",
|
|
2454
|
+
type: "EpField"
|
|
2475
2455
|
},
|
|
2476
2456
|
{
|
|
2477
2457
|
field: "label",
|
|
@@ -2479,36 +2459,38 @@ const Textarea = {
|
|
|
2479
2459
|
type: "input"
|
|
2480
2460
|
},
|
|
2481
2461
|
{
|
|
2482
|
-
|
|
2462
|
+
field: "props.defaultValue",
|
|
2463
|
+
label: "\u9ED8\u8BA4\u503C",
|
|
2464
|
+
props: {
|
|
2483
2465
|
placeholder: "\u8BF7\u8F93\u5165"
|
|
2484
2466
|
},
|
|
2485
|
-
field: "componentProps.defaultValue",
|
|
2486
|
-
label: "\u9ED8\u8BA4\u503C",
|
|
2487
2467
|
type: "textarea"
|
|
2488
2468
|
},
|
|
2489
2469
|
{
|
|
2490
|
-
field: "
|
|
2470
|
+
field: "props.placeholder",
|
|
2491
2471
|
label: "\u5360\u4F4D\u5185\u5BB9",
|
|
2492
2472
|
type: "input"
|
|
2493
2473
|
},
|
|
2494
2474
|
{
|
|
2495
|
-
|
|
2475
|
+
field: "props.autoSize.minRows",
|
|
2476
|
+
label: "\u6700\u5C0F\u884C\u6570",
|
|
2477
|
+
props: {
|
|
2496
2478
|
placeholder: "\u8BF7\u8F93\u5165"
|
|
2497
2479
|
},
|
|
2498
|
-
field: "componentProps.autoSize.minRows",
|
|
2499
|
-
label: "\u6700\u5C0F\u884C\u6570",
|
|
2500
2480
|
type: "number"
|
|
2501
2481
|
},
|
|
2502
2482
|
{
|
|
2503
|
-
|
|
2483
|
+
field: "props.autoSize.maxRows",
|
|
2484
|
+
label: "\u6700\u5927\u884C\u6570",
|
|
2485
|
+
props: {
|
|
2504
2486
|
placeholder: "\u8BF7\u8F93\u5165"
|
|
2505
2487
|
},
|
|
2506
|
-
field: "componentProps.autoSize.maxRows",
|
|
2507
|
-
label: "\u6700\u5927\u884C\u6570",
|
|
2508
2488
|
type: "number"
|
|
2509
2489
|
},
|
|
2510
2490
|
{
|
|
2511
|
-
|
|
2491
|
+
field: "props.size",
|
|
2492
|
+
label: "\u5C3A\u5BF8",
|
|
2493
|
+
props: {
|
|
2512
2494
|
allowClear: true,
|
|
2513
2495
|
options: [
|
|
2514
2496
|
{
|
|
@@ -2526,44 +2508,42 @@ const Textarea = {
|
|
|
2526
2508
|
],
|
|
2527
2509
|
placeholder: "\u8BF7\u9009\u62E9"
|
|
2528
2510
|
},
|
|
2529
|
-
field: "componentProps.size",
|
|
2530
|
-
label: "\u5C3A\u5BF8",
|
|
2531
2511
|
type: "select"
|
|
2532
2512
|
},
|
|
2533
2513
|
{
|
|
2534
|
-
|
|
2514
|
+
field: "props.maxLength",
|
|
2515
|
+
label: "\u6700\u5927\u8F93\u5165\u957F\u5EA6",
|
|
2516
|
+
props: {
|
|
2535
2517
|
placeholder: "\u8BF7\u8F93\u5165"
|
|
2536
2518
|
},
|
|
2537
|
-
field: "componentProps.maxLength",
|
|
2538
|
-
label: "\u6700\u5927\u8F93\u5165\u957F\u5EA6",
|
|
2539
2519
|
type: "number"
|
|
2540
2520
|
},
|
|
2541
2521
|
{
|
|
2542
|
-
|
|
2522
|
+
field: "props.bordered",
|
|
2523
|
+
label: "\u65E0\u8FB9\u6846",
|
|
2524
|
+
props: {
|
|
2543
2525
|
checkedValue: false,
|
|
2544
2526
|
unCheckedValue: true
|
|
2545
2527
|
},
|
|
2546
|
-
field: "componentProps.bordered",
|
|
2547
|
-
label: "\u65E0\u8FB9\u6846",
|
|
2548
2528
|
type: "switch"
|
|
2549
2529
|
},
|
|
2550
2530
|
{
|
|
2551
|
-
field: "
|
|
2531
|
+
field: "props.showCount",
|
|
2552
2532
|
label: "\u7EDF\u8BA1\u5B57\u6570",
|
|
2553
2533
|
type: "switch"
|
|
2554
2534
|
},
|
|
2555
2535
|
{
|
|
2556
|
-
field: "
|
|
2536
|
+
field: "props.allowClear",
|
|
2557
2537
|
label: "\u53EF\u6E05\u9664",
|
|
2558
2538
|
type: "switch"
|
|
2559
2539
|
},
|
|
2560
2540
|
{
|
|
2561
|
-
field: "
|
|
2541
|
+
field: "props.disabled",
|
|
2562
2542
|
label: "\u7981\u7528",
|
|
2563
2543
|
type: "switch"
|
|
2564
2544
|
},
|
|
2565
2545
|
{
|
|
2566
|
-
field: "
|
|
2546
|
+
field: "props.hidden",
|
|
2567
2547
|
label: "\u9690\u85CF",
|
|
2568
2548
|
type: "switch"
|
|
2569
2549
|
},
|
|
@@ -2599,12 +2579,12 @@ const Textarea = {
|
|
|
2599
2579
|
]
|
|
2600
2580
|
},
|
|
2601
2581
|
defaultSchema: {
|
|
2602
|
-
componentProps: {
|
|
2603
|
-
placeholder: "\u8BF7\u8F93\u5165"
|
|
2604
|
-
},
|
|
2605
2582
|
field: "textarea",
|
|
2606
2583
|
input: true,
|
|
2607
2584
|
label: "\u6587\u672C\u57DF",
|
|
2585
|
+
props: {
|
|
2586
|
+
placeholder: "\u8BF7\u8F93\u5165"
|
|
2587
|
+
},
|
|
2608
2588
|
type: "textarea"
|
|
2609
2589
|
},
|
|
2610
2590
|
groupName: "\u8868\u5355",
|
|
@@ -2619,8 +2599,8 @@ const TimePicker = {
|
|
|
2619
2599
|
attribute: [
|
|
2620
2600
|
{
|
|
2621
2601
|
field: "field",
|
|
2622
|
-
label: "\u5B57\u6BB5
|
|
2623
|
-
type: "
|
|
2602
|
+
label: "\u6570\u636E\u5B57\u6BB5",
|
|
2603
|
+
type: "EpField"
|
|
2624
2604
|
},
|
|
2625
2605
|
{
|
|
2626
2606
|
field: "label",
|
|
@@ -2628,33 +2608,35 @@ const TimePicker = {
|
|
|
2628
2608
|
type: "input"
|
|
2629
2609
|
},
|
|
2630
2610
|
{
|
|
2631
|
-
field: "
|
|
2611
|
+
field: "props.defaultValue",
|
|
2632
2612
|
label: "\u9ED8\u8BA4\u503C",
|
|
2633
2613
|
type: "time"
|
|
2634
2614
|
},
|
|
2635
2615
|
{
|
|
2636
|
-
field: "
|
|
2616
|
+
field: "props.placeholder",
|
|
2637
2617
|
label: "\u5360\u4F4D\u5185\u5BB9",
|
|
2638
2618
|
type: "input"
|
|
2639
2619
|
},
|
|
2640
2620
|
{
|
|
2641
|
-
|
|
2621
|
+
field: "props.format",
|
|
2622
|
+
label: "\u663E\u793A\u683C\u5F0F",
|
|
2623
|
+
props: {
|
|
2642
2624
|
placeholder: "\u8BF7\u8F93\u5165"
|
|
2643
2625
|
},
|
|
2644
|
-
field: "componentProps.format",
|
|
2645
|
-
label: "\u663E\u793A\u683C\u5F0F",
|
|
2646
2626
|
type: "input"
|
|
2647
2627
|
},
|
|
2648
2628
|
{
|
|
2649
|
-
|
|
2629
|
+
field: "props.valueFormat",
|
|
2630
|
+
label: "\u6570\u636E\u683C\u5F0F",
|
|
2631
|
+
props: {
|
|
2650
2632
|
placeholder: "\u8BF7\u8F93\u5165"
|
|
2651
2633
|
},
|
|
2652
|
-
field: "componentProps.valueFormat",
|
|
2653
|
-
label: "\u6570\u636E\u683C\u5F0F",
|
|
2654
2634
|
type: "input"
|
|
2655
2635
|
},
|
|
2656
2636
|
{
|
|
2657
|
-
|
|
2637
|
+
field: "props.size",
|
|
2638
|
+
label: "\u5C3A\u5BF8",
|
|
2639
|
+
props: {
|
|
2658
2640
|
allowClear: true,
|
|
2659
2641
|
options: [
|
|
2660
2642
|
{
|
|
@@ -2672,36 +2654,36 @@ const TimePicker = {
|
|
|
2672
2654
|
],
|
|
2673
2655
|
placeholder: "\u8BF7\u9009\u62E9"
|
|
2674
2656
|
},
|
|
2675
|
-
field: "componentProps.size",
|
|
2676
|
-
label: "\u5C3A\u5BF8",
|
|
2677
2657
|
type: "select"
|
|
2678
2658
|
},
|
|
2679
2659
|
{
|
|
2680
|
-
|
|
2660
|
+
field: "props.hourStep",
|
|
2661
|
+
label: "\u5C0F\u65F6\u9009\u9879\u95F4\u9694",
|
|
2662
|
+
props: {
|
|
2681
2663
|
placeholder: "\u8BF7\u8F93\u5165"
|
|
2682
2664
|
},
|
|
2683
|
-
field: "componentProps.hourStep",
|
|
2684
|
-
label: "\u5C0F\u65F6\u9009\u9879\u95F4\u9694",
|
|
2685
2665
|
type: "number"
|
|
2686
2666
|
},
|
|
2687
2667
|
{
|
|
2688
|
-
|
|
2668
|
+
field: "props.minuteStep",
|
|
2669
|
+
label: "\u5206\u949F\u9009\u9879\u95F4\u9694",
|
|
2670
|
+
props: {
|
|
2689
2671
|
placeholder: "\u8BF7\u8F93\u5165"
|
|
2690
2672
|
},
|
|
2691
|
-
field: "componentProps.minuteStep",
|
|
2692
|
-
label: "\u5206\u949F\u9009\u9879\u95F4\u9694",
|
|
2693
2673
|
type: "number"
|
|
2694
2674
|
},
|
|
2695
2675
|
{
|
|
2696
|
-
|
|
2676
|
+
field: "props.secondStep",
|
|
2677
|
+
label: "\u79D2\u9009\u9879\u95F4\u9694",
|
|
2678
|
+
props: {
|
|
2697
2679
|
placeholder: "\u8BF7\u8F93\u5165"
|
|
2698
2680
|
},
|
|
2699
|
-
field: "componentProps.secondStep",
|
|
2700
|
-
label: "\u79D2\u9009\u9879\u95F4\u9694",
|
|
2701
2681
|
type: "number"
|
|
2702
2682
|
},
|
|
2703
2683
|
{
|
|
2704
|
-
|
|
2684
|
+
field: "props.placement",
|
|
2685
|
+
label: "\u5F39\u51FA\u6846\u4F4D\u7F6E",
|
|
2686
|
+
props: {
|
|
2705
2687
|
allowClear: true,
|
|
2706
2688
|
options: [
|
|
2707
2689
|
{
|
|
@@ -2723,52 +2705,50 @@ const TimePicker = {
|
|
|
2723
2705
|
],
|
|
2724
2706
|
placeholder: "\u8BF7\u9009\u62E9"
|
|
2725
2707
|
},
|
|
2726
|
-
field: "componentProps.placement",
|
|
2727
|
-
label: "\u5F39\u51FA\u6846\u4F4D\u7F6E",
|
|
2728
2708
|
type: "select"
|
|
2729
2709
|
},
|
|
2730
2710
|
{
|
|
2731
2711
|
changeSync: true,
|
|
2732
|
-
field: "
|
|
2712
|
+
field: "props.use12Hours",
|
|
2733
2713
|
label: "12\u5C0F\u65F6\u5236",
|
|
2734
2714
|
onChange({ value, values }) {
|
|
2735
|
-
values.
|
|
2715
|
+
values.props.defaultValue = null;
|
|
2736
2716
|
if (value) {
|
|
2737
|
-
values.
|
|
2738
|
-
values.
|
|
2717
|
+
values.props.format = "h:mm:ss a";
|
|
2718
|
+
values.props.valueFormat = "h:mm:ss a";
|
|
2739
2719
|
} else {
|
|
2740
|
-
values.
|
|
2741
|
-
values.
|
|
2720
|
+
values.props.format = "HH:mm:ss";
|
|
2721
|
+
values.props.valueFormat = "HH:mm:ss";
|
|
2742
2722
|
}
|
|
2743
2723
|
},
|
|
2744
2724
|
type: "switch"
|
|
2745
2725
|
},
|
|
2746
2726
|
{
|
|
2747
|
-
|
|
2727
|
+
field: "props.bordered",
|
|
2728
|
+
label: "\u65E0\u8FB9\u6846",
|
|
2729
|
+
props: {
|
|
2748
2730
|
checkedValue: false,
|
|
2749
2731
|
unCheckedValue: true
|
|
2750
2732
|
},
|
|
2751
|
-
field: "componentProps.bordered",
|
|
2752
|
-
label: "\u65E0\u8FB9\u6846",
|
|
2753
2733
|
type: "switch"
|
|
2754
2734
|
},
|
|
2755
2735
|
{
|
|
2756
|
-
field: "
|
|
2736
|
+
field: "props.inputReadOnly",
|
|
2757
2737
|
label: "\u7981\u6B62\u952E\u76D8\u8F93\u5165",
|
|
2758
2738
|
type: "switch"
|
|
2759
2739
|
},
|
|
2760
2740
|
{
|
|
2761
|
-
field: "
|
|
2741
|
+
field: "props.allowClear",
|
|
2762
2742
|
label: "\u53EF\u6E05\u7A7A",
|
|
2763
2743
|
type: "switch"
|
|
2764
2744
|
},
|
|
2765
2745
|
{
|
|
2766
|
-
field: "
|
|
2746
|
+
field: "props.disabled",
|
|
2767
2747
|
label: "\u7981\u7528",
|
|
2768
2748
|
type: "switch"
|
|
2769
2749
|
},
|
|
2770
2750
|
{
|
|
2771
|
-
field: "
|
|
2751
|
+
field: "props.hidden",
|
|
2772
2752
|
label: "\u9690\u85CF",
|
|
2773
2753
|
type: "switch"
|
|
2774
2754
|
},
|
|
@@ -2788,14 +2768,14 @@ const TimePicker = {
|
|
|
2788
2768
|
]
|
|
2789
2769
|
},
|
|
2790
2770
|
defaultSchema: {
|
|
2791
|
-
|
|
2771
|
+
field: "time",
|
|
2772
|
+
input: true,
|
|
2773
|
+
label: "\u65F6\u95F4\u9009\u62E9\u5668",
|
|
2774
|
+
props: {
|
|
2792
2775
|
format: "HH:mm:ss",
|
|
2793
2776
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
2794
2777
|
valueFormat: "HH:mm:ss"
|
|
2795
2778
|
},
|
|
2796
|
-
field: "time",
|
|
2797
|
-
input: true,
|
|
2798
|
-
label: "\u65F6\u95F4\u9009\u62E9\u5668",
|
|
2799
2779
|
type: "time"
|
|
2800
2780
|
},
|
|
2801
2781
|
groupName: "\u8868\u5355",
|
|
@@ -2810,8 +2790,8 @@ const UploadFile = {
|
|
|
2810
2790
|
attribute: [
|
|
2811
2791
|
{
|
|
2812
2792
|
field: "field",
|
|
2813
|
-
label: "\u5B57\u6BB5
|
|
2814
|
-
type: "
|
|
2793
|
+
label: "\u6570\u636E\u5B57\u6BB5",
|
|
2794
|
+
type: "EpField"
|
|
2815
2795
|
},
|
|
2816
2796
|
{
|
|
2817
2797
|
field: "label",
|
|
@@ -2819,12 +2799,14 @@ const UploadFile = {
|
|
|
2819
2799
|
type: "input"
|
|
2820
2800
|
},
|
|
2821
2801
|
{
|
|
2822
|
-
field: "
|
|
2802
|
+
field: "props.action",
|
|
2823
2803
|
label: "\u8BF7\u6C42\u5730\u5740",
|
|
2824
2804
|
type: "input"
|
|
2825
2805
|
},
|
|
2826
2806
|
{
|
|
2827
|
-
|
|
2807
|
+
field: "props.listType",
|
|
2808
|
+
label: "\u5217\u8868\u6837\u5F0F",
|
|
2809
|
+
props: {
|
|
2828
2810
|
allowClear: true,
|
|
2829
2811
|
options: [
|
|
2830
2812
|
{
|
|
@@ -2838,53 +2820,51 @@ const UploadFile = {
|
|
|
2838
2820
|
],
|
|
2839
2821
|
placeholder: "\u8BF7\u9009\u62E9"
|
|
2840
2822
|
},
|
|
2841
|
-
field: "componentProps.listType",
|
|
2842
|
-
label: "\u5217\u8868\u6837\u5F0F",
|
|
2843
2823
|
type: "select"
|
|
2844
2824
|
},
|
|
2845
2825
|
{
|
|
2846
|
-
field: "
|
|
2826
|
+
field: "props.multiple",
|
|
2847
2827
|
label: "\u591A\u9009",
|
|
2848
2828
|
type: "switch"
|
|
2849
2829
|
},
|
|
2850
2830
|
{
|
|
2851
|
-
|
|
2831
|
+
field: "props.maxCount",
|
|
2832
|
+
label: "\u5141\u8BB8\u4E0A\u4F20\u6700\u5927\u6570\u91CF",
|
|
2833
|
+
props: {
|
|
2852
2834
|
min: 0,
|
|
2853
2835
|
placeholder: "\u8BF7\u8F93\u5165"
|
|
2854
2836
|
},
|
|
2855
|
-
field: "componentProps.maxCount",
|
|
2856
|
-
label: "\u5141\u8BB8\u4E0A\u4F20\u6700\u5927\u6570\u91CF",
|
|
2857
2837
|
type: "number"
|
|
2858
2838
|
},
|
|
2859
2839
|
{
|
|
2860
|
-
field: "
|
|
2840
|
+
field: "props.disabled",
|
|
2861
2841
|
label: "\u7981\u7528",
|
|
2862
2842
|
type: "switch"
|
|
2863
2843
|
},
|
|
2864
2844
|
{
|
|
2865
|
-
field: "
|
|
2845
|
+
field: "props.hidden",
|
|
2866
2846
|
label: "\u9690\u85CF",
|
|
2867
2847
|
type: "switch"
|
|
2868
2848
|
},
|
|
2869
2849
|
{
|
|
2870
|
-
componentProps: {
|
|
2871
|
-
ruleType: "string"
|
|
2872
|
-
},
|
|
2873
2850
|
description: "\u6821\u9A8C\u89C4\u5219\u9700\u8981\u914D\u5408\u8868\u5355\u4F7F\u7528",
|
|
2874
2851
|
field: "rules",
|
|
2875
2852
|
label: "\u8868\u5355\u6821\u9A8C",
|
|
2876
2853
|
layout: "vertical",
|
|
2854
|
+
props: {
|
|
2855
|
+
ruleType: "string"
|
|
2856
|
+
},
|
|
2877
2857
|
type: "ERuleEditor"
|
|
2878
2858
|
}
|
|
2879
2859
|
]
|
|
2880
2860
|
},
|
|
2881
2861
|
defaultSchema: {
|
|
2882
|
-
componentProps: {
|
|
2883
|
-
action: "https://examples.epicjs.cn/epic-mock/common/upload"
|
|
2884
|
-
},
|
|
2885
2862
|
field: "uploadFile",
|
|
2886
2863
|
input: true,
|
|
2887
2864
|
label: "\u4E0A\u4F20\u6587\u4EF6",
|
|
2865
|
+
props: {
|
|
2866
|
+
action: "https://examples.epicjs.cn/epic-mock/common/upload"
|
|
2867
|
+
},
|
|
2888
2868
|
type: "upload-file"
|
|
2889
2869
|
},
|
|
2890
2870
|
groupName: "\u8868\u5355",
|
|
@@ -2899,8 +2879,8 @@ const UploadImage = {
|
|
|
2899
2879
|
attribute: [
|
|
2900
2880
|
{
|
|
2901
2881
|
field: "field",
|
|
2902
|
-
label: "\u5B57\u6BB5
|
|
2903
|
-
type: "
|
|
2882
|
+
label: "\u6570\u636E\u5B57\u6BB5",
|
|
2883
|
+
type: "EpField"
|
|
2904
2884
|
},
|
|
2905
2885
|
{
|
|
2906
2886
|
field: "label",
|
|
@@ -2908,53 +2888,53 @@ const UploadImage = {
|
|
|
2908
2888
|
type: "input"
|
|
2909
2889
|
},
|
|
2910
2890
|
{
|
|
2911
|
-
field: "
|
|
2891
|
+
field: "props.action",
|
|
2912
2892
|
label: "\u8BF7\u6C42\u5730\u5740",
|
|
2913
2893
|
type: "input"
|
|
2914
2894
|
},
|
|
2915
2895
|
{
|
|
2916
|
-
field: "
|
|
2896
|
+
field: "props.multiple",
|
|
2917
2897
|
label: "\u591A\u9009",
|
|
2918
2898
|
type: "switch"
|
|
2919
2899
|
},
|
|
2920
2900
|
{
|
|
2921
|
-
|
|
2901
|
+
field: "props.maxCount",
|
|
2902
|
+
label: "\u5141\u8BB8\u4E0A\u4F20\u6700\u5927\u6570\u91CF",
|
|
2903
|
+
props: {
|
|
2922
2904
|
min: 0,
|
|
2923
2905
|
placeholder: "\u8BF7\u8F93\u5165"
|
|
2924
2906
|
},
|
|
2925
|
-
field: "componentProps.maxCount",
|
|
2926
|
-
label: "\u5141\u8BB8\u4E0A\u4F20\u6700\u5927\u6570\u91CF",
|
|
2927
2907
|
type: "number"
|
|
2928
2908
|
},
|
|
2929
2909
|
{
|
|
2930
|
-
field: "
|
|
2910
|
+
field: "props.disabled",
|
|
2931
2911
|
label: "\u7981\u7528",
|
|
2932
2912
|
type: "switch"
|
|
2933
2913
|
},
|
|
2934
2914
|
{
|
|
2935
|
-
field: "
|
|
2915
|
+
field: "props.hidden",
|
|
2936
2916
|
label: "\u9690\u85CF",
|
|
2937
2917
|
type: "switch"
|
|
2938
2918
|
},
|
|
2939
2919
|
{
|
|
2940
|
-
componentProps: {
|
|
2941
|
-
ruleType: "string"
|
|
2942
|
-
},
|
|
2943
2920
|
description: "\u6821\u9A8C\u89C4\u5219\u9700\u8981\u914D\u5408\u8868\u5355\u4F7F\u7528",
|
|
2944
2921
|
field: "rules",
|
|
2945
2922
|
label: "\u8868\u5355\u6821\u9A8C",
|
|
2946
2923
|
layout: "vertical",
|
|
2924
|
+
props: {
|
|
2925
|
+
ruleType: "string"
|
|
2926
|
+
},
|
|
2947
2927
|
type: "ERuleEditor"
|
|
2948
2928
|
}
|
|
2949
2929
|
]
|
|
2950
2930
|
},
|
|
2951
2931
|
defaultSchema: {
|
|
2952
|
-
componentProps: {
|
|
2953
|
-
action: "https://examples.epicjs.cn/epic-mock/common/upload"
|
|
2954
|
-
},
|
|
2955
2932
|
field: "uploadImage",
|
|
2956
2933
|
input: true,
|
|
2957
2934
|
label: "\u4E0A\u4F20\u56FE\u7247",
|
|
2935
|
+
props: {
|
|
2936
|
+
action: "https://examples.epicjs.cn/epic-mock/common/upload"
|
|
2937
|
+
},
|
|
2958
2938
|
type: "upload-image"
|
|
2959
2939
|
},
|
|
2960
2940
|
groupName: "\u8868\u5355",
|
|
@@ -3023,21 +3003,12 @@ function setupAntd(pluginManager$1 = pluginManager) {
|
|
|
3023
3003
|
"CollapseItem",
|
|
3024
3004
|
async () => (await import('ant-design-vue')).CollapsePanel
|
|
3025
3005
|
);
|
|
3026
|
-
pluginManager$1.component.add(
|
|
3027
|
-
"Tabs",
|
|
3028
|
-
async () => (await import('ant-design-vue')).Tabs
|
|
3029
|
-
);
|
|
3030
|
-
pluginManager$1.component.add(
|
|
3031
|
-
"TabPane",
|
|
3032
|
-
async () => (await import('ant-design-vue')).TabPane
|
|
3033
|
-
);
|
|
3034
3006
|
const componentArray = [
|
|
3035
3007
|
Form,
|
|
3036
3008
|
FormItem,
|
|
3037
3009
|
Input,
|
|
3038
3010
|
Textarea,
|
|
3039
3011
|
InputNumber,
|
|
3040
|
-
InputPassword,
|
|
3041
3012
|
Radio,
|
|
3042
3013
|
Checkbox,
|
|
3043
3014
|
Select,
|
|
@@ -3053,11 +3024,13 @@ function setupAntd(pluginManager$1 = pluginManager) {
|
|
|
3053
3024
|
Card,
|
|
3054
3025
|
Row,
|
|
3055
3026
|
Col,
|
|
3056
|
-
Modal
|
|
3027
|
+
Modal,
|
|
3028
|
+
Tabs,
|
|
3029
|
+
TabsPane
|
|
3057
3030
|
];
|
|
3058
3031
|
watchEffect(() => {
|
|
3059
|
-
UploadImage.defaultSchema.
|
|
3060
|
-
UploadFile.defaultSchema.
|
|
3032
|
+
UploadImage.defaultSchema.props.action = pluginManager$1.global.uploadImage;
|
|
3033
|
+
UploadFile.defaultSchema.props.action = pluginManager$1.global.uploadFile;
|
|
3061
3034
|
});
|
|
3062
3035
|
componentArray.forEach((item) => {
|
|
3063
3036
|
pluginManager$1.component.register(item);
|
|
@@ -3069,7 +3042,7 @@ function setupAntd(pluginManager$1 = pluginManager) {
|
|
|
3069
3042
|
success: message.success,
|
|
3070
3043
|
warning: message.warning
|
|
3071
3044
|
};
|
|
3072
|
-
pluginManager$1.setInitialized(true);
|
|
3045
|
+
pluginManager$1.designer.setInitialized(true);
|
|
3073
3046
|
}
|
|
3074
3047
|
|
|
3075
3048
|
export { setupAntd };
|