@next-bricks/form 1.19.2 → 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 +29 -29
- package/dist/chunks/1225.9ddafbd7.js +3 -0
- package/dist/chunks/1225.9ddafbd7.js.map +1 -0
- package/dist/chunks/eo-textarea.4650c5fa.js +3 -0
- package/dist/chunks/eo-textarea.4650c5fa.js.map +1 -0
- package/dist/chunks/{main.66472aad.js → main.a864cfbd.js} +2 -2
- package/dist/chunks/{main.66472aad.js.map → main.a864cfbd.js.map} +1 -1
- package/dist/examples.json +15 -15
- package/dist/{index.ca2e284b.js → index.ee686eae.js} +2 -2
- package/dist/{index.ca2e284b.js.map → index.ee686eae.js.map} +1 -1
- package/dist/manifest.json +407 -407
- package/dist/types.json +121 -121
- package/dist-types/textarea/index.d.ts +1 -0
- package/package.json +2 -2
- package/dist/chunks/1418.923b1d93.js +0 -3
- package/dist/chunks/1418.923b1d93.js.map +0 -1
- package/dist/chunks/eo-textarea.4149c695.js +0 -3
- package/dist/chunks/eo-textarea.4149c695.js.map +0 -1
- /package/dist/chunks/{1418.923b1d93.js.LICENSE.txt → 1225.9ddafbd7.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-textarea.4149c695.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": [
|
|
@@ -256,6 +148,114 @@
|
|
|
256
148
|
"description": "表单构件",
|
|
257
149
|
"category": "form-input-basic"
|
|
258
150
|
},
|
|
151
|
+
{
|
|
152
|
+
"name": "eo-textarea",
|
|
153
|
+
"alias": [
|
|
154
|
+
"form.general-textarea"
|
|
155
|
+
],
|
|
156
|
+
"properties": [
|
|
157
|
+
{
|
|
158
|
+
"name": "name",
|
|
159
|
+
"description": "字段名称",
|
|
160
|
+
"type": "string"
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"name": "label",
|
|
164
|
+
"description": "标签文字",
|
|
165
|
+
"type": "string"
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"name": "value",
|
|
169
|
+
"description": "值",
|
|
170
|
+
"type": "string"
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"name": "placeholder",
|
|
174
|
+
"description": "占位说明",
|
|
175
|
+
"type": "string"
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"name": "disabled",
|
|
179
|
+
"description": "是否禁用",
|
|
180
|
+
"type": "boolean"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
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": "大小自适应",
|
|
195
|
+
"attribute": false,
|
|
196
|
+
"type": "AutoSize"
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"name": "required",
|
|
200
|
+
"description": "是否必填",
|
|
201
|
+
"type": "boolean"
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"name": "max",
|
|
205
|
+
"description": "表单校验最大长度",
|
|
206
|
+
"type": "number"
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"name": "min",
|
|
210
|
+
"description": "表单校验最小长度",
|
|
211
|
+
"type": "number"
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"name": "message",
|
|
215
|
+
"description": "校验信息",
|
|
216
|
+
"attribute": false,
|
|
217
|
+
"type": "Record<string, string>"
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"name": "textareaStyle",
|
|
221
|
+
"description": "自定义样式",
|
|
222
|
+
"attribute": false,
|
|
223
|
+
"type": "React.CSSProperties"
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"name": "variant",
|
|
227
|
+
"description": "变体\n\n- muted: 在 themeVariant 为 elevo 时可用,设置时输入框没有 box-shadow",
|
|
228
|
+
"type": "\"default\" | \"muted\""
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"name": "themeVariant",
|
|
232
|
+
"description": "主题变体",
|
|
233
|
+
"type": "\"default\" | \"elevo\""
|
|
234
|
+
}
|
|
235
|
+
],
|
|
236
|
+
"events": [
|
|
237
|
+
{
|
|
238
|
+
"name": "change",
|
|
239
|
+
"description": "",
|
|
240
|
+
"detail": {
|
|
241
|
+
"description": null,
|
|
242
|
+
"type": "string"
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
],
|
|
246
|
+
"slots": [],
|
|
247
|
+
"methods": [
|
|
248
|
+
{
|
|
249
|
+
"name": "focusTextarea",
|
|
250
|
+
"params": [],
|
|
251
|
+
"description": "focus",
|
|
252
|
+
"returns": {}
|
|
253
|
+
}
|
|
254
|
+
],
|
|
255
|
+
"parts": [],
|
|
256
|
+
"description": "通用多行文本输入框构件",
|
|
257
|
+
"category": "form-input-basic"
|
|
258
|
+
},
|
|
259
259
|
{
|
|
260
260
|
"name": "eo-select",
|
|
261
261
|
"alias": [
|
|
@@ -424,109 +424,44 @@
|
|
|
424
424
|
"category": "form-input-basic"
|
|
425
425
|
},
|
|
426
426
|
{
|
|
427
|
-
"name": "eo-
|
|
427
|
+
"name": "eo-radio",
|
|
428
428
|
"alias": [
|
|
429
|
-
"form.
|
|
429
|
+
"form.general-radio"
|
|
430
430
|
],
|
|
431
431
|
"properties": [
|
|
432
432
|
{
|
|
433
|
-
"name": "
|
|
434
|
-
"description": "
|
|
435
|
-
"default": "\"提交\"",
|
|
433
|
+
"name": "name",
|
|
434
|
+
"description": "下拉框字段名",
|
|
436
435
|
"type": "string"
|
|
437
436
|
},
|
|
438
437
|
{
|
|
439
|
-
"name": "
|
|
440
|
-
"description": "
|
|
438
|
+
"name": "label",
|
|
439
|
+
"description": "单选框字段说明",
|
|
441
440
|
"type": "string"
|
|
442
441
|
},
|
|
443
442
|
{
|
|
444
|
-
"name": "
|
|
445
|
-
"description": "
|
|
446
|
-
"
|
|
443
|
+
"name": "options",
|
|
444
|
+
"description": "单选框选项表",
|
|
445
|
+
"required": true,
|
|
446
|
+
"attribute": false,
|
|
447
|
+
"type": "GeneralOption[]"
|
|
447
448
|
},
|
|
448
449
|
{
|
|
449
|
-
"name": "
|
|
450
|
-
"description": "
|
|
450
|
+
"name": "value",
|
|
451
|
+
"description": "单选框当前选中始值",
|
|
452
|
+
"attribute": false,
|
|
453
|
+
"type": "any"
|
|
454
|
+
},
|
|
455
|
+
{
|
|
456
|
+
"name": "required",
|
|
457
|
+
"description": "是否必填",
|
|
451
458
|
"type": "boolean"
|
|
452
459
|
},
|
|
453
460
|
{
|
|
454
|
-
"name": "
|
|
455
|
-
"description": "
|
|
456
|
-
"
|
|
457
|
-
|
|
458
|
-
{
|
|
459
|
-
"name": "cancelType",
|
|
460
|
-
"description": "取消按钮类型",
|
|
461
|
-
"type": "ButtonType"
|
|
462
|
-
},
|
|
463
|
-
{
|
|
464
|
-
"name": "themeVariant",
|
|
465
|
-
"description": "主题变体",
|
|
466
|
-
"type": "\"default\" | \"elevo\""
|
|
467
|
-
}
|
|
468
|
-
],
|
|
469
|
-
"events": [
|
|
470
|
-
{
|
|
471
|
-
"name": "submit",
|
|
472
|
-
"description": "点击提交按钮触发的事件",
|
|
473
|
-
"detail": {
|
|
474
|
-
"type": "void"
|
|
475
|
-
}
|
|
476
|
-
},
|
|
477
|
-
{
|
|
478
|
-
"name": "cancel",
|
|
479
|
-
"description": "点击取消按钮触发的事件",
|
|
480
|
-
"detail": {
|
|
481
|
-
"type": "void"
|
|
482
|
-
}
|
|
483
|
-
}
|
|
484
|
-
],
|
|
485
|
-
"slots": [],
|
|
486
|
-
"methods": [],
|
|
487
|
-
"parts": [],
|
|
488
|
-
"description": "表单提交按钮",
|
|
489
|
-
"category": "form-input-basic"
|
|
490
|
-
},
|
|
491
|
-
{
|
|
492
|
-
"name": "eo-radio",
|
|
493
|
-
"alias": [
|
|
494
|
-
"form.general-radio"
|
|
495
|
-
],
|
|
496
|
-
"properties": [
|
|
497
|
-
{
|
|
498
|
-
"name": "name",
|
|
499
|
-
"description": "下拉框字段名",
|
|
500
|
-
"type": "string"
|
|
501
|
-
},
|
|
502
|
-
{
|
|
503
|
-
"name": "label",
|
|
504
|
-
"description": "单选框字段说明",
|
|
505
|
-
"type": "string"
|
|
506
|
-
},
|
|
507
|
-
{
|
|
508
|
-
"name": "options",
|
|
509
|
-
"description": "单选框选项表",
|
|
510
|
-
"required": true,
|
|
511
|
-
"attribute": false,
|
|
512
|
-
"type": "GeneralOption[]"
|
|
513
|
-
},
|
|
514
|
-
{
|
|
515
|
-
"name": "value",
|
|
516
|
-
"description": "单选框当前选中始值",
|
|
517
|
-
"attribute": false,
|
|
518
|
-
"type": "any"
|
|
519
|
-
},
|
|
520
|
-
{
|
|
521
|
-
"name": "required",
|
|
522
|
-
"description": "是否必填",
|
|
523
|
-
"type": "boolean"
|
|
524
|
-
},
|
|
525
|
-
{
|
|
526
|
-
"name": "message",
|
|
527
|
-
"description": "校验文本信息",
|
|
528
|
-
"attribute": false,
|
|
529
|
-
"type": "Record<string, string>"
|
|
461
|
+
"name": "message",
|
|
462
|
+
"description": "校验文本信息",
|
|
463
|
+
"attribute": false,
|
|
464
|
+
"type": "Record<string, string>"
|
|
530
465
|
},
|
|
531
466
|
{
|
|
532
467
|
"name": "disabled",
|
|
@@ -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": [
|
|
@@ -1193,28 +1119,25 @@
|
|
|
1193
1119
|
"category": "form-input-basic"
|
|
1194
1120
|
},
|
|
1195
1121
|
{
|
|
1196
|
-
"name": "eo-
|
|
1122
|
+
"name": "eo-switch",
|
|
1123
|
+
"alias": [
|
|
1124
|
+
"form.general-switch"
|
|
1125
|
+
],
|
|
1197
1126
|
"properties": [
|
|
1198
1127
|
{
|
|
1199
1128
|
"name": "name",
|
|
1200
1129
|
"description": "字段名称",
|
|
1201
1130
|
"type": "string"
|
|
1202
1131
|
},
|
|
1203
|
-
{
|
|
1204
|
-
"name": "placeholder",
|
|
1205
|
-
"description": "占位说明",
|
|
1206
|
-
"type": "string"
|
|
1207
|
-
},
|
|
1208
1132
|
{
|
|
1209
1133
|
"name": "label",
|
|
1210
1134
|
"description": "字段文本",
|
|
1211
1135
|
"type": "string"
|
|
1212
1136
|
},
|
|
1213
1137
|
{
|
|
1214
|
-
"name": "
|
|
1215
|
-
"description": "
|
|
1216
|
-
"
|
|
1217
|
-
"type": "React.CSSProperties"
|
|
1138
|
+
"name": "value",
|
|
1139
|
+
"description": "初始值",
|
|
1140
|
+
"type": "boolean"
|
|
1218
1141
|
},
|
|
1219
1142
|
{
|
|
1220
1143
|
"name": "disabled",
|
|
@@ -1222,87 +1145,76 @@
|
|
|
1222
1145
|
"type": "boolean"
|
|
1223
1146
|
},
|
|
1224
1147
|
{
|
|
1225
|
-
"name": "
|
|
1226
|
-
"description": "
|
|
1227
|
-
"type": "
|
|
1148
|
+
"name": "size",
|
|
1149
|
+
"description": "按钮大小,目前只支持small和非small两种大小。",
|
|
1150
|
+
"type": "ComponentSize"
|
|
1228
1151
|
},
|
|
1229
1152
|
{
|
|
1230
|
-
"name": "
|
|
1153
|
+
"name": "checkedText",
|
|
1154
|
+
"description": "选中时的文本",
|
|
1231
1155
|
"type": "string"
|
|
1232
1156
|
},
|
|
1233
1157
|
{
|
|
1234
|
-
"name": "
|
|
1235
|
-
"description": "
|
|
1236
|
-
"
|
|
1237
|
-
"attribute": false,
|
|
1238
|
-
"type": "string[] | OptionType[]"
|
|
1239
|
-
},
|
|
1240
|
-
{
|
|
1241
|
-
"name": "filterByCaption",
|
|
1242
|
-
"description": "搜索时是否根据caption过滤options",
|
|
1243
|
-
"type": "boolean"
|
|
1158
|
+
"name": "unCheckedText",
|
|
1159
|
+
"description": "非选中时的文本",
|
|
1160
|
+
"type": "string"
|
|
1244
1161
|
},
|
|
1245
1162
|
{
|
|
1246
|
-
"name": "
|
|
1247
|
-
"description": "
|
|
1163
|
+
"name": "checkedIcon",
|
|
1164
|
+
"description": "选中时的图标",
|
|
1248
1165
|
"attribute": false,
|
|
1249
|
-
"type": "
|
|
1166
|
+
"type": "GeneralIconProps"
|
|
1250
1167
|
},
|
|
1251
1168
|
{
|
|
1252
|
-
"name": "
|
|
1253
|
-
"description": "
|
|
1254
|
-
"
|
|
1169
|
+
"name": "unCheckedIcon",
|
|
1170
|
+
"description": "非选中时的文本",
|
|
1171
|
+
"attribute": false,
|
|
1172
|
+
"type": "GeneralIconProps"
|
|
1255
1173
|
},
|
|
1256
1174
|
{
|
|
1257
|
-
"name": "
|
|
1258
|
-
"description": "
|
|
1259
|
-
"
|
|
1260
|
-
"type": "Record<string, string>"
|
|
1175
|
+
"name": "themeVariant",
|
|
1176
|
+
"description": "主题变体",
|
|
1177
|
+
"type": "\"default\" | \"elevo\""
|
|
1261
1178
|
}
|
|
1262
1179
|
],
|
|
1263
1180
|
"events": [
|
|
1264
1181
|
{
|
|
1265
|
-
"name": "
|
|
1266
|
-
"description": "
|
|
1182
|
+
"name": "switch",
|
|
1183
|
+
"description": "开关改变时触发",
|
|
1267
1184
|
"detail": {
|
|
1268
|
-
"type": "
|
|
1185
|
+
"type": "boolean"
|
|
1269
1186
|
}
|
|
1270
1187
|
}
|
|
1271
1188
|
],
|
|
1272
1189
|
"slots": [],
|
|
1273
1190
|
"methods": [],
|
|
1274
1191
|
"parts": [],
|
|
1275
|
-
"description": "
|
|
1192
|
+
"description": "开关",
|
|
1276
1193
|
"category": "form-input-basic"
|
|
1277
1194
|
},
|
|
1278
1195
|
{
|
|
1279
|
-
"name": "eo-
|
|
1196
|
+
"name": "eo-auto-complete",
|
|
1280
1197
|
"properties": [
|
|
1281
1198
|
{
|
|
1282
1199
|
"name": "name",
|
|
1283
|
-
"description": "
|
|
1284
|
-
"type": "string"
|
|
1285
|
-
},
|
|
1286
|
-
{
|
|
1287
|
-
"name": "label",
|
|
1288
|
-
"description": "日期选择器说明",
|
|
1200
|
+
"description": "字段名称",
|
|
1289
1201
|
"type": "string"
|
|
1290
1202
|
},
|
|
1291
1203
|
{
|
|
1292
|
-
"name": "
|
|
1293
|
-
"description": "
|
|
1204
|
+
"name": "placeholder",
|
|
1205
|
+
"description": "占位说明",
|
|
1294
1206
|
"type": "string"
|
|
1295
1207
|
},
|
|
1296
1208
|
{
|
|
1297
|
-
"name": "
|
|
1298
|
-
"description": "
|
|
1209
|
+
"name": "label",
|
|
1210
|
+
"description": "字段文本",
|
|
1299
1211
|
"type": "string"
|
|
1300
1212
|
},
|
|
1301
1213
|
{
|
|
1302
|
-
"name": "
|
|
1303
|
-
"description": "
|
|
1214
|
+
"name": "inputStyle",
|
|
1215
|
+
"description": "输入框样式",
|
|
1304
1216
|
"attribute": false,
|
|
1305
|
-
"type": "
|
|
1217
|
+
"type": "React.CSSProperties"
|
|
1306
1218
|
},
|
|
1307
1219
|
{
|
|
1308
1220
|
"name": "disabled",
|
|
@@ -1315,55 +1227,43 @@
|
|
|
1315
1227
|
"type": "boolean"
|
|
1316
1228
|
},
|
|
1317
1229
|
{
|
|
1318
|
-
"name": "
|
|
1319
|
-
"description": "是否显示时间, 当设为 `true` 时, 请同时设置 `format` 为 `YYYY-MM-DD HH:mm:ss` 使其也显示具体时,分,秒 的时间",
|
|
1320
|
-
"type": "boolean"
|
|
1321
|
-
},
|
|
1322
|
-
{
|
|
1323
|
-
"name": "format",
|
|
1324
|
-
"description": "显示预览的格式,具体配置参考 [dayjs](https://day.js.org/docs/zh-CN/display/format#%E6%94%AF%E6%8C%81%E7%9A%84%E6%A0%BC%E5%BC%8F%E5%8C%96%E5%8D%A0%E4%BD%8D%E7%AC%A6%E5%88%97%E8%A1%A8),注意,这里并非是定义给后台的数据格式,给后台的数据格式定义请参考 `general-form` 构件的 [valueTypes](developers/brick-book/brick/forms.general-form) 属性",
|
|
1230
|
+
"name": "value",
|
|
1325
1231
|
"type": "string"
|
|
1326
1232
|
},
|
|
1327
1233
|
{
|
|
1328
|
-
"name": "
|
|
1329
|
-
"description": "
|
|
1234
|
+
"name": "options",
|
|
1235
|
+
"description": "选项列表",
|
|
1236
|
+
"required": true,
|
|
1330
1237
|
"attribute": false,
|
|
1331
|
-
"type": "
|
|
1238
|
+
"type": "string[] | OptionType[]"
|
|
1332
1239
|
},
|
|
1333
1240
|
{
|
|
1334
|
-
"name": "
|
|
1335
|
-
"description": "
|
|
1241
|
+
"name": "filterByCaption",
|
|
1242
|
+
"description": "搜索时是否根据caption过滤options",
|
|
1336
1243
|
"type": "boolean"
|
|
1337
1244
|
},
|
|
1338
1245
|
{
|
|
1339
|
-
"name": "
|
|
1340
|
-
"description": "
|
|
1246
|
+
"name": "validator",
|
|
1247
|
+
"description": "表单项校验方法",
|
|
1341
1248
|
"attribute": false,
|
|
1342
|
-
"type": "
|
|
1249
|
+
"type": "((value: any) => MessageBody)"
|
|
1343
1250
|
},
|
|
1344
1251
|
{
|
|
1345
|
-
"name": "
|
|
1346
|
-
"description": "
|
|
1347
|
-
"type": "
|
|
1252
|
+
"name": "pattern",
|
|
1253
|
+
"description": "正则校验规则",
|
|
1254
|
+
"type": "string"
|
|
1348
1255
|
},
|
|
1349
1256
|
{
|
|
1350
|
-
"name": "
|
|
1351
|
-
"description": "
|
|
1257
|
+
"name": "message",
|
|
1258
|
+
"description": "校验文本信息",
|
|
1352
1259
|
"attribute": false,
|
|
1353
|
-
"type": "
|
|
1260
|
+
"type": "Record<string, string>"
|
|
1354
1261
|
}
|
|
1355
1262
|
],
|
|
1356
1263
|
"events": [
|
|
1357
1264
|
{
|
|
1358
1265
|
"name": "change",
|
|
1359
|
-
"description": "
|
|
1360
|
-
"detail": {
|
|
1361
|
-
"type": "string"
|
|
1362
|
-
}
|
|
1363
|
-
},
|
|
1364
|
-
{
|
|
1365
|
-
"name": "ok",
|
|
1366
|
-
"description": "点击确定按钮触发(showTime 为 true 使用)",
|
|
1266
|
+
"description": "值改变事件",
|
|
1367
1267
|
"detail": {
|
|
1368
1268
|
"type": "string"
|
|
1369
1269
|
}
|
|
@@ -1372,53 +1272,37 @@
|
|
|
1372
1272
|
"slots": [],
|
|
1373
1273
|
"methods": [],
|
|
1374
1274
|
"parts": [],
|
|
1375
|
-
"description": "
|
|
1275
|
+
"description": "带候选项的输入框",
|
|
1376
1276
|
"category": "form-input-basic"
|
|
1377
1277
|
},
|
|
1378
1278
|
{
|
|
1379
|
-
"name": "eo-
|
|
1279
|
+
"name": "eo-time-picker",
|
|
1380
1280
|
"properties": [
|
|
1381
1281
|
{
|
|
1382
1282
|
"name": "name",
|
|
1383
|
-
"description": "
|
|
1283
|
+
"description": "时间选择器字段名",
|
|
1384
1284
|
"type": "string"
|
|
1385
1285
|
},
|
|
1386
1286
|
{
|
|
1387
1287
|
"name": "label",
|
|
1388
|
-
"description": "
|
|
1288
|
+
"description": "时间选择器说明",
|
|
1389
1289
|
"type": "string"
|
|
1390
1290
|
},
|
|
1391
1291
|
{
|
|
1392
1292
|
"name": "value",
|
|
1393
|
-
"description": "
|
|
1293
|
+
"description": "时间选择器的初始值",
|
|
1394
1294
|
"type": "string"
|
|
1395
1295
|
},
|
|
1396
1296
|
{
|
|
1397
|
-
"name": "
|
|
1398
|
-
"description": "
|
|
1399
|
-
"type": "string
|
|
1400
|
-
},
|
|
1401
|
-
{
|
|
1402
|
-
"name": "required",
|
|
1403
|
-
"description": "是否必填",
|
|
1404
|
-
"type": "boolean"
|
|
1405
|
-
},
|
|
1406
|
-
{
|
|
1407
|
-
"name": "allowClear",
|
|
1408
|
-
"description": "允许清除选择的颜色",
|
|
1409
|
-
"type": "boolean"
|
|
1297
|
+
"name": "placeholder",
|
|
1298
|
+
"description": "时间选择器占位说明",
|
|
1299
|
+
"type": "string"
|
|
1410
1300
|
},
|
|
1411
1301
|
{
|
|
1412
|
-
"name": "
|
|
1413
|
-
"description": "
|
|
1414
|
-
"default": "middle",
|
|
1302
|
+
"name": "message",
|
|
1303
|
+
"description": "校验文本信息",
|
|
1415
1304
|
"attribute": false,
|
|
1416
|
-
"type": "
|
|
1417
|
-
},
|
|
1418
|
-
{
|
|
1419
|
-
"name": "showText",
|
|
1420
|
-
"description": "显示颜色文本",
|
|
1421
|
-
"type": "boolean"
|
|
1305
|
+
"type": "Record<string, string>"
|
|
1422
1306
|
},
|
|
1423
1307
|
{
|
|
1424
1308
|
"name": "disabled",
|
|
@@ -1426,54 +1310,67 @@
|
|
|
1426
1310
|
"type": "boolean"
|
|
1427
1311
|
},
|
|
1428
1312
|
{
|
|
1429
|
-
"name": "
|
|
1430
|
-
"description": "
|
|
1431
|
-
"
|
|
1432
|
-
"attribute": false,
|
|
1433
|
-
"type": "\"rgb\" | \"hex\" | \"hsb\""
|
|
1313
|
+
"name": "required",
|
|
1314
|
+
"description": "是否必填",
|
|
1315
|
+
"type": "boolean"
|
|
1434
1316
|
},
|
|
1435
1317
|
{
|
|
1436
1318
|
"name": "configProps",
|
|
1437
|
-
"description": "透传 antd
|
|
1319
|
+
"description": "透传 antd timePicker 属性 [timePickerProps](https://ant.design/components/time-picker-cn)",
|
|
1438
1320
|
"attribute": false,
|
|
1439
|
-
"type": "Partial<
|
|
1321
|
+
"type": "Partial<TimePickerProps>"
|
|
1440
1322
|
}
|
|
1441
1323
|
],
|
|
1442
1324
|
"events": [
|
|
1443
1325
|
{
|
|
1444
1326
|
"name": "change",
|
|
1445
|
-
"description": "
|
|
1327
|
+
"description": "时间变化时触发",
|
|
1446
1328
|
"detail": {
|
|
1447
|
-
"type": "string
|
|
1329
|
+
"type": "string"
|
|
1330
|
+
}
|
|
1331
|
+
},
|
|
1332
|
+
{
|
|
1333
|
+
"name": "open",
|
|
1334
|
+
"description": "面板打开时触发, 传出当前时间值",
|
|
1335
|
+
"detail": {
|
|
1336
|
+
"type": "string"
|
|
1337
|
+
}
|
|
1338
|
+
},
|
|
1339
|
+
{
|
|
1340
|
+
"name": "close",
|
|
1341
|
+
"description": "面板关闭时触发,传出当前时间值",
|
|
1342
|
+
"detail": {
|
|
1343
|
+
"type": "string"
|
|
1448
1344
|
}
|
|
1449
1345
|
}
|
|
1450
1346
|
],
|
|
1451
1347
|
"slots": [],
|
|
1452
1348
|
"methods": [],
|
|
1453
1349
|
"parts": [],
|
|
1454
|
-
"description": "
|
|
1350
|
+
"description": "时间选择器",
|
|
1351
|
+
"category": "form-input-basic"
|
|
1455
1352
|
},
|
|
1456
1353
|
{
|
|
1457
|
-
"name": "eo-
|
|
1354
|
+
"name": "eo-date-picker",
|
|
1458
1355
|
"properties": [
|
|
1459
1356
|
{
|
|
1460
1357
|
"name": "name",
|
|
1461
|
-
"description": "
|
|
1358
|
+
"description": "日期选择器字段名",
|
|
1462
1359
|
"type": "string"
|
|
1463
1360
|
},
|
|
1464
1361
|
{
|
|
1465
1362
|
"name": "label",
|
|
1466
|
-
"description": "
|
|
1363
|
+
"description": "日期选择器说明",
|
|
1467
1364
|
"type": "string"
|
|
1468
1365
|
},
|
|
1469
1366
|
{
|
|
1470
1367
|
"name": "value",
|
|
1471
|
-
"description": "
|
|
1368
|
+
"description": "日期选择器的初始值",
|
|
1472
1369
|
"type": "string"
|
|
1473
1370
|
},
|
|
1474
1371
|
{
|
|
1475
1372
|
"name": "placeholder",
|
|
1476
|
-
"description": "
|
|
1373
|
+
"description": "日期选择器占位说明",
|
|
1477
1374
|
"type": "string"
|
|
1478
1375
|
},
|
|
1479
1376
|
{
|
|
@@ -1493,30 +1390,55 @@
|
|
|
1493
1390
|
"type": "boolean"
|
|
1494
1391
|
},
|
|
1495
1392
|
{
|
|
1496
|
-
"name": "
|
|
1497
|
-
"description": "
|
|
1393
|
+
"name": "showTime",
|
|
1394
|
+
"description": "是否显示时间, 当设为 `true` 时, 请同时设置 `format` 为 `YYYY-MM-DD HH:mm:ss` 使其也显示具体时,分,秒 的时间",
|
|
1395
|
+
"type": "boolean"
|
|
1396
|
+
},
|
|
1397
|
+
{
|
|
1398
|
+
"name": "format",
|
|
1399
|
+
"description": "显示预览的格式,具体配置参考 [dayjs](https://day.js.org/docs/zh-CN/display/format#%E6%94%AF%E6%8C%81%E7%9A%84%E6%A0%BC%E5%BC%8F%E5%8C%96%E5%8D%A0%E4%BD%8D%E7%AC%A6%E5%88%97%E8%A1%A8),注意,这里并非是定义给后台的数据格式,给后台的数据格式定义请参考 `general-form` 构件的 [valueTypes](developers/brick-book/brick/forms.general-form) 属性",
|
|
1400
|
+
"type": "string"
|
|
1401
|
+
},
|
|
1402
|
+
{
|
|
1403
|
+
"name": "picker",
|
|
1404
|
+
"description": "设置选择器类型",
|
|
1498
1405
|
"attribute": false,
|
|
1499
|
-
"type": "
|
|
1406
|
+
"type": "PickerMode"
|
|
1407
|
+
},
|
|
1408
|
+
{
|
|
1409
|
+
"name": "futureDateDisabled",
|
|
1410
|
+
"description": "不可选择未来日期,优先级高于disabledDate",
|
|
1411
|
+
"type": "boolean"
|
|
1412
|
+
},
|
|
1413
|
+
{
|
|
1414
|
+
"name": "disabledDate",
|
|
1415
|
+
"description": "不可选择的日期",
|
|
1416
|
+
"attribute": false,
|
|
1417
|
+
"type": "DisabledDateType"
|
|
1418
|
+
},
|
|
1419
|
+
{
|
|
1420
|
+
"name": "useFastSelectBtn",
|
|
1421
|
+
"description": "快速选项",
|
|
1422
|
+
"type": "boolean"
|
|
1423
|
+
},
|
|
1424
|
+
{
|
|
1425
|
+
"name": "inputStyle",
|
|
1426
|
+
"description": "输入框样式",
|
|
1427
|
+
"attribute": false,
|
|
1428
|
+
"type": "CSSProperties"
|
|
1500
1429
|
}
|
|
1501
1430
|
],
|
|
1502
1431
|
"events": [
|
|
1503
1432
|
{
|
|
1504
1433
|
"name": "change",
|
|
1505
|
-
"description": "
|
|
1506
|
-
"detail": {
|
|
1507
|
-
"type": "string"
|
|
1508
|
-
}
|
|
1509
|
-
},
|
|
1510
|
-
{
|
|
1511
|
-
"name": "open",
|
|
1512
|
-
"description": "面板打开时触发, 传出当前时间值",
|
|
1434
|
+
"description": "日期变化时触发",
|
|
1513
1435
|
"detail": {
|
|
1514
1436
|
"type": "string"
|
|
1515
1437
|
}
|
|
1516
1438
|
},
|
|
1517
1439
|
{
|
|
1518
|
-
"name": "
|
|
1519
|
-
"description": "
|
|
1440
|
+
"name": "ok",
|
|
1441
|
+
"description": "点击确定按钮触发(showTime 为 true 使用)",
|
|
1520
1442
|
"detail": {
|
|
1521
1443
|
"type": "string"
|
|
1522
1444
|
}
|
|
@@ -1525,7 +1447,7 @@
|
|
|
1525
1447
|
"slots": [],
|
|
1526
1448
|
"methods": [],
|
|
1527
1449
|
"parts": [],
|
|
1528
|
-
"description": "
|
|
1450
|
+
"description": "日期选择器",
|
|
1529
1451
|
"category": "form-input-basic"
|
|
1530
1452
|
},
|
|
1531
1453
|
{
|
|
@@ -1610,6 +1532,84 @@
|
|
|
1610
1532
|
"description": "时间区间选择器",
|
|
1611
1533
|
"category": "form-input-basic"
|
|
1612
1534
|
},
|
|
1535
|
+
{
|
|
1536
|
+
"name": "eo-color-picker",
|
|
1537
|
+
"properties": [
|
|
1538
|
+
{
|
|
1539
|
+
"name": "name",
|
|
1540
|
+
"description": "字段名称",
|
|
1541
|
+
"type": "string"
|
|
1542
|
+
},
|
|
1543
|
+
{
|
|
1544
|
+
"name": "label",
|
|
1545
|
+
"description": "字段说明",
|
|
1546
|
+
"type": "string"
|
|
1547
|
+
},
|
|
1548
|
+
{
|
|
1549
|
+
"name": "value",
|
|
1550
|
+
"description": "值",
|
|
1551
|
+
"type": "string"
|
|
1552
|
+
},
|
|
1553
|
+
{
|
|
1554
|
+
"name": "defaultValue",
|
|
1555
|
+
"description": "颜色默认的值",
|
|
1556
|
+
"type": "string | Color"
|
|
1557
|
+
},
|
|
1558
|
+
{
|
|
1559
|
+
"name": "required",
|
|
1560
|
+
"description": "是否必填",
|
|
1561
|
+
"type": "boolean"
|
|
1562
|
+
},
|
|
1563
|
+
{
|
|
1564
|
+
"name": "allowClear",
|
|
1565
|
+
"description": "允许清除选择的颜色",
|
|
1566
|
+
"type": "boolean"
|
|
1567
|
+
},
|
|
1568
|
+
{
|
|
1569
|
+
"name": "size",
|
|
1570
|
+
"description": "设置触发器大小",
|
|
1571
|
+
"default": "middle",
|
|
1572
|
+
"attribute": false,
|
|
1573
|
+
"type": "\"small\" | \"middle\" | \"large\""
|
|
1574
|
+
},
|
|
1575
|
+
{
|
|
1576
|
+
"name": "showText",
|
|
1577
|
+
"description": "显示颜色文本",
|
|
1578
|
+
"type": "boolean"
|
|
1579
|
+
},
|
|
1580
|
+
{
|
|
1581
|
+
"name": "disabled",
|
|
1582
|
+
"description": "是否禁用",
|
|
1583
|
+
"type": "boolean"
|
|
1584
|
+
},
|
|
1585
|
+
{
|
|
1586
|
+
"name": "format",
|
|
1587
|
+
"description": "颜色格式",
|
|
1588
|
+
"default": "hex",
|
|
1589
|
+
"attribute": false,
|
|
1590
|
+
"type": "\"rgb\" | \"hex\" | \"hsb\""
|
|
1591
|
+
},
|
|
1592
|
+
{
|
|
1593
|
+
"name": "configProps",
|
|
1594
|
+
"description": "透传 antd ColorPicker 属性 [ColorPickerProps](https://ant.design/components/color-picker-cn#api)",
|
|
1595
|
+
"attribute": false,
|
|
1596
|
+
"type": "Partial<ColorPickerProps>"
|
|
1597
|
+
}
|
|
1598
|
+
],
|
|
1599
|
+
"events": [
|
|
1600
|
+
{
|
|
1601
|
+
"name": "change",
|
|
1602
|
+
"description": "颜色变化事件, 返回值格式和`format`格式一致",
|
|
1603
|
+
"detail": {
|
|
1604
|
+
"type": "string | undefined"
|
|
1605
|
+
}
|
|
1606
|
+
}
|
|
1607
|
+
],
|
|
1608
|
+
"slots": [],
|
|
1609
|
+
"methods": [],
|
|
1610
|
+
"parts": [],
|
|
1611
|
+
"description": "构件 `eo-color-picker`"
|
|
1612
|
+
},
|
|
1613
1613
|
{
|
|
1614
1614
|
"name": "eo-form-item",
|
|
1615
1615
|
"alias": [
|