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