@next-bricks/form 1.18.7 → 1.19.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.
- package/dist/bricks.json +29 -29
- package/dist/chunks/1418.3219d6a1.js +3 -0
- package/dist/chunks/1418.3219d6a1.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/eo-upload-file.0c831ff6.js +3 -0
- package/dist/chunks/eo-upload-file.0c831ff6.js.map +1 -0
- package/dist/chunks/{main.cc796669.js → main.941569be.js} +2 -2
- package/dist/chunks/{main.cc796669.js.map → main.941569be.js.map} +1 -1
- package/dist/examples.json +9 -9
- package/dist/{index.db61fd9f.js → index.5207c992.js} +2 -2
- package/dist/{index.db61fd9f.js.map → index.5207c992.js.map} +1 -1
- package/dist/manifest.json +285 -280
- package/dist/types.json +1244 -1228
- package/dist-types/upload/upload-file/index.d.ts +3 -0
- 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/eo-upload-file.04ac63ee.js +0 -3
- package/dist/chunks/eo-upload-file.04ac63ee.js.map +0 -1
- /package/dist/chunks/{1418.14c518c8.js.LICENSE.txt → 1418.3219d6a1.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-upload-file.04ac63ee.js.LICENSE.txt → eo-upload-file.0c831ff6.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": [
|
|
@@ -1165,6 +1165,11 @@
|
|
|
1165
1165
|
"description": "自动上传的文件参数名",
|
|
1166
1166
|
"default": "\"file\"",
|
|
1167
1167
|
"type": "string"
|
|
1168
|
+
},
|
|
1169
|
+
{
|
|
1170
|
+
"name": "themeVariant",
|
|
1171
|
+
"description": "主题变体",
|
|
1172
|
+
"type": "\"default\" | \"elevo\""
|
|
1168
1173
|
}
|
|
1169
1174
|
],
|
|
1170
1175
|
"events": [
|
|
@@ -1441,27 +1446,24 @@
|
|
|
1441
1446
|
"category": "form-input-basic"
|
|
1442
1447
|
},
|
|
1443
1448
|
{
|
|
1444
|
-
"name": "eo-
|
|
1449
|
+
"name": "eo-time-range-picker",
|
|
1445
1450
|
"properties": [
|
|
1446
1451
|
{
|
|
1447
1452
|
"name": "name",
|
|
1448
|
-
"description": "
|
|
1453
|
+
"description": "时间段选择器字段名",
|
|
1449
1454
|
"type": "string"
|
|
1450
1455
|
},
|
|
1451
1456
|
{
|
|
1452
1457
|
"name": "label",
|
|
1453
|
-
"description": "
|
|
1458
|
+
"description": "时间段选择器说明",
|
|
1454
1459
|
"type": "string"
|
|
1455
1460
|
},
|
|
1456
1461
|
{
|
|
1457
1462
|
"name": "value",
|
|
1458
|
-
"description": "
|
|
1459
|
-
"
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
"name": "defaultValue",
|
|
1463
|
-
"description": "颜色默认的值",
|
|
1464
|
-
"type": "string | Color"
|
|
1463
|
+
"description": "时间段选择器的初始值",
|
|
1464
|
+
"default": "{ \"startTime\": \"00:00:00\", \"endTime\": \"23:59:59\" }",
|
|
1465
|
+
"attribute": false,
|
|
1466
|
+
"type": "TimeRange"
|
|
1465
1467
|
},
|
|
1466
1468
|
{
|
|
1467
1469
|
"name": "required",
|
|
@@ -1469,74 +1471,84 @@
|
|
|
1469
1471
|
"type": "boolean"
|
|
1470
1472
|
},
|
|
1471
1473
|
{
|
|
1472
|
-
"name": "
|
|
1473
|
-
"description": "
|
|
1474
|
-
"
|
|
1474
|
+
"name": "rangeType",
|
|
1475
|
+
"description": "时间段类型",
|
|
1476
|
+
"attribute": false,
|
|
1477
|
+
"type": "RangeType"
|
|
1475
1478
|
},
|
|
1476
1479
|
{
|
|
1477
|
-
"name": "
|
|
1478
|
-
"description": "
|
|
1479
|
-
"default": "middle",
|
|
1480
|
+
"name": "placeholder",
|
|
1481
|
+
"description": "输入框提示文字,单时间段时为string,范围时间段时为[string, string]",
|
|
1480
1482
|
"attribute": false,
|
|
1481
|
-
"type": "
|
|
1483
|
+
"type": "string | [string, string]"
|
|
1482
1484
|
},
|
|
1483
1485
|
{
|
|
1484
|
-
"name": "
|
|
1485
|
-
"description": "
|
|
1486
|
-
"
|
|
1486
|
+
"name": "inputStyle",
|
|
1487
|
+
"description": "输入框样式",
|
|
1488
|
+
"attribute": false,
|
|
1489
|
+
"type": "React.CSSProperties"
|
|
1487
1490
|
},
|
|
1488
1491
|
{
|
|
1489
|
-
"name": "
|
|
1490
|
-
"description": "
|
|
1492
|
+
"name": "selectNearDays",
|
|
1493
|
+
"description": "只有rangeType在`date` 和 `dateTime`下, 才支持只选择最近n天(当前时间向前n天)",
|
|
1494
|
+
"type": "number"
|
|
1495
|
+
},
|
|
1496
|
+
{
|
|
1497
|
+
"name": "emitChangeOnInit",
|
|
1498
|
+
"description": "",
|
|
1499
|
+
"default": "true\n是否在初始化完成后额外触发一次`time.range.change`, 这里因为历史原因之前默认行为就是在初始化后会触发该事件,这里为了兼容之前的行为,默认值只能设置为 true。",
|
|
1491
1500
|
"type": "boolean"
|
|
1492
1501
|
},
|
|
1493
1502
|
{
|
|
1494
|
-
"name": "
|
|
1495
|
-
"description": "
|
|
1496
|
-
"default": "
|
|
1503
|
+
"name": "presetRanges",
|
|
1504
|
+
"description": "",
|
|
1505
|
+
"default": "[]\n预设时间范围快捷选择;设置了属性selectNearDays时,属性presetRanges不生效;属性rangeType为week时,presetRanges的值只能为本周、本月、本季度、今年,属性rangeType为month、quarter、year时,以此类推",
|
|
1497
1506
|
"attribute": false,
|
|
1498
|
-
"type": "
|
|
1507
|
+
"type": "presetRangeType[]"
|
|
1499
1508
|
},
|
|
1500
1509
|
{
|
|
1501
|
-
"name": "
|
|
1502
|
-
"description": "透传 antd ColorPicker 属性 [ColorPickerProps](https://ant.design/components/color-picker-cn#api)",
|
|
1510
|
+
"name": "validator",
|
|
1503
1511
|
"attribute": false,
|
|
1504
|
-
"type": "
|
|
1512
|
+
"type": "((value: any) => MessageBody | string)"
|
|
1505
1513
|
}
|
|
1506
1514
|
],
|
|
1507
1515
|
"events": [
|
|
1508
1516
|
{
|
|
1509
1517
|
"name": "change",
|
|
1510
|
-
"description": "
|
|
1518
|
+
"description": "时间段变化时触发",
|
|
1511
1519
|
"detail": {
|
|
1512
|
-
"type": "
|
|
1520
|
+
"type": "TimeRange"
|
|
1513
1521
|
}
|
|
1514
1522
|
}
|
|
1515
1523
|
],
|
|
1516
1524
|
"slots": [],
|
|
1517
1525
|
"methods": [],
|
|
1518
1526
|
"parts": [],
|
|
1519
|
-
"description": "
|
|
1527
|
+
"description": "时间区间选择器",
|
|
1528
|
+
"category": "form-input-basic"
|
|
1520
1529
|
},
|
|
1521
1530
|
{
|
|
1522
|
-
"name": "eo-
|
|
1531
|
+
"name": "eo-color-picker",
|
|
1523
1532
|
"properties": [
|
|
1524
1533
|
{
|
|
1525
1534
|
"name": "name",
|
|
1526
|
-
"description": "
|
|
1535
|
+
"description": "字段名称",
|
|
1527
1536
|
"type": "string"
|
|
1528
1537
|
},
|
|
1529
1538
|
{
|
|
1530
1539
|
"name": "label",
|
|
1531
|
-
"description": "
|
|
1540
|
+
"description": "字段说明",
|
|
1532
1541
|
"type": "string"
|
|
1533
1542
|
},
|
|
1534
1543
|
{
|
|
1535
1544
|
"name": "value",
|
|
1536
|
-
"description": "
|
|
1537
|
-
"
|
|
1538
|
-
|
|
1539
|
-
|
|
1545
|
+
"description": "值",
|
|
1546
|
+
"type": "string"
|
|
1547
|
+
},
|
|
1548
|
+
{
|
|
1549
|
+
"name": "defaultValue",
|
|
1550
|
+
"description": "颜色默认的值",
|
|
1551
|
+
"type": "string | Color"
|
|
1540
1552
|
},
|
|
1541
1553
|
{
|
|
1542
1554
|
"name": "required",
|
|
@@ -1544,61 +1556,54 @@
|
|
|
1544
1556
|
"type": "boolean"
|
|
1545
1557
|
},
|
|
1546
1558
|
{
|
|
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]"
|
|
1559
|
+
"name": "allowClear",
|
|
1560
|
+
"description": "允许清除选择的颜色",
|
|
1561
|
+
"type": "boolean"
|
|
1557
1562
|
},
|
|
1558
1563
|
{
|
|
1559
|
-
"name": "
|
|
1560
|
-
"description": "
|
|
1564
|
+
"name": "size",
|
|
1565
|
+
"description": "设置触发器大小",
|
|
1566
|
+
"default": "middle",
|
|
1561
1567
|
"attribute": false,
|
|
1562
|
-
"type": "
|
|
1568
|
+
"type": "\"small\" | \"middle\" | \"large\""
|
|
1563
1569
|
},
|
|
1564
1570
|
{
|
|
1565
|
-
"name": "
|
|
1566
|
-
"description": "
|
|
1567
|
-
"type": "
|
|
1571
|
+
"name": "showText",
|
|
1572
|
+
"description": "显示颜色文本",
|
|
1573
|
+
"type": "boolean"
|
|
1568
1574
|
},
|
|
1569
1575
|
{
|
|
1570
|
-
"name": "
|
|
1571
|
-
"description": "",
|
|
1572
|
-
"default": "true\n是否在初始化完成后额外触发一次`time.range.change`, 这里因为历史原因之前默认行为就是在初始化后会触发该事件,这里为了兼容之前的行为,默认值只能设置为 true。",
|
|
1576
|
+
"name": "disabled",
|
|
1577
|
+
"description": "是否禁用",
|
|
1573
1578
|
"type": "boolean"
|
|
1574
1579
|
},
|
|
1575
1580
|
{
|
|
1576
|
-
"name": "
|
|
1577
|
-
"description": "",
|
|
1578
|
-
"default": "
|
|
1581
|
+
"name": "format",
|
|
1582
|
+
"description": "颜色格式",
|
|
1583
|
+
"default": "hex",
|
|
1579
1584
|
"attribute": false,
|
|
1580
|
-
"type": "
|
|
1585
|
+
"type": "\"rgb\" | \"hex\" | \"hsb\""
|
|
1581
1586
|
},
|
|
1582
1587
|
{
|
|
1583
|
-
"name": "
|
|
1588
|
+
"name": "configProps",
|
|
1589
|
+
"description": "透传 antd ColorPicker 属性 [ColorPickerProps](https://ant.design/components/color-picker-cn#api)",
|
|
1584
1590
|
"attribute": false,
|
|
1585
|
-
"type": "
|
|
1591
|
+
"type": "Partial<ColorPickerProps>"
|
|
1586
1592
|
}
|
|
1587
1593
|
],
|
|
1588
1594
|
"events": [
|
|
1589
1595
|
{
|
|
1590
1596
|
"name": "change",
|
|
1591
|
-
"description": "
|
|
1597
|
+
"description": "颜色变化事件, 返回值格式和`format`格式一致",
|
|
1592
1598
|
"detail": {
|
|
1593
|
-
"type": "
|
|
1599
|
+
"type": "string | undefined"
|
|
1594
1600
|
}
|
|
1595
1601
|
}
|
|
1596
1602
|
],
|
|
1597
1603
|
"slots": [],
|
|
1598
1604
|
"methods": [],
|
|
1599
1605
|
"parts": [],
|
|
1600
|
-
"description": "
|
|
1601
|
-
"category": "form-input-basic"
|
|
1606
|
+
"description": "构件 `eo-color-picker`"
|
|
1602
1607
|
},
|
|
1603
1608
|
{
|
|
1604
1609
|
"name": "eo-form-item",
|