@next-bricks/form 1.21.6 → 1.21.7

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.
@@ -152,114 +152,6 @@
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
- },
263
155
  {
264
156
  "name": "eo-radio",
265
157
  "alias": [
@@ -364,121 +256,138 @@
364
256
  "category": "form-input-basic"
365
257
  },
366
258
  {
367
- "name": "eo-select",
259
+ "name": "eo-submit-buttons",
368
260
  "alias": [
369
- "form.general-select"
261
+ "form.submit-buttons"
370
262
  ],
371
263
  "properties": [
372
264
  {
373
- "name": "name",
374
- "description": "字段名称",
265
+ "name": "submitText",
266
+ "description": "提交按钮的文字",
267
+ "default": "\"提交\"",
375
268
  "type": "string"
376
269
  },
377
270
  {
378
- "name": "placeholder",
379
- "description": "占位说明",
271
+ "name": "cancelText",
272
+ "description": "取消按钮的文字,不设置则不显示取消按钮",
380
273
  "type": "string"
381
274
  },
382
275
  {
383
- "name": "label",
384
- "description": "字段文本",
385
- "type": "string"
276
+ "name": "disableAfterClick",
277
+ "description": "点击确定按钮后自动禁用",
278
+ "type": "boolean"
386
279
  },
387
280
  {
388
- "name": "options",
389
- "description": "选项列表",
390
- "required": true,
391
- "attribute": false,
392
- "type": "GeneralComplexOption[]"
281
+ "name": "submitDisabled",
282
+ "description": "禁用提交按钮",
283
+ "type": "boolean"
393
284
  },
394
285
  {
395
- "name": "value",
396
- "description": "",
397
- "attribute": false,
398
- "type": "any"
286
+ "name": "submitType",
287
+ "description": "提交按钮类型",
288
+ "type": "ButtonType"
399
289
  },
400
290
  {
401
- "name": "required",
402
- "description": "是否必填",
403
- "type": "boolean"
291
+ "name": "cancelType",
292
+ "description": "取消按钮类型",
293
+ "type": "ButtonType"
404
294
  },
405
295
  {
406
- "name": "message",
407
- "description": "校验文本信息",
408
- "attribute": false,
409
- "type": "Record<string, string>"
410
- },
296
+ "name": "themeVariant",
297
+ "description": "主题变体",
298
+ "type": "\"default\" | \"elevo\""
299
+ }
300
+ ],
301
+ "events": [
411
302
  {
412
- "name": "disabled",
413
- "description": "是否禁用",
414
- "type": "boolean"
303
+ "name": "submit",
304
+ "description": "点击提交按钮触发的事件",
305
+ "detail": {
306
+ "type": "void"
307
+ }
415
308
  },
416
309
  {
417
- "name": "mode",
418
- "description": "类型",
419
- "type": "\"tags\" | \"multiple\""
420
- },
310
+ "name": "cancel",
311
+ "description": "点击取消按钮触发的事件",
312
+ "detail": {
313
+ "type": "void"
314
+ }
315
+ }
316
+ ],
317
+ "slots": [],
318
+ "methods": [],
319
+ "parts": [],
320
+ "description": "表单提交按钮",
321
+ "category": "form-input-basic"
322
+ },
323
+ {
324
+ "name": "eo-checkbox",
325
+ "alias": [
326
+ "form.general-checkbox"
327
+ ],
328
+ "properties": [
421
329
  {
422
- "name": "tokenSeparators",
423
- "description": "自动分词的分隔符,仅在 mode=\"tags\" 时生效",
424
- "attribute": false,
425
- "type": "string[]"
330
+ "name": "name",
331
+ "description": "字段名称",
332
+ "type": "string"
426
333
  },
427
334
  {
428
- "name": "maxTagCount",
429
- "description": "最多显示多少个 tag, 剩余的 tag 将被隐藏",
430
- "type": "number"
335
+ "name": "label",
336
+ "description": "字段说明",
337
+ "type": "string"
431
338
  },
432
339
  {
433
- "name": "groupBy",
434
- "description": "分组字段",
435
- "type": "string"
340
+ "name": "value",
341
+ "description": "",
342
+ "attribute": false,
343
+ "type": "CheckboxValueType[]"
436
344
  },
437
345
  {
438
- "name": "suffix",
439
- "description": "",
346
+ "name": "options",
347
+ "description": "多选框选项表",
348
+ "required": true,
349
+ "default": "[]",
440
350
  "attribute": false,
441
- "type": "{ useBrick: UseSingleBrickConf }"
351
+ "type": "CheckboxOptionType[]"
442
352
  },
443
353
  {
444
- "name": "clearable",
445
- "description": "是否支持清除",
446
- "default": "true",
447
- "type": "boolean"
354
+ "name": "type",
355
+ "description": "类型",
356
+ "default": "\"default\"",
357
+ "type": "CheckboxType"
448
358
  },
449
359
  {
450
- "name": "fields",
451
- "description": "列表指定字段作为 label 和 value",
452
- "attribute": false,
453
- "type": "{ label?: string; value?: string }"
360
+ "name": "disabled",
361
+ "description": "是否禁用",
362
+ "type": "boolean"
454
363
  },
455
364
  {
456
- "name": "useBackend",
457
- "description": "后端搜索",
458
- "attribute": false,
459
- "type": "UseBackendConf"
365
+ "name": "isCustom",
366
+ "description": "是否为自定义",
367
+ "default": "false",
368
+ "type": "boolean"
460
369
  },
461
370
  {
462
- "name": "debounceSearchDelay",
463
- "description": "设置时,同时对 useBackend 和 search 事件进行防抖。\n未设置时,useBackend 有默认的 300ms 防抖。",
464
- "type": "number"
371
+ "name": "required",
372
+ "description": "是否必填",
373
+ "type": "boolean"
465
374
  },
466
375
  {
467
- "name": "inputStyle",
468
- "description": "输入框样式",
376
+ "name": "message",
377
+ "description": "校验文本",
469
378
  "attribute": false,
470
- "type": "React.CSSProperties"
379
+ "type": "Record<string, string>"
471
380
  },
472
381
  {
473
- "name": "dropdownStyle",
474
- "description": "下拉框样式",
475
- "attribute": false,
476
- "type": "React.CSSProperties"
382
+ "name": "isGroup",
383
+ "description": "是否为复选框,为true时,则可设置分组数据 optionGroups",
384
+ "type": "boolean"
477
385
  },
478
386
  {
479
- "name": "dropdownHoist",
480
- "description": "下拉框是否使用固定定位防止内容被裁切",
481
- "type": "boolean"
387
+ "name": "optionGroups",
388
+ "description": "多选框选项分组数据,需要设置 isGroup 为 true 才生效",
389
+ "attribute": false,
390
+ "type": "OptionGroup[]"
482
391
  },
483
392
  {
484
393
  "name": "themeVariant",
@@ -489,110 +398,115 @@
489
398
  "events": [
490
399
  {
491
400
  "name": "change",
492
- "description": "下拉选择事件",
493
- "detail": {
494
- "type": "{\n value: string | string[];\n options: GeneralComplexOption[];\n }"
495
- }
496
- },
497
- {
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\"",
401
+ "description": "复选框变化事件",
515
402
  "detail": {
516
- "type": "void"
403
+ "type": "CheckboxOptionType[]"
517
404
  }
518
405
  },
519
406
  {
520
407
  "name": "options.change",
521
- "description": "选项列表变化事件",
408
+ "description": "复选框变化事件",
522
409
  "detail": {
523
- "type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
410
+ "type": "{\n options: CheckboxOptionType[];\n name: string;\n }"
524
411
  }
525
412
  }
526
413
  ],
527
414
  "slots": [],
528
415
  "methods": [],
529
416
  "parts": [],
530
- "description": "通用下拉选择构件",
417
+ "description": "表单复选框构件",
531
418
  "category": "form-input-basic"
532
419
  },
533
420
  {
534
- "name": "eo-submit-buttons",
421
+ "name": "eo-dynamic-form-item",
535
422
  "alias": [
536
- "form.submit-buttons"
423
+ "form.dynamic-form-item"
537
424
  ],
538
425
  "properties": [
539
426
  {
540
- "name": "submitText",
541
- "description": "提交按钮的文字",
542
- "default": "\"提交\"",
427
+ "name": "name",
428
+ "description": "字段名称",
543
429
  "type": "string"
544
430
  },
545
431
  {
546
- "name": "cancelText",
547
- "description": "取消按钮的文字,不设置则不显示取消按钮",
432
+ "name": "label",
433
+ "description": "字段说明",
548
434
  "type": "string"
549
435
  },
550
436
  {
551
- "name": "disableAfterClick",
552
- "description": "点击确定按钮后自动禁用",
437
+ "name": "required",
438
+ "description": "是否必填",
553
439
  "type": "boolean"
554
440
  },
555
441
  {
556
- "name": "submitDisabled",
557
- "description": "禁用提交按钮",
558
- "type": "boolean"
442
+ "name": "value",
443
+ "description": "",
444
+ "attribute": false,
445
+ "type": "DynamicFormValuesItem[]"
559
446
  },
560
447
  {
561
- "name": "submitType",
562
- "description": "提交按钮类型",
563
- "type": "ButtonType"
448
+ "name": "message",
449
+ "description": "校验文本",
450
+ "attribute": false,
451
+ "type": "Record<string, string>"
564
452
  },
565
453
  {
566
- "name": "cancelType",
567
- "description": "取消按钮类型",
568
- "type": "ButtonType"
454
+ "name": "hideRemoveButton",
455
+ "description": "是否隐藏每一行删除的按钮",
456
+ "attribute": false,
457
+ "type": "boolean | ((row: Record<string, any>, index: number) => boolean)"
569
458
  },
570
459
  {
571
- "name": "themeVariant",
572
- "description": "主题变体",
573
- "type": "\"default\" | \"elevo\""
460
+ "name": "disabledRemoveButton",
461
+ "description": "是否禁止每一行删除的按钮",
462
+ "attribute": false,
463
+ "type": "boolean | ((row: Record<string, any>, index: number) => boolean)"
464
+ },
465
+ {
466
+ "name": "hideAddButton",
467
+ "description": "是否隐藏添加的按钮",
468
+ "attribute": false,
469
+ "type": "boolean | ((value: Record<string, any>[]) => boolean)"
470
+ },
471
+ {
472
+ "name": "disabledAddButton",
473
+ "description": "是否禁止添加的按钮",
474
+ "attribute": false,
475
+ "type": "boolean | ((value: Record<string, any>[]) => boolean)"
476
+ },
477
+ {
478
+ "name": "useBrick",
479
+ "description": "动态表单子项构件列表",
480
+ "attribute": false,
481
+ "type": "UseBrickConf"
574
482
  }
575
483
  ],
576
484
  "events": [
577
485
  {
578
- "name": "submit",
579
- "description": "点击提交按钮触发的事件",
486
+ "name": "change",
580
487
  "detail": {
581
- "type": "void"
488
+ "type": "DynamicFormValuesItem[]"
582
489
  }
583
490
  },
584
491
  {
585
- "name": "cancel",
586
- "description": "点击取消按钮触发的事件",
492
+ "name": "row.add",
493
+ "description": "增加一行时触发,detail为该行的默认值,index为该行的位置",
587
494
  "detail": {
588
- "type": "void"
495
+ "type": "rowDataType"
496
+ }
497
+ },
498
+ {
499
+ "name": "row.remove",
500
+ "description": "移除一行时触发,detail为该行的值,index为该行的位置",
501
+ "detail": {
502
+ "type": "rowDataType"
589
503
  }
590
504
  }
591
505
  ],
592
506
  "slots": [],
593
507
  "methods": [],
594
508
  "parts": [],
595
- "description": "表单提交按钮",
509
+ "description": "动态表单",
596
510
  "category": "form-input-basic"
597
511
  },
598
512
  {
@@ -668,9 +582,9 @@
668
582
  "category": "interact-basic"
669
583
  },
670
584
  {
671
- "name": "eo-dynamic-form-item",
585
+ "name": "eo-textarea",
672
586
  "alias": [
673
- "form.dynamic-form-item"
587
+ "form.general-textarea"
674
588
  ],
675
589
  "properties": [
676
590
  {
@@ -680,89 +594,105 @@
680
594
  },
681
595
  {
682
596
  "name": "label",
683
- "description": "字段说明",
597
+ "description": "标签文字",
684
598
  "type": "string"
685
599
  },
686
600
  {
687
- "name": "required",
688
- "description": "是否必填",
601
+ "name": "value",
602
+ "description": "",
603
+ "type": "string"
604
+ },
605
+ {
606
+ "name": "placeholder",
607
+ "description": "占位说明",
608
+ "type": "string"
609
+ },
610
+ {
611
+ "name": "disabled",
612
+ "description": "是否禁用",
689
613
  "type": "boolean"
690
614
  },
691
615
  {
692
- "name": "value",
693
- "description": "",
694
- "attribute": false,
695
- "type": "DynamicFormValuesItem[]"
616
+ "name": "minLength",
617
+ "description": "最小长度",
618
+ "type": "number"
696
619
  },
697
620
  {
698
- "name": "message",
699
- "description": "校验文本",
700
- "attribute": false,
701
- "type": "Record<string, string>"
621
+ "name": "maxLength",
622
+ "description": "最大长度",
623
+ "type": "number"
702
624
  },
703
625
  {
704
- "name": "hideRemoveButton",
705
- "description": "是否隐藏每一行删除的按钮",
626
+ "name": "autoSize",
627
+ "description": "大小自适应",
706
628
  "attribute": false,
707
- "type": "boolean | ((row: Record<string, any>, index: number) => boolean)"
629
+ "type": "AutoSize"
708
630
  },
709
631
  {
710
- "name": "disabledRemoveButton",
711
- "description": "是否禁止每一行删除的按钮",
712
- "attribute": false,
713
- "type": "boolean | ((row: Record<string, any>, index: number) => boolean)"
632
+ "name": "required",
633
+ "description": "是否必填",
634
+ "type": "boolean"
714
635
  },
715
636
  {
716
- "name": "hideAddButton",
717
- "description": "是否隐藏添加的按钮",
718
- "attribute": false,
719
- "type": "boolean | ((value: Record<string, any>[]) => boolean)"
637
+ "name": "max",
638
+ "description": "表单校验最大长度",
639
+ "type": "number"
720
640
  },
721
641
  {
722
- "name": "disabledAddButton",
723
- "description": "是否禁止添加的按钮",
642
+ "name": "min",
643
+ "description": "表单校验最小长度",
644
+ "type": "number"
645
+ },
646
+ {
647
+ "name": "message",
648
+ "description": "校验信息",
724
649
  "attribute": false,
725
- "type": "boolean | ((value: Record<string, any>[]) => boolean)"
650
+ "type": "Record<string, string>"
726
651
  },
727
652
  {
728
- "name": "useBrick",
729
- "description": "动态表单子项构件列表",
653
+ "name": "textareaStyle",
654
+ "description": "自定义样式",
730
655
  "attribute": false,
731
- "type": "UseBrickConf"
656
+ "type": "React.CSSProperties"
657
+ },
658
+ {
659
+ "name": "variant",
660
+ "description": "变体\n\n- muted: 在 themeVariant 为 elevo 时可用,设置时输入框没有 box-shadow",
661
+ "type": "\"default\" | \"muted\""
662
+ },
663
+ {
664
+ "name": "themeVariant",
665
+ "description": "主题变体",
666
+ "type": "\"default\" | \"elevo\""
732
667
  }
733
668
  ],
734
669
  "events": [
735
670
  {
736
671
  "name": "change",
672
+ "description": "",
737
673
  "detail": {
738
- "type": "DynamicFormValuesItem[]"
739
- }
740
- },
741
- {
742
- "name": "row.add",
743
- "description": "增加一行时触发,detail为该行的默认值,index为该行的位置",
744
- "detail": {
745
- "type": "rowDataType"
746
- }
747
- },
748
- {
749
- "name": "row.remove",
750
- "description": "移除一行时触发,detail为该行的值,index为该行的位置",
751
- "detail": {
752
- "type": "rowDataType"
674
+ "description": null,
675
+ "type": "string"
753
676
  }
754
677
  }
755
678
  ],
756
679
  "slots": [],
757
- "methods": [],
680
+ "methods": [
681
+ {
682
+ "name": "focusTextarea",
683
+ "params": [],
684
+ "description": "focus",
685
+ "returns": {}
686
+ }
687
+ ],
758
688
  "parts": [],
759
- "description": "动态表单",
689
+ "description": "通用多行文本输入框构件",
760
690
  "category": "form-input-basic"
761
691
  },
762
692
  {
763
- "name": "eo-checkbox",
693
+ "name": "eo-icon-select",
764
694
  "alias": [
765
- "form.general-checkbox"
695
+ "form.icon-select"
766
696
  ],
767
697
  "properties": [
768
698
  {
@@ -776,34 +706,14 @@
776
706
  "type": "string"
777
707
  },
778
708
  {
779
- "name": "value",
780
- "description": "值",
781
- "attribute": false,
782
- "type": "CheckboxValueType[]"
783
- },
784
- {
785
- "name": "options",
786
- "description": "多选框选项表",
787
- "required": true,
788
- "default": "[]",
789
- "attribute": false,
790
- "type": "CheckboxOptionType[]"
791
- },
792
- {
793
- "name": "type",
794
- "description": "类型",
795
- "default": "\"default\"",
796
- "type": "CheckboxType"
797
- },
798
- {
799
- "name": "disabled",
800
- "description": "是否禁用",
801
- "type": "boolean"
709
+ "name": "value",
710
+ "description": "值",
711
+ "attribute": false,
712
+ "type": "Icon"
802
713
  },
803
714
  {
804
- "name": "isCustom",
805
- "description": "是否为自定义",
806
- "default": "false",
715
+ "name": "disabled",
716
+ "description": "是否禁用",
807
717
  "type": "boolean"
808
718
  },
809
719
  {
@@ -813,21 +723,10 @@
813
723
  },
814
724
  {
815
725
  "name": "message",
816
- "description": "校验文本",
726
+ "description": "是否必填",
817
727
  "attribute": false,
818
728
  "type": "Record<string, string>"
819
729
  },
820
- {
821
- "name": "isGroup",
822
- "description": "是否为复选框,为true时,则可设置分组数据 optionGroups",
823
- "type": "boolean"
824
- },
825
- {
826
- "name": "optionGroups",
827
- "description": "多选框选项分组数据,需要设置 isGroup 为 true 才生效",
828
- "attribute": false,
829
- "type": "OptionGroup[]"
830
- },
831
730
  {
832
731
  "name": "themeVariant",
833
732
  "description": "主题变体",
@@ -837,23 +736,16 @@
837
736
  "events": [
838
737
  {
839
738
  "name": "change",
840
- "description": "复选框变化事件",
841
- "detail": {
842
- "type": "CheckboxOptionType[]"
843
- }
844
- },
845
- {
846
- "name": "options.change",
847
- "description": "复选框变化事件",
739
+ "description": "值变化时触发",
848
740
  "detail": {
849
- "type": "{\n options: CheckboxOptionType[];\n name: string;\n }"
741
+ "type": "Icon | undefined"
850
742
  }
851
743
  }
852
744
  ],
853
745
  "slots": [],
854
746
  "methods": [],
855
747
  "parts": [],
856
- "description": "表单复选框构件",
748
+ "description": "图标选择构件",
857
749
  "category": "form-input-basic"
858
750
  },
859
751
  {
@@ -936,9 +828,9 @@
936
828
  "category": "form-input-basic"
937
829
  },
938
830
  {
939
- "name": "eo-icon-select",
831
+ "name": "eo-switch",
940
832
  "alias": [
941
- "form.icon-select"
833
+ "form.general-switch"
942
834
  ],
943
835
  "properties": [
944
836
  {
@@ -948,20 +840,80 @@
948
840
  },
949
841
  {
950
842
  "name": "label",
951
- "description": "字段说明",
843
+ "description": "字段文本",
952
844
  "type": "string"
953
845
  },
954
846
  {
955
847
  "name": "value",
956
- "description": "",
957
- "attribute": false,
958
- "type": "Icon"
848
+ "description": "初始值",
849
+ "type": "boolean"
959
850
  },
960
851
  {
961
852
  "name": "disabled",
962
853
  "description": "是否禁用",
963
854
  "type": "boolean"
964
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
+ {
905
+ "name": "eo-upload-file",
906
+ "properties": [
907
+ {
908
+ "name": "label",
909
+ "description": "字段说明",
910
+ "type": "string"
911
+ },
912
+ {
913
+ "name": "name",
914
+ "description": "字段名称",
915
+ "type": "string"
916
+ },
965
917
  {
966
918
  "name": "required",
967
919
  "description": "是否必填",
@@ -969,10 +921,93 @@
969
921
  },
970
922
  {
971
923
  "name": "message",
972
- "description": "是否必填",
924
+ "description": "校验文本信息",
973
925
  "attribute": false,
974
926
  "type": "Record<string, string>"
975
927
  },
928
+ {
929
+ "name": "value",
930
+ "description": "值",
931
+ "attribute": false,
932
+ "type": "FileData[]"
933
+ },
934
+ {
935
+ "name": "multiple",
936
+ "description": "是否支持多选",
937
+ "type": "boolean"
938
+ },
939
+ {
940
+ "name": "accept",
941
+ "description": "接受上传的文件类型,多个之间用 `,` 连接",
942
+ "type": "string"
943
+ },
944
+ {
945
+ "name": "maxCount",
946
+ "description": "最大上传数量",
947
+ "type": "number"
948
+ },
949
+ {
950
+ "name": "limitSize",
951
+ "description": "上传大小限制(单位为 MB)",
952
+ "type": "number"
953
+ },
954
+ {
955
+ "name": "buttonText",
956
+ "description": "上传按钮文本",
957
+ "default": "上传",
958
+ "type": "string"
959
+ },
960
+ {
961
+ "name": "buttonType",
962
+ "description": "上传按钮类型",
963
+ "type": "ButtonProps[\"type\"]"
964
+ },
965
+ {
966
+ "name": "buttonIcon",
967
+ "description": "上传按钮类型",
968
+ "default": "{\n lib: \"antd\",\n icon: \"upload\",\n theme: \"outlined\",\n }",
969
+ "attribute": false,
970
+ "type": "GeneralIconProps"
971
+ },
972
+ {
973
+ "name": "overMaxCountMode",
974
+ "description": "超出最大上传数量时文件的保留方式",
975
+ "default": "\"replace\"",
976
+ "type": "\"ignore\" | \"replace\""
977
+ },
978
+ {
979
+ "name": "uploadDraggable",
980
+ "description": "是否可以拖拽上传",
981
+ "type": "boolean"
982
+ },
983
+ {
984
+ "name": "draggableUploadTip",
985
+ "description": "拖拽上传的提示信息",
986
+ "type": "string"
987
+ },
988
+ {
989
+ "name": "autoUpload",
990
+ "description": "是否自动上传",
991
+ "default": "false",
992
+ "type": "boolean"
993
+ },
994
+ {
995
+ "name": "url",
996
+ "description": "自动上传的地址",
997
+ "type": "string"
998
+ },
999
+ {
1000
+ "name": "method",
1001
+ "description": "自动上传的方法",
1002
+ "default": "\"POST\"",
1003
+ "type": "string"
1004
+ },
1005
+ {
1006
+ "name": "uploadName",
1007
+ "description": "自动上传的文件参数名",
1008
+ "default": "\"file\"",
1009
+ "type": "string"
1010
+ },
976
1011
  {
977
1012
  "name": "themeVariant",
978
1013
  "description": "主题变体",
@@ -984,103 +1019,125 @@
984
1019
  "name": "change",
985
1020
  "description": "值变化时触发",
986
1021
  "detail": {
987
- "type": "Icon | undefined"
1022
+ "type": "FileData[]"
988
1023
  }
989
1024
  }
990
1025
  ],
991
1026
  "slots": [],
992
1027
  "methods": [],
993
1028
  "parts": [],
994
- "description": "图标选择构件",
1029
+ "description": "上传文件",
995
1030
  "category": "form-input-basic"
996
1031
  },
997
1032
  {
998
- "name": "eo-switch",
999
- "alias": [
1000
- "form.general-switch"
1001
- ],
1033
+ "name": "eo-time-picker",
1002
1034
  "properties": [
1003
1035
  {
1004
1036
  "name": "name",
1005
- "description": "字段名称",
1037
+ "description": "时间选择器字段名",
1006
1038
  "type": "string"
1007
1039
  },
1008
1040
  {
1009
1041
  "name": "label",
1010
- "description": "字段文本",
1042
+ "description": "时间选择器说明",
1011
1043
  "type": "string"
1012
1044
  },
1013
1045
  {
1014
1046
  "name": "value",
1015
- "description": "初始值",
1016
- "type": "boolean"
1047
+ "description": "时间选择器的初始值",
1048
+ "type": "string"
1017
1049
  },
1018
1050
  {
1019
- "name": "disabled",
1020
- "description": "是否禁用",
1021
- "type": "boolean"
1051
+ "name": "placeholder",
1052
+ "description": "时间选择器占位说明",
1053
+ "type": "string"
1022
1054
  },
1023
1055
  {
1024
- "name": "size",
1025
- "description": "按钮大小,目前只支持small和非small两种大小。",
1026
- "type": "ComponentSize"
1056
+ "name": "message",
1057
+ "description": "校验文本信息",
1058
+ "attribute": false,
1059
+ "type": "Record<string, string>"
1027
1060
  },
1028
1061
  {
1029
- "name": "checkedText",
1030
- "description": "选中时的文本",
1031
- "type": "string"
1062
+ "name": "disabled",
1063
+ "description": "是否禁用",
1064
+ "type": "boolean"
1032
1065
  },
1033
1066
  {
1034
- "name": "unCheckedText",
1035
- "description": "非选中时的文本",
1036
- "type": "string"
1067
+ "name": "required",
1068
+ "description": "是否必填",
1069
+ "type": "boolean"
1037
1070
  },
1038
1071
  {
1039
- "name": "checkedIcon",
1040
- "description": "选中时的图标",
1072
+ "name": "configProps",
1073
+ "description": "透传 antd timePicker 属性 [timePickerProps](https://ant.design/components/time-picker-cn)",
1041
1074
  "attribute": false,
1042
- "type": "GeneralIconProps"
1043
- },
1075
+ "type": "Partial<TimePickerProps>"
1076
+ }
1077
+ ],
1078
+ "events": [
1044
1079
  {
1045
- "name": "unCheckedIcon",
1046
- "description": "非选中时的文本",
1047
- "attribute": false,
1048
- "type": "GeneralIconProps"
1080
+ "name": "change",
1081
+ "description": "时间变化时触发",
1082
+ "detail": {
1083
+ "type": "string"
1084
+ }
1049
1085
  },
1050
1086
  {
1051
- "name": "themeVariant",
1052
- "description": "主题变体",
1053
- "type": "\"default\" | \"elevo\""
1054
- }
1055
- ],
1056
- "events": [
1087
+ "name": "open",
1088
+ "description": "面板打开时触发, 传出当前时间值",
1089
+ "detail": {
1090
+ "type": "string"
1091
+ }
1092
+ },
1057
1093
  {
1058
- "name": "switch",
1059
- "description": "开关改变时触发",
1094
+ "name": "close",
1095
+ "description": "面板关闭时触发,传出当前时间值",
1060
1096
  "detail": {
1061
- "type": "boolean"
1097
+ "type": "string"
1062
1098
  }
1063
1099
  }
1064
1100
  ],
1065
1101
  "slots": [],
1066
1102
  "methods": [],
1067
1103
  "parts": [],
1068
- "description": "开关",
1104
+ "description": "时间选择器",
1069
1105
  "category": "form-input-basic"
1070
1106
  },
1071
1107
  {
1072
- "name": "eo-upload-file",
1108
+ "name": "eo-select",
1109
+ "alias": [
1110
+ "form.general-select"
1111
+ ],
1073
1112
  "properties": [
1074
1113
  {
1075
- "name": "label",
1076
- "description": "字段说明",
1114
+ "name": "name",
1115
+ "description": "字段名称",
1077
1116
  "type": "string"
1078
1117
  },
1079
1118
  {
1080
- "name": "name",
1081
- "description": "字段名称",
1119
+ "name": "placeholder",
1120
+ "description": "占位说明",
1121
+ "type": "string"
1122
+ },
1123
+ {
1124
+ "name": "label",
1125
+ "description": "字段文本",
1082
1126
  "type": "string"
1083
1127
  },
1128
+ {
1129
+ "name": "options",
1130
+ "description": "选项列表",
1131
+ "required": true,
1132
+ "attribute": false,
1133
+ "type": "GeneralComplexOption[]"
1134
+ },
1135
+ {
1136
+ "name": "value",
1137
+ "description": "值",
1138
+ "attribute": false,
1139
+ "type": "any"
1140
+ },
1084
1141
  {
1085
1142
  "name": "required",
1086
1143
  "description": "是否必填",
@@ -1093,87 +1150,76 @@
1093
1150
  "type": "Record<string, string>"
1094
1151
  },
1095
1152
  {
1096
- "name": "value",
1097
- "description": "",
1098
- "attribute": false,
1099
- "type": "FileData[]"
1100
- },
1101
- {
1102
- "name": "multiple",
1103
- "description": "是否支持多选",
1153
+ "name": "disabled",
1154
+ "description": "是否禁用",
1104
1155
  "type": "boolean"
1105
1156
  },
1106
1157
  {
1107
- "name": "accept",
1108
- "description": "接受上传的文件类型,多个之间用 `,` 连接",
1109
- "type": "string"
1158
+ "name": "mode",
1159
+ "description": "类型",
1160
+ "type": "\"tags\" | \"multiple\""
1110
1161
  },
1111
1162
  {
1112
- "name": "maxCount",
1113
- "description": "最大上传数量",
1114
- "type": "number"
1163
+ "name": "tokenSeparators",
1164
+ "description": "自动分词的分隔符,仅在 mode=\"tags\" 时生效",
1165
+ "attribute": false,
1166
+ "type": "string[]"
1115
1167
  },
1116
1168
  {
1117
- "name": "limitSize",
1118
- "description": "上传大小限制(单位为 MB)",
1169
+ "name": "maxTagCount",
1170
+ "description": "最多显示多少个 tag, 剩余的 tag 将被隐藏",
1119
1171
  "type": "number"
1120
1172
  },
1121
1173
  {
1122
- "name": "buttonText",
1123
- "description": "上传按钮文本",
1124
- "default": "上传",
1174
+ "name": "groupBy",
1175
+ "description": "分组字段",
1125
1176
  "type": "string"
1126
1177
  },
1127
1178
  {
1128
- "name": "buttonType",
1129
- "description": "上传按钮类型",
1130
- "type": "ButtonProps[\"type\"]"
1131
- },
1132
- {
1133
- "name": "buttonIcon",
1134
- "description": "上传按钮类型",
1135
- "default": "{\n lib: \"antd\",\n icon: \"upload\",\n theme: \"outlined\",\n }",
1179
+ "name": "suffix",
1180
+ "description": "",
1136
1181
  "attribute": false,
1137
- "type": "GeneralIconProps"
1182
+ "type": "{ useBrick: UseSingleBrickConf }"
1138
1183
  },
1139
1184
  {
1140
- "name": "overMaxCountMode",
1141
- "description": "超出最大上传数量时文件的保留方式",
1142
- "default": "\"replace\"",
1143
- "type": "\"ignore\" | \"replace\""
1185
+ "name": "clearable",
1186
+ "description": "是否支持清除",
1187
+ "default": "true",
1188
+ "type": "boolean"
1144
1189
  },
1145
1190
  {
1146
- "name": "uploadDraggable",
1147
- "description": "是否可以拖拽上传",
1148
- "type": "boolean"
1191
+ "name": "fields",
1192
+ "description": "列表指定字段作为 label 和 value",
1193
+ "attribute": false,
1194
+ "type": "{ label?: string; value?: string }"
1149
1195
  },
1150
1196
  {
1151
- "name": "draggableUploadTip",
1152
- "description": "拖拽上传的提示信息",
1153
- "type": "string"
1197
+ "name": "useBackend",
1198
+ "description": "后端搜索",
1199
+ "attribute": false,
1200
+ "type": "UseBackendConf"
1154
1201
  },
1155
1202
  {
1156
- "name": "autoUpload",
1157
- "description": "是否自动上传",
1158
- "default": "false",
1159
- "type": "boolean"
1203
+ "name": "debounceSearchDelay",
1204
+ "description": "设置时,同时对 useBackend 和 search 事件进行防抖。\n未设置时,useBackend 有默认的 300ms 防抖。",
1205
+ "type": "number"
1160
1206
  },
1161
1207
  {
1162
- "name": "url",
1163
- "description": "自动上传的地址",
1164
- "type": "string"
1208
+ "name": "inputStyle",
1209
+ "description": "输入框样式",
1210
+ "attribute": false,
1211
+ "type": "React.CSSProperties"
1165
1212
  },
1166
1213
  {
1167
- "name": "method",
1168
- "description": "自动上传的方法",
1169
- "default": "\"POST\"",
1170
- "type": "string"
1214
+ "name": "dropdownStyle",
1215
+ "description": "下拉框样式",
1216
+ "attribute": false,
1217
+ "type": "React.CSSProperties"
1171
1218
  },
1172
1219
  {
1173
- "name": "uploadName",
1174
- "description": "自动上传的文件参数名",
1175
- "default": "\"file\"",
1176
- "type": "string"
1220
+ "name": "dropdownHoist",
1221
+ "description": "下拉框是否使用固定定位防止内容被裁切",
1222
+ "type": "boolean"
1177
1223
  },
1178
1224
  {
1179
1225
  "name": "themeVariant",
@@ -1184,16 +1230,45 @@
1184
1230
  "events": [
1185
1231
  {
1186
1232
  "name": "change",
1187
- "description": "值变化时触发",
1233
+ "description": "下拉选择事件",
1188
1234
  "detail": {
1189
- "type": "FileData[]"
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": "选项列表变化事件",
1263
+ "detail": {
1264
+ "type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
1190
1265
  }
1191
1266
  }
1192
1267
  ],
1193
1268
  "slots": [],
1194
1269
  "methods": [],
1195
1270
  "parts": [],
1196
- "description": "上传文件",
1271
+ "description": "通用下拉选择构件",
1197
1272
  "category": "form-input-basic"
1198
1273
  },
1199
1274
  {
@@ -1279,81 +1354,6 @@
1279
1354
  "description": "带候选项的输入框",
1280
1355
  "category": "form-input-basic"
1281
1356
  },
1282
- {
1283
- "name": "eo-time-picker",
1284
- "properties": [
1285
- {
1286
- "name": "name",
1287
- "description": "时间选择器字段名",
1288
- "type": "string"
1289
- },
1290
- {
1291
- "name": "label",
1292
- "description": "时间选择器说明",
1293
- "type": "string"
1294
- },
1295
- {
1296
- "name": "value",
1297
- "description": "时间选择器的初始值",
1298
- "type": "string"
1299
- },
1300
- {
1301
- "name": "placeholder",
1302
- "description": "时间选择器占位说明",
1303
- "type": "string"
1304
- },
1305
- {
1306
- "name": "message",
1307
- "description": "校验文本信息",
1308
- "attribute": false,
1309
- "type": "Record<string, string>"
1310
- },
1311
- {
1312
- "name": "disabled",
1313
- "description": "是否禁用",
1314
- "type": "boolean"
1315
- },
1316
- {
1317
- "name": "required",
1318
- "description": "是否必填",
1319
- "type": "boolean"
1320
- },
1321
- {
1322
- "name": "configProps",
1323
- "description": "透传 antd timePicker 属性 [timePickerProps](https://ant.design/components/time-picker-cn)",
1324
- "attribute": false,
1325
- "type": "Partial<TimePickerProps>"
1326
- }
1327
- ],
1328
- "events": [
1329
- {
1330
- "name": "change",
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
- "detail": {
1347
- "type": "string"
1348
- }
1349
- }
1350
- ],
1351
- "slots": [],
1352
- "methods": [],
1353
- "parts": [],
1354
- "description": "时间选择器",
1355
- "category": "form-input-basic"
1356
- },
1357
1357
  {
1358
1358
  "name": "eo-date-picker",
1359
1359
  "properties": [