@epic-designer/antd 1.0.5

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 (62) hide show
  1. package/LICENSE +21 -0
  2. package/dist/chunks/button.cjs +44 -0
  3. package/dist/chunks/button.mjs +42 -0
  4. package/dist/chunks/card.cjs +39 -0
  5. package/dist/chunks/card.mjs +37 -0
  6. package/dist/chunks/col.cjs +39 -0
  7. package/dist/chunks/col.mjs +37 -0
  8. package/dist/chunks/datePicker.cjs +47 -0
  9. package/dist/chunks/datePicker.mjs +45 -0
  10. package/dist/chunks/form.cjs +116 -0
  11. package/dist/chunks/form.mjs +114 -0
  12. package/dist/chunks/formItem.cjs +24 -0
  13. package/dist/chunks/formItem.mjs +22 -0
  14. package/dist/chunks/modal.cjs +136 -0
  15. package/dist/chunks/modal.mjs +134 -0
  16. package/dist/chunks/row.cjs +39 -0
  17. package/dist/chunks/row.mjs +37 -0
  18. package/dist/chunks/uploadFile.cjs +138 -0
  19. package/dist/chunks/uploadFile.mjs +136 -0
  20. package/dist/chunks/uploadImage.cjs +152 -0
  21. package/dist/chunks/uploadImage.mjs +150 -0
  22. package/dist/index.cjs +3047 -0
  23. package/dist/index.d.cts +5 -0
  24. package/dist/index.d.mts +5 -0
  25. package/dist/index.d.ts +5 -0
  26. package/dist/index.mjs +3045 -0
  27. package/package.json +38 -0
  28. package/src/button/button.vue +19 -0
  29. package/src/button/index.ts +204 -0
  30. package/src/card/card.ts +38 -0
  31. package/src/card/index.ts +65 -0
  32. package/src/cascader/cascader.vue +24 -0
  33. package/src/cascader/index.ts +201 -0
  34. package/src/checkbox/index.ts +101 -0
  35. package/src/col/col.ts +38 -0
  36. package/src/col/index.ts +22 -0
  37. package/src/color-picker/index.ts +109 -0
  38. package/src/date-picker/datePicker.ts +48 -0
  39. package/src/date-picker/index.ts +301 -0
  40. package/src/form/form.vue +153 -0
  41. package/src/form/index.ts +196 -0
  42. package/src/form-item/formItem.vue +12 -0
  43. package/src/form-item/index.ts +10 -0
  44. package/src/index.less +33 -0
  45. package/src/index.ts +131 -0
  46. package/src/input/index.ts +171 -0
  47. package/src/input-number/index.ts +182 -0
  48. package/src/input-password/index.ts +154 -0
  49. package/src/modal/index.ts +20 -0
  50. package/src/modal/modal.vue +98 -0
  51. package/src/radio/index.ts +107 -0
  52. package/src/row/index.ts +116 -0
  53. package/src/row/row.ts +38 -0
  54. package/src/select/index.ts +231 -0
  55. package/src/slider/index.ts +145 -0
  56. package/src/switch/index.ts +143 -0
  57. package/src/textarea/index.ts +164 -0
  58. package/src/time-picker/index.ts +192 -0
  59. package/src/upload-file/index.ts +90 -0
  60. package/src/upload-file/uploadFile.vue +145 -0
  61. package/src/upload-image/index.ts +71 -0
  62. package/src/upload-image/uploadImage.vue +167 -0
package/dist/index.cjs ADDED
@@ -0,0 +1,3047 @@
1
+ 'use strict';
2
+
3
+ const vue = require('vue');
4
+ const epicDesigner = require('epic-designer');
5
+ const antDesignVue = require('ant-design-vue');
6
+
7
+ const Button = {
8
+ component: () => import('./chunks/button.cjs'),
9
+ config: {
10
+ attribute: [
11
+ {
12
+ field: "label",
13
+ label: "\u6807\u9898",
14
+ type: "input"
15
+ },
16
+ {
17
+ componentProps: {
18
+ clearable: true,
19
+ options: [
20
+ {
21
+ label: "primary",
22
+ value: "primary"
23
+ },
24
+ {
25
+ label: "ghost",
26
+ value: "ghost"
27
+ },
28
+ {
29
+ label: "dashed",
30
+ value: "dashed"
31
+ },
32
+ {
33
+ label: "link",
34
+ value: "link"
35
+ },
36
+ {
37
+ label: "text",
38
+ value: "text"
39
+ },
40
+ {
41
+ label: "default",
42
+ value: "default"
43
+ }
44
+ ],
45
+ placeholder: "\u8BF7\u9009\u62E9"
46
+ },
47
+ field: "componentProps.type",
48
+ label: "\u7C7B\u578B",
49
+ type: "select"
50
+ },
51
+ {
52
+ componentProps: {
53
+ clearable: true,
54
+ options: [
55
+ {
56
+ label: "button",
57
+ value: "button"
58
+ },
59
+ {
60
+ label: "submit",
61
+ value: "submit"
62
+ },
63
+ {
64
+ label: "reset",
65
+ value: "reset"
66
+ }
67
+ ],
68
+ placeholder: "\u8BF7\u9009\u62E9"
69
+ },
70
+ field: "componentProps.htmlType",
71
+ label: "\u64CD\u4F5C\u7C7B\u578B",
72
+ type: "select"
73
+ },
74
+ {
75
+ componentProps: {
76
+ allowClear: true,
77
+ placeholder: "\u8BF7\u8F93\u5165"
78
+ },
79
+ field: "componentProps.href",
80
+ label: "\u94FE\u63A5",
81
+ type: "input"
82
+ },
83
+ {
84
+ componentProps: {
85
+ clearable: true,
86
+ options: [
87
+ {
88
+ label: "blank",
89
+ value: "_blank"
90
+ },
91
+ {
92
+ label: "parent",
93
+ value: "_parent"
94
+ },
95
+ {
96
+ label: "self",
97
+ value: "_self"
98
+ },
99
+ {
100
+ label: "top",
101
+ value: "_top"
102
+ }
103
+ ],
104
+ placeholder: "\u8BF7\u9009\u62E9"
105
+ },
106
+ field: "componentProps.target",
107
+ label: "\u94FE\u63A5\u6253\u5F00\u65B9\u5F0F",
108
+ show: ({ values }) => {
109
+ var _a;
110
+ return (_a = values.componentProps) == null ? void 0 : _a.href;
111
+ },
112
+ type: "select"
113
+ },
114
+ {
115
+ componentProps: {
116
+ allowClear: true,
117
+ options: [
118
+ {
119
+ label: "default",
120
+ value: "default"
121
+ },
122
+ {
123
+ label: "small",
124
+ value: "small"
125
+ },
126
+ {
127
+ label: "large",
128
+ value: "large"
129
+ }
130
+ ],
131
+ placeholder: "\u8BF7\u9009\u62E9"
132
+ },
133
+ field: "componentProps.size",
134
+ label: "\u5C3A\u5BF8",
135
+ type: "select"
136
+ },
137
+ {
138
+ componentProps: {
139
+ clearable: true,
140
+ options: [
141
+ {
142
+ label: "default",
143
+ value: "default"
144
+ },
145
+ {
146
+ label: "circle",
147
+ value: "circle"
148
+ },
149
+ {
150
+ label: "round",
151
+ value: "round"
152
+ }
153
+ ],
154
+ placeholder: "\u8BF7\u9009\u62E9"
155
+ },
156
+ field: "componentProps.shape",
157
+ label: "\u5F62\u72B6",
158
+ type: "select"
159
+ },
160
+ {
161
+ field: "componentProps.ghost",
162
+ label: "\u5E7D\u7075\u6309\u94AE",
163
+ type: "switch"
164
+ },
165
+ {
166
+ field: "componentProps.loading",
167
+ label: "\u52A0\u8F7D\u72B6\u6001",
168
+ type: "switch"
169
+ },
170
+ {
171
+ field: "componentProps.block",
172
+ label: "\u5BBD\u5EA6\u81EA\u9002\u5E94",
173
+ type: "switch"
174
+ },
175
+ {
176
+ field: "componentProps.danger",
177
+ label: "\u5371\u9669\u6309\u94AE",
178
+ type: "switch"
179
+ },
180
+ {
181
+ field: "componentProps.disabled",
182
+ label: "\u7981\u7528",
183
+ type: "switch"
184
+ },
185
+ {
186
+ field: "componentProps.hidden",
187
+ label: "\u9690\u85CF",
188
+ type: "switch"
189
+ }
190
+ ],
191
+ event: [
192
+ {
193
+ description: "\u70B9\u51FB\u6309\u94AE\u65F6",
194
+ type: "click"
195
+ },
196
+ {
197
+ description: "\u53CC\u51FB\u6309\u94AE\u65F6",
198
+ type: "dblclick"
199
+ }
200
+ ]
201
+ },
202
+ defaultSchema: {
203
+ field: "input",
204
+ input: false,
205
+ label: "\u6309\u94AE",
206
+ type: "button"
207
+ },
208
+ groupName: "\u8868\u5355",
209
+ icon: "icon--epic--fit-screen-rounded",
210
+ sort: 1200
211
+ };
212
+
213
+ const Card = {
214
+ component: () => import('./chunks/card.cjs'),
215
+ config: {
216
+ attribute: [
217
+ {
218
+ field: "label",
219
+ label: "\u6807\u9898",
220
+ type: "input"
221
+ },
222
+ {
223
+ componentProps: {
224
+ allowClear: true,
225
+ options: [
226
+ {
227
+ label: "default",
228
+ value: "default"
229
+ },
230
+ {
231
+ label: "small",
232
+ value: "small"
233
+ }
234
+ ],
235
+ placeholder: "\u8BF7\u9009\u62E9"
236
+ },
237
+ field: "componentProps.size",
238
+ label: "\u5C3A\u5BF8",
239
+ type: "select"
240
+ },
241
+ {
242
+ componentProps: {
243
+ checkedValue: false,
244
+ unCheckedValue: true
245
+ },
246
+ field: "componentProps.bordered",
247
+ label: "\u65E0\u8FB9\u6846",
248
+ type: "switch"
249
+ },
250
+ {
251
+ field: "componentProps.hoverable",
252
+ label: "\u9F20\u6807\u60AC\u505C\u9634\u5F71",
253
+ type: "switch"
254
+ },
255
+ {
256
+ field: "componentProps.loading",
257
+ label: "\u52A0\u8F7D\u72B6\u6001",
258
+ type: "switch"
259
+ },
260
+ {
261
+ field: "componentProps.hidden",
262
+ label: "\u9690\u85CF",
263
+ type: "switch"
264
+ }
265
+ ]
266
+ },
267
+ defaultSchema: {
268
+ label: "\u5361\u7247\u5E03\u5C40",
269
+ type: "card",
270
+ children: []
271
+ },
272
+ groupName: "\u5E03\u5C40",
273
+ icon: "icon--epic--wysiwyg-rounded",
274
+ sort: 700
275
+ };
276
+
277
+ const Cascader = {
278
+ bindModel: "value",
279
+ component: async () => (await import('ant-design-vue')).Cascader,
280
+ config: {
281
+ attribute: [
282
+ {
283
+ field: "field",
284
+ label: "\u5B57\u6BB5\u540D",
285
+ type: "input"
286
+ },
287
+ {
288
+ field: "label",
289
+ label: "\u6807\u9898",
290
+ type: "input"
291
+ },
292
+ {
293
+ field: "componentProps.defaultValue",
294
+ label: "\u9ED8\u8BA4\u503C",
295
+ type: "cascader"
296
+ },
297
+ {
298
+ field: "componentProps.placeholder",
299
+ label: "\u5360\u4F4D\u5185\u5BB9",
300
+ type: "input"
301
+ },
302
+ {
303
+ componentProps: {
304
+ allowClear: true,
305
+ options: [
306
+ {
307
+ label: "\u5927\u53F7",
308
+ value: "large"
309
+ },
310
+ {
311
+ label: "\u4E2D\u7B49",
312
+ value: "middle"
313
+ },
314
+ {
315
+ label: "\u5C0F\u578B",
316
+ value: "small"
317
+ }
318
+ ],
319
+ placeholder: "\u8BF7\u9009\u62E9"
320
+ },
321
+ field: "componentProps.size",
322
+ label: "\u5C3A\u5BF8",
323
+ type: "select"
324
+ },
325
+ {
326
+ componentProps: {
327
+ allowClear: true,
328
+ options: [
329
+ {
330
+ label: "bottomLeft",
331
+ value: "bottomLeft"
332
+ },
333
+ {
334
+ label: "bottomRight",
335
+ value: "bottomRight"
336
+ },
337
+ {
338
+ label: "topLeft",
339
+ value: "topLeft"
340
+ },
341
+ {
342
+ label: "topRight",
343
+ value: "topRight"
344
+ }
345
+ ],
346
+ placeholder: "\u8BF7\u9009\u62E9"
347
+ },
348
+ field: "componentProps.placement",
349
+ label: "\u5F39\u51FA\u6846\u4F4D\u7F6E",
350
+ type: "select"
351
+ },
352
+ {
353
+ field: "componentProps.showSearch",
354
+ label: "\u53EF\u641C\u7D22",
355
+ type: "switch"
356
+ },
357
+ {
358
+ componentProps: {
359
+ checkedValue: false,
360
+ unCheckedValue: true
361
+ },
362
+ field: "componentProps.bordered",
363
+ label: "\u65E0\u8FB9\u6846",
364
+ type: "switch"
365
+ },
366
+ {
367
+ field: "componentProps.multiple",
368
+ label: "\u591A\u9009",
369
+ type: "switch"
370
+ },
371
+ {
372
+ componentProps: {
373
+ placeholder: "\u8BF7\u8F93\u5165"
374
+ },
375
+ field: "componentProps.maxTagTextLength",
376
+ label: "\u6807\u7B7E\u6700\u5927\u957F\u5EA6",
377
+ show: ({ values }) => values.componentProps.multiple,
378
+ type: "number"
379
+ },
380
+ {
381
+ componentProps: {
382
+ placeholder: "\u8BF7\u8F93\u5165"
383
+ },
384
+ field: "componentProps.maxTagCount",
385
+ label: "\u6807\u7B7E\u663E\u793A\u6570\u91CF",
386
+ show: ({ values }) => values.componentProps.multiple,
387
+ type: "number"
388
+ },
389
+ {
390
+ componentProps: {
391
+ clearable: true,
392
+ options: [
393
+ {
394
+ label: "SHOW_PARENT",
395
+ value: "SHOW_PARENT"
396
+ },
397
+ {
398
+ label: "SHOW_CHILD",
399
+ value: "SHOW_CHILD"
400
+ }
401
+ ],
402
+ placeholder: "\u8BF7\u9009\u62E9"
403
+ },
404
+ field: "componentProps.showCheckedStrategy",
405
+ label: "\u56DE\u586B\u65B9\u5F0F",
406
+ show: ({ values }) => values.componentProps.multiple,
407
+ type: "select"
408
+ },
409
+ {
410
+ field: "componentProps.allowClear",
411
+ label: "\u53EF\u6E05\u7A7A",
412
+ type: "switch"
413
+ },
414
+ {
415
+ field: "componentProps.disabled",
416
+ label: "\u7981\u7528",
417
+ type: "switch"
418
+ },
419
+ {
420
+ field: "componentProps.hidden",
421
+ label: "\u9690\u85CF",
422
+ type: "switch"
423
+ },
424
+ {
425
+ componentProps: {
426
+ tree: true
427
+ },
428
+ field: "componentProps.options",
429
+ label: "\u9009\u9879\u7BA1\u7406",
430
+ layout: "vertical",
431
+ type: "EOptionsEditor"
432
+ },
433
+ {
434
+ componentProps: {
435
+ ruleType: "array"
436
+ },
437
+ description: "\u6821\u9A8C\u89C4\u5219\u9700\u8981\u914D\u5408\u8868\u5355\u4F7F\u7528",
438
+ field: "rules",
439
+ label: "\u8868\u5355\u6821\u9A8C",
440
+ layout: "vertical",
441
+ type: "ERuleEditor"
442
+ }
443
+ ],
444
+ event: [
445
+ {
446
+ description: "\u503C\u53D8\u5316\u65F6",
447
+ type: "change"
448
+ }
449
+ ]
450
+ },
451
+ defaultSchema: {
452
+ componentProps: {
453
+ options: [
454
+ {
455
+ label: "\u9009\u98791",
456
+ value: "\u9009\u98791"
457
+ },
458
+ {
459
+ label: "\u9009\u98792",
460
+ value: "\u9009\u98792"
461
+ }
462
+ ],
463
+ placeholder: "\u8BF7\u9009\u62E9"
464
+ },
465
+ field: "cascader",
466
+ input: true,
467
+ label: "\u7EA7\u8054\u9009\u62E9\u5668",
468
+ type: "cascader"
469
+ },
470
+ groupName: "\u8868\u5355",
471
+ icon: "icon--epic--full-coverage-outline",
472
+ sort: 900
473
+ };
474
+
475
+ const Checkbox = {
476
+ bindModel: "value",
477
+ component: async () => (await import('ant-design-vue')).CheckboxGroup,
478
+ config: {
479
+ attribute: [
480
+ {
481
+ field: "field",
482
+ label: "\u5B57\u6BB5\u540D",
483
+ type: "input"
484
+ },
485
+ {
486
+ field: "label",
487
+ label: "\u6807\u9898",
488
+ type: "input"
489
+ },
490
+ {
491
+ field: "componentProps.defaultValue",
492
+ label: "\u9ED8\u8BA4\u503C",
493
+ type: "checkbox"
494
+ },
495
+ {
496
+ componentProps: {
497
+ allowClear: true,
498
+ options: [
499
+ {
500
+ label: "\u5927\u53F7",
501
+ value: "large"
502
+ },
503
+ {
504
+ label: "\u4E2D\u7B49",
505
+ value: "middle"
506
+ },
507
+ {
508
+ label: "\u5C0F\u578B",
509
+ value: "small"
510
+ }
511
+ ],
512
+ placeholder: "\u8BF7\u9009\u62E9"
513
+ },
514
+ field: "componentProps.size",
515
+ label: "\u5C3A\u5BF8",
516
+ type: "select"
517
+ },
518
+ {
519
+ field: "componentProps.disabled",
520
+ label: "\u7981\u7528",
521
+ type: "switch"
522
+ },
523
+ {
524
+ field: "componentProps.hidden",
525
+ label: "\u9690\u85CF",
526
+ type: "switch"
527
+ },
528
+ {
529
+ field: "componentProps.options",
530
+ label: "\u9009\u9879\u7BA1\u7406",
531
+ layout: "vertical",
532
+ type: "EOptionsEditor"
533
+ },
534
+ {
535
+ componentProps: {
536
+ ruleType: "array"
537
+ },
538
+ description: "\u6821\u9A8C\u89C4\u5219\u9700\u8981\u914D\u5408\u8868\u5355\u4F7F\u7528",
539
+ field: "rules",
540
+ label: "\u8868\u5355\u6821\u9A8C",
541
+ layout: "vertical",
542
+ type: "ERuleEditor"
543
+ }
544
+ ],
545
+ event: [
546
+ {
547
+ description: "\u503C\u53D8\u5316\u65F6",
548
+ type: "change"
549
+ }
550
+ ]
551
+ },
552
+ defaultSchema: {
553
+ componentProps: {
554
+ options: [
555
+ {
556
+ label: "\u9009\u98791",
557
+ value: "\u9009\u98791"
558
+ },
559
+ {
560
+ label: "\u9009\u98792",
561
+ value: "\u9009\u98792"
562
+ }
563
+ ]
564
+ },
565
+ field: "checkbox",
566
+ input: true,
567
+ label: "\u591A\u9009\u6846",
568
+ type: "checkbox"
569
+ },
570
+ groupName: "\u8868\u5355",
571
+ icon: "icon--epic--dialogs-outline-rounded",
572
+ sort: 860
573
+ };
574
+
575
+ const Col = {
576
+ component: () => import('./chunks/col.cjs'),
577
+ config: {
578
+ attribute: [
579
+ {
580
+ field: "componentProps.span",
581
+ label: "\u5360\u4F4D\u683C\u6570",
582
+ type: "number"
583
+ }
584
+ ]
585
+ },
586
+ defaultSchema: {
587
+ componentProps: {
588
+ span: 6
589
+ },
590
+ label: "\u6805\u683C\u5E03\u5C40-\u5217",
591
+ type: "col",
592
+ children: []
593
+ }
594
+ };
595
+
596
+ const colorPicker = {
597
+ bindModel: "value",
598
+ component: async () => (await import('ant-design-vue')).Input,
599
+ config: {
600
+ action: [],
601
+ attribute: [
602
+ {
603
+ field: "field",
604
+ label: "\u5B57\u6BB5\u540D",
605
+ type: "input"
606
+ },
607
+ {
608
+ field: "label",
609
+ label: "\u6807\u9898",
610
+ type: "input"
611
+ },
612
+ {
613
+ field: "componentProps.defaultValue",
614
+ label: "\u9ED8\u8BA4\u503C",
615
+ type: "input"
616
+ },
617
+ {
618
+ componentProps: {
619
+ allowClear: true,
620
+ options: [
621
+ {
622
+ label: "\u5927\u53F7",
623
+ value: "large"
624
+ },
625
+ {
626
+ label: "\u4E2D\u7B49",
627
+ value: "middle"
628
+ },
629
+ {
630
+ label: "\u5C0F\u578B",
631
+ value: "small"
632
+ }
633
+ ],
634
+ placeholder: "\u8BF7\u9009\u62E9"
635
+ },
636
+ field: "componentProps.size",
637
+ label: "\u5C3A\u5BF8",
638
+ type: "select"
639
+ },
640
+ {
641
+ componentProps: {
642
+ checkedValue: false,
643
+ unCheckedValue: true
644
+ },
645
+ field: "componentProps.bordered",
646
+ label: "\u65E0\u8FB9\u6846",
647
+ type: "switch"
648
+ },
649
+ {
650
+ field: "componentProps.allowClear",
651
+ label: "\u53EF\u6E05\u7A7A",
652
+ type: "switch"
653
+ },
654
+ {
655
+ field: "componentProps.disabled",
656
+ label: "\u7981\u7528",
657
+ type: "switch"
658
+ },
659
+ {
660
+ field: "componentProps.hidden",
661
+ label: "\u9690\u85CF",
662
+ type: "switch"
663
+ },
664
+ {
665
+ description: "\u6821\u9A8C\u89C4\u5219\u9700\u8981\u914D\u5408\u8868\u5355\u4F7F\u7528",
666
+ field: "rules",
667
+ label: "\u8868\u5355\u6821\u9A8C",
668
+ layout: "vertical",
669
+ type: "ERuleEditor"
670
+ }
671
+ ],
672
+ event: [
673
+ {
674
+ description: "\u503C\u4FEE\u6539\u65F6",
675
+ type: "change"
676
+ },
677
+ {
678
+ description: "\u83B7\u53D6\u7126\u70B9\u65F6",
679
+ type: "focus"
680
+ },
681
+ {
682
+ description: "\u5931\u53BB\u7126\u70B9\u65F6",
683
+ type: "blur"
684
+ }
685
+ ]
686
+ },
687
+ defaultSchema: {
688
+ componentProps: {
689
+ style: {
690
+ width: "80px"
691
+ },
692
+ type: "color"
693
+ },
694
+ field: "color-picker",
695
+ input: true,
696
+ label: "\u989C\u8272\u9009\u62E9\u5668",
697
+ type: "color-picker"
698
+ },
699
+ groupName: "\u8868\u5355",
700
+ icon: "icon--epic--palette-outline",
701
+ sort: 950
702
+ };
703
+
704
+ const DatePicker = {
705
+ bindModel: "modelValue",
706
+ component: () => import('./chunks/datePicker.cjs'),
707
+ config: {
708
+ attribute: [
709
+ {
710
+ field: "field",
711
+ label: "\u5B57\u6BB5\u540D",
712
+ type: "input"
713
+ },
714
+ {
715
+ componentProps: {
716
+ placeholder: "\u8BF7\u8F93\u5165"
717
+ },
718
+ field: "label",
719
+ label: "\u6807\u9898",
720
+ type: "input"
721
+ },
722
+ {
723
+ field: "componentProps.defaultValue",
724
+ label: "\u9ED8\u8BA4\u503C",
725
+ type: "date"
726
+ },
727
+ {
728
+ changeSync: true,
729
+ componentProps: {
730
+ options: [
731
+ {
732
+ label: "\u65E5\u671F",
733
+ value: "date"
734
+ },
735
+ {
736
+ label: "\u5468",
737
+ value: "week"
738
+ },
739
+ {
740
+ label: "\u6708\u4EFD",
741
+ value: "month"
742
+ },
743
+ {
744
+ label: "\u5B63\u5EA6",
745
+ value: "quarter"
746
+ },
747
+ {
748
+ label: "\u5E74\u4EFD",
749
+ value: "year"
750
+ },
751
+ {
752
+ label: "\u65E5\u671F\u8303\u56F4",
753
+ value: "daterange"
754
+ },
755
+ {
756
+ label: "\u5468\u8303\u56F4",
757
+ value: "weekrange"
758
+ },
759
+ {
760
+ label: "\u6708\u4EFD\u8303\u56F4",
761
+ value: "monthrange"
762
+ },
763
+ {
764
+ label: "\u5B63\u5EA6\u8303\u56F4",
765
+ value: "quarterrange"
766
+ },
767
+ {
768
+ label: "\u5E74\u4EFD\u8303\u56F4",
769
+ value: "yearrange"
770
+ }
771
+ ]
772
+ },
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
+ type: "select"
802
+ },
803
+ {
804
+ field: "componentProps.showTime",
805
+ label: "\u589E\u52A0\u65F6\u95F4\u9009\u62E9",
806
+ onChange: ({ value, values }) => {
807
+ if (value) {
808
+ values.componentProps.valueFormat = "YYYY-MM-DD HH:mm:ss";
809
+ values.componentProps.format = "YYYY-MM-DD HH:mm:ss";
810
+ } else {
811
+ values.componentProps.valueFormat = "YYYY-MM-DD";
812
+ values.componentProps.format = "YYYY-MM-DD";
813
+ }
814
+ },
815
+ show({ values }) {
816
+ return ["date", "daterange"].includes(values.componentProps.type);
817
+ },
818
+ type: "switch"
819
+ },
820
+ {
821
+ componentProps: {
822
+ placeholder: "\u8BF7\u8F93\u5165"
823
+ },
824
+ field: "componentProps.placeholder",
825
+ label: "\u5360\u4F4D\u5185\u5BB9",
826
+ show: ({ values }) => ![
827
+ "daterange",
828
+ "monthrange",
829
+ "quarterrange",
830
+ "weekrange",
831
+ "yearrange"
832
+ ].includes(values.componentProps.type),
833
+ type: "input"
834
+ },
835
+ {
836
+ componentProps: {
837
+ placeholder: "\u8BF7\u8F93\u5165"
838
+ },
839
+ field: "componentProps.placeholder.0",
840
+ label: "\u5F00\u59CB\u5360\u4F4D\u7B26",
841
+ show: ({ values }) => [
842
+ "daterange",
843
+ "monthrange",
844
+ "quarterrange",
845
+ "weekrange",
846
+ "yearrange"
847
+ ].includes(values.componentProps.type),
848
+ type: "input"
849
+ },
850
+ {
851
+ componentProps: {
852
+ placeholder: "\u8BF7\u8F93\u5165"
853
+ },
854
+ field: "componentProps.placeholder.1",
855
+ label: "\u7ED3\u675F\u5360\u4F4D\u7B26",
856
+ show: ({ values }) => [
857
+ "daterange",
858
+ "monthrange",
859
+ "quarterrange",
860
+ "weekrange",
861
+ "yearrange"
862
+ ].includes(values.componentProps.type),
863
+ type: "input"
864
+ },
865
+ {
866
+ componentProps: {
867
+ placeholder: "\u8BF7\u8F93\u5165"
868
+ },
869
+ field: "componentProps.format",
870
+ label: "\u663E\u793A\u683C\u5F0F",
871
+ type: "input"
872
+ },
873
+ {
874
+ componentProps: {
875
+ placeholder: "\u8BF7\u8F93\u5165"
876
+ },
877
+ field: "componentProps.valueFormat",
878
+ label: "\u6570\u636E\u683C\u5F0F",
879
+ type: "input"
880
+ },
881
+ {
882
+ componentProps: {
883
+ allowClear: true,
884
+ options: [
885
+ {
886
+ label: "\u5927\u53F7",
887
+ value: "large"
888
+ },
889
+ {
890
+ label: "\u4E2D\u7B49",
891
+ value: "middle"
892
+ },
893
+ {
894
+ label: "\u5C0F\u578B",
895
+ value: "small"
896
+ }
897
+ ],
898
+ placeholder: "\u8BF7\u9009\u62E9"
899
+ },
900
+ field: "componentProps.size",
901
+ label: "\u5C3A\u5BF8",
902
+ type: "select"
903
+ },
904
+ {
905
+ componentProps: {
906
+ allowClear: true,
907
+ options: [
908
+ {
909
+ label: "bottomLeft",
910
+ value: "bottomLeft"
911
+ },
912
+ {
913
+ label: "bottomRight",
914
+ value: "bottomRight"
915
+ },
916
+ {
917
+ label: "topLeft",
918
+ value: "topLeft"
919
+ },
920
+ {
921
+ label: "topRight",
922
+ value: "topRight"
923
+ }
924
+ ],
925
+ placeholder: "\u8BF7\u9009\u62E9"
926
+ },
927
+ field: "componentProps.placement",
928
+ label: "\u5F39\u51FA\u6846\u4F4D\u7F6E",
929
+ type: "select"
930
+ },
931
+ {
932
+ componentProps: {
933
+ checkedValue: false,
934
+ unCheckedValue: true
935
+ },
936
+ field: "componentProps.bordered",
937
+ label: "\u65E0\u8FB9\u6846",
938
+ type: "switch"
939
+ },
940
+ {
941
+ field: "componentProps.inputReadOnly",
942
+ label: "\u7981\u6B62\u952E\u76D8\u8F93\u5165",
943
+ type: "switch"
944
+ },
945
+ {
946
+ field: "componentProps.allowClear",
947
+ label: "\u53EF\u6E05\u7A7A",
948
+ type: "switch"
949
+ },
950
+ {
951
+ field: "componentProps.disabled",
952
+ label: "\u7981\u7528",
953
+ type: "switch"
954
+ },
955
+ {
956
+ field: "componentProps.hidden",
957
+ label: "\u9690\u85CF",
958
+ type: "switch"
959
+ },
960
+ {
961
+ description: "\u6821\u9A8C\u89C4\u5219\u9700\u8981\u914D\u5408\u8868\u5355\u4F7F\u7528",
962
+ field: "rules",
963
+ label: "\u8868\u5355\u6821\u9A8C",
964
+ layout: "vertical",
965
+ type: "ERuleEditor"
966
+ }
967
+ ],
968
+ event: [
969
+ {
970
+ description: "\u503C\u53D8\u5316\u65F6",
971
+ type: "change"
972
+ },
973
+ {
974
+ description: "\u70B9\u51FB\u786E\u5B9A\u6309\u94AE\u65F6",
975
+ type: "ok"
976
+ }
977
+ ]
978
+ },
979
+ defaultSchema: {
980
+ componentProps: {
981
+ format: "YYYY-MM-DD",
982
+ placeholder: "\u8BF7\u9009\u62E9",
983
+ type: "date",
984
+ valueFormat: "YYYY-MM-DD"
985
+ },
986
+ field: "date",
987
+ input: true,
988
+ label: "\u65E5\u671F\u9009\u62E9\u5668",
989
+ type: "date"
990
+ },
991
+ groupName: "\u8868\u5355",
992
+ icon: "icon--epic--calendar-month-outline-rounded",
993
+ sort: 910
994
+ };
995
+
996
+ const Form = {
997
+ component: () => import('./chunks/form.cjs'),
998
+ config: {
999
+ action: [
1000
+ {
1001
+ description: "\u83B7\u53D6\u8868\u5355\u6570\u636E",
1002
+ type: "getData"
1003
+ },
1004
+ {
1005
+ description: "\u8BBE\u7F6E\u8868\u5355\u6570\u636E",
1006
+ type: "setData"
1007
+ },
1008
+ {
1009
+ description: "\u6821\u9A8C\u8868\u5355",
1010
+ type: "validate"
1011
+ }
1012
+ ],
1013
+ attribute: [
1014
+ {
1015
+ field: "componentProps.name",
1016
+ label: "Name",
1017
+ type: "input"
1018
+ },
1019
+ {
1020
+ componentProps: {
1021
+ allowClear: true,
1022
+ "option-type": "button",
1023
+ options: [
1024
+ {
1025
+ label: "\u6C34\u5E73",
1026
+ value: "horizontal"
1027
+ },
1028
+ {
1029
+ label: "\u5782\u76F4",
1030
+ value: "vertical"
1031
+ },
1032
+ {
1033
+ label: "\u5185\u8054",
1034
+ value: "inline"
1035
+ }
1036
+ ],
1037
+ placeholder: "\u8BF7\u9009\u62E9"
1038
+ },
1039
+ field: "componentProps.layout",
1040
+ label: "\u8868\u5355\u5E03\u5C40",
1041
+ type: "radio"
1042
+ },
1043
+ {
1044
+ componentProps: {
1045
+ "option-type": "button",
1046
+ options: [
1047
+ {
1048
+ label: "\u56FA\u5B9A\u5BBD\u5EA6",
1049
+ value: "fixed"
1050
+ },
1051
+ {
1052
+ label: "\u81EA\u9002\u5E94\u5BBD\u5EA6",
1053
+ value: "flex"
1054
+ }
1055
+ ]
1056
+ },
1057
+ field: "componentProps.labelLayout",
1058
+ label: "\u6807\u7B7E\u5E03\u5C40",
1059
+ type: "radio"
1060
+ },
1061
+ {
1062
+ field: "componentProps.labelWidth",
1063
+ label: "\u6807\u7B7E\u5BBD\u5EA6",
1064
+ show: ({ values }) => {
1065
+ var _a;
1066
+ return ((_a = values.componentProps) == null ? void 0 : _a.labelLayout) === "fixed";
1067
+ },
1068
+ type: "EInputSize"
1069
+ },
1070
+ {
1071
+ componentProps: {
1072
+ placeholder: "\u8BF7\u8F93\u5165"
1073
+ },
1074
+ field: "componentProps.labelCol.span",
1075
+ label: "\u6807\u7B7E\u5360\u6BD4",
1076
+ show: ({ values }) => {
1077
+ var _a;
1078
+ return ((_a = values.componentProps) == null ? void 0 : _a.labelLayout) === "flex";
1079
+ },
1080
+ type: "input"
1081
+ },
1082
+ {
1083
+ componentProps: {
1084
+ placeholder: "\u8BF7\u8F93\u5165"
1085
+ },
1086
+ field: "componentProps.wrapperCol.span",
1087
+ label: "\u63A7\u4EF6\u5360\u6BD4",
1088
+ show: ({ values }) => {
1089
+ var _a;
1090
+ return ((_a = values.componentProps) == null ? void 0 : _a.labelLayout) === "flex";
1091
+ },
1092
+ type: "input"
1093
+ },
1094
+ {
1095
+ componentProps: {
1096
+ "option-type": "button",
1097
+ options: [
1098
+ {
1099
+ label: "\u5DE6",
1100
+ value: "left"
1101
+ },
1102
+ {
1103
+ label: "\u53F3",
1104
+ value: "right"
1105
+ }
1106
+ ]
1107
+ },
1108
+ field: "componentProps.labelAlign",
1109
+ label: "\u6807\u7B7E\u5BF9\u9F50",
1110
+ type: "radio"
1111
+ },
1112
+ {
1113
+ componentProps: {
1114
+ allowClear: true,
1115
+ options: [
1116
+ {
1117
+ label: "\u5927\u53F7",
1118
+ value: "large"
1119
+ },
1120
+ {
1121
+ label: "\u4E2D\u7B49",
1122
+ value: "middle"
1123
+ },
1124
+ {
1125
+ label: "\u5C0F\u578B",
1126
+ value: "small"
1127
+ }
1128
+ ],
1129
+ placeholder: "\u8BF7\u9009\u62E9"
1130
+ },
1131
+ defaultValue: "default",
1132
+ field: "componentProps.size",
1133
+ label: "\u5C3A\u5BF8",
1134
+ type: "select"
1135
+ },
1136
+ {
1137
+ componentProps: {
1138
+ checkedValue: false,
1139
+ unCheckedValue: true
1140
+ },
1141
+ field: "componentProps.colon",
1142
+ label: "\u9690\u85CF\u5192\u53F7",
1143
+ type: "switch"
1144
+ },
1145
+ {
1146
+ field: "componentProps.hideRequiredMark",
1147
+ label: "\u9690\u85CF\u5FC5\u987B\u6807\u5FD7",
1148
+ type: "switch"
1149
+ },
1150
+ {
1151
+ field: "componentProps.labelWrap",
1152
+ label: "\u6807\u7B7E\u6587\u672C\u6362\u884C",
1153
+ type: "switch"
1154
+ },
1155
+ {
1156
+ field: "componentProps.scrollToFirstError",
1157
+ label: "\u6EDA\u52A8\u6821\u9A8C\u9519\u8BEF\u5904",
1158
+ type: "switch"
1159
+ },
1160
+ {
1161
+ field: "componentProps.disabled",
1162
+ label: "\u7981\u7528",
1163
+ type: "switch"
1164
+ },
1165
+ {
1166
+ field: "componentProps.hidden",
1167
+ label: "\u9690\u85CF",
1168
+ type: "switch"
1169
+ }
1170
+ ]
1171
+ },
1172
+ defaultSchema: {
1173
+ componentProps: {
1174
+ labelCol: {
1175
+ span: 5
1176
+ },
1177
+ labelLayout: "fixed",
1178
+ labelWidth: "100px",
1179
+ name: "default",
1180
+ wrapperCol: {
1181
+ span: 19
1182
+ }
1183
+ },
1184
+ label: "\u8868\u5355",
1185
+ type: "form",
1186
+ children: []
1187
+ },
1188
+ groupName: "\u8868\u5355",
1189
+ icon: "icon--epic--list-alt-outline-rounded",
1190
+ sort: 600
1191
+ };
1192
+
1193
+ const FormItem = {
1194
+ component: () => import('./chunks/formItem.cjs'),
1195
+ config: {},
1196
+ defaultSchema: {
1197
+ label: "\u8868\u5355\u9879",
1198
+ type: "form-item"
1199
+ }
1200
+ };
1201
+
1202
+ const Input = {
1203
+ bindModel: "value",
1204
+ component: async () => (await import('ant-design-vue')).Input,
1205
+ config: {
1206
+ action: [
1207
+ {
1208
+ description: "\u4F7F\u8F93\u5165\u6846\u83B7\u53D6\u7126\u70B9",
1209
+ type: "focus"
1210
+ },
1211
+ {
1212
+ description: "\u4F7F\u8F93\u5165\u6846\u5931\u53BB\u7126\u70B9",
1213
+ type: "blur"
1214
+ },
1215
+ {
1216
+ description: "\u9009\u4E2D\u8F93\u5165\u6846\u4E2D\u7684\u6587\u5B57",
1217
+ type: "select"
1218
+ }
1219
+ ],
1220
+ attribute: [
1221
+ {
1222
+ field: "field",
1223
+ label: "\u5B57\u6BB5\u540D",
1224
+ type: "input"
1225
+ },
1226
+ {
1227
+ field: "label",
1228
+ label: "\u6807\u9898",
1229
+ type: "input"
1230
+ },
1231
+ {
1232
+ field: "componentProps.placeholder",
1233
+ label: "\u5360\u4F4D\u5185\u5BB9",
1234
+ type: "input"
1235
+ },
1236
+ {
1237
+ componentProps: {
1238
+ placeholder: "\u8BF7\u8F93\u5165"
1239
+ },
1240
+ field: "componentProps.defaultValue",
1241
+ label: "\u9ED8\u8BA4\u503C",
1242
+ type: "input"
1243
+ },
1244
+ {
1245
+ componentProps: {
1246
+ allowClear: true,
1247
+ options: [
1248
+ {
1249
+ label: "text",
1250
+ value: "text"
1251
+ },
1252
+ {
1253
+ label: "number",
1254
+ value: "number"
1255
+ },
1256
+ {
1257
+ label: "password",
1258
+ value: "password"
1259
+ }
1260
+ ],
1261
+ placeholder: "\u8BF7\u9009\u62E9"
1262
+ },
1263
+ field: "componentProps.type",
1264
+ label: "\u8F93\u5165\u7C7B\u578B",
1265
+ type: "select"
1266
+ },
1267
+ {
1268
+ componentProps: {
1269
+ allowClear: true,
1270
+ options: [
1271
+ {
1272
+ label: "\u5927\u53F7",
1273
+ value: "large"
1274
+ },
1275
+ {
1276
+ label: "\u4E2D\u7B49",
1277
+ value: "middle"
1278
+ },
1279
+ {
1280
+ label: "\u5C0F\u578B",
1281
+ value: "small"
1282
+ }
1283
+ ],
1284
+ placeholder: "\u8BF7\u9009\u62E9"
1285
+ },
1286
+ field: "componentProps.size",
1287
+ label: "\u5C3A\u5BF8",
1288
+ type: "select"
1289
+ },
1290
+ {
1291
+ componentProps: {
1292
+ checkedValue: false,
1293
+ unCheckedValue: true
1294
+ },
1295
+ field: "componentProps.bordered",
1296
+ label: "\u65E0\u8FB9\u6846",
1297
+ type: "switch"
1298
+ },
1299
+ {
1300
+ componentProps: {
1301
+ placeholder: "\u8BF7\u8F93\u5165"
1302
+ },
1303
+ field: "componentProps.maxlength",
1304
+ label: "\u6700\u5927\u8F93\u5165\u957F\u5EA6",
1305
+ type: "number"
1306
+ },
1307
+ {
1308
+ field: "componentProps.showCount",
1309
+ label: "\u5C55\u793A\u5B57\u6570",
1310
+ type: "switch"
1311
+ },
1312
+ {
1313
+ field: "componentProps.allowClear",
1314
+ label: "\u53EF\u6E05\u7A7A",
1315
+ type: "switch"
1316
+ },
1317
+ {
1318
+ field: "componentProps.disabled",
1319
+ label: "\u7981\u7528",
1320
+ type: "switch"
1321
+ },
1322
+ {
1323
+ field: "componentProps.hidden",
1324
+ label: "\u9690\u85CF",
1325
+ type: "switch"
1326
+ },
1327
+ {
1328
+ description: "\u6821\u9A8C\u89C4\u5219\u9700\u8981\u914D\u5408\u8868\u5355\u4F7F\u7528",
1329
+ field: "rules",
1330
+ label: "\u8868\u5355\u6821\u9A8C",
1331
+ layout: "vertical",
1332
+ type: "ERuleEditor"
1333
+ }
1334
+ ],
1335
+ event: [
1336
+ {
1337
+ description: "\u8F93\u5165\u503C\u65F6",
1338
+ type: "input"
1339
+ },
1340
+ {
1341
+ description: "\u503C\u4FEE\u6539\u65F6",
1342
+ type: "change"
1343
+ },
1344
+ {
1345
+ description: "\u6309\u4E0B\u56DE\u8F66\u65F6",
1346
+ type: "pressEnter"
1347
+ },
1348
+ {
1349
+ description: "\u83B7\u53D6\u7126\u70B9\u65F6",
1350
+ type: "focus"
1351
+ },
1352
+ {
1353
+ description: "\u5931\u53BB\u7126\u70B9\u65F6",
1354
+ type: "blur"
1355
+ }
1356
+ ]
1357
+ },
1358
+ defaultSchema: {
1359
+ componentProps: {
1360
+ placeholder: "\u8BF7\u8F93\u5165"
1361
+ },
1362
+ field: "input",
1363
+ input: true,
1364
+ label: "\u8F93\u5165\u6846",
1365
+ type: "input"
1366
+ },
1367
+ groupName: "\u8868\u5355",
1368
+ icon: "icon--epic--border-color-outline-rounded",
1369
+ sort: 700
1370
+ };
1371
+
1372
+ const InputNumber = {
1373
+ bindModel: "value",
1374
+ component: async () => (await import('ant-design-vue')).InputNumber,
1375
+ config: {
1376
+ action: [
1377
+ {
1378
+ description: "\u4F7F input \u83B7\u53D6\u7126\u70B9",
1379
+ type: "focus"
1380
+ },
1381
+ {
1382
+ description: "\u4F7F input \u5931\u53BB\u7126\u70B9",
1383
+ type: "blur"
1384
+ },
1385
+ {
1386
+ description: "\u9009\u4E2D input \u4E2D\u7684\u6587\u5B57",
1387
+ type: "select"
1388
+ }
1389
+ ],
1390
+ attribute: [
1391
+ {
1392
+ field: "field",
1393
+ label: "\u5B57\u6BB5\u540D",
1394
+ type: "input"
1395
+ },
1396
+ {
1397
+ field: "label",
1398
+ label: "\u6807\u9898",
1399
+ type: "input"
1400
+ },
1401
+ {
1402
+ componentProps: {
1403
+ placeholder: "\u8BF7\u8F93\u5165",
1404
+ size: "middle"
1405
+ },
1406
+ field: "componentProps.defaultValue",
1407
+ label: "\u9ED8\u8BA4\u503C",
1408
+ type: "number"
1409
+ },
1410
+ {
1411
+ field: "componentProps.placeholder",
1412
+ label: "\u5360\u4F4D\u5185\u5BB9",
1413
+ type: "input"
1414
+ },
1415
+ {
1416
+ componentProps: {
1417
+ allowClear: true,
1418
+ options: [
1419
+ {
1420
+ label: "\u5927\u53F7",
1421
+ value: "large"
1422
+ },
1423
+ {
1424
+ label: "\u4E2D\u7B49",
1425
+ value: "middle"
1426
+ },
1427
+ {
1428
+ label: "\u5C0F\u578B",
1429
+ value: "small"
1430
+ }
1431
+ ],
1432
+ placeholder: "\u8BF7\u9009\u62E9"
1433
+ },
1434
+ field: "componentProps.size",
1435
+ label: "\u5C3A\u5BF8",
1436
+ type: "select"
1437
+ },
1438
+ {
1439
+ field: "componentProps.keyboard",
1440
+ label: "\u952E\u76D8\u5FEB\u6377\u884C\u4E3A",
1441
+ type: "switch"
1442
+ },
1443
+ {
1444
+ componentProps: {
1445
+ placeholder: "\u8BF7\u8F93\u5165"
1446
+ },
1447
+ field: "componentProps.max",
1448
+ label: "\u6700\u5927\u503C",
1449
+ type: "number"
1450
+ },
1451
+ {
1452
+ componentProps: {
1453
+ placeholder: "\u8BF7\u8F93\u5165"
1454
+ },
1455
+ field: "componentProps.min",
1456
+ label: "\u6700\u5C0F\u503C",
1457
+ type: "number"
1458
+ },
1459
+ {
1460
+ componentProps: {
1461
+ placeholder: "\u8BF7\u8F93\u5165"
1462
+ },
1463
+ field: "componentProps.precision",
1464
+ label: "\u7CBE\u5EA6",
1465
+ type: "number"
1466
+ },
1467
+ {
1468
+ componentProps: {
1469
+ placeholder: "\u8BF7\u8F93\u5165"
1470
+ },
1471
+ field: "componentProps.step",
1472
+ label: "\u6B65\u957F",
1473
+ type: "number"
1474
+ },
1475
+ {
1476
+ field: "componentProps.stringMode",
1477
+ label: "\u5B57\u7B26\u6A21\u5F0F",
1478
+ type: "switch"
1479
+ },
1480
+ {
1481
+ componentProps: {
1482
+ checkedValue: false,
1483
+ unCheckedValue: true
1484
+ },
1485
+ field: "componentProps.bordered",
1486
+ label: "\u65E0\u8FB9\u6846",
1487
+ type: "switch"
1488
+ },
1489
+ {
1490
+ field: "componentProps.allowClear",
1491
+ label: "\u53EF\u6E05\u7A7A",
1492
+ type: "switch"
1493
+ },
1494
+ {
1495
+ field: "componentProps.disabled",
1496
+ label: "\u7981\u7528",
1497
+ type: "switch"
1498
+ },
1499
+ {
1500
+ field: "componentProps.hidden",
1501
+ label: "\u9690\u85CF",
1502
+ type: "switch"
1503
+ },
1504
+ {
1505
+ componentProps: {
1506
+ ruleType: "number"
1507
+ },
1508
+ description: "\u6821\u9A8C\u89C4\u5219\u9700\u8981\u914D\u5408\u8868\u5355\u4F7F\u7528",
1509
+ field: "rules",
1510
+ label: "\u8868\u5355\u6821\u9A8C",
1511
+ layout: "vertical",
1512
+ type: "ERuleEditor"
1513
+ }
1514
+ ],
1515
+ event: [
1516
+ {
1517
+ description: "\u8F93\u5165\u503C",
1518
+ type: "input"
1519
+ },
1520
+ {
1521
+ description: "\u503C\u4FEE\u6539",
1522
+ type: "change"
1523
+ },
1524
+ {
1525
+ description: "\u6309\u4E0B\u56DE\u8F66\u7684\u56DE\u8C03",
1526
+ type: "pressEnter"
1527
+ },
1528
+ {
1529
+ description: "\u83B7\u53D6\u7126\u70B9",
1530
+ type: "focus"
1531
+ },
1532
+ {
1533
+ description: "\u5931\u53BB\u7126\u70B9",
1534
+ type: "blur"
1535
+ }
1536
+ ]
1537
+ },
1538
+ defaultSchema: {
1539
+ componentProps: {
1540
+ placeholder: "\u8BF7\u8F93\u5165",
1541
+ style: { width: "100%" }
1542
+ },
1543
+ field: "number",
1544
+ input: true,
1545
+ label: "\u6570\u5B57\u8F93\u5165\u6846",
1546
+ type: "number"
1547
+ },
1548
+ groupName: "\u8868\u5355",
1549
+ icon: "icon--epic--123-rounded",
1550
+ sort: 710
1551
+ };
1552
+
1553
+ const InputPassword = {
1554
+ bindModel: "value",
1555
+ component: async () => (await import('ant-design-vue')).InputPassword,
1556
+ 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
+ },
1566
+ {
1567
+ description: "\u9009\u4E2D input \u4E2D\u7684\u6587\u5B57",
1568
+ type: "select"
1569
+ }
1570
+ ],
1571
+ attribute: [
1572
+ {
1573
+ field: "field",
1574
+ label: "\u5B57\u6BB5\u540D",
1575
+ type: "input"
1576
+ },
1577
+ {
1578
+ field: "label",
1579
+ label: "\u6807\u9898",
1580
+ type: "input"
1581
+ },
1582
+ {
1583
+ field: "componentProps.placeholder",
1584
+ label: "\u5360\u4F4D\u5185\u5BB9",
1585
+ type: "input"
1586
+ },
1587
+ {
1588
+ componentProps: {
1589
+ allowClear: true,
1590
+ options: [
1591
+ {
1592
+ label: "\u5927\u53F7",
1593
+ value: "large"
1594
+ },
1595
+ {
1596
+ label: "\u4E2D\u7B49",
1597
+ value: "middle"
1598
+ },
1599
+ {
1600
+ label: "\u5C0F\u578B",
1601
+ value: "small"
1602
+ }
1603
+ ],
1604
+ placeholder: "\u8BF7\u9009\u62E9"
1605
+ },
1606
+ field: "componentProps.size",
1607
+ label: "\u5C3A\u5BF8",
1608
+ type: "select"
1609
+ },
1610
+ {
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
1641
+ },
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
+ type: "switch"
1650
+ },
1651
+ {
1652
+ field: "componentProps.disabled",
1653
+ label: "\u7981\u7528",
1654
+ type: "switch"
1655
+ },
1656
+ {
1657
+ field: "componentProps.hidden",
1658
+ label: "\u9690\u85CF",
1659
+ type: "switch"
1660
+ },
1661
+ {
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",
1789
+ label: "\u9009\u9879\u7BA1\u7406",
1790
+ layout: "vertical",
1791
+ type: "EOptionsEditor"
1792
+ },
1793
+ {
1794
+ description: "\u6821\u9A8C\u89C4\u5219\u9700\u8981\u914D\u5408\u8868\u5355\u4F7F\u7528",
1795
+ field: "rules",
1796
+ label: "\u8868\u5355\u6821\u9A8C",
1797
+ layout: "vertical",
1798
+ type: "ERuleEditor"
1799
+ }
1800
+ ],
1801
+ event: [
1802
+ {
1803
+ description: "\u503C\u53D8\u5316\u65F6",
1804
+ type: "change"
1805
+ }
1806
+ ]
1807
+ },
1808
+ defaultSchema: {
1809
+ componentProps: {
1810
+ options: [
1811
+ {
1812
+ label: "\u9009\u98791",
1813
+ value: "\u9009\u98791"
1814
+ },
1815
+ {
1816
+ label: "\u9009\u98792",
1817
+ value: "\u9009\u98792"
1818
+ }
1819
+ ]
1820
+ },
1821
+ field: "radio",
1822
+ input: true,
1823
+ label: "\u5355\u9009\u6846",
1824
+ type: "radio"
1825
+ },
1826
+ groupName: "\u8868\u5355",
1827
+ icon: "icon--epic--radio-button-checked-outline",
1828
+ sort: 850
1829
+ };
1830
+
1831
+ const Row = {
1832
+ component: () => import('./chunks/row.cjs'),
1833
+ config: {
1834
+ attribute: [
1835
+ {
1836
+ componentProps: {
1837
+ options: [
1838
+ {
1839
+ label: "top",
1840
+ value: "top"
1841
+ },
1842
+ {
1843
+ label: "middle",
1844
+ value: "middle"
1845
+ },
1846
+ {
1847
+ label: "bottom",
1848
+ value: "bottom"
1849
+ }
1850
+ ],
1851
+ placeholder: "\u8BF7\u9009\u62E9",
1852
+ style: { width: "100%" }
1853
+ },
1854
+ field: "componentProps.align",
1855
+ label: "\u5782\u76F4\u5BF9\u9F50\u65B9\u5F0F",
1856
+ type: "select"
1857
+ },
1858
+ {
1859
+ componentProps: {
1860
+ options: [
1861
+ {
1862
+ label: "start",
1863
+ value: "start"
1864
+ },
1865
+ {
1866
+ label: "end",
1867
+ value: "end"
1868
+ },
1869
+ {
1870
+ label: "center",
1871
+ value: "center"
1872
+ },
1873
+ {
1874
+ label: "space-around",
1875
+ value: "space-around"
1876
+ },
1877
+ {
1878
+ label: "space-between",
1879
+ value: "space-between"
1880
+ }
1881
+ ],
1882
+ placeholder: "\u8BF7\u9009\u62E9",
1883
+ style: { width: "100%" }
1884
+ },
1885
+ field: "componentProps.justify",
1886
+ label: "\u6C34\u5E73\u6392\u5217\u65B9\u5F0F",
1887
+ type: "select"
1888
+ },
1889
+ {
1890
+ componentProps: {
1891
+ placeholder: "\u8BF7\u8F93\u5165"
1892
+ },
1893
+ field: "componentProps.gutter",
1894
+ label: "\u6805\u683C\u95F4\u8DDD",
1895
+ type: "input"
1896
+ },
1897
+ {
1898
+ field: "children",
1899
+ label: "\u5217\u7F16\u8F91",
1900
+ type: "EColEditor"
1901
+ },
1902
+ {
1903
+ componentProps: {
1904
+ checkedValue: false,
1905
+ unCheckedValue: true
1906
+ },
1907
+ field: "componentProps.wrap",
1908
+ label: "\u4E0D\u81EA\u52A8\u6362\u884C",
1909
+ type: "switch"
1910
+ },
1911
+ {
1912
+ field: "componentProps.hidden",
1913
+ label: "\u9690\u85CF",
1914
+ type: "switch"
1915
+ }
1916
+ ]
1917
+ },
1918
+ defaultSchema: {
1919
+ label: "\u6805\u683C\u5E03\u5C40",
1920
+ type: "row",
1921
+ children: [
1922
+ {
1923
+ type: "col",
1924
+ children: [],
1925
+ componentProps: {
1926
+ span: 12
1927
+ }
1928
+ },
1929
+ {
1930
+ type: "col",
1931
+ children: [],
1932
+ componentProps: {
1933
+ span: 12
1934
+ }
1935
+ }
1936
+ ]
1937
+ },
1938
+ editConstraints: {
1939
+ childImmovable: true
1940
+ },
1941
+ groupName: "\u5E03\u5C40",
1942
+ icon: "icon--epic--width-normal-outline",
1943
+ sort: 800
1944
+ };
1945
+
1946
+ const Select = {
1947
+ bindModel: "value",
1948
+ component: async () => (await import('ant-design-vue')).Select,
1949
+ config: {
1950
+ action: [
1951
+ {
1952
+ description: "\u4F7F input \u83B7\u53D6\u7126\u70B9",
1953
+ type: "focus"
1954
+ },
1955
+ {
1956
+ description: "\u4F7F input \u5931\u53BB\u7126\u70B9",
1957
+ type: "blur"
1958
+ },
1959
+ {
1960
+ description: "\u9009\u4E2D input \u4E2D\u7684\u6587\u5B57",
1961
+ type: "select"
1962
+ }
1963
+ ],
1964
+ attribute: [
1965
+ {
1966
+ field: "field",
1967
+ label: "\u5B57\u6BB5\u540D",
1968
+ type: "input"
1969
+ },
1970
+ {
1971
+ field: "label",
1972
+ label: "\u6807\u9898",
1973
+ type: "input"
1974
+ },
1975
+ {
1976
+ componentProps: {
1977
+ placeholder: "\u8BF7\u8F93\u5165"
1978
+ },
1979
+ field: "componentProps.placeholder",
1980
+ label: "\u5360\u4F4D\u5185\u5BB9",
1981
+ type: "input"
1982
+ },
1983
+ {
1984
+ field: "componentProps.defaultValue",
1985
+ label: "\u9ED8\u8BA4\u503C",
1986
+ type: "select"
1987
+ },
1988
+ {
1989
+ componentProps: {
1990
+ allowClear: true,
1991
+ options: [
1992
+ {
1993
+ label: "\u5927\u53F7",
1994
+ value: "large"
1995
+ },
1996
+ {
1997
+ label: "\u4E2D\u7B49",
1998
+ value: "middle"
1999
+ },
2000
+ {
2001
+ label: "\u5C0F\u578B",
2002
+ value: "small"
2003
+ }
2004
+ ],
2005
+ placeholder: "\u8BF7\u9009\u62E9"
2006
+ },
2007
+ field: "componentProps.size",
2008
+ label: "\u5C3A\u5BF8",
2009
+ type: "select"
2010
+ },
2011
+ {
2012
+ componentProps: {
2013
+ placeholder: "\u8BF7\u8F93\u5165"
2014
+ },
2015
+ field: "componentProps.listHeight",
2016
+ label: "\u5F39\u7A97\u9AD8\u5EA6",
2017
+ type: "number"
2018
+ },
2019
+ {
2020
+ componentProps: {
2021
+ allowClear: true,
2022
+ options: [
2023
+ {
2024
+ label: "multiple",
2025
+ value: "multiple"
2026
+ },
2027
+ {
2028
+ label: "tags",
2029
+ value: "tags"
2030
+ },
2031
+ {
2032
+ label: "combobox",
2033
+ value: "combobox"
2034
+ }
2035
+ ],
2036
+ placeholder: "\u8BF7\u9009\u62E9"
2037
+ },
2038
+ field: "componentProps.mode",
2039
+ label: "\u6A21\u5F0F",
2040
+ type: "select"
2041
+ },
2042
+ {
2043
+ field: "componentProps.showSearch",
2044
+ label: "\u53EF\u641C\u7D22",
2045
+ type: "switch"
2046
+ },
2047
+ {
2048
+ field: "componentProps.autoClearSearchValue",
2049
+ label: "\u9009\u4E2D\u9009\u9879\u540E\u6E05\u7A7A\u641C\u7D22\u6846",
2050
+ show: ({ values }) => values.componentProps.mode && values.componentProps.showSearch,
2051
+ type: "switch"
2052
+ },
2053
+ {
2054
+ field: "componentProps.maxTagTextLength",
2055
+ label: "\u6700\u5927tag\u6587\u672C\u957F\u5EA6",
2056
+ show: ({ values }) => values.componentProps.mode,
2057
+ type: "number"
2058
+ },
2059
+ {
2060
+ field: "componentProps.maxTagCount",
2061
+ label: "\u6700\u5927tag\u663E\u793A\u6570",
2062
+ show: ({ values }) => values.componentProps.mode,
2063
+ type: "number"
2064
+ },
2065
+ {
2066
+ componentProps: {
2067
+ allowClear: true,
2068
+ options: [
2069
+ {
2070
+ label: "bottomLeft",
2071
+ value: "bottomLeft"
2072
+ },
2073
+ {
2074
+ label: "bottomRight",
2075
+ value: "bottomRight"
2076
+ },
2077
+ {
2078
+ label: "topLeft",
2079
+ value: "topLeft"
2080
+ },
2081
+ {
2082
+ label: "topRight",
2083
+ value: "topRight"
2084
+ }
2085
+ ],
2086
+ placeholder: "\u8BF7\u9009\u62E9"
2087
+ },
2088
+ field: "componentProps.placement",
2089
+ label: "\u5F39\u51FA\u6846\u4F4D\u7F6E",
2090
+ type: "select"
2091
+ },
2092
+ {
2093
+ componentProps: {
2094
+ checkedValue: false,
2095
+ unCheckedValue: true
2096
+ },
2097
+ field: "componentProps.bordered",
2098
+ label: "\u65E0\u8FB9\u6846",
2099
+ type: "switch"
2100
+ },
2101
+ {
2102
+ field: "componentProps.allowClear",
2103
+ label: "\u53EF\u6E05\u7A7A",
2104
+ type: "switch"
2105
+ },
2106
+ {
2107
+ field: "componentProps.labelInValue",
2108
+ label: "labelInValue",
2109
+ type: "switch"
2110
+ },
2111
+ {
2112
+ field: "componentProps.disabled",
2113
+ label: "\u7981\u7528",
2114
+ type: "switch"
2115
+ },
2116
+ {
2117
+ field: "componentProps.hidden",
2118
+ label: "\u9690\u85CF",
2119
+ type: "switch"
2120
+ },
2121
+ {
2122
+ field: "componentProps.options",
2123
+ label: "\u9009\u9879\u7BA1\u7406",
2124
+ layout: "vertical",
2125
+ type: "EOptionsEditor"
2126
+ },
2127
+ {
2128
+ description: "\u6821\u9A8C\u89C4\u5219\u9700\u8981\u914D\u5408\u8868\u5355\u4F7F\u7528",
2129
+ field: "rules",
2130
+ label: "\u8868\u5355\u6821\u9A8C",
2131
+ layout: "vertical",
2132
+ type: "ERuleEditor"
2133
+ }
2134
+ ],
2135
+ event: [
2136
+ {
2137
+ description: "\u503C\u4FEE\u6539",
2138
+ type: "change"
2139
+ },
2140
+ {
2141
+ description: "\u83B7\u53D6\u7126\u70B9",
2142
+ type: "focus"
2143
+ },
2144
+ {
2145
+ description: "\u5931\u53BB\u7126\u70B9",
2146
+ type: "blur"
2147
+ }
2148
+ ]
2149
+ },
2150
+ defaultSchema: {
2151
+ componentProps: {
2152
+ options: [
2153
+ {
2154
+ label: "\u9009\u98791",
2155
+ value: "\u9009\u98791"
2156
+ },
2157
+ {
2158
+ label: "\u9009\u98792",
2159
+ value: "\u9009\u98792"
2160
+ }
2161
+ ],
2162
+ placeholder: "\u8BF7\u9009\u62E9"
2163
+ },
2164
+ field: "select",
2165
+ input: true,
2166
+ label: "\u9009\u62E9\u6846",
2167
+ type: "select"
2168
+ },
2169
+ groupName: "\u8868\u5355",
2170
+ icon: "icon--epic--select",
2171
+ sort: 900
2172
+ };
2173
+
2174
+ const Slider = {
2175
+ bindModel: "value",
2176
+ component: async () => (await import('ant-design-vue')).Slider,
2177
+ config: {
2178
+ attribute: [
2179
+ {
2180
+ field: "field",
2181
+ label: "\u5B57\u6BB5\u540D",
2182
+ type: "input"
2183
+ },
2184
+ {
2185
+ field: "label",
2186
+ label: "\u6807\u9898",
2187
+ type: "input"
2188
+ },
2189
+ {
2190
+ componentProps: {
2191
+ style: {
2192
+ width: "100%"
2193
+ }
2194
+ },
2195
+ field: "componentProps.defaultValue",
2196
+ label: "\u9ED8\u8BA4\u503C",
2197
+ type: "slider"
2198
+ },
2199
+ {
2200
+ componentProps: {
2201
+ allowClear: true,
2202
+ options: [
2203
+ {
2204
+ label: "\u5927\u53F7",
2205
+ value: "large"
2206
+ },
2207
+ {
2208
+ label: "\u4E2D\u7B49",
2209
+ value: "middle"
2210
+ },
2211
+ {
2212
+ label: "\u5C0F\u578B",
2213
+ value: "small"
2214
+ }
2215
+ ],
2216
+ placeholder: "\u8BF7\u9009\u62E9"
2217
+ },
2218
+ field: "componentProps.size",
2219
+ label: "\u5C3A\u5BF8",
2220
+ type: "select"
2221
+ },
2222
+ {
2223
+ changeSync: true,
2224
+ field: "componentProps.range",
2225
+ label: "\u8303\u56F4\u9009\u62E9",
2226
+ onChange: ({ value, values }) => {
2227
+ values.componentProps.defaultValue = value ? [0, 100] : 0;
2228
+ },
2229
+ type: "switch"
2230
+ },
2231
+ {
2232
+ field: "componentProps.reverse",
2233
+ label: "\u5012\u8F6C\u8F68\u9053",
2234
+ type: "switch"
2235
+ },
2236
+ {
2237
+ componentProps: {
2238
+ placeholder: "\u8BF7\u8F93\u5165"
2239
+ },
2240
+ field: "componentProps.step",
2241
+ label: "\u6B65\u957F",
2242
+ type: "number"
2243
+ },
2244
+ {
2245
+ componentProps: {
2246
+ placeholder: "\u8BF7\u8F93\u5165"
2247
+ },
2248
+ field: "componentProps.min",
2249
+ label: "\u6700\u5C0F\u503C",
2250
+ type: "number"
2251
+ },
2252
+ {
2253
+ componentProps: {
2254
+ placeholder: "\u8BF7\u8F93\u5165"
2255
+ },
2256
+ field: "componentProps.max",
2257
+ label: "\u6700\u5927\u503C",
2258
+ type: "number"
2259
+ },
2260
+ {
2261
+ field: "componentProps.vertical",
2262
+ label: "\u5782\u76F4\u6A21\u5F0F",
2263
+ type: "switch"
2264
+ },
2265
+ {
2266
+ field: "componentProps.dots",
2267
+ label: "\u663E\u793A\u523B\u5EA6",
2268
+ type: "switch"
2269
+ },
2270
+ // {
2271
+ // label: "持续显示提示",
2272
+ // type: "switch",
2273
+ // field: "componentProps.tooltipOpen",
2274
+ // },
2275
+ {
2276
+ field: "componentProps.disabled",
2277
+ label: "\u7981\u7528",
2278
+ type: "switch"
2279
+ },
2280
+ {
2281
+ field: "componentProps.hidden",
2282
+ label: "\u9690\u85CF",
2283
+ type: "switch"
2284
+ },
2285
+ {
2286
+ componentProps: {
2287
+ ruleType: "number"
2288
+ },
2289
+ description: "\u6821\u9A8C\u89C4\u5219\u9700\u8981\u914D\u5408\u8868\u5355\u4F7F\u7528",
2290
+ field: "rules",
2291
+ label: "\u8868\u5355\u6821\u9A8C",
2292
+ layout: "vertical",
2293
+ type: "ERuleEditor"
2294
+ }
2295
+ ],
2296
+ event: [
2297
+ {
2298
+ description: "\u4E0Emouseup\u89E6\u53D1\u65F6\u673A\u4E00\u81F4",
2299
+ type: "afterChange"
2300
+ },
2301
+ {
2302
+ description: "\u62D6\u62FD\u7ED3\u675F\u6539\u53D8\u503C\u65F6",
2303
+ type: "change"
2304
+ }
2305
+ ]
2306
+ },
2307
+ defaultSchema: {
2308
+ field: "slider",
2309
+ input: true,
2310
+ label: "\u6ED1\u5757",
2311
+ type: "slider"
2312
+ },
2313
+ groupName: "\u8868\u5355",
2314
+ icon: "icon--epic--switches",
2315
+ sort: 930
2316
+ };
2317
+
2318
+ const Switch = {
2319
+ bindModel: "checked",
2320
+ component: async () => (await import('ant-design-vue')).Switch,
2321
+ config: {
2322
+ attribute: [
2323
+ {
2324
+ field: "field",
2325
+ label: "\u5B57\u6BB5\u540D",
2326
+ type: "input"
2327
+ },
2328
+ {
2329
+ field: "label",
2330
+ label: "\u6807\u9898",
2331
+ type: "input"
2332
+ },
2333
+ {
2334
+ field: "componentProps.defaultValue",
2335
+ label: "\u9ED8\u8BA4\u503C",
2336
+ type: "switch"
2337
+ },
2338
+ {
2339
+ componentProps: {
2340
+ placeholder: "\u8BF7\u8F93\u5165"
2341
+ },
2342
+ field: "componentProps.checkedValue",
2343
+ label: "ON\u72B6\u6001\u503C",
2344
+ onChange(e) {
2345
+ setTimeout(() => setDefaultValue(e));
2346
+ },
2347
+ type: "input"
2348
+ },
2349
+ {
2350
+ componentProps: {
2351
+ placeholder: "\u8BF7\u8F93\u5165"
2352
+ },
2353
+ field: "componentProps.unCheckedValue",
2354
+ label: "OFF\u72B6\u6001\u503C",
2355
+ onChange(e) {
2356
+ setTimeout(() => setDefaultValue(e));
2357
+ },
2358
+ type: "input"
2359
+ },
2360
+ {
2361
+ componentProps: {
2362
+ placeholder: "\u8BF7\u8F93\u5165"
2363
+ },
2364
+ field: "componentProps.checkedChildren",
2365
+ label: "ON\u72B6\u6001\u63CF\u8FF0",
2366
+ type: "input"
2367
+ },
2368
+ {
2369
+ componentProps: {
2370
+ placeholder: "\u8BF7\u8F93\u5165"
2371
+ },
2372
+ field: "componentProps.unCheckedChildren",
2373
+ label: "OFF\u72B6\u6001\u63CF\u8FF0",
2374
+ type: "input"
2375
+ },
2376
+ {
2377
+ componentProps: {
2378
+ allowClear: true,
2379
+ options: [
2380
+ {
2381
+ label: "default",
2382
+ value: "default"
2383
+ },
2384
+ {
2385
+ label: "small",
2386
+ value: "small"
2387
+ }
2388
+ ],
2389
+ placeholder: "\u8BF7\u9009\u62E9"
2390
+ },
2391
+ field: "componentProps.size",
2392
+ label: "\u5C3A\u5BF8",
2393
+ type: "select"
2394
+ },
2395
+ {
2396
+ field: "componentProps.disabled",
2397
+ label: "\u7981\u7528",
2398
+ type: "switch"
2399
+ },
2400
+ {
2401
+ field: "componentProps.hidden",
2402
+ label: "\u9690\u85CF",
2403
+ type: "switch"
2404
+ },
2405
+ {
2406
+ componentProps: {
2407
+ ruleType: "boolean"
2408
+ },
2409
+ description: "\u6821\u9A8C\u89C4\u5219\u9700\u8981\u914D\u5408\u8868\u5355\u4F7F\u7528",
2410
+ field: "rules",
2411
+ label: "\u8868\u5355\u6821\u9A8C",
2412
+ layout: "vertical",
2413
+ type: "ERuleEditor"
2414
+ }
2415
+ ],
2416
+ event: [
2417
+ {
2418
+ description: "\u503C\u53D8\u5316\u65F6",
2419
+ type: "change"
2420
+ }
2421
+ ]
2422
+ },
2423
+ defaultSchema: {
2424
+ componentProps: {
2425
+ defaultValue: false
2426
+ },
2427
+ field: "switch",
2428
+ input: true,
2429
+ label: "\u5F00\u5173",
2430
+ type: "switch"
2431
+ },
2432
+ groupName: "\u8868\u5355",
2433
+ icon: "icon--epic--toggle-off-outline",
2434
+ sort: 930
2435
+ };
2436
+ function setDefaultValue(e) {
2437
+ 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;
2441
+ }
2442
+ if (e.values.componentProps.checkedValue === "") {
2443
+ delete e.values.componentProps.checkedValue;
2444
+ }
2445
+ if (e.values.componentProps) {
2446
+ e.values.componentProps.defaultValue = defaultValue;
2447
+ } else {
2448
+ e.values.componentProps = {
2449
+ defaultValue
2450
+ };
2451
+ }
2452
+ }
2453
+
2454
+ const Textarea = {
2455
+ bindModel: "value",
2456
+ component: async () => (await import('ant-design-vue')).Textarea,
2457
+ config: {
2458
+ action: [
2459
+ {
2460
+ description: "\u4F7F input \u83B7\u53D6\u7126\u70B9",
2461
+ type: "focus"
2462
+ },
2463
+ {
2464
+ description: "\u4F7F input \u5931\u53BB\u7126\u70B9",
2465
+ type: "blur"
2466
+ },
2467
+ {
2468
+ description: "\u9009\u4E2D input \u4E2D\u7684\u6587\u5B57",
2469
+ type: "select"
2470
+ }
2471
+ ],
2472
+ attribute: [
2473
+ {
2474
+ field: "field",
2475
+ label: "\u5B57\u6BB5\u540D",
2476
+ type: "input"
2477
+ },
2478
+ {
2479
+ field: "label",
2480
+ label: "\u6807\u9898",
2481
+ type: "input"
2482
+ },
2483
+ {
2484
+ componentProps: {
2485
+ placeholder: "\u8BF7\u8F93\u5165"
2486
+ },
2487
+ field: "componentProps.defaultValue",
2488
+ label: "\u9ED8\u8BA4\u503C",
2489
+ type: "textarea"
2490
+ },
2491
+ {
2492
+ field: "componentProps.placeholder",
2493
+ label: "\u5360\u4F4D\u5185\u5BB9",
2494
+ type: "input"
2495
+ },
2496
+ {
2497
+ componentProps: {
2498
+ placeholder: "\u8BF7\u8F93\u5165"
2499
+ },
2500
+ field: "componentProps.autoSize.minRows",
2501
+ label: "\u6700\u5C0F\u884C\u6570",
2502
+ type: "number"
2503
+ },
2504
+ {
2505
+ componentProps: {
2506
+ placeholder: "\u8BF7\u8F93\u5165"
2507
+ },
2508
+ field: "componentProps.autoSize.maxRows",
2509
+ label: "\u6700\u5927\u884C\u6570",
2510
+ type: "number"
2511
+ },
2512
+ {
2513
+ componentProps: {
2514
+ allowClear: true,
2515
+ options: [
2516
+ {
2517
+ label: "\u5927\u53F7",
2518
+ value: "large"
2519
+ },
2520
+ {
2521
+ label: "\u4E2D\u7B49",
2522
+ value: "middle"
2523
+ },
2524
+ {
2525
+ label: "\u5C0F\u578B",
2526
+ value: "small"
2527
+ }
2528
+ ],
2529
+ placeholder: "\u8BF7\u9009\u62E9"
2530
+ },
2531
+ field: "componentProps.size",
2532
+ label: "\u5C3A\u5BF8",
2533
+ type: "select"
2534
+ },
2535
+ {
2536
+ componentProps: {
2537
+ placeholder: "\u8BF7\u8F93\u5165"
2538
+ },
2539
+ field: "componentProps.maxLength",
2540
+ label: "\u6700\u5927\u8F93\u5165\u957F\u5EA6",
2541
+ type: "number"
2542
+ },
2543
+ {
2544
+ componentProps: {
2545
+ checkedValue: false,
2546
+ unCheckedValue: true
2547
+ },
2548
+ field: "componentProps.bordered",
2549
+ label: "\u65E0\u8FB9\u6846",
2550
+ type: "switch"
2551
+ },
2552
+ {
2553
+ field: "componentProps.showCount",
2554
+ label: "\u7EDF\u8BA1\u5B57\u6570",
2555
+ type: "switch"
2556
+ },
2557
+ {
2558
+ field: "componentProps.allowClear",
2559
+ label: "\u53EF\u6E05\u9664",
2560
+ type: "switch"
2561
+ },
2562
+ {
2563
+ field: "componentProps.disabled",
2564
+ label: "\u7981\u7528",
2565
+ type: "switch"
2566
+ },
2567
+ {
2568
+ field: "componentProps.hidden",
2569
+ label: "\u9690\u85CF",
2570
+ type: "switch"
2571
+ },
2572
+ {
2573
+ description: "\u6821\u9A8C\u89C4\u5219\u9700\u8981\u914D\u5408\u8868\u5355\u4F7F\u7528",
2574
+ field: "rules",
2575
+ label: "\u8868\u5355\u6821\u9A8C",
2576
+ layout: "vertical",
2577
+ type: "ERuleEditor"
2578
+ }
2579
+ ],
2580
+ event: [
2581
+ {
2582
+ description: "\u8F93\u5165\u503C",
2583
+ type: "input"
2584
+ },
2585
+ {
2586
+ description: "\u503C\u4FEE\u6539",
2587
+ type: "change"
2588
+ },
2589
+ {
2590
+ description: "\u6309\u4E0B\u56DE\u8F66\u7684\u56DE\u8C03",
2591
+ type: "pressEnter"
2592
+ },
2593
+ {
2594
+ description: "\u83B7\u53D6\u7126\u70B9",
2595
+ type: "focus"
2596
+ },
2597
+ {
2598
+ description: "\u5931\u53BB\u7126\u70B9",
2599
+ type: "blur"
2600
+ }
2601
+ ]
2602
+ },
2603
+ defaultSchema: {
2604
+ componentProps: {
2605
+ placeholder: "\u8BF7\u8F93\u5165"
2606
+ },
2607
+ field: "textarea",
2608
+ input: true,
2609
+ label: "\u6587\u672C\u57DF",
2610
+ type: "textarea"
2611
+ },
2612
+ groupName: "\u8868\u5355",
2613
+ icon: "icon--epic--edit-square-outline-rounded",
2614
+ sort: 705
2615
+ };
2616
+
2617
+ const TimePicker = {
2618
+ bindModel: "value",
2619
+ component: async () => (await import('ant-design-vue')).TimePicker,
2620
+ config: {
2621
+ attribute: [
2622
+ {
2623
+ field: "field",
2624
+ label: "\u5B57\u6BB5\u540D",
2625
+ type: "input"
2626
+ },
2627
+ {
2628
+ field: "label",
2629
+ label: "\u6807\u9898",
2630
+ type: "input"
2631
+ },
2632
+ {
2633
+ field: "componentProps.defaultValue",
2634
+ label: "\u9ED8\u8BA4\u503C",
2635
+ type: "time"
2636
+ },
2637
+ {
2638
+ field: "componentProps.placeholder",
2639
+ label: "\u5360\u4F4D\u5185\u5BB9",
2640
+ type: "input"
2641
+ },
2642
+ {
2643
+ componentProps: {
2644
+ placeholder: "\u8BF7\u8F93\u5165"
2645
+ },
2646
+ field: "componentProps.format",
2647
+ label: "\u663E\u793A\u683C\u5F0F",
2648
+ type: "input"
2649
+ },
2650
+ {
2651
+ componentProps: {
2652
+ placeholder: "\u8BF7\u8F93\u5165"
2653
+ },
2654
+ field: "componentProps.valueFormat",
2655
+ label: "\u6570\u636E\u683C\u5F0F",
2656
+ type: "input"
2657
+ },
2658
+ {
2659
+ componentProps: {
2660
+ allowClear: true,
2661
+ options: [
2662
+ {
2663
+ label: "\u5927\u53F7",
2664
+ value: "large"
2665
+ },
2666
+ {
2667
+ label: "\u4E2D\u7B49",
2668
+ value: "middle"
2669
+ },
2670
+ {
2671
+ label: "\u5C0F\u578B",
2672
+ value: "small"
2673
+ }
2674
+ ],
2675
+ placeholder: "\u8BF7\u9009\u62E9"
2676
+ },
2677
+ field: "componentProps.size",
2678
+ label: "\u5C3A\u5BF8",
2679
+ type: "select"
2680
+ },
2681
+ {
2682
+ componentProps: {
2683
+ placeholder: "\u8BF7\u8F93\u5165"
2684
+ },
2685
+ field: "componentProps.hourStep",
2686
+ label: "\u5C0F\u65F6\u9009\u9879\u95F4\u9694",
2687
+ type: "number"
2688
+ },
2689
+ {
2690
+ componentProps: {
2691
+ placeholder: "\u8BF7\u8F93\u5165"
2692
+ },
2693
+ field: "componentProps.minuteStep",
2694
+ label: "\u5206\u949F\u9009\u9879\u95F4\u9694",
2695
+ type: "number"
2696
+ },
2697
+ {
2698
+ componentProps: {
2699
+ placeholder: "\u8BF7\u8F93\u5165"
2700
+ },
2701
+ field: "componentProps.secondStep",
2702
+ label: "\u79D2\u9009\u9879\u95F4\u9694",
2703
+ type: "number"
2704
+ },
2705
+ {
2706
+ componentProps: {
2707
+ allowClear: true,
2708
+ options: [
2709
+ {
2710
+ label: "bottomLeft",
2711
+ value: "bottomLeft"
2712
+ },
2713
+ {
2714
+ label: "bottomRight",
2715
+ value: "bottomRight"
2716
+ },
2717
+ {
2718
+ label: "topLeft",
2719
+ value: "topLeft"
2720
+ },
2721
+ {
2722
+ label: "topRight",
2723
+ value: "topRight"
2724
+ }
2725
+ ],
2726
+ placeholder: "\u8BF7\u9009\u62E9"
2727
+ },
2728
+ field: "componentProps.placement",
2729
+ label: "\u5F39\u51FA\u6846\u4F4D\u7F6E",
2730
+ type: "select"
2731
+ },
2732
+ {
2733
+ changeSync: true,
2734
+ field: "componentProps.use12Hours",
2735
+ label: "12\u5C0F\u65F6\u5236",
2736
+ onChange({ value, values }) {
2737
+ values.componentProps.defaultValue = null;
2738
+ if (value) {
2739
+ values.componentProps.format = "h:mm:ss a";
2740
+ values.componentProps.valueFormat = "h:mm:ss a";
2741
+ } else {
2742
+ values.componentProps.format = "HH:mm:ss";
2743
+ values.componentProps.valueFormat = "HH:mm:ss";
2744
+ }
2745
+ },
2746
+ type: "switch"
2747
+ },
2748
+ {
2749
+ componentProps: {
2750
+ checkedValue: false,
2751
+ unCheckedValue: true
2752
+ },
2753
+ field: "componentProps.bordered",
2754
+ label: "\u65E0\u8FB9\u6846",
2755
+ type: "switch"
2756
+ },
2757
+ {
2758
+ field: "componentProps.inputReadOnly",
2759
+ label: "\u7981\u6B62\u952E\u76D8\u8F93\u5165",
2760
+ type: "switch"
2761
+ },
2762
+ {
2763
+ field: "componentProps.allowClear",
2764
+ label: "\u53EF\u6E05\u7A7A",
2765
+ type: "switch"
2766
+ },
2767
+ {
2768
+ field: "componentProps.disabled",
2769
+ label: "\u7981\u7528",
2770
+ type: "switch"
2771
+ },
2772
+ {
2773
+ field: "componentProps.hidden",
2774
+ label: "\u9690\u85CF",
2775
+ type: "switch"
2776
+ },
2777
+ {
2778
+ description: "\u6821\u9A8C\u89C4\u5219\u9700\u8981\u914D\u5408\u8868\u5355\u4F7F\u7528",
2779
+ field: "rules",
2780
+ label: "\u8868\u5355\u6821\u9A8C",
2781
+ layout: "vertical",
2782
+ type: "ERuleEditor"
2783
+ }
2784
+ ],
2785
+ event: [
2786
+ {
2787
+ description: "\u503C\u53D8\u5316\u65F6",
2788
+ type: "change"
2789
+ }
2790
+ ]
2791
+ },
2792
+ defaultSchema: {
2793
+ componentProps: {
2794
+ format: "HH:mm:ss",
2795
+ placeholder: "\u8BF7\u8F93\u5165",
2796
+ valueFormat: "HH:mm:ss"
2797
+ },
2798
+ field: "time",
2799
+ input: true,
2800
+ label: "\u65F6\u95F4\u9009\u62E9\u5668",
2801
+ type: "time"
2802
+ },
2803
+ groupName: "\u8868\u5355",
2804
+ icon: "icon--epic--time-line",
2805
+ sort: 920
2806
+ };
2807
+
2808
+ const UploadFile = {
2809
+ bindModel: "modelValue",
2810
+ component: () => import('./chunks/uploadFile.cjs'),
2811
+ config: {
2812
+ attribute: [
2813
+ {
2814
+ field: "field",
2815
+ label: "\u5B57\u6BB5\u540D",
2816
+ type: "input"
2817
+ },
2818
+ {
2819
+ field: "label",
2820
+ label: "\u6807\u9898",
2821
+ type: "input"
2822
+ },
2823
+ {
2824
+ field: "componentProps.action",
2825
+ label: "\u8BF7\u6C42\u5730\u5740",
2826
+ type: "input"
2827
+ },
2828
+ {
2829
+ componentProps: {
2830
+ allowClear: true,
2831
+ options: [
2832
+ {
2833
+ label: "text",
2834
+ value: "text"
2835
+ },
2836
+ {
2837
+ label: "picture",
2838
+ value: "picture"
2839
+ }
2840
+ ],
2841
+ placeholder: "\u8BF7\u9009\u62E9"
2842
+ },
2843
+ field: "componentProps.listType",
2844
+ label: "\u5217\u8868\u6837\u5F0F",
2845
+ type: "select"
2846
+ },
2847
+ {
2848
+ field: "componentProps.multiple",
2849
+ label: "\u591A\u9009",
2850
+ type: "switch"
2851
+ },
2852
+ {
2853
+ componentProps: {
2854
+ min: 0,
2855
+ placeholder: "\u8BF7\u8F93\u5165"
2856
+ },
2857
+ field: "componentProps.maxCount",
2858
+ label: "\u5141\u8BB8\u4E0A\u4F20\u6700\u5927\u6570\u91CF",
2859
+ type: "number"
2860
+ },
2861
+ {
2862
+ field: "componentProps.disabled",
2863
+ label: "\u7981\u7528",
2864
+ type: "switch"
2865
+ },
2866
+ {
2867
+ field: "componentProps.hidden",
2868
+ label: "\u9690\u85CF",
2869
+ type: "switch"
2870
+ },
2871
+ {
2872
+ componentProps: {
2873
+ ruleType: "string"
2874
+ },
2875
+ description: "\u6821\u9A8C\u89C4\u5219\u9700\u8981\u914D\u5408\u8868\u5355\u4F7F\u7528",
2876
+ field: "rules",
2877
+ label: "\u8868\u5355\u6821\u9A8C",
2878
+ layout: "vertical",
2879
+ type: "ERuleEditor"
2880
+ }
2881
+ ]
2882
+ },
2883
+ defaultSchema: {
2884
+ componentProps: {
2885
+ action: "https://examples.epicjs.cn/epic-mock/common/upload"
2886
+ },
2887
+ field: "uploadFile",
2888
+ input: true,
2889
+ label: "\u4E0A\u4F20\u6587\u4EF6",
2890
+ type: "upload-file"
2891
+ },
2892
+ groupName: "\u8868\u5355",
2893
+ icon: "icon--epic--upload-rounded",
2894
+ sort: 920
2895
+ };
2896
+
2897
+ const UploadImage = {
2898
+ bindModel: "modelValue",
2899
+ component: () => import('./chunks/uploadImage.cjs'),
2900
+ config: {
2901
+ attribute: [
2902
+ {
2903
+ field: "field",
2904
+ label: "\u5B57\u6BB5\u540D",
2905
+ type: "input"
2906
+ },
2907
+ {
2908
+ field: "label",
2909
+ label: "\u6807\u9898",
2910
+ type: "input"
2911
+ },
2912
+ {
2913
+ field: "componentProps.action",
2914
+ label: "\u8BF7\u6C42\u5730\u5740",
2915
+ type: "input"
2916
+ },
2917
+ {
2918
+ field: "componentProps.multiple",
2919
+ label: "\u591A\u9009",
2920
+ type: "switch"
2921
+ },
2922
+ {
2923
+ componentProps: {
2924
+ min: 0,
2925
+ placeholder: "\u8BF7\u8F93\u5165"
2926
+ },
2927
+ field: "componentProps.maxCount",
2928
+ label: "\u5141\u8BB8\u4E0A\u4F20\u6700\u5927\u6570\u91CF",
2929
+ type: "number"
2930
+ },
2931
+ {
2932
+ field: "componentProps.disabled",
2933
+ label: "\u7981\u7528",
2934
+ type: "switch"
2935
+ },
2936
+ {
2937
+ field: "componentProps.hidden",
2938
+ label: "\u9690\u85CF",
2939
+ type: "switch"
2940
+ },
2941
+ {
2942
+ componentProps: {
2943
+ ruleType: "string"
2944
+ },
2945
+ description: "\u6821\u9A8C\u89C4\u5219\u9700\u8981\u914D\u5408\u8868\u5355\u4F7F\u7528",
2946
+ field: "rules",
2947
+ label: "\u8868\u5355\u6821\u9A8C",
2948
+ layout: "vertical",
2949
+ type: "ERuleEditor"
2950
+ }
2951
+ ]
2952
+ },
2953
+ defaultSchema: {
2954
+ componentProps: {
2955
+ action: "https://examples.epicjs.cn/epic-mock/common/upload"
2956
+ },
2957
+ field: "uploadImage",
2958
+ input: true,
2959
+ label: "\u4E0A\u4F20\u56FE\u7247",
2960
+ type: "upload-image"
2961
+ },
2962
+ groupName: "\u8868\u5355",
2963
+ icon: "icon--epic--imagesmode-outline-rounded",
2964
+ sort: 920
2965
+ };
2966
+
2967
+ function setupAntd(pluginManager = epicDesigner.pluginManager) {
2968
+ var _a;
2969
+ const versionArray = antDesignVue.version.split(".");
2970
+ const firstNumber = Number.parseInt(versionArray[0]);
2971
+ const style = document.createElement("style");
2972
+ if (firstNumber > 3) {
2973
+ const css = `
2974
+ .epic-modal-ant .epic-modal-main {
2975
+ padding: 4px 12px 12px;
2976
+ }
2977
+ .epic-modal-ant .ant-modal-title {
2978
+ padding: 16px 16px 0px;
2979
+ }
2980
+ .epic-modal-ant .ant-modal-content {
2981
+ padding: 0px;
2982
+ }`;
2983
+ style.append(document.createTextNode(css));
2984
+ document.head.append(style);
2985
+ } else {
2986
+ Form.config.attribute = (_a = Form.config.attribute) == null ? void 0 : _a.filter(
2987
+ (item) => item.label !== "\u7981\u7528"
2988
+ );
2989
+ }
2990
+ pluginManager.component(
2991
+ "Collapse",
2992
+ async () => (await import('ant-design-vue')).Collapse
2993
+ );
2994
+ pluginManager.component(
2995
+ "CollapseItem",
2996
+ async () => (await import('ant-design-vue')).CollapsePanel
2997
+ );
2998
+ pluginManager.component(
2999
+ "Tabs",
3000
+ async () => (await import('ant-design-vue')).Tabs
3001
+ );
3002
+ pluginManager.component(
3003
+ "TabPane",
3004
+ async () => (await import('ant-design-vue')).TabPane
3005
+ );
3006
+ const componentArray = [
3007
+ Form,
3008
+ FormItem,
3009
+ Input,
3010
+ Textarea,
3011
+ InputNumber,
3012
+ InputPassword,
3013
+ Radio,
3014
+ Checkbox,
3015
+ Select,
3016
+ Slider,
3017
+ TimePicker,
3018
+ DatePicker,
3019
+ Cascader,
3020
+ Switch,
3021
+ UploadImage,
3022
+ UploadFile,
3023
+ colorPicker,
3024
+ Button,
3025
+ Card,
3026
+ Row,
3027
+ Col,
3028
+ Modal
3029
+ ];
3030
+ vue.watchEffect(() => {
3031
+ UploadImage.defaultSchema.componentProps.action = pluginManager.global.uploadImage;
3032
+ UploadFile.defaultSchema.componentProps.action = pluginManager.global.uploadFile;
3033
+ });
3034
+ componentArray.forEach((item) => {
3035
+ pluginManager.registerComponent(item);
3036
+ pluginManager.addBaseComponentTypes(item.defaultSchema.type);
3037
+ });
3038
+ pluginManager.global.$message = {
3039
+ error: antDesignVue.message.error,
3040
+ info: antDesignVue.message.info,
3041
+ success: antDesignVue.message.success,
3042
+ warning: antDesignVue.message.warning
3043
+ };
3044
+ pluginManager.setInitialized(true);
3045
+ }
3046
+
3047
+ exports.setupAntd = setupAntd;