@next-bricks/form 1.5.1 → 1.6.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.
Files changed (47) hide show
  1. package/dist/bricks.json +28 -28
  2. package/dist/chunks/{2560.82aaec19.js → 2560.69257749.js} +2 -2
  3. package/dist/chunks/{2560.82aaec19.js.map → 2560.69257749.js.map} +1 -1
  4. package/dist/chunks/4036.86da7a46.js +2 -0
  5. package/dist/chunks/4036.86da7a46.js.map +1 -0
  6. package/dist/chunks/eo-auto-complete.01d7e526.js +3 -0
  7. package/dist/chunks/eo-auto-complete.01d7e526.js.map +1 -0
  8. package/dist/chunks/eo-color-picker.ac30b7c2.js +2 -0
  9. package/dist/chunks/eo-color-picker.ac30b7c2.js.map +1 -0
  10. package/dist/chunks/eo-date-picker.e339423c.js +2 -0
  11. package/dist/chunks/eo-date-picker.e339423c.js.map +1 -0
  12. package/dist/chunks/eo-form-item.d8e1186e.js +3 -0
  13. package/dist/chunks/eo-form-item.d8e1186e.js.map +1 -0
  14. package/dist/chunks/{eo-form.d8b84b09.js → eo-form.aa21eb4c.js} +2 -2
  15. package/dist/chunks/eo-form.aa21eb4c.js.map +1 -0
  16. package/dist/chunks/eo-time-picker.d8ff5a64.js +2 -0
  17. package/dist/chunks/eo-time-picker.d8ff5a64.js.map +1 -0
  18. package/dist/chunks/eo-time-range-picker.d519835f.js +2 -0
  19. package/dist/chunks/eo-time-range-picker.d519835f.js.map +1 -0
  20. package/dist/chunks/{main.6be2388a.js → main.c3916d6a.js} +2 -2
  21. package/dist/chunks/{main.6be2388a.js.map → main.c3916d6a.js.map} +1 -1
  22. package/dist/examples.json +11 -11
  23. package/dist/index.dc1664d2.js +2 -0
  24. package/dist/{index.cb8a3748.js.map → index.dc1664d2.js.map} +1 -1
  25. package/dist/manifest.json +415 -415
  26. package/dist/types.json +784 -784
  27. package/dist-types/form/index.d.ts +1 -1
  28. package/dist-types/form-item/index.d.ts +2 -1
  29. package/package.json +2 -2
  30. package/dist/chunks/4036.c15cefd1.js +0 -2
  31. package/dist/chunks/4036.c15cefd1.js.map +0 -1
  32. package/dist/chunks/eo-auto-complete.5e346e2a.js +0 -3
  33. package/dist/chunks/eo-auto-complete.5e346e2a.js.map +0 -1
  34. package/dist/chunks/eo-color-picker.01add839.js +0 -2
  35. package/dist/chunks/eo-color-picker.01add839.js.map +0 -1
  36. package/dist/chunks/eo-date-picker.68c76fa7.js +0 -2
  37. package/dist/chunks/eo-date-picker.68c76fa7.js.map +0 -1
  38. package/dist/chunks/eo-form-item.e87bfbf2.js +0 -3
  39. package/dist/chunks/eo-form-item.e87bfbf2.js.map +0 -1
  40. package/dist/chunks/eo-form.d8b84b09.js.map +0 -1
  41. package/dist/chunks/eo-time-picker.1c39e2f4.js +0 -2
  42. package/dist/chunks/eo-time-picker.1c39e2f4.js.map +0 -1
  43. package/dist/chunks/eo-time-range-picker.9b02234e.js +0 -2
  44. package/dist/chunks/eo-time-range-picker.9b02234e.js.map +0 -1
  45. package/dist/index.cb8a3748.js +0 -2
  46. /package/dist/chunks/{eo-auto-complete.5e346e2a.js.LICENSE.txt → eo-auto-complete.01d7e526.js.LICENSE.txt} +0 -0
  47. /package/dist/chunks/{eo-form-item.e87bfbf2.js.LICENSE.txt → eo-form-item.d8e1186e.js.LICENSE.txt} +0 -0
@@ -188,6 +188,228 @@
188
188
  "description": "通用输入框构件",
189
189
  "category": "form-input-basic"
190
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
+ "parts": [],
279
+ "description": "通用多行文本输入框构件",
280
+ "category": "form-input-basic"
281
+ },
282
+ {
283
+ "name": "eo-form",
284
+ "alias": [
285
+ "form.general-form"
286
+ ],
287
+ "properties": [
288
+ {
289
+ "name": "layout",
290
+ "description": "布局方式(默认 vertical 布局)",
291
+ "default": "vertical",
292
+ "type": "Layout"
293
+ },
294
+ {
295
+ "name": "size",
296
+ "description": "表单组件尺寸",
297
+ "type": "ComponentSize"
298
+ },
299
+ {
300
+ "name": "labelCol",
301
+ "description": "标签列布局样式(仅当 layout=\"horizontal\" 时有效)",
302
+ "default": "{\n sm: {\n span: 24,\n },\n md: {\n span: 24,\n },\n lg: {\n span: 7,\n },\n xl: {\n span: 5,\n },\n xxl: {\n span: 4,\n },\n }",
303
+ "attribute": false,
304
+ "type": "ColProps"
305
+ },
306
+ {
307
+ "name": "wrapperCol",
308
+ "description": "输入控件列布局样式(仅当 layout=\"horizontal\" 时有效)",
309
+ "default": "{\n sm: {\n span: 18,\n },\n md: {\n span: 18,\n },\n lg: {\n span: 13,\n },\n xl: {\n span: 16,\n },\n xxl: {\n span: 18,\n },\n }",
310
+ "attribute": false,
311
+ "type": "ColProps"
312
+ },
313
+ {
314
+ "name": "formStyle",
315
+ "attribute": false,
316
+ "type": "React.CSSProperties"
317
+ }
318
+ ],
319
+ "events": [
320
+ {
321
+ "name": "values.change",
322
+ "description": "表单值变更事件",
323
+ "detail": {
324
+ "description": null,
325
+ "type": "Record<string, unknown>"
326
+ }
327
+ },
328
+ {
329
+ "name": "validate.success",
330
+ "description": "表单验证成功时触发事件",
331
+ "detail": {
332
+ "type": "Record<string, unknown>"
333
+ }
334
+ },
335
+ {
336
+ "name": "validate.error",
337
+ "description": "表单验证报错时触发事件",
338
+ "detail": {
339
+ "type": "MessageBody[]"
340
+ }
341
+ }
342
+ ],
343
+ "slots": [
344
+ {
345
+ "name": null,
346
+ "description": "表单内容"
347
+ }
348
+ ],
349
+ "methods": [
350
+ {
351
+ "name": "validate",
352
+ "params": [],
353
+ "description": "表单校验方法",
354
+ "returns": {
355
+ "type": "boolean | Record<string, unknown>"
356
+ }
357
+ },
358
+ {
359
+ "name": "setInitValue",
360
+ "params": [
361
+ {
362
+ "name": "values",
363
+ "type": "Record<string, unknown>"
364
+ }
365
+ ],
366
+ "description": "表单设置值方法",
367
+ "returns": {}
368
+ },
369
+ {
370
+ "name": "resetFields",
371
+ "params": [
372
+ {
373
+ "name": "name",
374
+ "type": "string"
375
+ }
376
+ ],
377
+ "description": "表单重置值方法",
378
+ "returns": {}
379
+ },
380
+ {
381
+ "name": "getFieldsValue",
382
+ "params": [
383
+ {
384
+ "name": "name",
385
+ "type": "string"
386
+ }
387
+ ],
388
+ "description": "获取表单值方法",
389
+ "returns": {}
390
+ },
391
+ {
392
+ "name": "validateField",
393
+ "params": [
394
+ {
395
+ "name": "name",
396
+ "type": "string"
397
+ }
398
+ ],
399
+ "description": "校验表单字段方法",
400
+ "returns": {}
401
+ },
402
+ {
403
+ "name": "resetValidateState",
404
+ "params": [],
405
+ "description": "重置表单校验状态方法",
406
+ "returns": {}
407
+ }
408
+ ],
409
+ "parts": [],
410
+ "description": "表单构件",
411
+ "category": "form-input-basic"
412
+ },
191
413
  {
192
414
  "name": "eo-form-item",
193
415
  "alias": [
@@ -386,134 +608,145 @@
386
608
  "category": "form-input-basic"
387
609
  },
388
610
  {
389
- "name": "eo-form",
611
+ "name": "eo-select",
390
612
  "alias": [
391
- "form.general-form"
613
+ "form.general-select"
392
614
  ],
393
615
  "properties": [
394
616
  {
395
- "name": "layout",
396
- "description": "布局方式(默认 vertical 布局)",
397
- "default": "vertical",
398
- "type": "Layout"
617
+ "name": "name",
618
+ "description": "字段名称",
619
+ "type": "string"
399
620
  },
400
621
  {
401
- "name": "size",
402
- "description": "表单组件尺寸",
403
- "type": "ComponentSize"
622
+ "name": "placeholder",
623
+ "description": "占位说明",
624
+ "type": "string"
404
625
  },
405
626
  {
406
- "name": "labelCol",
407
- "description": "标签列布局样式(仅当 layout=\"horizontal\" 时有效)",
408
- "default": "{\n sm: {\n span: 24,\n },\n md: {\n span: 24,\n },\n lg: {\n span: 7,\n },\n xl: {\n span: 5,\n },\n xxl: {\n span: 4,\n },\n }",
627
+ "name": "label",
628
+ "description": "字段文本",
629
+ "type": "string"
630
+ },
631
+ {
632
+ "name": "options",
633
+ "description": "选项列表",
634
+ "required": true,
409
635
  "attribute": false,
410
- "type": "ColProps"
636
+ "type": "GeneralComplexOption[]"
637
+ },
638
+ {
639
+ "name": "value",
640
+ "description": "值",
641
+ "attribute": false,
642
+ "type": "any"
643
+ },
644
+ {
645
+ "name": "required",
646
+ "description": "是否必填",
647
+ "type": "boolean"
648
+ },
649
+ {
650
+ "name": "message",
651
+ "description": "校验文本信息",
652
+ "attribute": false,
653
+ "type": "Record<string, string>"
654
+ },
655
+ {
656
+ "name": "disabled",
657
+ "description": "是否禁用",
658
+ "type": "boolean"
659
+ },
660
+ {
661
+ "name": "mode",
662
+ "description": "类型",
663
+ "type": "\"tags\" | \"multiple\""
664
+ },
665
+ {
666
+ "name": "tokenSeparators",
667
+ "description": "自动分词的分隔符,仅在 mode=\"tags\" 时生效",
668
+ "attribute": false,
669
+ "type": "string[]"
670
+ },
671
+ {
672
+ "name": "maxTagCount",
673
+ "description": "最多显示多少个 tag, 剩余的 tag 将被隐藏",
674
+ "type": "number"
675
+ },
676
+ {
677
+ "name": "groupBy",
678
+ "description": "分组字段",
679
+ "type": "string"
680
+ },
681
+ {
682
+ "name": "suffix",
683
+ "description": "",
684
+ "attribute": false,
685
+ "type": "UseSingleBrickConf"
686
+ },
687
+ {
688
+ "name": "clearable",
689
+ "description": "是否支持清除",
690
+ "default": "true",
691
+ "type": "boolean"
692
+ },
693
+ {
694
+ "name": "fields",
695
+ "description": "列表指定字段作为 label 和 value",
696
+ "attribute": false,
697
+ "type": "{ label?: string; value?: string }"
698
+ },
699
+ {
700
+ "name": "useBackend",
701
+ "description": "后端搜索",
702
+ "attribute": false,
703
+ "type": "UseBackendConf"
411
704
  },
412
705
  {
413
- "name": "wrapperCol",
414
- "description": "输入控件列布局样式(仅当 layout=\"horizontal\" 时有效)",
415
- "default": "{\n sm: {\n span: 18,\n },\n md: {\n span: 18,\n },\n lg: {\n span: 13,\n },\n xl: {\n span: 16,\n },\n xxl: {\n span: 18,\n },\n }",
416
- "attribute": false,
417
- "type": "ColProps"
706
+ "name": "debounceSearchDelay",
707
+ "type": "number"
418
708
  },
419
709
  {
420
- "name": "formStyle",
710
+ "name": "inputStyle",
711
+ "description": "输入框样式",
421
712
  "attribute": false,
422
713
  "type": "React.CSSProperties"
423
714
  }
424
715
  ],
425
716
  "events": [
426
717
  {
427
- "name": "values.change",
428
- "description": "表单值变更事件",
718
+ "name": "change",
719
+ "description": "下拉选择事件",
429
720
  "detail": {
430
- "description": null,
431
- "type": "Record<string, unknown>"
721
+ "type": "{\n value: string | string[];\n options: GeneralComplexOption[];\n }"
432
722
  }
433
723
  },
434
724
  {
435
- "name": "validate.success",
436
- "description": "表单验证成功时触发事件",
725
+ "name": "search",
726
+ "description": "下拉框search事件",
437
727
  "detail": {
438
- "type": "Record<string, unknown>"
728
+ "type": "{\n value: string;\n }"
439
729
  }
440
730
  },
441
731
  {
442
- "name": "validate.error",
443
- "description": "表单验证报错时触发事件",
732
+ "name": "focus",
733
+ "description": "下拉框focus事件",
444
734
  "detail": {
445
- "type": "MessageBody[]"
446
- }
447
- }
448
- ],
449
- "slots": [
450
- {
451
- "name": null,
452
- "description": "表单内容"
453
- }
454
- ],
455
- "methods": [
456
- {
457
- "name": "validate",
458
- "params": [],
459
- "description": "表单校验方法",
460
- "returns": {
461
- "type": "boolean | Record<string, unknown>"
735
+ "type": "void"
462
736
  }
463
737
  },
464
738
  {
465
- "name": "setInitValue",
466
- "params": [
467
- {
468
- "name": "values",
469
- "type": "Record<string, unknown>"
470
- }
471
- ],
472
- "description": "表单设置值方法",
473
- "returns": {}
474
- },
475
- {
476
- "name": "resetFields",
477
- "params": [
478
- {
479
- "name": "name",
480
- "type": "string"
481
- }
482
- ],
483
- "description": "表单重置值方法",
484
- "returns": {}
485
- },
486
- {
487
- "name": "getFieldsValue",
488
- "params": [
489
- {
490
- "name": "name",
491
- "type": "string"
492
- }
493
- ],
494
- "description": "获取表单值方法",
495
- "returns": {}
496
- },
497
- {
498
- "name": "validateField",
499
- "params": [
500
- {
501
- "name": "name",
502
- "type": "string"
503
- }
504
- ],
505
- "description": "校验表单字段方法",
506
- "returns": {}
507
- },
508
- {
509
- "name": "resetValidateState",
510
- "params": [],
511
- "description": "重置表单校验状态方法",
512
- "returns": {}
739
+ "name": "options.change",
740
+ "description": "选项列表变化事件",
741
+ "detail": {
742
+ "type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
743
+ }
513
744
  }
514
745
  ],
746
+ "slots": [],
747
+ "methods": [],
515
748
  "parts": [],
516
- "description": "表单构件",
749
+ "description": "通用下拉选择构件",
517
750
  "category": "form-input-basic"
518
751
  },
519
752
  {
@@ -668,97 +901,6 @@
668
901
  "description": "表单复选框构件",
669
902
  "category": "form-input-basic"
670
903
  },
671
- {
672
- "name": "eo-textarea",
673
- "alias": [
674
- "form.general-textarea"
675
- ],
676
- "properties": [
677
- {
678
- "name": "name",
679
- "description": "字段名称",
680
- "type": "string"
681
- },
682
- {
683
- "name": "label",
684
- "description": "标签文字",
685
- "type": "string"
686
- },
687
- {
688
- "name": "value",
689
- "description": "值",
690
- "type": "string"
691
- },
692
- {
693
- "name": "placeholder",
694
- "description": "占位说明",
695
- "type": "string"
696
- },
697
- {
698
- "name": "disabled",
699
- "description": "是否禁用",
700
- "type": "boolean"
701
- },
702
- {
703
- "name": "minLength",
704
- "description": "最小长度",
705
- "type": "number"
706
- },
707
- {
708
- "name": "maxLength",
709
- "description": "最大长度",
710
- "type": "number"
711
- },
712
- {
713
- "name": "autoSize",
714
- "description": "大小自适应",
715
- "attribute": false,
716
- "type": "AutoSize"
717
- },
718
- {
719
- "name": "required",
720
- "description": "是否必填",
721
- "type": "boolean"
722
- },
723
- {
724
- "name": "max",
725
- "description": "表单校验最大长度",
726
- "type": "number"
727
- },
728
- {
729
- "name": "min",
730
- "description": "表单校验最小长度",
731
- "type": "number"
732
- },
733
- {
734
- "name": "message",
735
- "description": "校验信息",
736
- "attribute": false,
737
- "type": "Record<string, string>"
738
- },
739
- {
740
- "name": "textareaStyle",
741
- "description": "自定义样式",
742
- "attribute": false,
743
- "type": "React.CSSProperties"
744
- }
745
- ],
746
- "events": [
747
- {
748
- "name": "change",
749
- "description": "",
750
- "detail": {
751
- "description": null,
752
- "type": "string"
753
- }
754
- }
755
- ],
756
- "slots": [],
757
- "methods": [],
758
- "parts": [],
759
- "description": "通用多行文本输入框构件",
760
- "category": "form-input-basic"
761
- },
762
904
  {
763
905
  "name": "eo-dynamic-form-item",
764
906
  "alias": [
@@ -829,229 +971,87 @@
829
971
  "detail": {
830
972
  "type": "DynamicFormValuesItem[]"
831
973
  }
832
- },
833
- {
834
- "name": "row.add",
835
- "description": "增加一行时触发,detail为该行的默认值,index为该行的位置",
836
- "detail": {
837
- "type": "rowDataType"
838
- }
839
- },
840
- {
841
- "name": "row.remove",
842
- "description": "移除一行时触发,detail为该行的值,index为该行的位置",
843
- "detail": {
844
- "type": "rowDataType"
845
- }
846
- }
847
- ],
848
- "slots": [],
849
- "methods": [],
850
- "parts": [],
851
- "description": "动态表单",
852
- "category": "form-input-basic"
853
- },
854
- {
855
- "name": "eo-search",
856
- "alias": [
857
- "form.general-search"
858
- ],
859
- "properties": [
860
- {
861
- "name": "value",
862
- "description": "搜索框的值",
863
- "default": "\"\"",
864
- "type": "string"
865
- },
866
- {
867
- "name": "placeholder",
868
- "description": "提示语",
869
- "type": "string"
870
- },
871
- {
872
- "name": "autoFocus",
873
- "description": "是否自动聚焦",
874
- "type": "boolean"
875
- },
876
- {
877
- "name": "clearable",
878
- "description": "可以点击清除图标删除内容",
879
- "type": "boolean"
880
- },
881
- {
882
- "name": "trim",
883
- "description": "是否剔除前后空格",
884
- "type": "boolean"
885
- },
886
- {
887
- "name": "debounceTime",
888
- "description": "默认延迟时间",
889
- "default": "0",
890
- "type": "number"
891
- }
892
- ],
893
- "events": [
974
+ },
894
975
  {
895
- "name": "change",
896
- "description": "输入的搜索字符,输入变化时触发",
976
+ "name": "row.add",
977
+ "description": "增加一行时触发,detail为该行的默认值,index为该行的位置",
897
978
  "detail": {
898
- "type": "string"
979
+ "type": "rowDataType"
899
980
  }
900
981
  },
901
982
  {
902
- "name": "search",
903
- "description": "搜索时触发",
983
+ "name": "row.remove",
984
+ "description": "移除一行时触发,detail为该行的值,index为该行的位置",
904
985
  "detail": {
905
- "type": "string"
986
+ "type": "rowDataType"
906
987
  }
907
988
  }
908
989
  ],
909
990
  "slots": [],
910
991
  "methods": [],
911
992
  "parts": [],
912
- "description": "搜索框",
993
+ "description": "动态表单",
913
994
  "category": "form-input-basic"
914
995
  },
915
996
  {
916
- "name": "eo-select",
997
+ "name": "eo-search",
917
998
  "alias": [
918
- "form.general-select"
999
+ "form.general-search"
919
1000
  ],
920
1001
  "properties": [
921
1002
  {
922
- "name": "name",
923
- "description": "字段名称",
1003
+ "name": "value",
1004
+ "description": "搜索框的值",
1005
+ "default": "\"\"",
924
1006
  "type": "string"
925
1007
  },
926
1008
  {
927
1009
  "name": "placeholder",
928
- "description": "占位说明",
929
- "type": "string"
930
- },
931
- {
932
- "name": "label",
933
- "description": "字段文本",
1010
+ "description": "提示语",
934
1011
  "type": "string"
935
1012
  },
936
1013
  {
937
- "name": "options",
938
- "description": "选项列表",
939
- "required": true,
940
- "attribute": false,
941
- "type": "GeneralComplexOption[]"
942
- },
943
- {
944
- "name": "value",
945
- "description": "值",
946
- "attribute": false,
947
- "type": "any"
948
- },
949
- {
950
- "name": "required",
951
- "description": "是否必填",
952
- "type": "boolean"
953
- },
954
- {
955
- "name": "message",
956
- "description": "校验文本信息",
957
- "attribute": false,
958
- "type": "Record<string, string>"
959
- },
960
- {
961
- "name": "disabled",
962
- "description": "是否禁用",
1014
+ "name": "autoFocus",
1015
+ "description": "是否自动聚焦",
963
1016
  "type": "boolean"
964
1017
  },
965
- {
966
- "name": "mode",
967
- "description": "类型",
968
- "type": "\"tags\" | \"multiple\""
969
- },
970
- {
971
- "name": "tokenSeparators",
972
- "description": "自动分词的分隔符,仅在 mode=\"tags\" 时生效",
973
- "attribute": false,
974
- "type": "string[]"
975
- },
976
- {
977
- "name": "maxTagCount",
978
- "description": "最多显示多少个 tag, 剩余的 tag 将被隐藏",
979
- "type": "number"
980
- },
981
- {
982
- "name": "groupBy",
983
- "description": "分组字段",
984
- "type": "string"
985
- },
986
- {
987
- "name": "suffix",
988
- "description": "",
989
- "attribute": false,
990
- "type": "UseSingleBrickConf"
991
- },
992
1018
  {
993
1019
  "name": "clearable",
994
- "description": "是否支持清除",
995
- "default": "true",
1020
+ "description": "可以点击清除图标删除内容",
996
1021
  "type": "boolean"
997
1022
  },
998
1023
  {
999
- "name": "fields",
1000
- "description": "列表指定字段作为 label 和 value",
1001
- "attribute": false,
1002
- "type": "{ label?: string; value?: string }"
1003
- },
1004
- {
1005
- "name": "useBackend",
1006
- "description": "后端搜索",
1007
- "attribute": false,
1008
- "type": "UseBackendConf"
1024
+ "name": "trim",
1025
+ "description": "是否剔除前后空格",
1026
+ "type": "boolean"
1009
1027
  },
1010
1028
  {
1011
- "name": "debounceSearchDelay",
1029
+ "name": "debounceTime",
1030
+ "description": "默认延迟时间",
1031
+ "default": "0",
1012
1032
  "type": "number"
1013
- },
1014
- {
1015
- "name": "inputStyle",
1016
- "description": "输入框样式",
1017
- "attribute": false,
1018
- "type": "React.CSSProperties"
1019
1033
  }
1020
1034
  ],
1021
1035
  "events": [
1022
1036
  {
1023
1037
  "name": "change",
1024
- "description": "下拉选择事件",
1038
+ "description": "输入的搜索字符,输入变化时触发",
1025
1039
  "detail": {
1026
- "type": "{\n value: string | string[];\n options: GeneralComplexOption[];\n }"
1040
+ "type": "string"
1027
1041
  }
1028
1042
  },
1029
1043
  {
1030
1044
  "name": "search",
1031
- "description": "下拉框search事件",
1032
- "detail": {
1033
- "type": "{\n value: string;\n }"
1034
- }
1035
- },
1036
- {
1037
- "name": "focus",
1038
- "description": "下拉框focus事件",
1039
- "detail": {
1040
- "type": "void"
1041
- }
1042
- },
1043
- {
1044
- "name": "options.change",
1045
- "description": "选项列表变化事件",
1045
+ "description": "搜索时触发",
1046
1046
  "detail": {
1047
- "type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
1047
+ "type": "string"
1048
1048
  }
1049
1049
  }
1050
1050
  ],
1051
1051
  "slots": [],
1052
1052
  "methods": [],
1053
1053
  "parts": [],
1054
- "description": "通用下拉选择构件",
1054
+ "description": "搜索框",
1055
1055
  "category": "form-input-basic"
1056
1056
  },
1057
1057
  {
@@ -1628,27 +1628,24 @@
1628
1628
  "category": "form-input-basic"
1629
1629
  },
1630
1630
  {
1631
- "name": "eo-color-picker",
1631
+ "name": "eo-time-range-picker",
1632
1632
  "properties": [
1633
1633
  {
1634
1634
  "name": "name",
1635
- "description": "字段名称",
1635
+ "description": "时间段选择器字段名",
1636
1636
  "type": "string"
1637
1637
  },
1638
1638
  {
1639
1639
  "name": "label",
1640
- "description": "字段说明",
1640
+ "description": "时间段选择器说明",
1641
1641
  "type": "string"
1642
1642
  },
1643
1643
  {
1644
1644
  "name": "value",
1645
- "description": "",
1646
- "type": "string"
1647
- },
1648
- {
1649
- "name": "defaultValue",
1650
- "description": "颜色默认的值",
1651
- "type": "string | Color"
1645
+ "description": "时间段选择器的初始值",
1646
+ "default": "{ \"startTime\": \"00:00:00\", \"endTime\": \"23:59:59\" }",
1647
+ "attribute": false,
1648
+ "type": "TimeRange"
1652
1649
  },
1653
1650
  {
1654
1651
  "name": "required",
@@ -1656,74 +1653,72 @@
1656
1653
  "type": "boolean"
1657
1654
  },
1658
1655
  {
1659
- "name": "allowClear",
1660
- "description": "允许清除选择的颜色",
1661
- "type": "boolean"
1662
- },
1663
- {
1664
- "name": "size",
1665
- "description": "设置触发器大小",
1666
- "default": "middle",
1656
+ "name": "rangeType",
1657
+ "description": "时间段类型",
1667
1658
  "attribute": false,
1668
- "type": "\"small\" | \"middle\" | \"large\""
1659
+ "type": "RangeType"
1669
1660
  },
1670
1661
  {
1671
- "name": "showText",
1672
- "description": "显示颜色文本",
1673
- "type": "boolean"
1662
+ "name": "selectNearDays",
1663
+ "description": "只有rangeType在`date` 和 `dateTime`下, 才支持只选择最近n天(当前时间向前n天)",
1664
+ "type": "number"
1674
1665
  },
1675
1666
  {
1676
- "name": "disabled",
1677
- "description": "是否禁用",
1667
+ "name": "emitChangeOnInit",
1668
+ "description": "",
1669
+ "default": "true\n是否在初始化完成后额外触发一次`time.range.change`, 这里因为历史原因之前默认行为就是在初始化后会触发该事件,这里为了兼容之前的行为,默认值只能设置为 true。",
1678
1670
  "type": "boolean"
1679
1671
  },
1680
1672
  {
1681
- "name": "format",
1682
- "description": "颜色格式",
1683
- "default": "hex",
1673
+ "name": "presetRanges",
1674
+ "description": "",
1675
+ "default": "[]\n预设时间范围快捷选择;设置了属性selectNearDays时,属性presetRanges不生效;属性rangeType为week时,presetRanges的值只能为本周、本月、本季度、今年,属性rangeType为month、quarter、year时,以此类推",
1684
1676
  "attribute": false,
1685
- "type": "\"rgb\" | \"hex\" | \"hsb\""
1677
+ "type": "presetRangeType[]"
1686
1678
  },
1687
1679
  {
1688
- "name": "configProps",
1689
- "description": "透传 antd ColorPicker 属性 [ColorPickerProps](https://ant.design/components/color-picker-cn#api)",
1680
+ "name": "validator",
1690
1681
  "attribute": false,
1691
- "type": "Partial<ColorPickerProps>"
1682
+ "type": "((value: any) => MessageBody | string)"
1692
1683
  }
1693
1684
  ],
1694
1685
  "events": [
1695
1686
  {
1696
1687
  "name": "change",
1697
- "description": "颜色变化事件, 返回值格式和`format`格式一致",
1688
+ "description": "时间段变化时触发",
1698
1689
  "detail": {
1699
- "type": "string | undefined"
1690
+ "type": "TimeRange"
1700
1691
  }
1701
1692
  }
1702
1693
  ],
1703
1694
  "slots": [],
1704
1695
  "methods": [],
1705
1696
  "parts": [],
1706
- "description": "构件 `eo-color-picker`"
1697
+ "description": "时间区间选择器",
1698
+ "category": "form-input-basic"
1707
1699
  },
1708
1700
  {
1709
- "name": "eo-time-range-picker",
1701
+ "name": "eo-color-picker",
1710
1702
  "properties": [
1711
1703
  {
1712
1704
  "name": "name",
1713
- "description": "时间段选择器字段名",
1705
+ "description": "字段名称",
1714
1706
  "type": "string"
1715
1707
  },
1716
1708
  {
1717
1709
  "name": "label",
1718
- "description": "时间段选择器说明",
1710
+ "description": "字段说明",
1719
1711
  "type": "string"
1720
1712
  },
1721
1713
  {
1722
1714
  "name": "value",
1723
- "description": "时间段选择器的初始值",
1724
- "default": "{ \"startTime\": \"00:00:00\", \"endTime\": \"23:59:59\" }",
1725
- "attribute": false,
1726
- "type": "TimeRange"
1715
+ "description": "",
1716
+ "type": "string"
1717
+ },
1718
+ {
1719
+ "name": "defaultValue",
1720
+ "description": "颜色默认的值",
1721
+ "type": "string | Color"
1727
1722
  },
1728
1723
  {
1729
1724
  "name": "required",
@@ -1731,49 +1726,54 @@
1731
1726
  "type": "boolean"
1732
1727
  },
1733
1728
  {
1734
- "name": "rangeType",
1735
- "description": "时间段类型",
1729
+ "name": "allowClear",
1730
+ "description": "允许清除选择的颜色",
1731
+ "type": "boolean"
1732
+ },
1733
+ {
1734
+ "name": "size",
1735
+ "description": "设置触发器大小",
1736
+ "default": "middle",
1736
1737
  "attribute": false,
1737
- "type": "RangeType"
1738
+ "type": "\"small\" | \"middle\" | \"large\""
1738
1739
  },
1739
1740
  {
1740
- "name": "selectNearDays",
1741
- "description": "只有rangeType在`date` 和 `dateTime`下, 才支持只选择最近n天(当前时间向前n天)",
1742
- "type": "number"
1741
+ "name": "showText",
1742
+ "description": "显示颜色文本",
1743
+ "type": "boolean"
1743
1744
  },
1744
1745
  {
1745
- "name": "emitChangeOnInit",
1746
- "description": "",
1747
- "default": "true\n是否在初始化完成后额外触发一次`time.range.change`, 这里因为历史原因之前默认行为就是在初始化后会触发该事件,这里为了兼容之前的行为,默认值只能设置为 true。",
1746
+ "name": "disabled",
1747
+ "description": "是否禁用",
1748
1748
  "type": "boolean"
1749
1749
  },
1750
1750
  {
1751
- "name": "presetRanges",
1752
- "description": "",
1753
- "default": "[]\n预设时间范围快捷选择;设置了属性selectNearDays时,属性presetRanges不生效;属性rangeType为week时,presetRanges的值只能为本周、本月、本季度、今年,属性rangeType为month、quarter、year时,以此类推",
1751
+ "name": "format",
1752
+ "description": "颜色格式",
1753
+ "default": "hex",
1754
1754
  "attribute": false,
1755
- "type": "presetRangeType[]"
1755
+ "type": "\"rgb\" | \"hex\" | \"hsb\""
1756
1756
  },
1757
1757
  {
1758
- "name": "validator",
1758
+ "name": "configProps",
1759
+ "description": "透传 antd ColorPicker 属性 [ColorPickerProps](https://ant.design/components/color-picker-cn#api)",
1759
1760
  "attribute": false,
1760
- "type": "((value: any) => MessageBody | string)"
1761
+ "type": "Partial<ColorPickerProps>"
1761
1762
  }
1762
1763
  ],
1763
1764
  "events": [
1764
1765
  {
1765
1766
  "name": "change",
1766
- "description": "时间段变化时触发",
1767
+ "description": "颜色变化事件, 返回值格式和`format`格式一致",
1767
1768
  "detail": {
1768
- "type": "TimeRange"
1769
+ "type": "string | undefined"
1769
1770
  }
1770
1771
  }
1771
1772
  ],
1772
1773
  "slots": [],
1773
1774
  "methods": [],
1774
1775
  "parts": [],
1775
- "description": "时间区间选择器",
1776
- "category": "form-input-basic"
1776
+ "description": "构件 `eo-color-picker`"
1777
1777
  }
1778
1778
  ],
1779
1779
  "providers": []