@next-bricks/form 1.13.8 → 1.13.10

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 (55) hide show
  1. package/dist/bricks.json +35 -35
  2. package/dist/chunks/4766.0f692a31.js +3 -0
  3. package/dist/chunks/4766.0f692a31.js.map +1 -0
  4. package/dist/chunks/{4837.5782f5bd.js → 4837.20cc4292.js} +2 -2
  5. package/dist/chunks/{4837.5782f5bd.js.map → 4837.20cc4292.js.map} +1 -1
  6. package/dist/chunks/{7218.8ed93f51.js → 7218.a0fe6307.js} +2 -2
  7. package/dist/chunks/{7218.8ed93f51.js.map → 7218.a0fe6307.js.map} +1 -1
  8. package/dist/chunks/9259.5bf8cac1.js +3 -0
  9. package/dist/chunks/9259.5bf8cac1.js.map +1 -0
  10. package/dist/chunks/{eo-color-picker.9cba3082.js → eo-color-picker.b71447b7.js} +2 -2
  11. package/dist/chunks/{eo-color-picker.9cba3082.js.map → eo-color-picker.b71447b7.js.map} +1 -1
  12. package/dist/chunks/{eo-date-picker.1f4e55b2.js → eo-date-picker.a125efb4.js} +2 -2
  13. package/dist/chunks/{eo-date-picker.1f4e55b2.js.map → eo-date-picker.a125efb4.js.map} +1 -1
  14. package/dist/chunks/{eo-dynamic-form-item.05008202.js → eo-dynamic-form-item.fc720c11.js} +3 -3
  15. package/dist/chunks/{eo-dynamic-form-item.05008202.js.map → eo-dynamic-form-item.fc720c11.js.map} +1 -1
  16. package/dist/chunks/{eo-form-item.4ddcda40.js → eo-form-item.5c977a88.js} +3 -3
  17. package/dist/chunks/{eo-form-item.4ddcda40.js.map → eo-form-item.5c977a88.js.map} +1 -1
  18. package/dist/chunks/{eo-radio.c584bd27.js → eo-radio.5a4bc4f8.js} +3 -3
  19. package/dist/chunks/{eo-radio.c584bd27.js.map → eo-radio.5a4bc4f8.js.map} +1 -1
  20. package/dist/chunks/eo-select.4bfda7a0.js +3 -0
  21. package/dist/chunks/eo-select.4bfda7a0.js.map +1 -0
  22. package/dist/chunks/{eo-time-picker.d81de579.js → eo-time-picker.d9565b91.js} +2 -2
  23. package/dist/chunks/{eo-time-picker.d81de579.js.map → eo-time-picker.d9565b91.js.map} +1 -1
  24. package/dist/chunks/{eo-time-range-picker.15057d2a.js → eo-time-range-picker.e8d8c902.js} +2 -2
  25. package/dist/chunks/{eo-time-range-picker.15057d2a.js.map → eo-time-range-picker.e8d8c902.js.map} +1 -1
  26. package/dist/chunks/{eo-upload-file.15c30d10.js → eo-upload-file.be14c808.js} +3 -3
  27. package/dist/chunks/{eo-upload-file.15c30d10.js.map → eo-upload-file.be14c808.js.map} +1 -1
  28. package/dist/chunks/{eo-upload-image.b96a2fcc.js → eo-upload-image.1a8b6627.js} +3 -3
  29. package/dist/chunks/{eo-upload-image.b96a2fcc.js.map → eo-upload-image.1a8b6627.js.map} +1 -1
  30. package/dist/chunks/main.4131d8ee.js +2 -0
  31. package/dist/chunks/{main.0009a6af.js.map → main.4131d8ee.js.map} +1 -1
  32. package/dist/examples.json +11 -11
  33. package/dist/index.19235aad.js +2 -0
  34. package/dist/index.19235aad.js.map +1 -0
  35. package/dist/manifest.json +468 -468
  36. package/dist/types.json +975 -975
  37. package/dist-types/select/index.d.ts +2 -3
  38. package/package.json +3 -3
  39. package/dist/chunks/799.72fa2e89.js +0 -3
  40. package/dist/chunks/799.72fa2e89.js.map +0 -1
  41. package/dist/chunks/9259.7778bbaf.js +0 -3
  42. package/dist/chunks/9259.7778bbaf.js.map +0 -1
  43. package/dist/chunks/eo-select.28c15503.js +0 -3
  44. package/dist/chunks/eo-select.28c15503.js.map +0 -1
  45. package/dist/chunks/main.0009a6af.js +0 -2
  46. package/dist/index.a96799f8.js +0 -2
  47. package/dist/index.a96799f8.js.map +0 -1
  48. /package/dist/chunks/{799.72fa2e89.js.LICENSE.txt → 4766.0f692a31.js.LICENSE.txt} +0 -0
  49. /package/dist/chunks/{9259.7778bbaf.js.LICENSE.txt → 9259.5bf8cac1.js.LICENSE.txt} +0 -0
  50. /package/dist/chunks/{eo-dynamic-form-item.05008202.js.LICENSE.txt → eo-dynamic-form-item.fc720c11.js.LICENSE.txt} +0 -0
  51. /package/dist/chunks/{eo-form-item.4ddcda40.js.LICENSE.txt → eo-form-item.5c977a88.js.LICENSE.txt} +0 -0
  52. /package/dist/chunks/{eo-radio.c584bd27.js.LICENSE.txt → eo-radio.5a4bc4f8.js.LICENSE.txt} +0 -0
  53. /package/dist/chunks/{eo-select.28c15503.js.LICENSE.txt → eo-select.4bfda7a0.js.LICENSE.txt} +0 -0
  54. /package/dist/chunks/{eo-upload-file.15c30d10.js.LICENSE.txt → eo-upload-file.be14c808.js.LICENSE.txt} +0 -0
  55. /package/dist/chunks/{eo-upload-image.b96a2fcc.js.LICENSE.txt → eo-upload-image.1a8b6627.js.LICENSE.txt} +0 -0
@@ -3,6 +3,289 @@
3
3
  "package": "@next-bricks/form",
4
4
  "name": "form",
5
5
  "bricks": [
6
+ {
7
+ "name": "eo-input",
8
+ "alias": [
9
+ "form.general-input"
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": "required",
24
+ "description": "是否必填",
25
+ "type": "boolean"
26
+ },
27
+ {
28
+ "name": "pattern",
29
+ "description": "正则校验规则",
30
+ "type": "string"
31
+ },
32
+ {
33
+ "name": "max",
34
+ "description": "表单校验最大长度(当 type 为 number 时,表示最大值)",
35
+ "type": "number"
36
+ },
37
+ {
38
+ "name": "min",
39
+ "description": "表单校验最小长度(当 type 为 number 时,表示最小值)",
40
+ "type": "number"
41
+ },
42
+ {
43
+ "name": "message",
44
+ "description": "错误时显示消息",
45
+ "attribute": false,
46
+ "type": "Record<string, string>"
47
+ },
48
+ {
49
+ "name": "value",
50
+ "description": "输入框值",
51
+ "type": "string"
52
+ },
53
+ {
54
+ "name": "placeholder",
55
+ "description": "占位说明",
56
+ "type": "string"
57
+ },
58
+ {
59
+ "name": "disabled",
60
+ "description": "是否禁用",
61
+ "type": "boolean"
62
+ },
63
+ {
64
+ "name": "readonly",
65
+ "description": "是否只读",
66
+ "type": "boolean"
67
+ },
68
+ {
69
+ "name": "clearable",
70
+ "description": "是否显示清除按钮",
71
+ "type": "boolean"
72
+ },
73
+ {
74
+ "name": "autoFocus",
75
+ "description": "是否自动聚焦",
76
+ "type": "boolean"
77
+ },
78
+ {
79
+ "name": "type",
80
+ "description": "类型",
81
+ "default": "\"text\"",
82
+ "type": "InputType"
83
+ },
84
+ {
85
+ "name": "size",
86
+ "description": "大小",
87
+ "default": "\"medium\"",
88
+ "type": "ComponentSize"
89
+ },
90
+ {
91
+ "name": "minLength",
92
+ "description": "最小长度",
93
+ "type": "number"
94
+ },
95
+ {
96
+ "name": "maxLength",
97
+ "description": "最大长度(用户无法输入超过此最大长度的字符串)",
98
+ "type": "number"
99
+ },
100
+ {
101
+ "name": "inputStyle",
102
+ "description": "输入框样式",
103
+ "attribute": false,
104
+ "type": "React.CSSProperties"
105
+ },
106
+ {
107
+ "name": "validator",
108
+ "description": "表单项校验方法",
109
+ "attribute": false,
110
+ "type": "((value: any) => MessageBody)"
111
+ }
112
+ ],
113
+ "events": [
114
+ {
115
+ "name": "change",
116
+ "description": "值改变事件",
117
+ "detail": {
118
+ "type": "string"
119
+ }
120
+ }
121
+ ],
122
+ "slots": [
123
+ {
124
+ "name": "addonBefore",
125
+ "description": "输入框前置标签"
126
+ },
127
+ {
128
+ "name": "addonAfter",
129
+ "description": "输入框后置标签"
130
+ },
131
+ {
132
+ "name": "prefix",
133
+ "description": "输入框前缀图标"
134
+ },
135
+ {
136
+ "name": "suffix",
137
+ "description": "输入框后缀图标"
138
+ }
139
+ ],
140
+ "methods": [
141
+ {
142
+ "name": "focusInput",
143
+ "params": [],
144
+ "description": "focus",
145
+ "returns": {}
146
+ },
147
+ {
148
+ "name": "blurInput",
149
+ "params": [],
150
+ "description": "blur",
151
+ "returns": {}
152
+ }
153
+ ],
154
+ "parts": [
155
+ {
156
+ "name": "addon-wrapper",
157
+ "description": "包裹输入组件、前缀、后缀、前置和后置的容器"
158
+ },
159
+ {
160
+ "name": "affix-wrapper",
161
+ "description": "包裹输入组件、前缀和后缀的容器"
162
+ },
163
+ {
164
+ "name": "input",
165
+ "description": "输入组件"
166
+ },
167
+ {
168
+ "name": "clear-icon",
169
+ "description": "清除按钮"
170
+ },
171
+ {
172
+ "name": "prefix",
173
+ "description": "输入框前缀容器"
174
+ },
175
+ {
176
+ "name": "suffix",
177
+ "description": "输入框后缀容器"
178
+ },
179
+ {
180
+ "name": "before-addon",
181
+ "description": "输入框前置容器"
182
+ },
183
+ {
184
+ "name": "after-addon",
185
+ "description": "输入框后置容器"
186
+ }
187
+ ],
188
+ "description": "通用输入框构件",
189
+ "category": "form-input-basic"
190
+ },
191
+ {
192
+ "name": "eo-textarea",
193
+ "alias": [
194
+ "form.general-textarea"
195
+ ],
196
+ "properties": [
197
+ {
198
+ "name": "name",
199
+ "description": "字段名称",
200
+ "type": "string"
201
+ },
202
+ {
203
+ "name": "label",
204
+ "description": "标签文字",
205
+ "type": "string"
206
+ },
207
+ {
208
+ "name": "value",
209
+ "description": "值",
210
+ "type": "string"
211
+ },
212
+ {
213
+ "name": "placeholder",
214
+ "description": "占位说明",
215
+ "type": "string"
216
+ },
217
+ {
218
+ "name": "disabled",
219
+ "description": "是否禁用",
220
+ "type": "boolean"
221
+ },
222
+ {
223
+ "name": "minLength",
224
+ "description": "最小长度",
225
+ "type": "number"
226
+ },
227
+ {
228
+ "name": "maxLength",
229
+ "description": "最大长度",
230
+ "type": "number"
231
+ },
232
+ {
233
+ "name": "autoSize",
234
+ "description": "大小自适应",
235
+ "attribute": false,
236
+ "type": "AutoSize"
237
+ },
238
+ {
239
+ "name": "required",
240
+ "description": "是否必填",
241
+ "type": "boolean"
242
+ },
243
+ {
244
+ "name": "max",
245
+ "description": "表单校验最大长度",
246
+ "type": "number"
247
+ },
248
+ {
249
+ "name": "min",
250
+ "description": "表单校验最小长度",
251
+ "type": "number"
252
+ },
253
+ {
254
+ "name": "message",
255
+ "description": "校验信息",
256
+ "attribute": false,
257
+ "type": "Record<string, string>"
258
+ },
259
+ {
260
+ "name": "textareaStyle",
261
+ "description": "自定义样式",
262
+ "attribute": false,
263
+ "type": "React.CSSProperties"
264
+ }
265
+ ],
266
+ "events": [
267
+ {
268
+ "name": "change",
269
+ "description": "",
270
+ "detail": {
271
+ "description": null,
272
+ "type": "string"
273
+ }
274
+ }
275
+ ],
276
+ "slots": [],
277
+ "methods": [
278
+ {
279
+ "name": "focusTextarea",
280
+ "params": [],
281
+ "description": "focus",
282
+ "returns": {}
283
+ }
284
+ ],
285
+ "parts": [],
286
+ "description": "通用多行文本输入框构件",
287
+ "category": "form-input-basic"
288
+ },
6
289
  {
7
290
  "name": "eo-form",
8
291
  "alias": [
@@ -143,109 +426,6 @@
143
426
  "description": "表单构件",
144
427
  "category": "form-input-basic"
145
428
  },
146
- {
147
- "name": "eo-form-item",
148
- "alias": [
149
- "form.general-form-item"
150
- ],
151
- "properties": [
152
- {
153
- "name": "formElement",
154
- "attribute": false,
155
- "type": "Form"
156
- },
157
- {
158
- "name": "curElement",
159
- "attribute": false,
160
- "type": "HTMLElement"
161
- },
162
- {
163
- "name": "name",
164
- "description": "字段名称",
165
- "type": "string"
166
- },
167
- {
168
- "name": "label",
169
- "type": "string"
170
- },
171
- {
172
- "name": "pattern",
173
- "type": "string"
174
- },
175
- {
176
- "name": "message",
177
- "attribute": false,
178
- "type": "Record<string, string>"
179
- },
180
- {
181
- "name": "type",
182
- "type": "string"
183
- },
184
- {
185
- "name": "max",
186
- "type": "number"
187
- },
188
- {
189
- "name": "min",
190
- "type": "number"
191
- },
192
- {
193
- "name": "required",
194
- "description": "表单项是否为必填",
195
- "type": "boolean"
196
- },
197
- {
198
- "name": "value",
199
- "description": "初始值",
200
- "type": "string"
201
- },
202
- {
203
- "name": "valuePropsName",
204
- "type": "string"
205
- },
206
- {
207
- "name": "layout",
208
- "type": "Layout"
209
- },
210
- {
211
- "name": "size",
212
- "type": "ComponentSize"
213
- },
214
- {
215
- "name": "trim",
216
- "description": "是否自动去除前后的空白字符",
217
- "default": "true"
218
- },
219
- {
220
- "name": "trigger",
221
- "description": "事件触发方法名",
222
- "type": "string"
223
- },
224
- {
225
- "name": "validator",
226
- "description": "表单项校验方法",
227
- "attribute": false,
228
- "type": "((value: any) => MessageBody)"
229
- },
230
- {
231
- "name": "needValidate",
232
- "description": "值变化时是否主动出发校验",
233
- "type": "boolean"
234
- }
235
- ],
236
- "events": [],
237
- "slots": [
238
- {
239
- "name": null,
240
- "description": "表单项内容"
241
- }
242
- ],
243
- "methods": [],
244
- "parts": [],
245
- "description": "通用输入框构件",
246
- "category": "form-input-basic",
247
- "insider": true
248
- },
249
429
  {
250
430
  "name": "eo-radio",
251
431
  "alias": [
@@ -345,162 +525,107 @@
345
525
  "category": "form-input-basic"
346
526
  },
347
527
  {
348
- "name": "eo-textarea",
528
+ "name": "eo-form-item",
349
529
  "alias": [
350
- "form.general-textarea"
530
+ "form.general-form-item"
351
531
  ],
352
532
  "properties": [
353
533
  {
354
- "name": "name",
355
- "description": "字段名称",
356
- "type": "string"
357
- },
358
- {
359
- "name": "label",
360
- "description": "标签文字",
361
- "type": "string"
534
+ "name": "formElement",
535
+ "attribute": false,
536
+ "type": "Form"
362
537
  },
363
538
  {
364
- "name": "value",
365
- "description": "值",
366
- "type": "string"
539
+ "name": "curElement",
540
+ "attribute": false,
541
+ "type": "HTMLElement"
367
542
  },
368
543
  {
369
- "name": "placeholder",
370
- "description": "占位说明",
544
+ "name": "name",
545
+ "description": "字段名称",
371
546
  "type": "string"
372
547
  },
373
- {
374
- "name": "disabled",
375
- "description": "是否禁用",
376
- "type": "boolean"
377
- },
378
- {
379
- "name": "minLength",
380
- "description": "最小长度",
381
- "type": "number"
548
+ {
549
+ "name": "label",
550
+ "type": "string"
382
551
  },
383
552
  {
384
- "name": "maxLength",
385
- "description": "最大长度",
386
- "type": "number"
553
+ "name": "pattern",
554
+ "type": "string"
387
555
  },
388
556
  {
389
- "name": "autoSize",
390
- "description": "大小自适应",
557
+ "name": "message",
391
558
  "attribute": false,
392
- "type": "AutoSize"
559
+ "type": "Record<string, string>"
393
560
  },
394
561
  {
395
- "name": "required",
396
- "description": "是否必填",
397
- "type": "boolean"
562
+ "name": "type",
563
+ "type": "string"
398
564
  },
399
565
  {
400
566
  "name": "max",
401
- "description": "表单校验最大长度",
402
567
  "type": "number"
403
568
  },
404
569
  {
405
570
  "name": "min",
406
- "description": "表单校验最小长度",
407
571
  "type": "number"
408
572
  },
409
573
  {
410
- "name": "message",
411
- "description": "校验信息",
412
- "attribute": false,
413
- "type": "Record<string, string>"
574
+ "name": "required",
575
+ "description": "表单项是否为必填",
576
+ "type": "boolean"
414
577
  },
415
578
  {
416
- "name": "textareaStyle",
417
- "description": "自定义样式",
418
- "attribute": false,
419
- "type": "React.CSSProperties"
420
- }
421
- ],
422
- "events": [
423
- {
424
- "name": "change",
425
- "description": "",
426
- "detail": {
427
- "description": null,
428
- "type": "string"
429
- }
430
- }
431
- ],
432
- "slots": [],
433
- "methods": [
434
- {
435
- "name": "focusTextarea",
436
- "params": [],
437
- "description": "focus",
438
- "returns": {}
439
- }
440
- ],
441
- "parts": [],
442
- "description": "通用多行文本输入框构件",
443
- "category": "form-input-basic"
444
- },
445
- {
446
- "name": "eo-submit-buttons",
447
- "alias": [
448
- "form.submit-buttons"
449
- ],
450
- "properties": [
451
- {
452
- "name": "submitText",
453
- "description": "提交按钮的文字",
454
- "default": "\"提交\"",
579
+ "name": "value",
580
+ "description": "初始值",
455
581
  "type": "string"
456
582
  },
457
583
  {
458
- "name": "cancelText",
459
- "description": "取消按钮的文字,不设置则不显示取消按钮",
584
+ "name": "valuePropsName",
460
585
  "type": "string"
461
586
  },
462
587
  {
463
- "name": "disableAfterClick",
464
- "description": "点击确定按钮后自动禁用",
465
- "type": "boolean"
588
+ "name": "layout",
589
+ "type": "Layout"
466
590
  },
467
591
  {
468
- "name": "submitDisabled",
469
- "description": "禁用提交按钮",
470
- "type": "boolean"
592
+ "name": "size",
593
+ "type": "ComponentSize"
471
594
  },
472
595
  {
473
- "name": "submitType",
474
- "description": "提交按钮类型",
475
- "type": "ButtonType"
596
+ "name": "trim",
597
+ "description": "是否自动去除前后的空白字符",
598
+ "default": "true"
476
599
  },
477
600
  {
478
- "name": "cancelType",
479
- "description": "取消按钮类型",
480
- "type": "ButtonType"
481
- }
482
- ],
483
- "events": [
601
+ "name": "trigger",
602
+ "description": "事件触发方法名",
603
+ "type": "string"
604
+ },
484
605
  {
485
- "name": "submit",
486
- "description": "点击提交按钮触发的事件",
487
- "detail": {
488
- "type": "void"
489
- }
606
+ "name": "validator",
607
+ "description": "表单项校验方法",
608
+ "attribute": false,
609
+ "type": "((value: any) => MessageBody)"
490
610
  },
491
611
  {
492
- "name": "cancel",
493
- "description": "点击取消按钮触发的事件",
494
- "detail": {
495
- "type": "void"
496
- }
612
+ "name": "needValidate",
613
+ "description": "值变化时是否主动出发校验",
614
+ "type": "boolean"
615
+ }
616
+ ],
617
+ "events": [],
618
+ "slots": [
619
+ {
620
+ "name": null,
621
+ "description": "表单项内容"
497
622
  }
498
623
  ],
499
- "slots": [],
500
624
  "methods": [],
501
625
  "parts": [],
502
- "description": "表单提交按钮",
503
- "category": "form-input-basic"
626
+ "description": "通用输入框构件",
627
+ "category": "form-input-basic",
628
+ "insider": true
504
629
  },
505
630
  {
506
631
  "name": "eo-select",
@@ -624,8 +749,8 @@
624
749
  }
625
750
  },
626
751
  {
627
- "name": "focus",
628
- "description": "下拉框focus事件",
752
+ "name": "select.focus",
753
+ "description": "下拉框focus事件\n\n注:之前事件类型为 \"focus\",这和原生事件冲突,可能导致多次触发,现改为 \"select.focus\"",
629
754
  "detail": {
630
755
  "type": "void"
631
756
  }
@@ -644,6 +769,66 @@
644
769
  "description": "通用下拉选择构件",
645
770
  "category": "form-input-basic"
646
771
  },
772
+ {
773
+ "name": "eo-submit-buttons",
774
+ "alias": [
775
+ "form.submit-buttons"
776
+ ],
777
+ "properties": [
778
+ {
779
+ "name": "submitText",
780
+ "description": "提交按钮的文字",
781
+ "default": "\"提交\"",
782
+ "type": "string"
783
+ },
784
+ {
785
+ "name": "cancelText",
786
+ "description": "取消按钮的文字,不设置则不显示取消按钮",
787
+ "type": "string"
788
+ },
789
+ {
790
+ "name": "disableAfterClick",
791
+ "description": "点击确定按钮后自动禁用",
792
+ "type": "boolean"
793
+ },
794
+ {
795
+ "name": "submitDisabled",
796
+ "description": "禁用提交按钮",
797
+ "type": "boolean"
798
+ },
799
+ {
800
+ "name": "submitType",
801
+ "description": "提交按钮类型",
802
+ "type": "ButtonType"
803
+ },
804
+ {
805
+ "name": "cancelType",
806
+ "description": "取消按钮类型",
807
+ "type": "ButtonType"
808
+ }
809
+ ],
810
+ "events": [
811
+ {
812
+ "name": "submit",
813
+ "description": "点击提交按钮触发的事件",
814
+ "detail": {
815
+ "type": "void"
816
+ }
817
+ },
818
+ {
819
+ "name": "cancel",
820
+ "description": "点击取消按钮触发的事件",
821
+ "detail": {
822
+ "type": "void"
823
+ }
824
+ }
825
+ ],
826
+ "slots": [],
827
+ "methods": [],
828
+ "parts": [],
829
+ "description": "表单提交按钮",
830
+ "category": "form-input-basic"
831
+ },
647
832
  {
648
833
  "name": "eo-checkbox",
649
834
  "alias": [
@@ -940,76 +1125,7 @@
940
1125
  "slots": [],
941
1126
  "methods": [],
942
1127
  "parts": [],
943
- "description": "图标选择构件",
944
- "category": "form-input-basic"
945
- },
946
- {
947
- "name": "eo-switch",
948
- "alias": [
949
- "form.general-switch"
950
- ],
951
- "properties": [
952
- {
953
- "name": "name",
954
- "description": "字段名称",
955
- "type": "string"
956
- },
957
- {
958
- "name": "label",
959
- "description": "字段文本",
960
- "type": "string"
961
- },
962
- {
963
- "name": "value",
964
- "description": "初始值",
965
- "type": "boolean"
966
- },
967
- {
968
- "name": "disabled",
969
- "description": "是否禁用",
970
- "type": "boolean"
971
- },
972
- {
973
- "name": "size",
974
- "description": "按钮大小,目前只支持small和非small两种大小。",
975
- "type": "ComponentSize"
976
- },
977
- {
978
- "name": "checkedText",
979
- "description": "选中时的文本",
980
- "type": "string"
981
- },
982
- {
983
- "name": "unCheckedText",
984
- "description": "非选中时的文本",
985
- "type": "string"
986
- },
987
- {
988
- "name": "checkedIcon",
989
- "description": "选中时的图标",
990
- "attribute": false,
991
- "type": "GeneralIconProps"
992
- },
993
- {
994
- "name": "unCheckedIcon",
995
- "description": "非选中时的文本",
996
- "attribute": false,
997
- "type": "GeneralIconProps"
998
- }
999
- ],
1000
- "events": [
1001
- {
1002
- "name": "switch",
1003
- "description": "开关改变时触发",
1004
- "detail": {
1005
- "type": "boolean"
1006
- }
1007
- }
1008
- ],
1009
- "slots": [],
1010
- "methods": [],
1011
- "parts": [],
1012
- "description": "开关",
1128
+ "description": "图标选择构件",
1013
1129
  "category": "form-input-basic"
1014
1130
  },
1015
1131
  {
@@ -1081,6 +1197,75 @@
1081
1197
  "description": "上传图片构件",
1082
1198
  "category": "form-input-basic"
1083
1199
  },
1200
+ {
1201
+ "name": "eo-switch",
1202
+ "alias": [
1203
+ "form.general-switch"
1204
+ ],
1205
+ "properties": [
1206
+ {
1207
+ "name": "name",
1208
+ "description": "字段名称",
1209
+ "type": "string"
1210
+ },
1211
+ {
1212
+ "name": "label",
1213
+ "description": "字段文本",
1214
+ "type": "string"
1215
+ },
1216
+ {
1217
+ "name": "value",
1218
+ "description": "初始值",
1219
+ "type": "boolean"
1220
+ },
1221
+ {
1222
+ "name": "disabled",
1223
+ "description": "是否禁用",
1224
+ "type": "boolean"
1225
+ },
1226
+ {
1227
+ "name": "size",
1228
+ "description": "按钮大小,目前只支持small和非small两种大小。",
1229
+ "type": "ComponentSize"
1230
+ },
1231
+ {
1232
+ "name": "checkedText",
1233
+ "description": "选中时的文本",
1234
+ "type": "string"
1235
+ },
1236
+ {
1237
+ "name": "unCheckedText",
1238
+ "description": "非选中时的文本",
1239
+ "type": "string"
1240
+ },
1241
+ {
1242
+ "name": "checkedIcon",
1243
+ "description": "选中时的图标",
1244
+ "attribute": false,
1245
+ "type": "GeneralIconProps"
1246
+ },
1247
+ {
1248
+ "name": "unCheckedIcon",
1249
+ "description": "非选中时的文本",
1250
+ "attribute": false,
1251
+ "type": "GeneralIconProps"
1252
+ }
1253
+ ],
1254
+ "events": [
1255
+ {
1256
+ "name": "switch",
1257
+ "description": "开关改变时触发",
1258
+ "detail": {
1259
+ "type": "boolean"
1260
+ }
1261
+ }
1262
+ ],
1263
+ "slots": [],
1264
+ "methods": [],
1265
+ "parts": [],
1266
+ "description": "开关",
1267
+ "category": "form-input-basic"
1268
+ },
1084
1269
  {
1085
1270
  "name": "eo-upload-file",
1086
1271
  "properties": [
@@ -1287,191 +1472,6 @@
1287
1472
  "description": "带候选项的输入框",
1288
1473
  "category": "form-input-basic"
1289
1474
  },
1290
- {
1291
- "name": "eo-input",
1292
- "alias": [
1293
- "form.general-input"
1294
- ],
1295
- "properties": [
1296
- {
1297
- "name": "name",
1298
- "description": "字段名称",
1299
- "type": "string"
1300
- },
1301
- {
1302
- "name": "label",
1303
- "description": "标签文字",
1304
- "type": "string"
1305
- },
1306
- {
1307
- "name": "required",
1308
- "description": "是否必填",
1309
- "type": "boolean"
1310
- },
1311
- {
1312
- "name": "pattern",
1313
- "description": "正则校验规则",
1314
- "type": "string"
1315
- },
1316
- {
1317
- "name": "max",
1318
- "description": "表单校验最大长度(当 type 为 number 时,表示最大值)",
1319
- "type": "number"
1320
- },
1321
- {
1322
- "name": "min",
1323
- "description": "表单校验最小长度(当 type 为 number 时,表示最小值)",
1324
- "type": "number"
1325
- },
1326
- {
1327
- "name": "message",
1328
- "description": "错误时显示消息",
1329
- "attribute": false,
1330
- "type": "Record<string, string>"
1331
- },
1332
- {
1333
- "name": "value",
1334
- "description": "输入框值",
1335
- "type": "string"
1336
- },
1337
- {
1338
- "name": "placeholder",
1339
- "description": "占位说明",
1340
- "type": "string"
1341
- },
1342
- {
1343
- "name": "disabled",
1344
- "description": "是否禁用",
1345
- "type": "boolean"
1346
- },
1347
- {
1348
- "name": "readonly",
1349
- "description": "是否只读",
1350
- "type": "boolean"
1351
- },
1352
- {
1353
- "name": "clearable",
1354
- "description": "是否显示清除按钮",
1355
- "type": "boolean"
1356
- },
1357
- {
1358
- "name": "autoFocus",
1359
- "description": "是否自动聚焦",
1360
- "type": "boolean"
1361
- },
1362
- {
1363
- "name": "type",
1364
- "description": "类型",
1365
- "default": "\"text\"",
1366
- "type": "InputType"
1367
- },
1368
- {
1369
- "name": "size",
1370
- "description": "大小",
1371
- "default": "\"medium\"",
1372
- "type": "ComponentSize"
1373
- },
1374
- {
1375
- "name": "minLength",
1376
- "description": "最小长度",
1377
- "type": "number"
1378
- },
1379
- {
1380
- "name": "maxLength",
1381
- "description": "最大长度(用户无法输入超过此最大长度的字符串)",
1382
- "type": "number"
1383
- },
1384
- {
1385
- "name": "inputStyle",
1386
- "description": "输入框样式",
1387
- "attribute": false,
1388
- "type": "React.CSSProperties"
1389
- },
1390
- {
1391
- "name": "validator",
1392
- "description": "表单项校验方法",
1393
- "attribute": false,
1394
- "type": "((value: any) => MessageBody)"
1395
- }
1396
- ],
1397
- "events": [
1398
- {
1399
- "name": "change",
1400
- "description": "值改变事件",
1401
- "detail": {
1402
- "type": "string"
1403
- }
1404
- }
1405
- ],
1406
- "slots": [
1407
- {
1408
- "name": "addonBefore",
1409
- "description": "输入框前置标签"
1410
- },
1411
- {
1412
- "name": "addonAfter",
1413
- "description": "输入框后置标签"
1414
- },
1415
- {
1416
- "name": "prefix",
1417
- "description": "输入框前缀图标"
1418
- },
1419
- {
1420
- "name": "suffix",
1421
- "description": "输入框后缀图标"
1422
- }
1423
- ],
1424
- "methods": [
1425
- {
1426
- "name": "focusInput",
1427
- "params": [],
1428
- "description": "focus",
1429
- "returns": {}
1430
- },
1431
- {
1432
- "name": "blurInput",
1433
- "params": [],
1434
- "description": "blur",
1435
- "returns": {}
1436
- }
1437
- ],
1438
- "parts": [
1439
- {
1440
- "name": "addon-wrapper",
1441
- "description": "包裹输入组件、前缀、后缀、前置和后置的容器"
1442
- },
1443
- {
1444
- "name": "affix-wrapper",
1445
- "description": "包裹输入组件、前缀和后缀的容器"
1446
- },
1447
- {
1448
- "name": "input",
1449
- "description": "输入组件"
1450
- },
1451
- {
1452
- "name": "clear-icon",
1453
- "description": "清除按钮"
1454
- },
1455
- {
1456
- "name": "prefix",
1457
- "description": "输入框前缀容器"
1458
- },
1459
- {
1460
- "name": "suffix",
1461
- "description": "输入框后缀容器"
1462
- },
1463
- {
1464
- "name": "before-addon",
1465
- "description": "输入框前置容器"
1466
- },
1467
- {
1468
- "name": "after-addon",
1469
- "description": "输入框后置容器"
1470
- }
1471
- ],
1472
- "description": "通用输入框构件",
1473
- "category": "form-input-basic"
1474
- },
1475
1475
  {
1476
1476
  "name": "eo-time-picker",
1477
1477
  "properties": [