@next-bricks/form 1.9.16 → 1.9.17

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.
@@ -188,232 +188,6 @@
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
- "name": "options",
367
- "type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
368
- }
369
- ],
370
- "description": "表单设置值方法",
371
- "returns": {}
372
- },
373
- {
374
- "name": "resetFields",
375
- "params": [
376
- {
377
- "name": "name",
378
- "type": "string"
379
- }
380
- ],
381
- "description": "表单重置值方法",
382
- "returns": {}
383
- },
384
- {
385
- "name": "getFieldsValue",
386
- "params": [
387
- {
388
- "name": "name",
389
- "type": "string"
390
- }
391
- ],
392
- "description": "获取表单值方法",
393
- "returns": {}
394
- },
395
- {
396
- "name": "validateField",
397
- "params": [
398
- {
399
- "name": "name",
400
- "type": "string"
401
- }
402
- ],
403
- "description": "校验表单字段方法",
404
- "returns": {}
405
- },
406
- {
407
- "name": "resetValidateState",
408
- "params": [],
409
- "description": "重置表单校验状态方法",
410
- "returns": {}
411
- }
412
- ],
413
- "parts": [],
414
- "description": "表单构件",
415
- "category": "form-input-basic"
416
- },
417
191
  {
418
192
  "name": "eo-form-item",
419
193
  "alias": [
@@ -495,121 +269,23 @@
495
269
  "type": "((value: any) => MessageBody)"
496
270
  },
497
271
  {
498
- "name": "needValidate",
499
- "description": "值变化时是否主动出发校验",
500
- "type": "boolean"
501
- }
502
- ],
503
- "events": [],
504
- "slots": [
505
- {
506
- "name": null,
507
- "description": "表单项内容"
508
- }
509
- ],
510
- "methods": [],
511
- "parts": [],
512
- "description": "通用输入框构件",
513
- "category": "form-input-basic",
514
- "insider": true
515
- },
516
- {
517
- "name": "eo-radio",
518
- "alias": [
519
- "form.general-radio"
520
- ],
521
- "properties": [
522
- {
523
- "name": "name",
524
- "description": "下拉框字段名",
525
- "type": "string"
526
- },
527
- {
528
- "name": "label",
529
- "description": "单选框字段说明",
530
- "type": "string"
531
- },
532
- {
533
- "name": "options",
534
- "description": "单选框选项表",
535
- "required": true,
536
- "attribute": false,
537
- "type": "GeneralOption[]"
538
- },
539
- {
540
- "name": "value",
541
- "description": "单选框当前选中始值",
542
- "attribute": false,
543
- "type": "any"
544
- },
545
- {
546
- "name": "required",
547
- "description": "是否必填",
548
- "type": "boolean"
549
- },
550
- {
551
- "name": "message",
552
- "description": "校验文本信息",
553
- "attribute": false,
554
- "type": "Record<string, string>"
555
- },
556
- {
557
- "name": "disabled",
558
- "description": "是否禁用",
559
- "type": "boolean"
560
- },
561
- {
562
- "name": "type",
563
- "description": "单选框样式类型",
564
- "default": "\"default\"",
565
- "type": "RadioType"
566
- },
567
- {
568
- "name": "ui",
569
- "description": "UI样式",
570
- "default": "\"default\"",
571
- "type": "UIType"
572
- },
573
- {
574
- "name": "size",
575
- "description": "大小,只对按钮样式生效",
576
- "default": "\"medium\"",
577
- "type": "ComponentSize"
578
- },
579
- {
580
- "name": "customStyle",
581
- "description": "自定义radio的外层样式",
582
- "attribute": false,
583
- "type": "React.CSSProperties"
584
- },
585
- {
586
- "name": "useBrick",
587
- "description": "自定义radio的内容",
588
- "attribute": false,
589
- "type": "UseSingleBrickConf"
272
+ "name": "needValidate",
273
+ "description": "值变化时是否主动出发校验",
274
+ "type": "boolean"
590
275
  }
591
276
  ],
592
- "events": [
593
- {
594
- "name": "change",
595
- "description": "值变化事件",
596
- "detail": {
597
- "type": "GeneralComplexOption | undefined"
598
- }
599
- },
277
+ "events": [],
278
+ "slots": [
600
279
  {
601
- "name": "options.change",
602
- "description": "选项列表变化事件",
603
- "detail": {
604
- "type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
605
- }
280
+ "name": null,
281
+ "description": "表单项内容"
606
282
  }
607
283
  ],
608
- "slots": [],
609
284
  "methods": [],
610
285
  "parts": [],
611
- "description": "通用单选构件",
612
- "category": "form-input-basic"
286
+ "description": "通用输入框构件",
287
+ "category": "form-input-basic",
288
+ "insider": true
613
289
  },
614
290
  {
615
291
  "name": "eo-select",
@@ -753,6 +429,141 @@
753
429
  "description": "通用下拉选择构件",
754
430
  "category": "form-input-basic"
755
431
  },
432
+ {
433
+ "name": "eo-form",
434
+ "alias": [
435
+ "form.general-form"
436
+ ],
437
+ "properties": [
438
+ {
439
+ "name": "layout",
440
+ "description": "布局方式(默认 vertical 布局)",
441
+ "default": "vertical",
442
+ "type": "Layout"
443
+ },
444
+ {
445
+ "name": "size",
446
+ "description": "表单组件尺寸",
447
+ "type": "ComponentSize"
448
+ },
449
+ {
450
+ "name": "labelCol",
451
+ "description": "标签列布局样式(仅当 layout=\"horizontal\" 时有效)",
452
+ "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 }",
453
+ "attribute": false,
454
+ "type": "ColProps"
455
+ },
456
+ {
457
+ "name": "wrapperCol",
458
+ "description": "输入控件列布局样式(仅当 layout=\"horizontal\" 时有效)",
459
+ "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 }",
460
+ "attribute": false,
461
+ "type": "ColProps"
462
+ },
463
+ {
464
+ "name": "formStyle",
465
+ "attribute": false,
466
+ "type": "React.CSSProperties"
467
+ }
468
+ ],
469
+ "events": [
470
+ {
471
+ "name": "values.change",
472
+ "description": "表单值变更事件",
473
+ "detail": {
474
+ "description": null,
475
+ "type": "Record<string, unknown>"
476
+ }
477
+ },
478
+ {
479
+ "name": "validate.success",
480
+ "description": "表单验证成功时触发事件",
481
+ "detail": {
482
+ "type": "Record<string, unknown>"
483
+ }
484
+ },
485
+ {
486
+ "name": "validate.error",
487
+ "description": "表单验证报错时触发事件",
488
+ "detail": {
489
+ "type": "MessageBody[]"
490
+ }
491
+ }
492
+ ],
493
+ "slots": [
494
+ {
495
+ "name": null,
496
+ "description": "表单内容"
497
+ }
498
+ ],
499
+ "methods": [
500
+ {
501
+ "name": "validate",
502
+ "params": [],
503
+ "description": "表单校验方法",
504
+ "returns": {
505
+ "type": "boolean | Record<string, unknown>"
506
+ }
507
+ },
508
+ {
509
+ "name": "setInitValue",
510
+ "params": [
511
+ {
512
+ "name": "values",
513
+ "type": "Record<string, unknown>"
514
+ },
515
+ {
516
+ "name": "options",
517
+ "type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
518
+ }
519
+ ],
520
+ "description": "表单设置值方法",
521
+ "returns": {}
522
+ },
523
+ {
524
+ "name": "resetFields",
525
+ "params": [
526
+ {
527
+ "name": "name",
528
+ "type": "string"
529
+ }
530
+ ],
531
+ "description": "表单重置值方法",
532
+ "returns": {}
533
+ },
534
+ {
535
+ "name": "getFieldsValue",
536
+ "params": [
537
+ {
538
+ "name": "name",
539
+ "type": "string"
540
+ }
541
+ ],
542
+ "description": "获取表单值方法",
543
+ "returns": {}
544
+ },
545
+ {
546
+ "name": "validateField",
547
+ "params": [
548
+ {
549
+ "name": "name",
550
+ "type": "string"
551
+ }
552
+ ],
553
+ "description": "校验表单字段方法",
554
+ "returns": {}
555
+ },
556
+ {
557
+ "name": "resetValidateState",
558
+ "params": [],
559
+ "description": "重置表单校验状态方法",
560
+ "returns": {}
561
+ }
562
+ ],
563
+ "parts": [],
564
+ "description": "表单构件",
565
+ "category": "form-input-basic"
566
+ },
756
567
  {
757
568
  "name": "eo-submit-buttons",
758
569
  "alias": [
@@ -880,29 +691,120 @@
880
691
  "name": "optionGroups",
881
692
  "description": "多选框选项分组数据,需要设置 isGroup 为 true 才生效",
882
693
  "attribute": false,
883
- "type": "OptionGroup[]"
694
+ "type": "OptionGroup[]"
695
+ }
696
+ ],
697
+ "events": [
698
+ {
699
+ "name": "change",
700
+ "description": "复选框变化事件",
701
+ "detail": {
702
+ "type": "CheckboxOptionType[]"
703
+ }
704
+ },
705
+ {
706
+ "name": "options.change",
707
+ "description": "复选框变化事件",
708
+ "detail": {
709
+ "type": "{\n options: CheckboxOptionType[];\n name: string;\n }"
710
+ }
711
+ }
712
+ ],
713
+ "slots": [],
714
+ "methods": [],
715
+ "parts": [],
716
+ "description": "表单复选框构件",
717
+ "category": "form-input-basic"
718
+ },
719
+ {
720
+ "name": "eo-textarea",
721
+ "alias": [
722
+ "form.general-textarea"
723
+ ],
724
+ "properties": [
725
+ {
726
+ "name": "name",
727
+ "description": "字段名称",
728
+ "type": "string"
729
+ },
730
+ {
731
+ "name": "label",
732
+ "description": "标签文字",
733
+ "type": "string"
734
+ },
735
+ {
736
+ "name": "value",
737
+ "description": "值",
738
+ "type": "string"
739
+ },
740
+ {
741
+ "name": "placeholder",
742
+ "description": "占位说明",
743
+ "type": "string"
744
+ },
745
+ {
746
+ "name": "disabled",
747
+ "description": "是否禁用",
748
+ "type": "boolean"
749
+ },
750
+ {
751
+ "name": "minLength",
752
+ "description": "最小长度",
753
+ "type": "number"
754
+ },
755
+ {
756
+ "name": "maxLength",
757
+ "description": "最大长度",
758
+ "type": "number"
759
+ },
760
+ {
761
+ "name": "autoSize",
762
+ "description": "大小自适应",
763
+ "attribute": false,
764
+ "type": "AutoSize"
765
+ },
766
+ {
767
+ "name": "required",
768
+ "description": "是否必填",
769
+ "type": "boolean"
770
+ },
771
+ {
772
+ "name": "max",
773
+ "description": "表单校验最大长度",
774
+ "type": "number"
775
+ },
776
+ {
777
+ "name": "min",
778
+ "description": "表单校验最小长度",
779
+ "type": "number"
780
+ },
781
+ {
782
+ "name": "message",
783
+ "description": "校验信息",
784
+ "attribute": false,
785
+ "type": "Record<string, string>"
786
+ },
787
+ {
788
+ "name": "textareaStyle",
789
+ "description": "自定义样式",
790
+ "attribute": false,
791
+ "type": "React.CSSProperties"
884
792
  }
885
793
  ],
886
794
  "events": [
887
795
  {
888
796
  "name": "change",
889
- "description": "复选框变化事件",
890
- "detail": {
891
- "type": "CheckboxOptionType[]"
892
- }
893
- },
894
- {
895
- "name": "options.change",
896
- "description": "复选框变化事件",
797
+ "description": "",
897
798
  "detail": {
898
- "type": "{\n options: CheckboxOptionType[];\n name: string;\n }"
799
+ "description": null,
800
+ "type": "string"
899
801
  }
900
802
  }
901
803
  ],
902
804
  "slots": [],
903
805
  "methods": [],
904
806
  "parts": [],
905
- "description": "表单复选框构件",
807
+ "description": "通用多行文本输入框构件",
906
808
  "category": "form-input-basic"
907
809
  },
908
810
  {
@@ -1058,6 +960,104 @@
1058
960
  "description": "搜索框",
1059
961
  "category": "form-input-basic"
1060
962
  },
963
+ {
964
+ "name": "eo-radio",
965
+ "alias": [
966
+ "form.general-radio"
967
+ ],
968
+ "properties": [
969
+ {
970
+ "name": "name",
971
+ "description": "下拉框字段名",
972
+ "type": "string"
973
+ },
974
+ {
975
+ "name": "label",
976
+ "description": "单选框字段说明",
977
+ "type": "string"
978
+ },
979
+ {
980
+ "name": "options",
981
+ "description": "单选框选项表",
982
+ "required": true,
983
+ "attribute": false,
984
+ "type": "GeneralOption[]"
985
+ },
986
+ {
987
+ "name": "value",
988
+ "description": "单选框当前选中始值",
989
+ "attribute": false,
990
+ "type": "any"
991
+ },
992
+ {
993
+ "name": "required",
994
+ "description": "是否必填",
995
+ "type": "boolean"
996
+ },
997
+ {
998
+ "name": "message",
999
+ "description": "校验文本信息",
1000
+ "attribute": false,
1001
+ "type": "Record<string, string>"
1002
+ },
1003
+ {
1004
+ "name": "disabled",
1005
+ "description": "是否禁用",
1006
+ "type": "boolean"
1007
+ },
1008
+ {
1009
+ "name": "type",
1010
+ "description": "单选框样式类型",
1011
+ "default": "\"default\"",
1012
+ "type": "RadioType"
1013
+ },
1014
+ {
1015
+ "name": "ui",
1016
+ "description": "UI样式",
1017
+ "default": "\"default\"",
1018
+ "type": "UIType"
1019
+ },
1020
+ {
1021
+ "name": "size",
1022
+ "description": "大小,只对按钮样式生效",
1023
+ "default": "\"medium\"",
1024
+ "type": "ComponentSize"
1025
+ },
1026
+ {
1027
+ "name": "customStyle",
1028
+ "description": "自定义radio的外层样式",
1029
+ "attribute": false,
1030
+ "type": "React.CSSProperties"
1031
+ },
1032
+ {
1033
+ "name": "useBrick",
1034
+ "description": "自定义radio的内容",
1035
+ "attribute": false,
1036
+ "type": "UseSingleBrickConf"
1037
+ }
1038
+ ],
1039
+ "events": [
1040
+ {
1041
+ "name": "change",
1042
+ "description": "值变化事件",
1043
+ "detail": {
1044
+ "type": "GeneralComplexOption | undefined"
1045
+ }
1046
+ },
1047
+ {
1048
+ "name": "options.change",
1049
+ "description": "选项列表变化事件",
1050
+ "detail": {
1051
+ "type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
1052
+ }
1053
+ }
1054
+ ],
1055
+ "slots": [],
1056
+ "methods": [],
1057
+ "parts": [],
1058
+ "description": "通用单选构件",
1059
+ "category": "form-input-basic"
1060
+ },
1061
1061
  {
1062
1062
  "name": "eo-icon-select",
1063
1063
  "alias": [
@@ -1531,6 +1531,76 @@
1531
1531
  "description": "时间选择器",
1532
1532
  "category": "form-input-basic"
1533
1533
  },
1534
+ {
1535
+ "name": "eo-time-range-picker",
1536
+ "properties": [
1537
+ {
1538
+ "name": "name",
1539
+ "description": "时间段选择器字段名",
1540
+ "type": "string"
1541
+ },
1542
+ {
1543
+ "name": "label",
1544
+ "description": "时间段选择器说明",
1545
+ "type": "string"
1546
+ },
1547
+ {
1548
+ "name": "value",
1549
+ "description": "时间段选择器的初始值",
1550
+ "default": "{ \"startTime\": \"00:00:00\", \"endTime\": \"23:59:59\" }",
1551
+ "attribute": false,
1552
+ "type": "TimeRange"
1553
+ },
1554
+ {
1555
+ "name": "required",
1556
+ "description": "是否必填",
1557
+ "type": "boolean"
1558
+ },
1559
+ {
1560
+ "name": "rangeType",
1561
+ "description": "时间段类型",
1562
+ "attribute": false,
1563
+ "type": "RangeType"
1564
+ },
1565
+ {
1566
+ "name": "selectNearDays",
1567
+ "description": "只有rangeType在`date` 和 `dateTime`下, 才支持只选择最近n天(当前时间向前n天)",
1568
+ "type": "number"
1569
+ },
1570
+ {
1571
+ "name": "emitChangeOnInit",
1572
+ "description": "",
1573
+ "default": "true\n是否在初始化完成后额外触发一次`time.range.change`, 这里因为历史原因之前默认行为就是在初始化后会触发该事件,这里为了兼容之前的行为,默认值只能设置为 true。",
1574
+ "type": "boolean"
1575
+ },
1576
+ {
1577
+ "name": "presetRanges",
1578
+ "description": "",
1579
+ "default": "[]\n预设时间范围快捷选择;设置了属性selectNearDays时,属性presetRanges不生效;属性rangeType为week时,presetRanges的值只能为本周、本月、本季度、今年,属性rangeType为month、quarter、year时,以此类推",
1580
+ "attribute": false,
1581
+ "type": "presetRangeType[]"
1582
+ },
1583
+ {
1584
+ "name": "validator",
1585
+ "attribute": false,
1586
+ "type": "((value: any) => MessageBody | string)"
1587
+ }
1588
+ ],
1589
+ "events": [
1590
+ {
1591
+ "name": "change",
1592
+ "description": "时间段变化时触发",
1593
+ "detail": {
1594
+ "type": "TimeRange"
1595
+ }
1596
+ }
1597
+ ],
1598
+ "slots": [],
1599
+ "methods": [],
1600
+ "parts": [],
1601
+ "description": "时间区间选择器",
1602
+ "category": "form-input-basic"
1603
+ },
1534
1604
  {
1535
1605
  "name": "eo-date-picker",
1536
1606
  "properties": [
@@ -1631,76 +1701,6 @@
1631
1701
  "description": "日期选择器",
1632
1702
  "category": "form-input-basic"
1633
1703
  },
1634
- {
1635
- "name": "eo-time-range-picker",
1636
- "properties": [
1637
- {
1638
- "name": "name",
1639
- "description": "时间段选择器字段名",
1640
- "type": "string"
1641
- },
1642
- {
1643
- "name": "label",
1644
- "description": "时间段选择器说明",
1645
- "type": "string"
1646
- },
1647
- {
1648
- "name": "value",
1649
- "description": "时间段选择器的初始值",
1650
- "default": "{ \"startTime\": \"00:00:00\", \"endTime\": \"23:59:59\" }",
1651
- "attribute": false,
1652
- "type": "TimeRange"
1653
- },
1654
- {
1655
- "name": "required",
1656
- "description": "是否必填",
1657
- "type": "boolean"
1658
- },
1659
- {
1660
- "name": "rangeType",
1661
- "description": "时间段类型",
1662
- "attribute": false,
1663
- "type": "RangeType"
1664
- },
1665
- {
1666
- "name": "selectNearDays",
1667
- "description": "只有rangeType在`date` 和 `dateTime`下, 才支持只选择最近n天(当前时间向前n天)",
1668
- "type": "number"
1669
- },
1670
- {
1671
- "name": "emitChangeOnInit",
1672
- "description": "",
1673
- "default": "true\n是否在初始化完成后额外触发一次`time.range.change`, 这里因为历史原因之前默认行为就是在初始化后会触发该事件,这里为了兼容之前的行为,默认值只能设置为 true。",
1674
- "type": "boolean"
1675
- },
1676
- {
1677
- "name": "presetRanges",
1678
- "description": "",
1679
- "default": "[]\n预设时间范围快捷选择;设置了属性selectNearDays时,属性presetRanges不生效;属性rangeType为week时,presetRanges的值只能为本周、本月、本季度、今年,属性rangeType为month、quarter、year时,以此类推",
1680
- "attribute": false,
1681
- "type": "presetRangeType[]"
1682
- },
1683
- {
1684
- "name": "validator",
1685
- "attribute": false,
1686
- "type": "((value: any) => MessageBody | string)"
1687
- }
1688
- ],
1689
- "events": [
1690
- {
1691
- "name": "change",
1692
- "description": "时间段变化时触发",
1693
- "detail": {
1694
- "type": "TimeRange"
1695
- }
1696
- }
1697
- ],
1698
- "slots": [],
1699
- "methods": [],
1700
- "parts": [],
1701
- "description": "时间区间选择器",
1702
- "category": "form-input-basic"
1703
- },
1704
1704
  {
1705
1705
  "name": "eo-color-picker",
1706
1706
  "properties": [