@next-bricks/form 1.18.7 → 1.19.0
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 +29 -29
- package/dist/chunks/1418.af4ae9fa.js +3 -0
- package/dist/chunks/1418.af4ae9fa.js.map +1 -0
- package/dist/chunks/{149.ff459c34.js → 149.3be7b324.js} +2 -2
- package/dist/chunks/149.3be7b324.js.map +1 -0
- package/dist/chunks/eo-search.66add2ad.js +2 -0
- package/dist/chunks/eo-search.66add2ad.js.map +1 -0
- package/dist/chunks/{main.cc796669.js → main.20d537dc.js} +2 -2
- package/dist/chunks/{main.cc796669.js.map → main.20d537dc.js.map} +1 -1
- package/dist/examples.json +9 -9
- package/dist/{index.db61fd9f.js → index.d3b5b77b.js} +2 -2
- package/dist/{index.db61fd9f.js.map → index.d3b5b77b.js.map} +1 -1
- package/dist/manifest.json +280 -280
- package/dist/types.json +1232 -1232
- package/package.json +2 -2
- package/dist/chunks/1418.14c518c8.js +0 -3
- package/dist/chunks/1418.14c518c8.js.map +0 -1
- package/dist/chunks/149.ff459c34.js.map +0 -1
- package/dist/chunks/eo-search.c6749234.js +0 -2
- package/dist/chunks/eo-search.c6749234.js.map +0 -1
- /package/dist/chunks/{1418.14c518c8.js.LICENSE.txt → 1418.af4ae9fa.js.LICENSE.txt} +0 -0
package/dist/manifest.json
CHANGED
|
@@ -252,105 +252,44 @@
|
|
|
252
252
|
"category": "form-input-basic"
|
|
253
253
|
},
|
|
254
254
|
{
|
|
255
|
-
"name": "eo-
|
|
256
|
-
"alias": [
|
|
257
|
-
"form.submit-buttons"
|
|
258
|
-
],
|
|
259
|
-
"properties": [
|
|
260
|
-
{
|
|
261
|
-
"name": "submitText",
|
|
262
|
-
"description": "提交按钮的文字",
|
|
263
|
-
"default": "\"提交\"",
|
|
264
|
-
"type": "string"
|
|
265
|
-
},
|
|
266
|
-
{
|
|
267
|
-
"name": "cancelText",
|
|
268
|
-
"description": "取消按钮的文字,不设置则不显示取消按钮",
|
|
269
|
-
"type": "string"
|
|
270
|
-
},
|
|
271
|
-
{
|
|
272
|
-
"name": "disableAfterClick",
|
|
273
|
-
"description": "点击确定按钮后自动禁用",
|
|
274
|
-
"type": "boolean"
|
|
275
|
-
},
|
|
276
|
-
{
|
|
277
|
-
"name": "submitDisabled",
|
|
278
|
-
"description": "禁用提交按钮",
|
|
279
|
-
"type": "boolean"
|
|
280
|
-
},
|
|
281
|
-
{
|
|
282
|
-
"name": "submitType",
|
|
283
|
-
"description": "提交按钮类型",
|
|
284
|
-
"type": "ButtonType"
|
|
285
|
-
},
|
|
286
|
-
{
|
|
287
|
-
"name": "cancelType",
|
|
288
|
-
"description": "取消按钮类型",
|
|
289
|
-
"type": "ButtonType"
|
|
290
|
-
},
|
|
291
|
-
{
|
|
292
|
-
"name": "themeVariant",
|
|
293
|
-
"description": "主题变体",
|
|
294
|
-
"type": "\"default\" | \"elevo\""
|
|
295
|
-
}
|
|
296
|
-
],
|
|
297
|
-
"events": [
|
|
298
|
-
{
|
|
299
|
-
"name": "submit",
|
|
300
|
-
"description": "点击提交按钮触发的事件",
|
|
301
|
-
"detail": {
|
|
302
|
-
"type": "void"
|
|
303
|
-
}
|
|
304
|
-
},
|
|
305
|
-
{
|
|
306
|
-
"name": "cancel",
|
|
307
|
-
"description": "点击取消按钮触发的事件",
|
|
308
|
-
"detail": {
|
|
309
|
-
"type": "void"
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
],
|
|
313
|
-
"slots": [],
|
|
314
|
-
"methods": [],
|
|
315
|
-
"parts": [],
|
|
316
|
-
"description": "表单提交按钮",
|
|
317
|
-
"category": "form-input-basic"
|
|
318
|
-
},
|
|
319
|
-
{
|
|
320
|
-
"name": "eo-checkbox",
|
|
255
|
+
"name": "eo-radio",
|
|
321
256
|
"alias": [
|
|
322
|
-
"form.general-
|
|
257
|
+
"form.general-radio"
|
|
323
258
|
],
|
|
324
259
|
"properties": [
|
|
325
260
|
{
|
|
326
261
|
"name": "name",
|
|
327
|
-
"description": "
|
|
262
|
+
"description": "下拉框字段名",
|
|
328
263
|
"type": "string"
|
|
329
264
|
},
|
|
330
265
|
{
|
|
331
266
|
"name": "label",
|
|
332
|
-
"description": "
|
|
267
|
+
"description": "单选框字段说明",
|
|
333
268
|
"type": "string"
|
|
334
269
|
},
|
|
335
270
|
{
|
|
336
|
-
"name": "
|
|
337
|
-
"description": "
|
|
271
|
+
"name": "options",
|
|
272
|
+
"description": "单选框选项表",
|
|
273
|
+
"required": true,
|
|
338
274
|
"attribute": false,
|
|
339
|
-
"type": "
|
|
275
|
+
"type": "GeneralOption[]"
|
|
340
276
|
},
|
|
341
277
|
{
|
|
342
|
-
"name": "
|
|
343
|
-
"description": "
|
|
344
|
-
"required": true,
|
|
345
|
-
"default": "[]",
|
|
278
|
+
"name": "value",
|
|
279
|
+
"description": "单选框当前选中始值",
|
|
346
280
|
"attribute": false,
|
|
347
|
-
"type": "
|
|
281
|
+
"type": "any"
|
|
348
282
|
},
|
|
349
283
|
{
|
|
350
|
-
"name": "
|
|
351
|
-
"description": "
|
|
352
|
-
"
|
|
353
|
-
|
|
284
|
+
"name": "required",
|
|
285
|
+
"description": "是否必填",
|
|
286
|
+
"type": "boolean"
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
"name": "message",
|
|
290
|
+
"description": "校验文本信息",
|
|
291
|
+
"attribute": false,
|
|
292
|
+
"type": "Record<string, string>"
|
|
354
293
|
},
|
|
355
294
|
{
|
|
356
295
|
"name": "disabled",
|
|
@@ -358,32 +297,34 @@
|
|
|
358
297
|
"type": "boolean"
|
|
359
298
|
},
|
|
360
299
|
{
|
|
361
|
-
"name": "
|
|
362
|
-
"description": "
|
|
363
|
-
"default": "
|
|
364
|
-
"type": "
|
|
300
|
+
"name": "type",
|
|
301
|
+
"description": "单选框样式类型",
|
|
302
|
+
"default": "\"default\"",
|
|
303
|
+
"type": "RadioType"
|
|
365
304
|
},
|
|
366
305
|
{
|
|
367
|
-
"name": "
|
|
368
|
-
"description": "
|
|
369
|
-
"
|
|
306
|
+
"name": "ui",
|
|
307
|
+
"description": "UI样式",
|
|
308
|
+
"default": "\"default\"",
|
|
309
|
+
"type": "UIType"
|
|
370
310
|
},
|
|
371
311
|
{
|
|
372
|
-
"name": "
|
|
373
|
-
"description": "
|
|
374
|
-
"
|
|
375
|
-
"type": "
|
|
312
|
+
"name": "size",
|
|
313
|
+
"description": "大小,只对按钮样式生效",
|
|
314
|
+
"default": "\"medium\"",
|
|
315
|
+
"type": "ComponentSize"
|
|
376
316
|
},
|
|
377
317
|
{
|
|
378
|
-
"name": "
|
|
379
|
-
"description": "
|
|
380
|
-
"
|
|
318
|
+
"name": "customStyle",
|
|
319
|
+
"description": "自定义radio的外层样式",
|
|
320
|
+
"attribute": false,
|
|
321
|
+
"type": "React.CSSProperties"
|
|
381
322
|
},
|
|
382
323
|
{
|
|
383
|
-
"name": "
|
|
384
|
-
"description": "
|
|
324
|
+
"name": "useBrick",
|
|
325
|
+
"description": "自定义radio的内容",
|
|
385
326
|
"attribute": false,
|
|
386
|
-
"type": "
|
|
327
|
+
"type": "UseSingleBrickConf"
|
|
387
328
|
},
|
|
388
329
|
{
|
|
389
330
|
"name": "themeVariant",
|
|
@@ -394,23 +335,23 @@
|
|
|
394
335
|
"events": [
|
|
395
336
|
{
|
|
396
337
|
"name": "change",
|
|
397
|
-
"description": "
|
|
338
|
+
"description": "值变化事件",
|
|
398
339
|
"detail": {
|
|
399
|
-
"type": "
|
|
340
|
+
"type": "GeneralComplexOption | undefined"
|
|
400
341
|
}
|
|
401
342
|
},
|
|
402
343
|
{
|
|
403
344
|
"name": "options.change",
|
|
404
|
-
"description": "
|
|
345
|
+
"description": "选项列表变化事件",
|
|
405
346
|
"detail": {
|
|
406
|
-
"type": "{\n options:
|
|
347
|
+
"type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
|
|
407
348
|
}
|
|
408
349
|
}
|
|
409
350
|
],
|
|
410
351
|
"slots": [],
|
|
411
352
|
"methods": [],
|
|
412
353
|
"parts": [],
|
|
413
|
-
"description": "
|
|
354
|
+
"description": "通用单选构件",
|
|
414
355
|
"category": "form-input-basic"
|
|
415
356
|
},
|
|
416
357
|
{
|
|
@@ -560,24 +501,186 @@
|
|
|
560
501
|
}
|
|
561
502
|
},
|
|
562
503
|
{
|
|
563
|
-
"name": "select.focus",
|
|
564
|
-
"description": "下拉框focus事件\n\n注:之前事件类型为 \"focus\",这和原生事件冲突,可能导致多次触发,现改为 \"select.focus\"",
|
|
504
|
+
"name": "select.focus",
|
|
505
|
+
"description": "下拉框focus事件\n\n注:之前事件类型为 \"focus\",这和原生事件冲突,可能导致多次触发,现改为 \"select.focus\"",
|
|
506
|
+
"detail": {
|
|
507
|
+
"type": "void"
|
|
508
|
+
}
|
|
509
|
+
},
|
|
510
|
+
{
|
|
511
|
+
"name": "options.change",
|
|
512
|
+
"description": "选项列表变化事件",
|
|
513
|
+
"detail": {
|
|
514
|
+
"type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
],
|
|
518
|
+
"slots": [],
|
|
519
|
+
"methods": [],
|
|
520
|
+
"parts": [],
|
|
521
|
+
"description": "通用下拉选择构件",
|
|
522
|
+
"category": "form-input-basic"
|
|
523
|
+
},
|
|
524
|
+
{
|
|
525
|
+
"name": "eo-submit-buttons",
|
|
526
|
+
"alias": [
|
|
527
|
+
"form.submit-buttons"
|
|
528
|
+
],
|
|
529
|
+
"properties": [
|
|
530
|
+
{
|
|
531
|
+
"name": "submitText",
|
|
532
|
+
"description": "提交按钮的文字",
|
|
533
|
+
"default": "\"提交\"",
|
|
534
|
+
"type": "string"
|
|
535
|
+
},
|
|
536
|
+
{
|
|
537
|
+
"name": "cancelText",
|
|
538
|
+
"description": "取消按钮的文字,不设置则不显示取消按钮",
|
|
539
|
+
"type": "string"
|
|
540
|
+
},
|
|
541
|
+
{
|
|
542
|
+
"name": "disableAfterClick",
|
|
543
|
+
"description": "点击确定按钮后自动禁用",
|
|
544
|
+
"type": "boolean"
|
|
545
|
+
},
|
|
546
|
+
{
|
|
547
|
+
"name": "submitDisabled",
|
|
548
|
+
"description": "禁用提交按钮",
|
|
549
|
+
"type": "boolean"
|
|
550
|
+
},
|
|
551
|
+
{
|
|
552
|
+
"name": "submitType",
|
|
553
|
+
"description": "提交按钮类型",
|
|
554
|
+
"type": "ButtonType"
|
|
555
|
+
},
|
|
556
|
+
{
|
|
557
|
+
"name": "cancelType",
|
|
558
|
+
"description": "取消按钮类型",
|
|
559
|
+
"type": "ButtonType"
|
|
560
|
+
},
|
|
561
|
+
{
|
|
562
|
+
"name": "themeVariant",
|
|
563
|
+
"description": "主题变体",
|
|
564
|
+
"type": "\"default\" | \"elevo\""
|
|
565
|
+
}
|
|
566
|
+
],
|
|
567
|
+
"events": [
|
|
568
|
+
{
|
|
569
|
+
"name": "submit",
|
|
570
|
+
"description": "点击提交按钮触发的事件",
|
|
571
|
+
"detail": {
|
|
572
|
+
"type": "void"
|
|
573
|
+
}
|
|
574
|
+
},
|
|
575
|
+
{
|
|
576
|
+
"name": "cancel",
|
|
577
|
+
"description": "点击取消按钮触发的事件",
|
|
578
|
+
"detail": {
|
|
579
|
+
"type": "void"
|
|
580
|
+
}
|
|
581
|
+
}
|
|
582
|
+
],
|
|
583
|
+
"slots": [],
|
|
584
|
+
"methods": [],
|
|
585
|
+
"parts": [],
|
|
586
|
+
"description": "表单提交按钮",
|
|
587
|
+
"category": "form-input-basic"
|
|
588
|
+
},
|
|
589
|
+
{
|
|
590
|
+
"name": "eo-checkbox",
|
|
591
|
+
"alias": [
|
|
592
|
+
"form.general-checkbox"
|
|
593
|
+
],
|
|
594
|
+
"properties": [
|
|
595
|
+
{
|
|
596
|
+
"name": "name",
|
|
597
|
+
"description": "字段名称",
|
|
598
|
+
"type": "string"
|
|
599
|
+
},
|
|
600
|
+
{
|
|
601
|
+
"name": "label",
|
|
602
|
+
"description": "字段说明",
|
|
603
|
+
"type": "string"
|
|
604
|
+
},
|
|
605
|
+
{
|
|
606
|
+
"name": "value",
|
|
607
|
+
"description": "值",
|
|
608
|
+
"attribute": false,
|
|
609
|
+
"type": "CheckboxValueType[]"
|
|
610
|
+
},
|
|
611
|
+
{
|
|
612
|
+
"name": "options",
|
|
613
|
+
"description": "多选框选项表",
|
|
614
|
+
"required": true,
|
|
615
|
+
"default": "[]",
|
|
616
|
+
"attribute": false,
|
|
617
|
+
"type": "CheckboxOptionType[]"
|
|
618
|
+
},
|
|
619
|
+
{
|
|
620
|
+
"name": "type",
|
|
621
|
+
"description": "类型",
|
|
622
|
+
"default": "\"default\"",
|
|
623
|
+
"type": "CheckboxType"
|
|
624
|
+
},
|
|
625
|
+
{
|
|
626
|
+
"name": "disabled",
|
|
627
|
+
"description": "是否禁用",
|
|
628
|
+
"type": "boolean"
|
|
629
|
+
},
|
|
630
|
+
{
|
|
631
|
+
"name": "isCustom",
|
|
632
|
+
"description": "是否为自定义",
|
|
633
|
+
"default": "false",
|
|
634
|
+
"type": "boolean"
|
|
635
|
+
},
|
|
636
|
+
{
|
|
637
|
+
"name": "required",
|
|
638
|
+
"description": "是否必填",
|
|
639
|
+
"type": "boolean"
|
|
640
|
+
},
|
|
641
|
+
{
|
|
642
|
+
"name": "message",
|
|
643
|
+
"description": "校验文本",
|
|
644
|
+
"attribute": false,
|
|
645
|
+
"type": "Record<string, string>"
|
|
646
|
+
},
|
|
647
|
+
{
|
|
648
|
+
"name": "isGroup",
|
|
649
|
+
"description": "是否为复选框,为true时,则可设置分组数据 optionGroups",
|
|
650
|
+
"type": "boolean"
|
|
651
|
+
},
|
|
652
|
+
{
|
|
653
|
+
"name": "optionGroups",
|
|
654
|
+
"description": "多选框选项分组数据,需要设置 isGroup 为 true 才生效",
|
|
655
|
+
"attribute": false,
|
|
656
|
+
"type": "OptionGroup[]"
|
|
657
|
+
},
|
|
658
|
+
{
|
|
659
|
+
"name": "themeVariant",
|
|
660
|
+
"description": "主题变体",
|
|
661
|
+
"type": "\"default\" | \"elevo\""
|
|
662
|
+
}
|
|
663
|
+
],
|
|
664
|
+
"events": [
|
|
665
|
+
{
|
|
666
|
+
"name": "change",
|
|
667
|
+
"description": "复选框变化事件",
|
|
565
668
|
"detail": {
|
|
566
|
-
"type": "
|
|
669
|
+
"type": "CheckboxOptionType[]"
|
|
567
670
|
}
|
|
568
671
|
},
|
|
569
672
|
{
|
|
570
673
|
"name": "options.change",
|
|
571
|
-
"description": "
|
|
674
|
+
"description": "复选框变化事件",
|
|
572
675
|
"detail": {
|
|
573
|
-
"type": "{\n options:
|
|
676
|
+
"type": "{\n options: CheckboxOptionType[];\n name: string;\n }"
|
|
574
677
|
}
|
|
575
678
|
}
|
|
576
679
|
],
|
|
577
680
|
"slots": [],
|
|
578
681
|
"methods": [],
|
|
579
682
|
"parts": [],
|
|
580
|
-
"description": "
|
|
683
|
+
"description": "表单复选框构件",
|
|
581
684
|
"category": "form-input-basic"
|
|
582
685
|
},
|
|
583
686
|
{
|
|
@@ -672,109 +775,6 @@
|
|
|
672
775
|
"description": "动态表单",
|
|
673
776
|
"category": "form-input-basic"
|
|
674
777
|
},
|
|
675
|
-
{
|
|
676
|
-
"name": "eo-radio",
|
|
677
|
-
"alias": [
|
|
678
|
-
"form.general-radio"
|
|
679
|
-
],
|
|
680
|
-
"properties": [
|
|
681
|
-
{
|
|
682
|
-
"name": "name",
|
|
683
|
-
"description": "下拉框字段名",
|
|
684
|
-
"type": "string"
|
|
685
|
-
},
|
|
686
|
-
{
|
|
687
|
-
"name": "label",
|
|
688
|
-
"description": "单选框字段说明",
|
|
689
|
-
"type": "string"
|
|
690
|
-
},
|
|
691
|
-
{
|
|
692
|
-
"name": "options",
|
|
693
|
-
"description": "单选框选项表",
|
|
694
|
-
"required": true,
|
|
695
|
-
"attribute": false,
|
|
696
|
-
"type": "GeneralOption[]"
|
|
697
|
-
},
|
|
698
|
-
{
|
|
699
|
-
"name": "value",
|
|
700
|
-
"description": "单选框当前选中始值",
|
|
701
|
-
"attribute": false,
|
|
702
|
-
"type": "any"
|
|
703
|
-
},
|
|
704
|
-
{
|
|
705
|
-
"name": "required",
|
|
706
|
-
"description": "是否必填",
|
|
707
|
-
"type": "boolean"
|
|
708
|
-
},
|
|
709
|
-
{
|
|
710
|
-
"name": "message",
|
|
711
|
-
"description": "校验文本信息",
|
|
712
|
-
"attribute": false,
|
|
713
|
-
"type": "Record<string, string>"
|
|
714
|
-
},
|
|
715
|
-
{
|
|
716
|
-
"name": "disabled",
|
|
717
|
-
"description": "是否禁用",
|
|
718
|
-
"type": "boolean"
|
|
719
|
-
},
|
|
720
|
-
{
|
|
721
|
-
"name": "type",
|
|
722
|
-
"description": "单选框样式类型",
|
|
723
|
-
"default": "\"default\"",
|
|
724
|
-
"type": "RadioType"
|
|
725
|
-
},
|
|
726
|
-
{
|
|
727
|
-
"name": "ui",
|
|
728
|
-
"description": "UI样式",
|
|
729
|
-
"default": "\"default\"",
|
|
730
|
-
"type": "UIType"
|
|
731
|
-
},
|
|
732
|
-
{
|
|
733
|
-
"name": "size",
|
|
734
|
-
"description": "大小,只对按钮样式生效",
|
|
735
|
-
"default": "\"medium\"",
|
|
736
|
-
"type": "ComponentSize"
|
|
737
|
-
},
|
|
738
|
-
{
|
|
739
|
-
"name": "customStyle",
|
|
740
|
-
"description": "自定义radio的外层样式",
|
|
741
|
-
"attribute": false,
|
|
742
|
-
"type": "React.CSSProperties"
|
|
743
|
-
},
|
|
744
|
-
{
|
|
745
|
-
"name": "useBrick",
|
|
746
|
-
"description": "自定义radio的内容",
|
|
747
|
-
"attribute": false,
|
|
748
|
-
"type": "UseSingleBrickConf"
|
|
749
|
-
},
|
|
750
|
-
{
|
|
751
|
-
"name": "themeVariant",
|
|
752
|
-
"description": "主题变体",
|
|
753
|
-
"type": "\"default\" | \"elevo\""
|
|
754
|
-
}
|
|
755
|
-
],
|
|
756
|
-
"events": [
|
|
757
|
-
{
|
|
758
|
-
"name": "change",
|
|
759
|
-
"description": "值变化事件",
|
|
760
|
-
"detail": {
|
|
761
|
-
"type": "GeneralComplexOption | undefined"
|
|
762
|
-
}
|
|
763
|
-
},
|
|
764
|
-
{
|
|
765
|
-
"name": "options.change",
|
|
766
|
-
"description": "选项列表变化事件",
|
|
767
|
-
"detail": {
|
|
768
|
-
"type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
|
|
769
|
-
}
|
|
770
|
-
}
|
|
771
|
-
],
|
|
772
|
-
"slots": [],
|
|
773
|
-
"methods": [],
|
|
774
|
-
"parts": [],
|
|
775
|
-
"description": "通用单选构件",
|
|
776
|
-
"category": "form-input-basic"
|
|
777
|
-
},
|
|
778
778
|
{
|
|
779
779
|
"name": "eo-search",
|
|
780
780
|
"alias": [
|
|
@@ -1441,27 +1441,24 @@
|
|
|
1441
1441
|
"category": "form-input-basic"
|
|
1442
1442
|
},
|
|
1443
1443
|
{
|
|
1444
|
-
"name": "eo-
|
|
1444
|
+
"name": "eo-time-range-picker",
|
|
1445
1445
|
"properties": [
|
|
1446
1446
|
{
|
|
1447
1447
|
"name": "name",
|
|
1448
|
-
"description": "
|
|
1448
|
+
"description": "时间段选择器字段名",
|
|
1449
1449
|
"type": "string"
|
|
1450
1450
|
},
|
|
1451
1451
|
{
|
|
1452
1452
|
"name": "label",
|
|
1453
|
-
"description": "
|
|
1453
|
+
"description": "时间段选择器说明",
|
|
1454
1454
|
"type": "string"
|
|
1455
1455
|
},
|
|
1456
1456
|
{
|
|
1457
1457
|
"name": "value",
|
|
1458
|
-
"description": "
|
|
1459
|
-
"
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
"name": "defaultValue",
|
|
1463
|
-
"description": "颜色默认的值",
|
|
1464
|
-
"type": "string | Color"
|
|
1458
|
+
"description": "时间段选择器的初始值",
|
|
1459
|
+
"default": "{ \"startTime\": \"00:00:00\", \"endTime\": \"23:59:59\" }",
|
|
1460
|
+
"attribute": false,
|
|
1461
|
+
"type": "TimeRange"
|
|
1465
1462
|
},
|
|
1466
1463
|
{
|
|
1467
1464
|
"name": "required",
|
|
@@ -1469,74 +1466,84 @@
|
|
|
1469
1466
|
"type": "boolean"
|
|
1470
1467
|
},
|
|
1471
1468
|
{
|
|
1472
|
-
"name": "
|
|
1473
|
-
"description": "
|
|
1474
|
-
"
|
|
1469
|
+
"name": "rangeType",
|
|
1470
|
+
"description": "时间段类型",
|
|
1471
|
+
"attribute": false,
|
|
1472
|
+
"type": "RangeType"
|
|
1475
1473
|
},
|
|
1476
1474
|
{
|
|
1477
|
-
"name": "
|
|
1478
|
-
"description": "
|
|
1479
|
-
"default": "middle",
|
|
1475
|
+
"name": "placeholder",
|
|
1476
|
+
"description": "输入框提示文字,单时间段时为string,范围时间段时为[string, string]",
|
|
1480
1477
|
"attribute": false,
|
|
1481
|
-
"type": "
|
|
1478
|
+
"type": "string | [string, string]"
|
|
1482
1479
|
},
|
|
1483
1480
|
{
|
|
1484
|
-
"name": "
|
|
1485
|
-
"description": "
|
|
1486
|
-
"
|
|
1481
|
+
"name": "inputStyle",
|
|
1482
|
+
"description": "输入框样式",
|
|
1483
|
+
"attribute": false,
|
|
1484
|
+
"type": "React.CSSProperties"
|
|
1487
1485
|
},
|
|
1488
1486
|
{
|
|
1489
|
-
"name": "
|
|
1490
|
-
"description": "
|
|
1487
|
+
"name": "selectNearDays",
|
|
1488
|
+
"description": "只有rangeType在`date` 和 `dateTime`下, 才支持只选择最近n天(当前时间向前n天)",
|
|
1489
|
+
"type": "number"
|
|
1490
|
+
},
|
|
1491
|
+
{
|
|
1492
|
+
"name": "emitChangeOnInit",
|
|
1493
|
+
"description": "",
|
|
1494
|
+
"default": "true\n是否在初始化完成后额外触发一次`time.range.change`, 这里因为历史原因之前默认行为就是在初始化后会触发该事件,这里为了兼容之前的行为,默认值只能设置为 true。",
|
|
1491
1495
|
"type": "boolean"
|
|
1492
1496
|
},
|
|
1493
1497
|
{
|
|
1494
|
-
"name": "
|
|
1495
|
-
"description": "
|
|
1496
|
-
"default": "
|
|
1498
|
+
"name": "presetRanges",
|
|
1499
|
+
"description": "",
|
|
1500
|
+
"default": "[]\n预设时间范围快捷选择;设置了属性selectNearDays时,属性presetRanges不生效;属性rangeType为week时,presetRanges的值只能为本周、本月、本季度、今年,属性rangeType为month、quarter、year时,以此类推",
|
|
1497
1501
|
"attribute": false,
|
|
1498
|
-
"type": "
|
|
1502
|
+
"type": "presetRangeType[]"
|
|
1499
1503
|
},
|
|
1500
1504
|
{
|
|
1501
|
-
"name": "
|
|
1502
|
-
"description": "透传 antd ColorPicker 属性 [ColorPickerProps](https://ant.design/components/color-picker-cn#api)",
|
|
1505
|
+
"name": "validator",
|
|
1503
1506
|
"attribute": false,
|
|
1504
|
-
"type": "
|
|
1507
|
+
"type": "((value: any) => MessageBody | string)"
|
|
1505
1508
|
}
|
|
1506
1509
|
],
|
|
1507
1510
|
"events": [
|
|
1508
1511
|
{
|
|
1509
1512
|
"name": "change",
|
|
1510
|
-
"description": "
|
|
1513
|
+
"description": "时间段变化时触发",
|
|
1511
1514
|
"detail": {
|
|
1512
|
-
"type": "
|
|
1515
|
+
"type": "TimeRange"
|
|
1513
1516
|
}
|
|
1514
1517
|
}
|
|
1515
1518
|
],
|
|
1516
1519
|
"slots": [],
|
|
1517
1520
|
"methods": [],
|
|
1518
1521
|
"parts": [],
|
|
1519
|
-
"description": "
|
|
1522
|
+
"description": "时间区间选择器",
|
|
1523
|
+
"category": "form-input-basic"
|
|
1520
1524
|
},
|
|
1521
1525
|
{
|
|
1522
|
-
"name": "eo-
|
|
1526
|
+
"name": "eo-color-picker",
|
|
1523
1527
|
"properties": [
|
|
1524
1528
|
{
|
|
1525
1529
|
"name": "name",
|
|
1526
|
-
"description": "
|
|
1530
|
+
"description": "字段名称",
|
|
1527
1531
|
"type": "string"
|
|
1528
1532
|
},
|
|
1529
1533
|
{
|
|
1530
1534
|
"name": "label",
|
|
1531
|
-
"description": "
|
|
1535
|
+
"description": "字段说明",
|
|
1532
1536
|
"type": "string"
|
|
1533
1537
|
},
|
|
1534
1538
|
{
|
|
1535
1539
|
"name": "value",
|
|
1536
|
-
"description": "
|
|
1537
|
-
"
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
+
"description": "值",
|
|
1541
|
+
"type": "string"
|
|
1542
|
+
},
|
|
1543
|
+
{
|
|
1544
|
+
"name": "defaultValue",
|
|
1545
|
+
"description": "颜色默认的值",
|
|
1546
|
+
"type": "string | Color"
|
|
1540
1547
|
},
|
|
1541
1548
|
{
|
|
1542
1549
|
"name": "required",
|
|
@@ -1544,61 +1551,54 @@
|
|
|
1544
1551
|
"type": "boolean"
|
|
1545
1552
|
},
|
|
1546
1553
|
{
|
|
1547
|
-
"name": "
|
|
1548
|
-
"description": "
|
|
1549
|
-
"
|
|
1550
|
-
"type": "RangeType"
|
|
1551
|
-
},
|
|
1552
|
-
{
|
|
1553
|
-
"name": "placeholder",
|
|
1554
|
-
"description": "输入框提示文字,单时间段时为string,范围时间段时为[string, string]",
|
|
1555
|
-
"attribute": false,
|
|
1556
|
-
"type": "string | [string, string]"
|
|
1554
|
+
"name": "allowClear",
|
|
1555
|
+
"description": "允许清除选择的颜色",
|
|
1556
|
+
"type": "boolean"
|
|
1557
1557
|
},
|
|
1558
1558
|
{
|
|
1559
|
-
"name": "
|
|
1560
|
-
"description": "
|
|
1559
|
+
"name": "size",
|
|
1560
|
+
"description": "设置触发器大小",
|
|
1561
|
+
"default": "middle",
|
|
1561
1562
|
"attribute": false,
|
|
1562
|
-
"type": "
|
|
1563
|
+
"type": "\"small\" | \"middle\" | \"large\""
|
|
1563
1564
|
},
|
|
1564
1565
|
{
|
|
1565
|
-
"name": "
|
|
1566
|
-
"description": "
|
|
1567
|
-
"type": "
|
|
1566
|
+
"name": "showText",
|
|
1567
|
+
"description": "显示颜色文本",
|
|
1568
|
+
"type": "boolean"
|
|
1568
1569
|
},
|
|
1569
1570
|
{
|
|
1570
|
-
"name": "
|
|
1571
|
-
"description": "",
|
|
1572
|
-
"default": "true\n是否在初始化完成后额外触发一次`time.range.change`, 这里因为历史原因之前默认行为就是在初始化后会触发该事件,这里为了兼容之前的行为,默认值只能设置为 true。",
|
|
1571
|
+
"name": "disabled",
|
|
1572
|
+
"description": "是否禁用",
|
|
1573
1573
|
"type": "boolean"
|
|
1574
1574
|
},
|
|
1575
1575
|
{
|
|
1576
|
-
"name": "
|
|
1577
|
-
"description": "",
|
|
1578
|
-
"default": "
|
|
1576
|
+
"name": "format",
|
|
1577
|
+
"description": "颜色格式",
|
|
1578
|
+
"default": "hex",
|
|
1579
1579
|
"attribute": false,
|
|
1580
|
-
"type": "
|
|
1580
|
+
"type": "\"rgb\" | \"hex\" | \"hsb\""
|
|
1581
1581
|
},
|
|
1582
1582
|
{
|
|
1583
|
-
"name": "
|
|
1583
|
+
"name": "configProps",
|
|
1584
|
+
"description": "透传 antd ColorPicker 属性 [ColorPickerProps](https://ant.design/components/color-picker-cn#api)",
|
|
1584
1585
|
"attribute": false,
|
|
1585
|
-
"type": "
|
|
1586
|
+
"type": "Partial<ColorPickerProps>"
|
|
1586
1587
|
}
|
|
1587
1588
|
],
|
|
1588
1589
|
"events": [
|
|
1589
1590
|
{
|
|
1590
1591
|
"name": "change",
|
|
1591
|
-
"description": "
|
|
1592
|
+
"description": "颜色变化事件, 返回值格式和`format`格式一致",
|
|
1592
1593
|
"detail": {
|
|
1593
|
-
"type": "
|
|
1594
|
+
"type": "string | undefined"
|
|
1594
1595
|
}
|
|
1595
1596
|
}
|
|
1596
1597
|
],
|
|
1597
1598
|
"slots": [],
|
|
1598
1599
|
"methods": [],
|
|
1599
1600
|
"parts": [],
|
|
1600
|
-
"description": "
|
|
1601
|
-
"category": "form-input-basic"
|
|
1601
|
+
"description": "构件 `eo-color-picker`"
|
|
1602
1602
|
},
|
|
1603
1603
|
{
|
|
1604
1604
|
"name": "eo-form-item",
|