@epic-designer/antd 1.1.0 → 1.1.2-beta.0

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