@next-bricks/form 1.20.0 → 1.20.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bricks.json +33 -33
- package/dist/chunks/1225.9ddafbd7.js +3 -0
- package/dist/chunks/1225.9ddafbd7.js.map +1 -0
- package/dist/chunks/{eo-textarea.271d45e2.js → eo-textarea.4650c5fa.js} +3 -3
- package/dist/chunks/eo-textarea.4650c5fa.js.map +1 -0
- package/dist/chunks/{main.86c437b4.js → main.a864cfbd.js} +2 -2
- package/dist/chunks/{main.86c437b4.js.map → main.a864cfbd.js.map} +1 -1
- package/dist/examples.json +10 -10
- package/dist/{index.bf336f12.js → index.ee686eae.js} +2 -2
- package/dist/{index.bf336f12.js.map → index.ee686eae.js.map} +1 -1
- package/dist/manifest.json +380 -380
- package/dist/types.json +1197 -1197
- package/package.json +2 -2
- package/dist/chunks/1225.1cb4bdb2.js +0 -3
- package/dist/chunks/1225.1cb4bdb2.js.map +0 -1
- package/dist/chunks/eo-textarea.271d45e2.js.map +0 -1
- /package/dist/chunks/{1225.1cb4bdb2.js.LICENSE.txt → 1225.9ddafbd7.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-textarea.271d45e2.js.LICENSE.txt → eo-textarea.4650c5fa.js.LICENSE.txt} +0 -0
package/dist/manifest.json
CHANGED
|
@@ -3,114 +3,6 @@
|
|
|
3
3
|
"package": "@next-bricks/form",
|
|
4
4
|
"name": "form",
|
|
5
5
|
"bricks": [
|
|
6
|
-
{
|
|
7
|
-
"name": "eo-textarea",
|
|
8
|
-
"alias": [
|
|
9
|
-
"form.general-textarea"
|
|
10
|
-
],
|
|
11
|
-
"properties": [
|
|
12
|
-
{
|
|
13
|
-
"name": "name",
|
|
14
|
-
"description": "字段名称",
|
|
15
|
-
"type": "string"
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
"name": "label",
|
|
19
|
-
"description": "标签文字",
|
|
20
|
-
"type": "string"
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
"name": "value",
|
|
24
|
-
"description": "值",
|
|
25
|
-
"type": "string"
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
"name": "placeholder",
|
|
29
|
-
"description": "占位说明",
|
|
30
|
-
"type": "string"
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"name": "disabled",
|
|
34
|
-
"description": "是否禁用",
|
|
35
|
-
"type": "boolean"
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
"name": "minLength",
|
|
39
|
-
"description": "最小长度",
|
|
40
|
-
"type": "number"
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
"name": "maxLength",
|
|
44
|
-
"description": "最大长度",
|
|
45
|
-
"type": "number"
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
"name": "autoSize",
|
|
49
|
-
"description": "大小自适应",
|
|
50
|
-
"attribute": false,
|
|
51
|
-
"type": "AutoSize"
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
"name": "required",
|
|
55
|
-
"description": "是否必填",
|
|
56
|
-
"type": "boolean"
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
"name": "max",
|
|
60
|
-
"description": "表单校验最大长度",
|
|
61
|
-
"type": "number"
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
"name": "min",
|
|
65
|
-
"description": "表单校验最小长度",
|
|
66
|
-
"type": "number"
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
"name": "message",
|
|
70
|
-
"description": "校验信息",
|
|
71
|
-
"attribute": false,
|
|
72
|
-
"type": "Record<string, string>"
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
"name": "textareaStyle",
|
|
76
|
-
"description": "自定义样式",
|
|
77
|
-
"attribute": false,
|
|
78
|
-
"type": "React.CSSProperties"
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
"name": "variant",
|
|
82
|
-
"description": "变体\n\n- muted: 在 themeVariant 为 elevo 时可用,设置时输入框没有 box-shadow",
|
|
83
|
-
"type": "\"default\" | \"muted\""
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
"name": "themeVariant",
|
|
87
|
-
"description": "主题变体",
|
|
88
|
-
"type": "\"default\" | \"elevo\""
|
|
89
|
-
}
|
|
90
|
-
],
|
|
91
|
-
"events": [
|
|
92
|
-
{
|
|
93
|
-
"name": "change",
|
|
94
|
-
"description": "",
|
|
95
|
-
"detail": {
|
|
96
|
-
"description": null,
|
|
97
|
-
"type": "string"
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
],
|
|
101
|
-
"slots": [],
|
|
102
|
-
"methods": [
|
|
103
|
-
{
|
|
104
|
-
"name": "focusTextarea",
|
|
105
|
-
"params": [],
|
|
106
|
-
"description": "focus",
|
|
107
|
-
"returns": {}
|
|
108
|
-
}
|
|
109
|
-
],
|
|
110
|
-
"parts": [],
|
|
111
|
-
"description": "通用多行文本输入框构件",
|
|
112
|
-
"category": "form-input-basic"
|
|
113
|
-
},
|
|
114
6
|
{
|
|
115
7
|
"name": "eo-form",
|
|
116
8
|
"alias": [
|
|
@@ -257,79 +149,83 @@
|
|
|
257
149
|
"category": "form-input-basic"
|
|
258
150
|
},
|
|
259
151
|
{
|
|
260
|
-
"name": "eo-
|
|
152
|
+
"name": "eo-textarea",
|
|
261
153
|
"alias": [
|
|
262
|
-
"form.general-
|
|
154
|
+
"form.general-textarea"
|
|
263
155
|
],
|
|
264
156
|
"properties": [
|
|
265
157
|
{
|
|
266
158
|
"name": "name",
|
|
267
|
-
"description": "
|
|
159
|
+
"description": "字段名称",
|
|
268
160
|
"type": "string"
|
|
269
161
|
},
|
|
270
162
|
{
|
|
271
163
|
"name": "label",
|
|
272
|
-
"description": "
|
|
164
|
+
"description": "标签文字",
|
|
273
165
|
"type": "string"
|
|
274
166
|
},
|
|
275
167
|
{
|
|
276
|
-
"name": "
|
|
277
|
-
"description": "
|
|
278
|
-
"
|
|
279
|
-
"attribute": false,
|
|
280
|
-
"type": "GeneralOption[]"
|
|
168
|
+
"name": "value",
|
|
169
|
+
"description": "值",
|
|
170
|
+
"type": "string"
|
|
281
171
|
},
|
|
282
172
|
{
|
|
283
|
-
"name": "
|
|
284
|
-
"description": "
|
|
285
|
-
"
|
|
286
|
-
"type": "any"
|
|
173
|
+
"name": "placeholder",
|
|
174
|
+
"description": "占位说明",
|
|
175
|
+
"type": "string"
|
|
287
176
|
},
|
|
288
177
|
{
|
|
289
|
-
"name": "
|
|
290
|
-
"description": "
|
|
178
|
+
"name": "disabled",
|
|
179
|
+
"description": "是否禁用",
|
|
291
180
|
"type": "boolean"
|
|
292
181
|
},
|
|
293
182
|
{
|
|
294
|
-
"name": "
|
|
295
|
-
"description": "
|
|
183
|
+
"name": "minLength",
|
|
184
|
+
"description": "最小长度",
|
|
185
|
+
"type": "number"
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"name": "maxLength",
|
|
189
|
+
"description": "最大长度",
|
|
190
|
+
"type": "number"
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"name": "autoSize",
|
|
194
|
+
"description": "大小自适应",
|
|
296
195
|
"attribute": false,
|
|
297
|
-
"type": "
|
|
196
|
+
"type": "AutoSize"
|
|
298
197
|
},
|
|
299
198
|
{
|
|
300
|
-
"name": "
|
|
301
|
-
"description": "
|
|
199
|
+
"name": "required",
|
|
200
|
+
"description": "是否必填",
|
|
302
201
|
"type": "boolean"
|
|
303
202
|
},
|
|
304
203
|
{
|
|
305
|
-
"name": "
|
|
306
|
-
"description": "
|
|
307
|
-
"
|
|
308
|
-
"type": "RadioType"
|
|
204
|
+
"name": "max",
|
|
205
|
+
"description": "表单校验最大长度",
|
|
206
|
+
"type": "number"
|
|
309
207
|
},
|
|
310
208
|
{
|
|
311
|
-
"name": "
|
|
312
|
-
"description": "
|
|
313
|
-
"
|
|
314
|
-
"type": "UIType"
|
|
209
|
+
"name": "min",
|
|
210
|
+
"description": "表单校验最小长度",
|
|
211
|
+
"type": "number"
|
|
315
212
|
},
|
|
316
213
|
{
|
|
317
|
-
"name": "
|
|
318
|
-
"description": "
|
|
319
|
-
"
|
|
320
|
-
"type": "
|
|
214
|
+
"name": "message",
|
|
215
|
+
"description": "校验信息",
|
|
216
|
+
"attribute": false,
|
|
217
|
+
"type": "Record<string, string>"
|
|
321
218
|
},
|
|
322
219
|
{
|
|
323
|
-
"name": "
|
|
324
|
-
"description": "
|
|
220
|
+
"name": "textareaStyle",
|
|
221
|
+
"description": "自定义样式",
|
|
325
222
|
"attribute": false,
|
|
326
223
|
"type": "React.CSSProperties"
|
|
327
224
|
},
|
|
328
225
|
{
|
|
329
|
-
"name": "
|
|
330
|
-
"description": "
|
|
331
|
-
"
|
|
332
|
-
"type": "UseSingleBrickConf"
|
|
226
|
+
"name": "variant",
|
|
227
|
+
"description": "变体\n\n- muted: 在 themeVariant 为 elevo 时可用,设置时输入框没有 box-shadow",
|
|
228
|
+
"type": "\"default\" | \"muted\""
|
|
333
229
|
},
|
|
334
230
|
{
|
|
335
231
|
"name": "themeVariant",
|
|
@@ -340,23 +236,24 @@
|
|
|
340
236
|
"events": [
|
|
341
237
|
{
|
|
342
238
|
"name": "change",
|
|
343
|
-
"description": "
|
|
344
|
-
"detail": {
|
|
345
|
-
"type": "GeneralComplexOption | undefined"
|
|
346
|
-
}
|
|
347
|
-
},
|
|
348
|
-
{
|
|
349
|
-
"name": "options.change",
|
|
350
|
-
"description": "选项列表变化事件",
|
|
239
|
+
"description": "",
|
|
351
240
|
"detail": {
|
|
352
|
-
"
|
|
241
|
+
"description": null,
|
|
242
|
+
"type": "string"
|
|
353
243
|
}
|
|
354
244
|
}
|
|
355
245
|
],
|
|
356
246
|
"slots": [],
|
|
357
|
-
"methods": [
|
|
247
|
+
"methods": [
|
|
248
|
+
{
|
|
249
|
+
"name": "focusTextarea",
|
|
250
|
+
"params": [],
|
|
251
|
+
"description": "focus",
|
|
252
|
+
"returns": {}
|
|
253
|
+
}
|
|
254
|
+
],
|
|
358
255
|
"parts": [],
|
|
359
|
-
"description": "
|
|
256
|
+
"description": "通用多行文本输入框构件",
|
|
360
257
|
"category": "form-input-basic"
|
|
361
258
|
},
|
|
362
259
|
{
|
|
@@ -527,41 +424,79 @@
|
|
|
527
424
|
"category": "form-input-basic"
|
|
528
425
|
},
|
|
529
426
|
{
|
|
530
|
-
"name": "eo-
|
|
427
|
+
"name": "eo-radio",
|
|
531
428
|
"alias": [
|
|
532
|
-
"form.
|
|
429
|
+
"form.general-radio"
|
|
533
430
|
],
|
|
534
431
|
"properties": [
|
|
535
432
|
{
|
|
536
|
-
"name": "
|
|
537
|
-
"description": "
|
|
538
|
-
"default": "\"提交\"",
|
|
433
|
+
"name": "name",
|
|
434
|
+
"description": "下拉框字段名",
|
|
539
435
|
"type": "string"
|
|
540
436
|
},
|
|
541
437
|
{
|
|
542
|
-
"name": "
|
|
543
|
-
"description": "
|
|
438
|
+
"name": "label",
|
|
439
|
+
"description": "单选框字段说明",
|
|
544
440
|
"type": "string"
|
|
545
441
|
},
|
|
546
442
|
{
|
|
547
|
-
"name": "
|
|
548
|
-
"description": "
|
|
443
|
+
"name": "options",
|
|
444
|
+
"description": "单选框选项表",
|
|
445
|
+
"required": true,
|
|
446
|
+
"attribute": false,
|
|
447
|
+
"type": "GeneralOption[]"
|
|
448
|
+
},
|
|
449
|
+
{
|
|
450
|
+
"name": "value",
|
|
451
|
+
"description": "单选框当前选中始值",
|
|
452
|
+
"attribute": false,
|
|
453
|
+
"type": "any"
|
|
454
|
+
},
|
|
455
|
+
{
|
|
456
|
+
"name": "required",
|
|
457
|
+
"description": "是否必填",
|
|
549
458
|
"type": "boolean"
|
|
550
459
|
},
|
|
551
460
|
{
|
|
552
|
-
"name": "
|
|
553
|
-
"description": "
|
|
461
|
+
"name": "message",
|
|
462
|
+
"description": "校验文本信息",
|
|
463
|
+
"attribute": false,
|
|
464
|
+
"type": "Record<string, string>"
|
|
465
|
+
},
|
|
466
|
+
{
|
|
467
|
+
"name": "disabled",
|
|
468
|
+
"description": "是否禁用",
|
|
554
469
|
"type": "boolean"
|
|
555
470
|
},
|
|
556
471
|
{
|
|
557
|
-
"name": "
|
|
558
|
-
"description": "
|
|
559
|
-
"
|
|
472
|
+
"name": "type",
|
|
473
|
+
"description": "单选框样式类型",
|
|
474
|
+
"default": "\"default\"",
|
|
475
|
+
"type": "RadioType"
|
|
560
476
|
},
|
|
561
477
|
{
|
|
562
|
-
"name": "
|
|
563
|
-
"description": "
|
|
564
|
-
"
|
|
478
|
+
"name": "ui",
|
|
479
|
+
"description": "UI样式",
|
|
480
|
+
"default": "\"default\"",
|
|
481
|
+
"type": "UIType"
|
|
482
|
+
},
|
|
483
|
+
{
|
|
484
|
+
"name": "size",
|
|
485
|
+
"description": "大小,只对按钮样式生效",
|
|
486
|
+
"default": "\"medium\"",
|
|
487
|
+
"type": "ComponentSize"
|
|
488
|
+
},
|
|
489
|
+
{
|
|
490
|
+
"name": "customStyle",
|
|
491
|
+
"description": "自定义radio的外层样式",
|
|
492
|
+
"attribute": false,
|
|
493
|
+
"type": "React.CSSProperties"
|
|
494
|
+
},
|
|
495
|
+
{
|
|
496
|
+
"name": "useBrick",
|
|
497
|
+
"description": "自定义radio的内容",
|
|
498
|
+
"attribute": false,
|
|
499
|
+
"type": "UseSingleBrickConf"
|
|
565
500
|
},
|
|
566
501
|
{
|
|
567
502
|
"name": "themeVariant",
|
|
@@ -571,24 +506,24 @@
|
|
|
571
506
|
],
|
|
572
507
|
"events": [
|
|
573
508
|
{
|
|
574
|
-
"name": "
|
|
575
|
-
"description": "
|
|
509
|
+
"name": "change",
|
|
510
|
+
"description": "值变化事件",
|
|
576
511
|
"detail": {
|
|
577
|
-
"type": "
|
|
512
|
+
"type": "GeneralComplexOption | undefined"
|
|
578
513
|
}
|
|
579
514
|
},
|
|
580
515
|
{
|
|
581
|
-
"name": "
|
|
582
|
-
"description": "
|
|
516
|
+
"name": "options.change",
|
|
517
|
+
"description": "选项列表变化事件",
|
|
583
518
|
"detail": {
|
|
584
|
-
"type": "
|
|
519
|
+
"type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
|
|
585
520
|
}
|
|
586
521
|
}
|
|
587
522
|
],
|
|
588
523
|
"slots": [],
|
|
589
524
|
"methods": [],
|
|
590
525
|
"parts": [],
|
|
591
|
-
"description": "
|
|
526
|
+
"description": "通用单选构件",
|
|
592
527
|
"category": "form-input-basic"
|
|
593
528
|
},
|
|
594
529
|
{
|
|
@@ -688,6 +623,71 @@
|
|
|
688
623
|
"description": "表单复选框构件",
|
|
689
624
|
"category": "form-input-basic"
|
|
690
625
|
},
|
|
626
|
+
{
|
|
627
|
+
"name": "eo-submit-buttons",
|
|
628
|
+
"alias": [
|
|
629
|
+
"form.submit-buttons"
|
|
630
|
+
],
|
|
631
|
+
"properties": [
|
|
632
|
+
{
|
|
633
|
+
"name": "submitText",
|
|
634
|
+
"description": "提交按钮的文字",
|
|
635
|
+
"default": "\"提交\"",
|
|
636
|
+
"type": "string"
|
|
637
|
+
},
|
|
638
|
+
{
|
|
639
|
+
"name": "cancelText",
|
|
640
|
+
"description": "取消按钮的文字,不设置则不显示取消按钮",
|
|
641
|
+
"type": "string"
|
|
642
|
+
},
|
|
643
|
+
{
|
|
644
|
+
"name": "disableAfterClick",
|
|
645
|
+
"description": "点击确定按钮后自动禁用",
|
|
646
|
+
"type": "boolean"
|
|
647
|
+
},
|
|
648
|
+
{
|
|
649
|
+
"name": "submitDisabled",
|
|
650
|
+
"description": "禁用提交按钮",
|
|
651
|
+
"type": "boolean"
|
|
652
|
+
},
|
|
653
|
+
{
|
|
654
|
+
"name": "submitType",
|
|
655
|
+
"description": "提交按钮类型",
|
|
656
|
+
"type": "ButtonType"
|
|
657
|
+
},
|
|
658
|
+
{
|
|
659
|
+
"name": "cancelType",
|
|
660
|
+
"description": "取消按钮类型",
|
|
661
|
+
"type": "ButtonType"
|
|
662
|
+
},
|
|
663
|
+
{
|
|
664
|
+
"name": "themeVariant",
|
|
665
|
+
"description": "主题变体",
|
|
666
|
+
"type": "\"default\" | \"elevo\""
|
|
667
|
+
}
|
|
668
|
+
],
|
|
669
|
+
"events": [
|
|
670
|
+
{
|
|
671
|
+
"name": "submit",
|
|
672
|
+
"description": "点击提交按钮触发的事件",
|
|
673
|
+
"detail": {
|
|
674
|
+
"type": "void"
|
|
675
|
+
}
|
|
676
|
+
},
|
|
677
|
+
{
|
|
678
|
+
"name": "cancel",
|
|
679
|
+
"description": "点击取消按钮触发的事件",
|
|
680
|
+
"detail": {
|
|
681
|
+
"type": "void"
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
],
|
|
685
|
+
"slots": [],
|
|
686
|
+
"methods": [],
|
|
687
|
+
"parts": [],
|
|
688
|
+
"description": "表单提交按钮",
|
|
689
|
+
"category": "form-input-basic"
|
|
690
|
+
},
|
|
691
691
|
{
|
|
692
692
|
"name": "eo-dynamic-form-item",
|
|
693
693
|
"alias": [
|
|
@@ -990,80 +990,6 @@
|
|
|
990
990
|
"description": "上传图片构件",
|
|
991
991
|
"category": "form-input-basic"
|
|
992
992
|
},
|
|
993
|
-
{
|
|
994
|
-
"name": "eo-switch",
|
|
995
|
-
"alias": [
|
|
996
|
-
"form.general-switch"
|
|
997
|
-
],
|
|
998
|
-
"properties": [
|
|
999
|
-
{
|
|
1000
|
-
"name": "name",
|
|
1001
|
-
"description": "字段名称",
|
|
1002
|
-
"type": "string"
|
|
1003
|
-
},
|
|
1004
|
-
{
|
|
1005
|
-
"name": "label",
|
|
1006
|
-
"description": "字段文本",
|
|
1007
|
-
"type": "string"
|
|
1008
|
-
},
|
|
1009
|
-
{
|
|
1010
|
-
"name": "value",
|
|
1011
|
-
"description": "初始值",
|
|
1012
|
-
"type": "boolean"
|
|
1013
|
-
},
|
|
1014
|
-
{
|
|
1015
|
-
"name": "disabled",
|
|
1016
|
-
"description": "是否禁用",
|
|
1017
|
-
"type": "boolean"
|
|
1018
|
-
},
|
|
1019
|
-
{
|
|
1020
|
-
"name": "size",
|
|
1021
|
-
"description": "按钮大小,目前只支持small和非small两种大小。",
|
|
1022
|
-
"type": "ComponentSize"
|
|
1023
|
-
},
|
|
1024
|
-
{
|
|
1025
|
-
"name": "checkedText",
|
|
1026
|
-
"description": "选中时的文本",
|
|
1027
|
-
"type": "string"
|
|
1028
|
-
},
|
|
1029
|
-
{
|
|
1030
|
-
"name": "unCheckedText",
|
|
1031
|
-
"description": "非选中时的文本",
|
|
1032
|
-
"type": "string"
|
|
1033
|
-
},
|
|
1034
|
-
{
|
|
1035
|
-
"name": "checkedIcon",
|
|
1036
|
-
"description": "选中时的图标",
|
|
1037
|
-
"attribute": false,
|
|
1038
|
-
"type": "GeneralIconProps"
|
|
1039
|
-
},
|
|
1040
|
-
{
|
|
1041
|
-
"name": "unCheckedIcon",
|
|
1042
|
-
"description": "非选中时的文本",
|
|
1043
|
-
"attribute": false,
|
|
1044
|
-
"type": "GeneralIconProps"
|
|
1045
|
-
},
|
|
1046
|
-
{
|
|
1047
|
-
"name": "themeVariant",
|
|
1048
|
-
"description": "主题变体",
|
|
1049
|
-
"type": "\"default\" | \"elevo\""
|
|
1050
|
-
}
|
|
1051
|
-
],
|
|
1052
|
-
"events": [
|
|
1053
|
-
{
|
|
1054
|
-
"name": "switch",
|
|
1055
|
-
"description": "开关改变时触发",
|
|
1056
|
-
"detail": {
|
|
1057
|
-
"type": "boolean"
|
|
1058
|
-
}
|
|
1059
|
-
}
|
|
1060
|
-
],
|
|
1061
|
-
"slots": [],
|
|
1062
|
-
"methods": [],
|
|
1063
|
-
"parts": [],
|
|
1064
|
-
"description": "开关",
|
|
1065
|
-
"category": "form-input-basic"
|
|
1066
|
-
},
|
|
1067
993
|
{
|
|
1068
994
|
"name": "eo-upload-file",
|
|
1069
995
|
"properties": [
|
|
@@ -1149,27 +1075,101 @@
|
|
|
1149
1075
|
"type": "string"
|
|
1150
1076
|
},
|
|
1151
1077
|
{
|
|
1152
|
-
"name": "autoUpload",
|
|
1153
|
-
"description": "是否自动上传",
|
|
1154
|
-
"default": "false",
|
|
1155
|
-
"type": "boolean"
|
|
1078
|
+
"name": "autoUpload",
|
|
1079
|
+
"description": "是否自动上传",
|
|
1080
|
+
"default": "false",
|
|
1081
|
+
"type": "boolean"
|
|
1082
|
+
},
|
|
1083
|
+
{
|
|
1084
|
+
"name": "url",
|
|
1085
|
+
"description": "自动上传的地址",
|
|
1086
|
+
"type": "string"
|
|
1087
|
+
},
|
|
1088
|
+
{
|
|
1089
|
+
"name": "method",
|
|
1090
|
+
"description": "自动上传的方法",
|
|
1091
|
+
"default": "\"POST\"",
|
|
1092
|
+
"type": "string"
|
|
1093
|
+
},
|
|
1094
|
+
{
|
|
1095
|
+
"name": "uploadName",
|
|
1096
|
+
"description": "自动上传的文件参数名",
|
|
1097
|
+
"default": "\"file\"",
|
|
1098
|
+
"type": "string"
|
|
1099
|
+
},
|
|
1100
|
+
{
|
|
1101
|
+
"name": "themeVariant",
|
|
1102
|
+
"description": "主题变体",
|
|
1103
|
+
"type": "\"default\" | \"elevo\""
|
|
1104
|
+
}
|
|
1105
|
+
],
|
|
1106
|
+
"events": [
|
|
1107
|
+
{
|
|
1108
|
+
"name": "change",
|
|
1109
|
+
"description": "值变化时触发",
|
|
1110
|
+
"detail": {
|
|
1111
|
+
"type": "FileData[]"
|
|
1112
|
+
}
|
|
1113
|
+
}
|
|
1114
|
+
],
|
|
1115
|
+
"slots": [],
|
|
1116
|
+
"methods": [],
|
|
1117
|
+
"parts": [],
|
|
1118
|
+
"description": "上传文件",
|
|
1119
|
+
"category": "form-input-basic"
|
|
1120
|
+
},
|
|
1121
|
+
{
|
|
1122
|
+
"name": "eo-switch",
|
|
1123
|
+
"alias": [
|
|
1124
|
+
"form.general-switch"
|
|
1125
|
+
],
|
|
1126
|
+
"properties": [
|
|
1127
|
+
{
|
|
1128
|
+
"name": "name",
|
|
1129
|
+
"description": "字段名称",
|
|
1130
|
+
"type": "string"
|
|
1131
|
+
},
|
|
1132
|
+
{
|
|
1133
|
+
"name": "label",
|
|
1134
|
+
"description": "字段文本",
|
|
1135
|
+
"type": "string"
|
|
1136
|
+
},
|
|
1137
|
+
{
|
|
1138
|
+
"name": "value",
|
|
1139
|
+
"description": "初始值",
|
|
1140
|
+
"type": "boolean"
|
|
1141
|
+
},
|
|
1142
|
+
{
|
|
1143
|
+
"name": "disabled",
|
|
1144
|
+
"description": "是否禁用",
|
|
1145
|
+
"type": "boolean"
|
|
1146
|
+
},
|
|
1147
|
+
{
|
|
1148
|
+
"name": "size",
|
|
1149
|
+
"description": "按钮大小,目前只支持small和非small两种大小。",
|
|
1150
|
+
"type": "ComponentSize"
|
|
1156
1151
|
},
|
|
1157
1152
|
{
|
|
1158
|
-
"name": "
|
|
1159
|
-
"description": "
|
|
1153
|
+
"name": "checkedText",
|
|
1154
|
+
"description": "选中时的文本",
|
|
1160
1155
|
"type": "string"
|
|
1161
1156
|
},
|
|
1162
1157
|
{
|
|
1163
|
-
"name": "
|
|
1164
|
-
"description": "
|
|
1165
|
-
"default": "\"POST\"",
|
|
1158
|
+
"name": "unCheckedText",
|
|
1159
|
+
"description": "非选中时的文本",
|
|
1166
1160
|
"type": "string"
|
|
1167
1161
|
},
|
|
1168
1162
|
{
|
|
1169
|
-
"name": "
|
|
1170
|
-
"description": "
|
|
1171
|
-
"
|
|
1172
|
-
"type": "
|
|
1163
|
+
"name": "checkedIcon",
|
|
1164
|
+
"description": "选中时的图标",
|
|
1165
|
+
"attribute": false,
|
|
1166
|
+
"type": "GeneralIconProps"
|
|
1167
|
+
},
|
|
1168
|
+
{
|
|
1169
|
+
"name": "unCheckedIcon",
|
|
1170
|
+
"description": "非选中时的文本",
|
|
1171
|
+
"attribute": false,
|
|
1172
|
+
"type": "GeneralIconProps"
|
|
1173
1173
|
},
|
|
1174
1174
|
{
|
|
1175
1175
|
"name": "themeVariant",
|
|
@@ -1179,17 +1179,17 @@
|
|
|
1179
1179
|
],
|
|
1180
1180
|
"events": [
|
|
1181
1181
|
{
|
|
1182
|
-
"name": "
|
|
1183
|
-
"description": "
|
|
1182
|
+
"name": "switch",
|
|
1183
|
+
"description": "开关改变时触发",
|
|
1184
1184
|
"detail": {
|
|
1185
|
-
"type": "
|
|
1185
|
+
"type": "boolean"
|
|
1186
1186
|
}
|
|
1187
1187
|
}
|
|
1188
1188
|
],
|
|
1189
1189
|
"slots": [],
|
|
1190
1190
|
"methods": [],
|
|
1191
1191
|
"parts": [],
|
|
1192
|
-
"description": "
|
|
1192
|
+
"description": "开关",
|
|
1193
1193
|
"category": "form-input-basic"
|
|
1194
1194
|
},
|
|
1195
1195
|
{
|
|
@@ -1610,6 +1610,114 @@
|
|
|
1610
1610
|
"parts": [],
|
|
1611
1611
|
"description": "构件 `eo-color-picker`"
|
|
1612
1612
|
},
|
|
1613
|
+
{
|
|
1614
|
+
"name": "eo-form-item",
|
|
1615
|
+
"alias": [
|
|
1616
|
+
"form.general-form-item"
|
|
1617
|
+
],
|
|
1618
|
+
"properties": [
|
|
1619
|
+
{
|
|
1620
|
+
"name": "formElement",
|
|
1621
|
+
"attribute": false,
|
|
1622
|
+
"type": "Form"
|
|
1623
|
+
},
|
|
1624
|
+
{
|
|
1625
|
+
"name": "curElement",
|
|
1626
|
+
"attribute": false,
|
|
1627
|
+
"type": "HTMLElement"
|
|
1628
|
+
},
|
|
1629
|
+
{
|
|
1630
|
+
"name": "name",
|
|
1631
|
+
"description": "字段名称",
|
|
1632
|
+
"type": "string"
|
|
1633
|
+
},
|
|
1634
|
+
{
|
|
1635
|
+
"name": "label",
|
|
1636
|
+
"type": "string"
|
|
1637
|
+
},
|
|
1638
|
+
{
|
|
1639
|
+
"name": "pattern",
|
|
1640
|
+
"type": "string"
|
|
1641
|
+
},
|
|
1642
|
+
{
|
|
1643
|
+
"name": "message",
|
|
1644
|
+
"attribute": false,
|
|
1645
|
+
"type": "Record<string, string>"
|
|
1646
|
+
},
|
|
1647
|
+
{
|
|
1648
|
+
"name": "type",
|
|
1649
|
+
"type": "string"
|
|
1650
|
+
},
|
|
1651
|
+
{
|
|
1652
|
+
"name": "max",
|
|
1653
|
+
"type": "number"
|
|
1654
|
+
},
|
|
1655
|
+
{
|
|
1656
|
+
"name": "min",
|
|
1657
|
+
"type": "number"
|
|
1658
|
+
},
|
|
1659
|
+
{
|
|
1660
|
+
"name": "required",
|
|
1661
|
+
"description": "表单项是否为必填",
|
|
1662
|
+
"type": "boolean"
|
|
1663
|
+
},
|
|
1664
|
+
{
|
|
1665
|
+
"name": "value",
|
|
1666
|
+
"description": "初始值",
|
|
1667
|
+
"type": "string"
|
|
1668
|
+
},
|
|
1669
|
+
{
|
|
1670
|
+
"name": "valuePropsName",
|
|
1671
|
+
"type": "string"
|
|
1672
|
+
},
|
|
1673
|
+
{
|
|
1674
|
+
"name": "layout",
|
|
1675
|
+
"type": "Layout"
|
|
1676
|
+
},
|
|
1677
|
+
{
|
|
1678
|
+
"name": "size",
|
|
1679
|
+
"type": "ComponentSize"
|
|
1680
|
+
},
|
|
1681
|
+
{
|
|
1682
|
+
"name": "trim",
|
|
1683
|
+
"description": "是否自动去除前后的空白字符",
|
|
1684
|
+
"default": "true"
|
|
1685
|
+
},
|
|
1686
|
+
{
|
|
1687
|
+
"name": "trigger",
|
|
1688
|
+
"description": "事件触发方法名",
|
|
1689
|
+
"type": "string"
|
|
1690
|
+
},
|
|
1691
|
+
{
|
|
1692
|
+
"name": "validator",
|
|
1693
|
+
"description": "表单项校验方法",
|
|
1694
|
+
"attribute": false,
|
|
1695
|
+
"type": "((value: any) => MessageBody)"
|
|
1696
|
+
},
|
|
1697
|
+
{
|
|
1698
|
+
"name": "needValidate",
|
|
1699
|
+
"description": "值变化时是否主动出发校验",
|
|
1700
|
+
"type": "boolean"
|
|
1701
|
+
},
|
|
1702
|
+
{
|
|
1703
|
+
"name": "textContent",
|
|
1704
|
+
"type": "string",
|
|
1705
|
+
"description": "文本内容"
|
|
1706
|
+
}
|
|
1707
|
+
],
|
|
1708
|
+
"events": [],
|
|
1709
|
+
"slots": [
|
|
1710
|
+
{
|
|
1711
|
+
"name": null,
|
|
1712
|
+
"description": "表单项内容"
|
|
1713
|
+
}
|
|
1714
|
+
],
|
|
1715
|
+
"methods": [],
|
|
1716
|
+
"parts": [],
|
|
1717
|
+
"description": "通用输入框构件",
|
|
1718
|
+
"category": "form-input-basic",
|
|
1719
|
+
"insider": true
|
|
1720
|
+
},
|
|
1613
1721
|
{
|
|
1614
1722
|
"name": "eo-input",
|
|
1615
1723
|
"alias": [
|
|
@@ -1799,114 +1907,6 @@
|
|
|
1799
1907
|
],
|
|
1800
1908
|
"description": "通用输入框构件",
|
|
1801
1909
|
"category": "form-input-basic"
|
|
1802
|
-
},
|
|
1803
|
-
{
|
|
1804
|
-
"name": "eo-form-item",
|
|
1805
|
-
"alias": [
|
|
1806
|
-
"form.general-form-item"
|
|
1807
|
-
],
|
|
1808
|
-
"properties": [
|
|
1809
|
-
{
|
|
1810
|
-
"name": "formElement",
|
|
1811
|
-
"attribute": false,
|
|
1812
|
-
"type": "Form"
|
|
1813
|
-
},
|
|
1814
|
-
{
|
|
1815
|
-
"name": "curElement",
|
|
1816
|
-
"attribute": false,
|
|
1817
|
-
"type": "HTMLElement"
|
|
1818
|
-
},
|
|
1819
|
-
{
|
|
1820
|
-
"name": "name",
|
|
1821
|
-
"description": "字段名称",
|
|
1822
|
-
"type": "string"
|
|
1823
|
-
},
|
|
1824
|
-
{
|
|
1825
|
-
"name": "label",
|
|
1826
|
-
"type": "string"
|
|
1827
|
-
},
|
|
1828
|
-
{
|
|
1829
|
-
"name": "pattern",
|
|
1830
|
-
"type": "string"
|
|
1831
|
-
},
|
|
1832
|
-
{
|
|
1833
|
-
"name": "message",
|
|
1834
|
-
"attribute": false,
|
|
1835
|
-
"type": "Record<string, string>"
|
|
1836
|
-
},
|
|
1837
|
-
{
|
|
1838
|
-
"name": "type",
|
|
1839
|
-
"type": "string"
|
|
1840
|
-
},
|
|
1841
|
-
{
|
|
1842
|
-
"name": "max",
|
|
1843
|
-
"type": "number"
|
|
1844
|
-
},
|
|
1845
|
-
{
|
|
1846
|
-
"name": "min",
|
|
1847
|
-
"type": "number"
|
|
1848
|
-
},
|
|
1849
|
-
{
|
|
1850
|
-
"name": "required",
|
|
1851
|
-
"description": "表单项是否为必填",
|
|
1852
|
-
"type": "boolean"
|
|
1853
|
-
},
|
|
1854
|
-
{
|
|
1855
|
-
"name": "value",
|
|
1856
|
-
"description": "初始值",
|
|
1857
|
-
"type": "string"
|
|
1858
|
-
},
|
|
1859
|
-
{
|
|
1860
|
-
"name": "valuePropsName",
|
|
1861
|
-
"type": "string"
|
|
1862
|
-
},
|
|
1863
|
-
{
|
|
1864
|
-
"name": "layout",
|
|
1865
|
-
"type": "Layout"
|
|
1866
|
-
},
|
|
1867
|
-
{
|
|
1868
|
-
"name": "size",
|
|
1869
|
-
"type": "ComponentSize"
|
|
1870
|
-
},
|
|
1871
|
-
{
|
|
1872
|
-
"name": "trim",
|
|
1873
|
-
"description": "是否自动去除前后的空白字符",
|
|
1874
|
-
"default": "true"
|
|
1875
|
-
},
|
|
1876
|
-
{
|
|
1877
|
-
"name": "trigger",
|
|
1878
|
-
"description": "事件触发方法名",
|
|
1879
|
-
"type": "string"
|
|
1880
|
-
},
|
|
1881
|
-
{
|
|
1882
|
-
"name": "validator",
|
|
1883
|
-
"description": "表单项校验方法",
|
|
1884
|
-
"attribute": false,
|
|
1885
|
-
"type": "((value: any) => MessageBody)"
|
|
1886
|
-
},
|
|
1887
|
-
{
|
|
1888
|
-
"name": "needValidate",
|
|
1889
|
-
"description": "值变化时是否主动出发校验",
|
|
1890
|
-
"type": "boolean"
|
|
1891
|
-
},
|
|
1892
|
-
{
|
|
1893
|
-
"name": "textContent",
|
|
1894
|
-
"type": "string",
|
|
1895
|
-
"description": "文本内容"
|
|
1896
|
-
}
|
|
1897
|
-
],
|
|
1898
|
-
"events": [],
|
|
1899
|
-
"slots": [
|
|
1900
|
-
{
|
|
1901
|
-
"name": null,
|
|
1902
|
-
"description": "表单项内容"
|
|
1903
|
-
}
|
|
1904
|
-
],
|
|
1905
|
-
"methods": [],
|
|
1906
|
-
"parts": [],
|
|
1907
|
-
"description": "通用输入框构件",
|
|
1908
|
-
"category": "form-input-basic",
|
|
1909
|
-
"insider": true
|
|
1910
1910
|
}
|
|
1911
1911
|
],
|
|
1912
1912
|
"providers": []
|