@next-bricks/form 1.21.7 → 1.21.8
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 +43 -43
- package/dist/chunks/9949.753e2720.js.map +1 -1
- package/dist/chunks/eo-checkbox.0b875e8b.js.map +1 -1
- package/dist/chunks/eo-color-picker.c3b11b2f.js.map +1 -1
- package/dist/chunks/eo-date-picker.f5894c3c.js.map +1 -1
- package/dist/chunks/eo-dynamic-form-item.3837c24e.js.map +1 -1
- package/dist/chunks/eo-icon-select.d343ca96.js.map +1 -1
- package/dist/chunks/eo-select.9c05c45b.js.map +1 -1
- package/dist/chunks/eo-submit-buttons.bccc3dbf.js.map +1 -1
- package/dist/chunks/eo-switch.3607f593.js.map +1 -1
- package/dist/chunks/eo-textarea.fbc8c190.js.map +1 -1
- package/dist/chunks/eo-time-picker.da156d88.js.map +1 -1
- package/dist/chunks/eo-time-range-picker.15864724.js.map +1 -1
- package/dist/chunks/eo-upload-file.8e5acc0f.js.map +1 -1
- package/dist/chunks/eo-upload-image.1ae9beb3.js.map +1 -1
- package/dist/chunks/{main.87225246.js → main.7bc729a9.js} +2 -2
- package/dist/chunks/{main.87225246.js.map → main.7bc729a9.js.map} +1 -1
- package/dist/examples.json +14 -14
- package/dist/{index.6bd92494.js → index.b71d6b2b.js} +2 -2
- package/dist/{index.6bd92494.js.map → index.b71d6b2b.js.map} +1 -1
- package/dist/manifest.json +396 -396
- package/dist/types.json +1127 -1127
- package/dist-types/checkbox/index.d.ts +11 -0
- package/dist-types/color-picker/index.d.ts +6 -0
- package/dist-types/date-picker/index.d.ts +8 -0
- package/dist-types/dynamic-form-item/index.d.ts +12 -2
- package/dist-types/general-switch/index.d.ts +7 -2
- package/dist-types/icon-select/index.d.ts +7 -1
- package/dist-types/select/index.d.ts +26 -0
- package/dist-types/submit-buttons/index.d.ts +8 -0
- package/dist-types/textarea/index.d.ts +6 -0
- package/dist-types/time-picker/index.d.ts +10 -0
- package/dist-types/time-range-picker/index.d.ts +6 -0
- package/dist-types/upload/upload-file/index.d.ts +6 -0
- package/dist-types/upload/upload-image/index.d.ts +6 -0
- package/package.json +2 -2
package/dist/manifest.json
CHANGED
|
@@ -152,6 +152,114 @@
|
|
|
152
152
|
"description": "表单构件",
|
|
153
153
|
"category": "form-input-basic"
|
|
154
154
|
},
|
|
155
|
+
{
|
|
156
|
+
"name": "eo-textarea",
|
|
157
|
+
"alias": [
|
|
158
|
+
"form.general-textarea"
|
|
159
|
+
],
|
|
160
|
+
"properties": [
|
|
161
|
+
{
|
|
162
|
+
"name": "name",
|
|
163
|
+
"description": "字段名称",
|
|
164
|
+
"type": "string"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"name": "label",
|
|
168
|
+
"description": "标签文字",
|
|
169
|
+
"type": "string"
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"name": "value",
|
|
173
|
+
"description": "值",
|
|
174
|
+
"type": "string"
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"name": "placeholder",
|
|
178
|
+
"description": "占位说明",
|
|
179
|
+
"type": "string"
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"name": "disabled",
|
|
183
|
+
"description": "是否禁用",
|
|
184
|
+
"type": "boolean"
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"name": "minLength",
|
|
188
|
+
"description": "最小长度",
|
|
189
|
+
"type": "number"
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"name": "maxLength",
|
|
193
|
+
"description": "最大长度",
|
|
194
|
+
"type": "number"
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"name": "autoSize",
|
|
198
|
+
"description": "大小自适应",
|
|
199
|
+
"attribute": false,
|
|
200
|
+
"type": "AutoSize"
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"name": "required",
|
|
204
|
+
"description": "是否必填",
|
|
205
|
+
"type": "boolean"
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"name": "max",
|
|
209
|
+
"description": "表单校验最大长度",
|
|
210
|
+
"type": "number"
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"name": "min",
|
|
214
|
+
"description": "表单校验最小长度",
|
|
215
|
+
"type": "number"
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"name": "message",
|
|
219
|
+
"description": "校验信息",
|
|
220
|
+
"attribute": false,
|
|
221
|
+
"type": "Record<string, string>"
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
"name": "textareaStyle",
|
|
225
|
+
"description": "自定义样式",
|
|
226
|
+
"attribute": false,
|
|
227
|
+
"type": "React.CSSProperties"
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"name": "variant",
|
|
231
|
+
"description": "变体\n\n- muted: 在 themeVariant 为 elevo 时可用,设置时输入框没有 box-shadow",
|
|
232
|
+
"type": "\"default\" | \"muted\""
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
"name": "themeVariant",
|
|
236
|
+
"description": "主题变体",
|
|
237
|
+
"type": "\"default\" | \"elevo\""
|
|
238
|
+
}
|
|
239
|
+
],
|
|
240
|
+
"events": [
|
|
241
|
+
{
|
|
242
|
+
"name": "change",
|
|
243
|
+
"description": "",
|
|
244
|
+
"detail": {
|
|
245
|
+
"description": null,
|
|
246
|
+
"type": "string"
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
],
|
|
250
|
+
"slots": [],
|
|
251
|
+
"methods": [
|
|
252
|
+
{
|
|
253
|
+
"name": "focusTextarea",
|
|
254
|
+
"params": [],
|
|
255
|
+
"description": "focus",
|
|
256
|
+
"returns": {}
|
|
257
|
+
}
|
|
258
|
+
],
|
|
259
|
+
"parts": [],
|
|
260
|
+
"description": "通用多行文本输入框构件",
|
|
261
|
+
"category": "form-input-basic"
|
|
262
|
+
},
|
|
155
263
|
{
|
|
156
264
|
"name": "eo-radio",
|
|
157
265
|
"alias": [
|
|
@@ -256,41 +364,121 @@
|
|
|
256
364
|
"category": "form-input-basic"
|
|
257
365
|
},
|
|
258
366
|
{
|
|
259
|
-
"name": "eo-
|
|
367
|
+
"name": "eo-select",
|
|
260
368
|
"alias": [
|
|
261
|
-
"form.
|
|
369
|
+
"form.general-select"
|
|
262
370
|
],
|
|
263
371
|
"properties": [
|
|
264
372
|
{
|
|
265
|
-
"name": "
|
|
266
|
-
"description": "
|
|
267
|
-
"default": "\"提交\"",
|
|
373
|
+
"name": "name",
|
|
374
|
+
"description": "字段名称",
|
|
268
375
|
"type": "string"
|
|
269
376
|
},
|
|
270
377
|
{
|
|
271
|
-
"name": "
|
|
272
|
-
"description": "
|
|
378
|
+
"name": "placeholder",
|
|
379
|
+
"description": "占位说明",
|
|
273
380
|
"type": "string"
|
|
274
381
|
},
|
|
275
382
|
{
|
|
276
|
-
"name": "
|
|
277
|
-
"description": "
|
|
383
|
+
"name": "label",
|
|
384
|
+
"description": "字段文本",
|
|
385
|
+
"type": "string"
|
|
386
|
+
},
|
|
387
|
+
{
|
|
388
|
+
"name": "options",
|
|
389
|
+
"description": "选项列表",
|
|
390
|
+
"required": true,
|
|
391
|
+
"attribute": false,
|
|
392
|
+
"type": "GeneralComplexOption[]"
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
"name": "value",
|
|
396
|
+
"description": "值",
|
|
397
|
+
"attribute": false,
|
|
398
|
+
"type": "any"
|
|
399
|
+
},
|
|
400
|
+
{
|
|
401
|
+
"name": "required",
|
|
402
|
+
"description": "是否必填",
|
|
278
403
|
"type": "boolean"
|
|
279
404
|
},
|
|
280
405
|
{
|
|
281
|
-
"name": "
|
|
282
|
-
"description": "
|
|
406
|
+
"name": "message",
|
|
407
|
+
"description": "校验文本信息",
|
|
408
|
+
"attribute": false,
|
|
409
|
+
"type": "Record<string, string>"
|
|
410
|
+
},
|
|
411
|
+
{
|
|
412
|
+
"name": "disabled",
|
|
413
|
+
"description": "是否禁用",
|
|
283
414
|
"type": "boolean"
|
|
284
415
|
},
|
|
285
416
|
{
|
|
286
|
-
"name": "
|
|
287
|
-
"description": "
|
|
288
|
-
"type": "
|
|
417
|
+
"name": "mode",
|
|
418
|
+
"description": "类型",
|
|
419
|
+
"type": "\"tags\" | \"multiple\""
|
|
289
420
|
},
|
|
290
421
|
{
|
|
291
|
-
"name": "
|
|
292
|
-
"description": "
|
|
293
|
-
"
|
|
422
|
+
"name": "tokenSeparators",
|
|
423
|
+
"description": "自动分词的分隔符,仅在 mode=\"tags\" 时生效",
|
|
424
|
+
"attribute": false,
|
|
425
|
+
"type": "string[]"
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
"name": "maxTagCount",
|
|
429
|
+
"description": "最多显示多少个 tag, 剩余的 tag 将被隐藏",
|
|
430
|
+
"type": "number"
|
|
431
|
+
},
|
|
432
|
+
{
|
|
433
|
+
"name": "groupBy",
|
|
434
|
+
"description": "分组字段",
|
|
435
|
+
"type": "string"
|
|
436
|
+
},
|
|
437
|
+
{
|
|
438
|
+
"name": "suffix",
|
|
439
|
+
"description": "",
|
|
440
|
+
"attribute": false,
|
|
441
|
+
"type": "{ useBrick: UseSingleBrickConf }"
|
|
442
|
+
},
|
|
443
|
+
{
|
|
444
|
+
"name": "clearable",
|
|
445
|
+
"description": "是否支持清除",
|
|
446
|
+
"default": "true",
|
|
447
|
+
"type": "boolean"
|
|
448
|
+
},
|
|
449
|
+
{
|
|
450
|
+
"name": "fields",
|
|
451
|
+
"description": "列表指定字段作为 label 和 value",
|
|
452
|
+
"attribute": false,
|
|
453
|
+
"type": "{ label?: string; value?: string }"
|
|
454
|
+
},
|
|
455
|
+
{
|
|
456
|
+
"name": "useBackend",
|
|
457
|
+
"description": "后端搜索",
|
|
458
|
+
"attribute": false,
|
|
459
|
+
"type": "UseBackendConf"
|
|
460
|
+
},
|
|
461
|
+
{
|
|
462
|
+
"name": "debounceSearchDelay",
|
|
463
|
+
"description": "设置时,同时对 useBackend 和 search 事件进行防抖。\n未设置时,useBackend 有默认的 300ms 防抖。",
|
|
464
|
+
"type": "number"
|
|
465
|
+
},
|
|
466
|
+
{
|
|
467
|
+
"name": "inputStyle",
|
|
468
|
+
"description": "输入框样式",
|
|
469
|
+
"attribute": false,
|
|
470
|
+
"type": "React.CSSProperties"
|
|
471
|
+
},
|
|
472
|
+
{
|
|
473
|
+
"name": "dropdownStyle",
|
|
474
|
+
"description": "下拉框样式",
|
|
475
|
+
"attribute": false,
|
|
476
|
+
"type": "React.CSSProperties"
|
|
477
|
+
},
|
|
478
|
+
{
|
|
479
|
+
"name": "dropdownHoist",
|
|
480
|
+
"description": "下拉框是否使用固定定位防止内容被裁切",
|
|
481
|
+
"type": "boolean"
|
|
294
482
|
},
|
|
295
483
|
{
|
|
296
484
|
"name": "themeVariant",
|
|
@@ -300,24 +488,46 @@
|
|
|
300
488
|
],
|
|
301
489
|
"events": [
|
|
302
490
|
{
|
|
303
|
-
"name": "
|
|
304
|
-
"description": "
|
|
491
|
+
"name": "change",
|
|
492
|
+
"description": "下拉选择事件",
|
|
305
493
|
"detail": {
|
|
306
|
-
"type": "
|
|
494
|
+
"type": "{\n value: string | string[];\n options: GeneralComplexOption[];\n }"
|
|
307
495
|
}
|
|
308
496
|
},
|
|
309
497
|
{
|
|
310
|
-
"name": "
|
|
311
|
-
"description": "
|
|
498
|
+
"name": "change.v2",
|
|
499
|
+
"description": "下拉选择事件 v2(仅传递选中的值)",
|
|
500
|
+
"detail": {
|
|
501
|
+
"description": "选中的值",
|
|
502
|
+
"type": "string | string[]"
|
|
503
|
+
}
|
|
504
|
+
},
|
|
505
|
+
{
|
|
506
|
+
"name": "search",
|
|
507
|
+
"description": "下拉框search事件",
|
|
508
|
+
"detail": {
|
|
509
|
+
"type": "{\n value: string;\n }"
|
|
510
|
+
}
|
|
511
|
+
},
|
|
512
|
+
{
|
|
513
|
+
"name": "select.focus",
|
|
514
|
+
"description": "下拉框focus事件\n\n注:之前事件类型为 \"focus\",这和原生事件冲突,可能导致多次触发,现改为 \"select.focus\"",
|
|
312
515
|
"detail": {
|
|
313
516
|
"type": "void"
|
|
314
517
|
}
|
|
518
|
+
},
|
|
519
|
+
{
|
|
520
|
+
"name": "options.change",
|
|
521
|
+
"description": "选项列表变化事件",
|
|
522
|
+
"detail": {
|
|
523
|
+
"type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
|
|
524
|
+
}
|
|
315
525
|
}
|
|
316
526
|
],
|
|
317
527
|
"slots": [],
|
|
318
528
|
"methods": [],
|
|
319
529
|
"parts": [],
|
|
320
|
-
"description": "
|
|
530
|
+
"description": "通用下拉选择构件",
|
|
321
531
|
"category": "form-input-basic"
|
|
322
532
|
},
|
|
323
533
|
{
|
|
@@ -417,6 +627,71 @@
|
|
|
417
627
|
"description": "表单复选框构件",
|
|
418
628
|
"category": "form-input-basic"
|
|
419
629
|
},
|
|
630
|
+
{
|
|
631
|
+
"name": "eo-submit-buttons",
|
|
632
|
+
"alias": [
|
|
633
|
+
"form.submit-buttons"
|
|
634
|
+
],
|
|
635
|
+
"properties": [
|
|
636
|
+
{
|
|
637
|
+
"name": "submitText",
|
|
638
|
+
"description": "提交按钮的文字",
|
|
639
|
+
"default": "\"提交\"",
|
|
640
|
+
"type": "string"
|
|
641
|
+
},
|
|
642
|
+
{
|
|
643
|
+
"name": "cancelText",
|
|
644
|
+
"description": "取消按钮的文字,不设置则不显示取消按钮",
|
|
645
|
+
"type": "string"
|
|
646
|
+
},
|
|
647
|
+
{
|
|
648
|
+
"name": "disableAfterClick",
|
|
649
|
+
"description": "点击确定按钮后自动禁用",
|
|
650
|
+
"type": "boolean"
|
|
651
|
+
},
|
|
652
|
+
{
|
|
653
|
+
"name": "submitDisabled",
|
|
654
|
+
"description": "禁用提交按钮",
|
|
655
|
+
"type": "boolean"
|
|
656
|
+
},
|
|
657
|
+
{
|
|
658
|
+
"name": "submitType",
|
|
659
|
+
"description": "提交按钮类型",
|
|
660
|
+
"type": "ButtonType"
|
|
661
|
+
},
|
|
662
|
+
{
|
|
663
|
+
"name": "cancelType",
|
|
664
|
+
"description": "取消按钮类型",
|
|
665
|
+
"type": "ButtonType"
|
|
666
|
+
},
|
|
667
|
+
{
|
|
668
|
+
"name": "themeVariant",
|
|
669
|
+
"description": "主题变体",
|
|
670
|
+
"type": "\"default\" | \"elevo\""
|
|
671
|
+
}
|
|
672
|
+
],
|
|
673
|
+
"events": [
|
|
674
|
+
{
|
|
675
|
+
"name": "submit",
|
|
676
|
+
"description": "点击提交按钮触发的事件",
|
|
677
|
+
"detail": {
|
|
678
|
+
"type": "void"
|
|
679
|
+
}
|
|
680
|
+
},
|
|
681
|
+
{
|
|
682
|
+
"name": "cancel",
|
|
683
|
+
"description": "点击取消按钮触发的事件",
|
|
684
|
+
"detail": {
|
|
685
|
+
"type": "void"
|
|
686
|
+
}
|
|
687
|
+
}
|
|
688
|
+
],
|
|
689
|
+
"slots": [],
|
|
690
|
+
"methods": [],
|
|
691
|
+
"parts": [],
|
|
692
|
+
"description": "表单提交按钮",
|
|
693
|
+
"category": "form-input-basic"
|
|
694
|
+
},
|
|
420
695
|
{
|
|
421
696
|
"name": "eo-dynamic-form-item",
|
|
422
697
|
"alias": [
|
|
@@ -582,9 +857,9 @@
|
|
|
582
857
|
"category": "interact-basic"
|
|
583
858
|
},
|
|
584
859
|
{
|
|
585
|
-
"name": "eo-
|
|
860
|
+
"name": "eo-icon-select",
|
|
586
861
|
"alias": [
|
|
587
|
-
"form.
|
|
862
|
+
"form.icon-select"
|
|
588
863
|
],
|
|
589
864
|
"properties": [
|
|
590
865
|
{
|
|
@@ -594,72 +869,31 @@
|
|
|
594
869
|
},
|
|
595
870
|
{
|
|
596
871
|
"name": "label",
|
|
597
|
-
"description": "
|
|
872
|
+
"description": "字段说明",
|
|
598
873
|
"type": "string"
|
|
599
874
|
},
|
|
600
875
|
{
|
|
601
876
|
"name": "value",
|
|
602
877
|
"description": "值",
|
|
603
|
-
"
|
|
604
|
-
|
|
605
|
-
{
|
|
606
|
-
"name": "placeholder",
|
|
607
|
-
"description": "占位说明",
|
|
608
|
-
"type": "string"
|
|
878
|
+
"attribute": false,
|
|
879
|
+
"type": "Icon"
|
|
609
880
|
},
|
|
610
881
|
{
|
|
611
882
|
"name": "disabled",
|
|
612
883
|
"description": "是否禁用",
|
|
613
884
|
"type": "boolean"
|
|
614
885
|
},
|
|
615
|
-
{
|
|
616
|
-
"name": "minLength",
|
|
617
|
-
"description": "最小长度",
|
|
618
|
-
"type": "number"
|
|
619
|
-
},
|
|
620
|
-
{
|
|
621
|
-
"name": "maxLength",
|
|
622
|
-
"description": "最大长度",
|
|
623
|
-
"type": "number"
|
|
624
|
-
},
|
|
625
|
-
{
|
|
626
|
-
"name": "autoSize",
|
|
627
|
-
"description": "大小自适应",
|
|
628
|
-
"attribute": false,
|
|
629
|
-
"type": "AutoSize"
|
|
630
|
-
},
|
|
631
886
|
{
|
|
632
887
|
"name": "required",
|
|
633
888
|
"description": "是否必填",
|
|
634
889
|
"type": "boolean"
|
|
635
890
|
},
|
|
636
|
-
{
|
|
637
|
-
"name": "max",
|
|
638
|
-
"description": "表单校验最大长度",
|
|
639
|
-
"type": "number"
|
|
640
|
-
},
|
|
641
|
-
{
|
|
642
|
-
"name": "min",
|
|
643
|
-
"description": "表单校验最小长度",
|
|
644
|
-
"type": "number"
|
|
645
|
-
},
|
|
646
891
|
{
|
|
647
892
|
"name": "message",
|
|
648
|
-
"description": "
|
|
893
|
+
"description": "是否必填",
|
|
649
894
|
"attribute": false,
|
|
650
895
|
"type": "Record<string, string>"
|
|
651
896
|
},
|
|
652
|
-
{
|
|
653
|
-
"name": "textareaStyle",
|
|
654
|
-
"description": "自定义样式",
|
|
655
|
-
"attribute": false,
|
|
656
|
-
"type": "React.CSSProperties"
|
|
657
|
-
},
|
|
658
|
-
{
|
|
659
|
-
"name": "variant",
|
|
660
|
-
"description": "变体\n\n- muted: 在 themeVariant 为 elevo 时可用,设置时输入框没有 box-shadow",
|
|
661
|
-
"type": "\"default\" | \"muted\""
|
|
662
|
-
},
|
|
663
897
|
{
|
|
664
898
|
"name": "themeVariant",
|
|
665
899
|
"description": "主题变体",
|
|
@@ -669,30 +903,22 @@
|
|
|
669
903
|
"events": [
|
|
670
904
|
{
|
|
671
905
|
"name": "change",
|
|
672
|
-
"description": "",
|
|
906
|
+
"description": "值变化时触发",
|
|
673
907
|
"detail": {
|
|
674
|
-
"
|
|
675
|
-
"type": "string"
|
|
908
|
+
"type": "Icon | undefined"
|
|
676
909
|
}
|
|
677
910
|
}
|
|
678
911
|
],
|
|
679
912
|
"slots": [],
|
|
680
|
-
"methods": [
|
|
681
|
-
{
|
|
682
|
-
"name": "focusTextarea",
|
|
683
|
-
"params": [],
|
|
684
|
-
"description": "focus",
|
|
685
|
-
"returns": {}
|
|
686
|
-
}
|
|
687
|
-
],
|
|
913
|
+
"methods": [],
|
|
688
914
|
"parts": [],
|
|
689
|
-
"description": "
|
|
915
|
+
"description": "图标选择构件",
|
|
690
916
|
"category": "form-input-basic"
|
|
691
917
|
},
|
|
692
918
|
{
|
|
693
|
-
"name": "eo-
|
|
919
|
+
"name": "eo-switch",
|
|
694
920
|
"alias": [
|
|
695
|
-
"form.
|
|
921
|
+
"form.general-switch"
|
|
696
922
|
],
|
|
697
923
|
"properties": [
|
|
698
924
|
{
|
|
@@ -702,14 +928,13 @@
|
|
|
702
928
|
},
|
|
703
929
|
{
|
|
704
930
|
"name": "label",
|
|
705
|
-
"description": "
|
|
931
|
+
"description": "字段文本",
|
|
706
932
|
"type": "string"
|
|
707
933
|
},
|
|
708
934
|
{
|
|
709
935
|
"name": "value",
|
|
710
|
-
"description": "
|
|
711
|
-
"
|
|
712
|
-
"type": "Icon"
|
|
936
|
+
"description": "初始值",
|
|
937
|
+
"type": "boolean"
|
|
713
938
|
},
|
|
714
939
|
{
|
|
715
940
|
"name": "disabled",
|
|
@@ -717,15 +942,31 @@
|
|
|
717
942
|
"type": "boolean"
|
|
718
943
|
},
|
|
719
944
|
{
|
|
720
|
-
"name": "
|
|
721
|
-
"description": "
|
|
722
|
-
"type": "
|
|
945
|
+
"name": "size",
|
|
946
|
+
"description": "按钮大小,目前只支持small和非small两种大小。",
|
|
947
|
+
"type": "ComponentSize"
|
|
723
948
|
},
|
|
724
949
|
{
|
|
725
|
-
"name": "
|
|
726
|
-
"description": "
|
|
950
|
+
"name": "checkedText",
|
|
951
|
+
"description": "选中时的文本",
|
|
952
|
+
"type": "string"
|
|
953
|
+
},
|
|
954
|
+
{
|
|
955
|
+
"name": "unCheckedText",
|
|
956
|
+
"description": "非选中时的文本",
|
|
957
|
+
"type": "string"
|
|
958
|
+
},
|
|
959
|
+
{
|
|
960
|
+
"name": "checkedIcon",
|
|
961
|
+
"description": "选中时的图标",
|
|
727
962
|
"attribute": false,
|
|
728
|
-
"type": "
|
|
963
|
+
"type": "GeneralIconProps"
|
|
964
|
+
},
|
|
965
|
+
{
|
|
966
|
+
"name": "unCheckedIcon",
|
|
967
|
+
"description": "非选中时的文本",
|
|
968
|
+
"attribute": false,
|
|
969
|
+
"type": "GeneralIconProps"
|
|
729
970
|
},
|
|
730
971
|
{
|
|
731
972
|
"name": "themeVariant",
|
|
@@ -735,17 +976,17 @@
|
|
|
735
976
|
],
|
|
736
977
|
"events": [
|
|
737
978
|
{
|
|
738
|
-
"name": "
|
|
739
|
-
"description": "
|
|
979
|
+
"name": "switch",
|
|
980
|
+
"description": "开关改变时触发",
|
|
740
981
|
"detail": {
|
|
741
|
-
"type": "
|
|
982
|
+
"type": "boolean"
|
|
742
983
|
}
|
|
743
984
|
}
|
|
744
985
|
],
|
|
745
986
|
"slots": [],
|
|
746
987
|
"methods": [],
|
|
747
988
|
"parts": [],
|
|
748
|
-
"description": "
|
|
989
|
+
"description": "开关",
|
|
749
990
|
"category": "form-input-basic"
|
|
750
991
|
},
|
|
751
992
|
{
|
|
@@ -827,80 +1068,6 @@
|
|
|
827
1068
|
"description": "上传图片构件",
|
|
828
1069
|
"category": "form-input-basic"
|
|
829
1070
|
},
|
|
830
|
-
{
|
|
831
|
-
"name": "eo-switch",
|
|
832
|
-
"alias": [
|
|
833
|
-
"form.general-switch"
|
|
834
|
-
],
|
|
835
|
-
"properties": [
|
|
836
|
-
{
|
|
837
|
-
"name": "name",
|
|
838
|
-
"description": "字段名称",
|
|
839
|
-
"type": "string"
|
|
840
|
-
},
|
|
841
|
-
{
|
|
842
|
-
"name": "label",
|
|
843
|
-
"description": "字段文本",
|
|
844
|
-
"type": "string"
|
|
845
|
-
},
|
|
846
|
-
{
|
|
847
|
-
"name": "value",
|
|
848
|
-
"description": "初始值",
|
|
849
|
-
"type": "boolean"
|
|
850
|
-
},
|
|
851
|
-
{
|
|
852
|
-
"name": "disabled",
|
|
853
|
-
"description": "是否禁用",
|
|
854
|
-
"type": "boolean"
|
|
855
|
-
},
|
|
856
|
-
{
|
|
857
|
-
"name": "size",
|
|
858
|
-
"description": "按钮大小,目前只支持small和非small两种大小。",
|
|
859
|
-
"type": "ComponentSize"
|
|
860
|
-
},
|
|
861
|
-
{
|
|
862
|
-
"name": "checkedText",
|
|
863
|
-
"description": "选中时的文本",
|
|
864
|
-
"type": "string"
|
|
865
|
-
},
|
|
866
|
-
{
|
|
867
|
-
"name": "unCheckedText",
|
|
868
|
-
"description": "非选中时的文本",
|
|
869
|
-
"type": "string"
|
|
870
|
-
},
|
|
871
|
-
{
|
|
872
|
-
"name": "checkedIcon",
|
|
873
|
-
"description": "选中时的图标",
|
|
874
|
-
"attribute": false,
|
|
875
|
-
"type": "GeneralIconProps"
|
|
876
|
-
},
|
|
877
|
-
{
|
|
878
|
-
"name": "unCheckedIcon",
|
|
879
|
-
"description": "非选中时的文本",
|
|
880
|
-
"attribute": false,
|
|
881
|
-
"type": "GeneralIconProps"
|
|
882
|
-
},
|
|
883
|
-
{
|
|
884
|
-
"name": "themeVariant",
|
|
885
|
-
"description": "主题变体",
|
|
886
|
-
"type": "\"default\" | \"elevo\""
|
|
887
|
-
}
|
|
888
|
-
],
|
|
889
|
-
"events": [
|
|
890
|
-
{
|
|
891
|
-
"name": "switch",
|
|
892
|
-
"description": "开关改变时触发",
|
|
893
|
-
"detail": {
|
|
894
|
-
"type": "boolean"
|
|
895
|
-
}
|
|
896
|
-
}
|
|
897
|
-
],
|
|
898
|
-
"slots": [],
|
|
899
|
-
"methods": [],
|
|
900
|
-
"parts": [],
|
|
901
|
-
"description": "开关",
|
|
902
|
-
"category": "form-input-basic"
|
|
903
|
-
},
|
|
904
1071
|
{
|
|
905
1072
|
"name": "eo-upload-file",
|
|
906
1073
|
"properties": [
|
|
@@ -1030,33 +1197,28 @@
|
|
|
1030
1197
|
"category": "form-input-basic"
|
|
1031
1198
|
},
|
|
1032
1199
|
{
|
|
1033
|
-
"name": "eo-
|
|
1200
|
+
"name": "eo-auto-complete",
|
|
1034
1201
|
"properties": [
|
|
1035
1202
|
{
|
|
1036
1203
|
"name": "name",
|
|
1037
|
-
"description": "
|
|
1038
|
-
"type": "string"
|
|
1039
|
-
},
|
|
1040
|
-
{
|
|
1041
|
-
"name": "label",
|
|
1042
|
-
"description": "时间选择器说明",
|
|
1204
|
+
"description": "字段名称",
|
|
1043
1205
|
"type": "string"
|
|
1044
1206
|
},
|
|
1045
1207
|
{
|
|
1046
|
-
"name": "
|
|
1047
|
-
"description": "
|
|
1208
|
+
"name": "placeholder",
|
|
1209
|
+
"description": "占位说明",
|
|
1048
1210
|
"type": "string"
|
|
1049
1211
|
},
|
|
1050
1212
|
{
|
|
1051
|
-
"name": "
|
|
1052
|
-
"description": "
|
|
1213
|
+
"name": "label",
|
|
1214
|
+
"description": "字段文本",
|
|
1053
1215
|
"type": "string"
|
|
1054
1216
|
},
|
|
1055
1217
|
{
|
|
1056
|
-
"name": "
|
|
1057
|
-
"description": "
|
|
1218
|
+
"name": "inputStyle",
|
|
1219
|
+
"description": "输入框样式",
|
|
1058
1220
|
"attribute": false,
|
|
1059
|
-
"type": "
|
|
1221
|
+
"type": "React.CSSProperties"
|
|
1060
1222
|
},
|
|
1061
1223
|
{
|
|
1062
1224
|
"name": "disabled",
|
|
@@ -1069,60 +1231,7 @@
|
|
|
1069
1231
|
"type": "boolean"
|
|
1070
1232
|
},
|
|
1071
1233
|
{
|
|
1072
|
-
"name": "
|
|
1073
|
-
"description": "透传 antd timePicker 属性 [timePickerProps](https://ant.design/components/time-picker-cn)",
|
|
1074
|
-
"attribute": false,
|
|
1075
|
-
"type": "Partial<TimePickerProps>"
|
|
1076
|
-
}
|
|
1077
|
-
],
|
|
1078
|
-
"events": [
|
|
1079
|
-
{
|
|
1080
|
-
"name": "change",
|
|
1081
|
-
"description": "时间变化时触发",
|
|
1082
|
-
"detail": {
|
|
1083
|
-
"type": "string"
|
|
1084
|
-
}
|
|
1085
|
-
},
|
|
1086
|
-
{
|
|
1087
|
-
"name": "open",
|
|
1088
|
-
"description": "面板打开时触发, 传出当前时间值",
|
|
1089
|
-
"detail": {
|
|
1090
|
-
"type": "string"
|
|
1091
|
-
}
|
|
1092
|
-
},
|
|
1093
|
-
{
|
|
1094
|
-
"name": "close",
|
|
1095
|
-
"description": "面板关闭时触发,传出当前时间值",
|
|
1096
|
-
"detail": {
|
|
1097
|
-
"type": "string"
|
|
1098
|
-
}
|
|
1099
|
-
}
|
|
1100
|
-
],
|
|
1101
|
-
"slots": [],
|
|
1102
|
-
"methods": [],
|
|
1103
|
-
"parts": [],
|
|
1104
|
-
"description": "时间选择器",
|
|
1105
|
-
"category": "form-input-basic"
|
|
1106
|
-
},
|
|
1107
|
-
{
|
|
1108
|
-
"name": "eo-select",
|
|
1109
|
-
"alias": [
|
|
1110
|
-
"form.general-select"
|
|
1111
|
-
],
|
|
1112
|
-
"properties": [
|
|
1113
|
-
{
|
|
1114
|
-
"name": "name",
|
|
1115
|
-
"description": "字段名称",
|
|
1116
|
-
"type": "string"
|
|
1117
|
-
},
|
|
1118
|
-
{
|
|
1119
|
-
"name": "placeholder",
|
|
1120
|
-
"description": "占位说明",
|
|
1121
|
-
"type": "string"
|
|
1122
|
-
},
|
|
1123
|
-
{
|
|
1124
|
-
"name": "label",
|
|
1125
|
-
"description": "字段文本",
|
|
1234
|
+
"name": "value",
|
|
1126
1235
|
"type": "string"
|
|
1127
1236
|
},
|
|
1128
1237
|
{
|
|
@@ -1130,170 +1239,74 @@
|
|
|
1130
1239
|
"description": "选项列表",
|
|
1131
1240
|
"required": true,
|
|
1132
1241
|
"attribute": false,
|
|
1133
|
-
"type": "
|
|
1134
|
-
},
|
|
1135
|
-
{
|
|
1136
|
-
"name": "value",
|
|
1137
|
-
"description": "值",
|
|
1138
|
-
"attribute": false,
|
|
1139
|
-
"type": "any"
|
|
1140
|
-
},
|
|
1141
|
-
{
|
|
1142
|
-
"name": "required",
|
|
1143
|
-
"description": "是否必填",
|
|
1144
|
-
"type": "boolean"
|
|
1145
|
-
},
|
|
1146
|
-
{
|
|
1147
|
-
"name": "message",
|
|
1148
|
-
"description": "校验文本信息",
|
|
1149
|
-
"attribute": false,
|
|
1150
|
-
"type": "Record<string, string>"
|
|
1242
|
+
"type": "string[] | OptionType[]"
|
|
1151
1243
|
},
|
|
1152
1244
|
{
|
|
1153
|
-
"name": "
|
|
1154
|
-
"description": "
|
|
1245
|
+
"name": "filterByCaption",
|
|
1246
|
+
"description": "搜索时是否根据caption过滤options",
|
|
1155
1247
|
"type": "boolean"
|
|
1156
1248
|
},
|
|
1157
1249
|
{
|
|
1158
|
-
"name": "
|
|
1159
|
-
"description": "
|
|
1160
|
-
"type": "\"tags\" | \"multiple\""
|
|
1161
|
-
},
|
|
1162
|
-
{
|
|
1163
|
-
"name": "tokenSeparators",
|
|
1164
|
-
"description": "自动分词的分隔符,仅在 mode=\"tags\" 时生效",
|
|
1250
|
+
"name": "validator",
|
|
1251
|
+
"description": "表单项校验方法",
|
|
1165
1252
|
"attribute": false,
|
|
1166
|
-
"type": "
|
|
1167
|
-
},
|
|
1168
|
-
{
|
|
1169
|
-
"name": "maxTagCount",
|
|
1170
|
-
"description": "最多显示多少个 tag, 剩余的 tag 将被隐藏",
|
|
1171
|
-
"type": "number"
|
|
1253
|
+
"type": "((value: any) => MessageBody)"
|
|
1172
1254
|
},
|
|
1173
1255
|
{
|
|
1174
|
-
"name": "
|
|
1175
|
-
"description": "
|
|
1256
|
+
"name": "pattern",
|
|
1257
|
+
"description": "正则校验规则",
|
|
1176
1258
|
"type": "string"
|
|
1177
1259
|
},
|
|
1178
1260
|
{
|
|
1179
|
-
"name": "
|
|
1180
|
-
"description": "",
|
|
1181
|
-
"attribute": false,
|
|
1182
|
-
"type": "{ useBrick: UseSingleBrickConf }"
|
|
1183
|
-
},
|
|
1184
|
-
{
|
|
1185
|
-
"name": "clearable",
|
|
1186
|
-
"description": "是否支持清除",
|
|
1187
|
-
"default": "true",
|
|
1188
|
-
"type": "boolean"
|
|
1189
|
-
},
|
|
1190
|
-
{
|
|
1191
|
-
"name": "fields",
|
|
1192
|
-
"description": "列表指定字段作为 label 和 value",
|
|
1193
|
-
"attribute": false,
|
|
1194
|
-
"type": "{ label?: string; value?: string }"
|
|
1195
|
-
},
|
|
1196
|
-
{
|
|
1197
|
-
"name": "useBackend",
|
|
1198
|
-
"description": "后端搜索",
|
|
1199
|
-
"attribute": false,
|
|
1200
|
-
"type": "UseBackendConf"
|
|
1201
|
-
},
|
|
1202
|
-
{
|
|
1203
|
-
"name": "debounceSearchDelay",
|
|
1204
|
-
"description": "设置时,同时对 useBackend 和 search 事件进行防抖。\n未设置时,useBackend 有默认的 300ms 防抖。",
|
|
1205
|
-
"type": "number"
|
|
1206
|
-
},
|
|
1207
|
-
{
|
|
1208
|
-
"name": "inputStyle",
|
|
1209
|
-
"description": "输入框样式",
|
|
1210
|
-
"attribute": false,
|
|
1211
|
-
"type": "React.CSSProperties"
|
|
1212
|
-
},
|
|
1213
|
-
{
|
|
1214
|
-
"name": "dropdownStyle",
|
|
1215
|
-
"description": "下拉框样式",
|
|
1261
|
+
"name": "message",
|
|
1262
|
+
"description": "校验文本信息",
|
|
1216
1263
|
"attribute": false,
|
|
1217
|
-
"type": "
|
|
1218
|
-
},
|
|
1219
|
-
{
|
|
1220
|
-
"name": "dropdownHoist",
|
|
1221
|
-
"description": "下拉框是否使用固定定位防止内容被裁切",
|
|
1222
|
-
"type": "boolean"
|
|
1223
|
-
},
|
|
1224
|
-
{
|
|
1225
|
-
"name": "themeVariant",
|
|
1226
|
-
"description": "主题变体",
|
|
1227
|
-
"type": "\"default\" | \"elevo\""
|
|
1264
|
+
"type": "Record<string, string>"
|
|
1228
1265
|
}
|
|
1229
1266
|
],
|
|
1230
1267
|
"events": [
|
|
1231
1268
|
{
|
|
1232
1269
|
"name": "change",
|
|
1233
|
-
"description": "
|
|
1234
|
-
"detail": {
|
|
1235
|
-
"type": "{\n value: string | string[];\n options: GeneralComplexOption[];\n }"
|
|
1236
|
-
}
|
|
1237
|
-
},
|
|
1238
|
-
{
|
|
1239
|
-
"name": "change.v2",
|
|
1240
|
-
"description": "下拉选择事件 v2(仅传递选中的值)",
|
|
1241
|
-
"detail": {
|
|
1242
|
-
"description": "选中的值",
|
|
1243
|
-
"type": "string | string[]"
|
|
1244
|
-
}
|
|
1245
|
-
},
|
|
1246
|
-
{
|
|
1247
|
-
"name": "search",
|
|
1248
|
-
"description": "下拉框search事件",
|
|
1249
|
-
"detail": {
|
|
1250
|
-
"type": "{\n value: string;\n }"
|
|
1251
|
-
}
|
|
1252
|
-
},
|
|
1253
|
-
{
|
|
1254
|
-
"name": "select.focus",
|
|
1255
|
-
"description": "下拉框focus事件\n\n注:之前事件类型为 \"focus\",这和原生事件冲突,可能导致多次触发,现改为 \"select.focus\"",
|
|
1256
|
-
"detail": {
|
|
1257
|
-
"type": "void"
|
|
1258
|
-
}
|
|
1259
|
-
},
|
|
1260
|
-
{
|
|
1261
|
-
"name": "options.change",
|
|
1262
|
-
"description": "选项列表变化事件",
|
|
1270
|
+
"description": "值改变事件",
|
|
1263
1271
|
"detail": {
|
|
1264
|
-
"type": "
|
|
1272
|
+
"type": "string"
|
|
1265
1273
|
}
|
|
1266
1274
|
}
|
|
1267
1275
|
],
|
|
1268
1276
|
"slots": [],
|
|
1269
1277
|
"methods": [],
|
|
1270
1278
|
"parts": [],
|
|
1271
|
-
"description": "
|
|
1279
|
+
"description": "带候选项的输入框",
|
|
1272
1280
|
"category": "form-input-basic"
|
|
1273
1281
|
},
|
|
1274
1282
|
{
|
|
1275
|
-
"name": "eo-
|
|
1283
|
+
"name": "eo-time-picker",
|
|
1276
1284
|
"properties": [
|
|
1277
1285
|
{
|
|
1278
1286
|
"name": "name",
|
|
1279
|
-
"description": "
|
|
1287
|
+
"description": "时间选择器字段名",
|
|
1280
1288
|
"type": "string"
|
|
1281
1289
|
},
|
|
1282
1290
|
{
|
|
1283
|
-
"name": "
|
|
1284
|
-
"description": "
|
|
1291
|
+
"name": "label",
|
|
1292
|
+
"description": "时间选择器说明",
|
|
1285
1293
|
"type": "string"
|
|
1286
1294
|
},
|
|
1287
1295
|
{
|
|
1288
|
-
"name": "
|
|
1289
|
-
"description": "
|
|
1296
|
+
"name": "value",
|
|
1297
|
+
"description": "时间选择器的初始值",
|
|
1290
1298
|
"type": "string"
|
|
1291
1299
|
},
|
|
1292
1300
|
{
|
|
1293
|
-
"name": "
|
|
1294
|
-
"description": "
|
|
1301
|
+
"name": "placeholder",
|
|
1302
|
+
"description": "时间选择器占位说明",
|
|
1303
|
+
"type": "string"
|
|
1304
|
+
},
|
|
1305
|
+
{
|
|
1306
|
+
"name": "message",
|
|
1307
|
+
"description": "校验文本信息",
|
|
1295
1308
|
"attribute": false,
|
|
1296
|
-
"type": "
|
|
1309
|
+
"type": "Record<string, string>"
|
|
1297
1310
|
},
|
|
1298
1311
|
{
|
|
1299
1312
|
"name": "disabled",
|
|
@@ -1306,43 +1319,30 @@
|
|
|
1306
1319
|
"type": "boolean"
|
|
1307
1320
|
},
|
|
1308
1321
|
{
|
|
1309
|
-
"name": "
|
|
1310
|
-
"
|
|
1311
|
-
},
|
|
1312
|
-
{
|
|
1313
|
-
"name": "options",
|
|
1314
|
-
"description": "选项列表",
|
|
1315
|
-
"required": true,
|
|
1316
|
-
"attribute": false,
|
|
1317
|
-
"type": "string[] | OptionType[]"
|
|
1318
|
-
},
|
|
1319
|
-
{
|
|
1320
|
-
"name": "filterByCaption",
|
|
1321
|
-
"description": "搜索时是否根据caption过滤options",
|
|
1322
|
-
"type": "boolean"
|
|
1323
|
-
},
|
|
1324
|
-
{
|
|
1325
|
-
"name": "validator",
|
|
1326
|
-
"description": "表单项校验方法",
|
|
1327
|
-
"attribute": false,
|
|
1328
|
-
"type": "((value: any) => MessageBody)"
|
|
1329
|
-
},
|
|
1330
|
-
{
|
|
1331
|
-
"name": "pattern",
|
|
1332
|
-
"description": "正则校验规则",
|
|
1333
|
-
"type": "string"
|
|
1334
|
-
},
|
|
1335
|
-
{
|
|
1336
|
-
"name": "message",
|
|
1337
|
-
"description": "校验文本信息",
|
|
1322
|
+
"name": "configProps",
|
|
1323
|
+
"description": "透传 antd timePicker 属性 [timePickerProps](https://ant.design/components/time-picker-cn)",
|
|
1338
1324
|
"attribute": false,
|
|
1339
|
-
"type": "
|
|
1325
|
+
"type": "Partial<TimePickerProps>"
|
|
1340
1326
|
}
|
|
1341
1327
|
],
|
|
1342
1328
|
"events": [
|
|
1343
1329
|
{
|
|
1344
1330
|
"name": "change",
|
|
1345
|
-
"description": "
|
|
1331
|
+
"description": "时间变化时触发",
|
|
1332
|
+
"detail": {
|
|
1333
|
+
"type": "string"
|
|
1334
|
+
}
|
|
1335
|
+
},
|
|
1336
|
+
{
|
|
1337
|
+
"name": "open",
|
|
1338
|
+
"description": "面板打开时触发, 传出当前时间值",
|
|
1339
|
+
"detail": {
|
|
1340
|
+
"type": "string"
|
|
1341
|
+
}
|
|
1342
|
+
},
|
|
1343
|
+
{
|
|
1344
|
+
"name": "close",
|
|
1345
|
+
"description": "面板关闭时触发,传出当前时间值",
|
|
1346
1346
|
"detail": {
|
|
1347
1347
|
"type": "string"
|
|
1348
1348
|
}
|
|
@@ -1351,7 +1351,7 @@
|
|
|
1351
1351
|
"slots": [],
|
|
1352
1352
|
"methods": [],
|
|
1353
1353
|
"parts": [],
|
|
1354
|
-
"description": "
|
|
1354
|
+
"description": "时间选择器",
|
|
1355
1355
|
"category": "form-input-basic"
|
|
1356
1356
|
},
|
|
1357
1357
|
{
|