@next-bricks/form 1.18.5 → 1.18.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bricks.json +29 -29
- package/dist/chunks/1418.14c518c8.js +3 -0
- package/dist/chunks/1418.14c518c8.js.map +1 -0
- package/dist/chunks/eo-icon-select.7e1b98a9.js +3 -0
- package/dist/chunks/eo-icon-select.7e1b98a9.js.map +1 -0
- package/dist/chunks/eo-select.95bacacf.js +3 -0
- package/dist/chunks/eo-select.95bacacf.js.map +1 -0
- package/dist/chunks/eo-upload-file.04ac63ee.js +3 -0
- package/dist/chunks/eo-upload-file.04ac63ee.js.map +1 -0
- package/dist/chunks/eo-upload-image.863b4bb0.js +3 -0
- package/dist/chunks/eo-upload-image.863b4bb0.js.map +1 -0
- package/dist/chunks/{main.2ee62d5a.js → main.cc796669.js} +2 -2
- package/dist/chunks/{main.2ee62d5a.js.map → main.cc796669.js.map} +1 -1
- package/dist/examples.json +9 -9
- package/dist/index.db61fd9f.js +2 -0
- package/dist/index.db61fd9f.js.map +1 -0
- package/dist/manifest.json +292 -277
- package/dist/types.json +2246 -2198
- package/dist-types/icon-select/index.d.ts +3 -0
- package/dist-types/select/i18n.d.ts +15 -0
- package/dist-types/upload/Upload.d.ts +1 -0
- package/dist-types/upload/upload-image/index.d.ts +6 -0
- package/package.json +2 -2
- package/dist/chunks/8653.ff7add0d.js +0 -3
- package/dist/chunks/8653.ff7add0d.js.map +0 -1
- package/dist/chunks/eo-icon-select.55cc1eec.js +0 -3
- package/dist/chunks/eo-icon-select.55cc1eec.js.map +0 -1
- package/dist/chunks/eo-select.dcf644b6.js +0 -3
- package/dist/chunks/eo-select.dcf644b6.js.map +0 -1
- package/dist/chunks/eo-upload-file.fbd3dc1f.js +0 -3
- package/dist/chunks/eo-upload-file.fbd3dc1f.js.map +0 -1
- package/dist/chunks/eo-upload-image.5bd2ef86.js +0 -3
- package/dist/chunks/eo-upload-image.5bd2ef86.js.map +0 -1
- package/dist/index.35e32d08.js +0 -2
- package/dist/index.35e32d08.js.map +0 -1
- /package/dist/chunks/{8653.ff7add0d.js.LICENSE.txt → 1418.14c518c8.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-icon-select.55cc1eec.js.LICENSE.txt → eo-icon-select.7e1b98a9.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-select.dcf644b6.js.LICENSE.txt → eo-select.95bacacf.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-upload-file.fbd3dc1f.js.LICENSE.txt → eo-upload-file.04ac63ee.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-upload-image.5bd2ef86.js.LICENSE.txt → eo-upload-image.863b4bb0.js.LICENSE.txt} +0 -0
package/dist/manifest.json
CHANGED
|
@@ -252,44 +252,105 @@
|
|
|
252
252
|
"category": "form-input-basic"
|
|
253
253
|
},
|
|
254
254
|
{
|
|
255
|
-
"name": "eo-
|
|
255
|
+
"name": "eo-submit-buttons",
|
|
256
256
|
"alias": [
|
|
257
|
-
"form.
|
|
257
|
+
"form.submit-buttons"
|
|
258
258
|
],
|
|
259
259
|
"properties": [
|
|
260
260
|
{
|
|
261
|
-
"name": "
|
|
262
|
-
"description": "
|
|
261
|
+
"name": "submitText",
|
|
262
|
+
"description": "提交按钮的文字",
|
|
263
|
+
"default": "\"提交\"",
|
|
263
264
|
"type": "string"
|
|
264
265
|
},
|
|
265
266
|
{
|
|
266
|
-
"name": "
|
|
267
|
-
"description": "
|
|
267
|
+
"name": "cancelText",
|
|
268
|
+
"description": "取消按钮的文字,不设置则不显示取消按钮",
|
|
268
269
|
"type": "string"
|
|
269
270
|
},
|
|
270
271
|
{
|
|
271
|
-
"name": "
|
|
272
|
-
"description": "
|
|
273
|
-
"
|
|
274
|
-
|
|
275
|
-
|
|
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",
|
|
321
|
+
"alias": [
|
|
322
|
+
"form.general-checkbox"
|
|
323
|
+
],
|
|
324
|
+
"properties": [
|
|
325
|
+
{
|
|
326
|
+
"name": "name",
|
|
327
|
+
"description": "字段名称",
|
|
328
|
+
"type": "string"
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
"name": "label",
|
|
332
|
+
"description": "字段说明",
|
|
333
|
+
"type": "string"
|
|
276
334
|
},
|
|
277
335
|
{
|
|
278
336
|
"name": "value",
|
|
279
|
-
"description": "
|
|
337
|
+
"description": "值",
|
|
280
338
|
"attribute": false,
|
|
281
|
-
"type": "
|
|
339
|
+
"type": "CheckboxValueType[]"
|
|
282
340
|
},
|
|
283
341
|
{
|
|
284
|
-
"name": "
|
|
285
|
-
"description": "
|
|
286
|
-
"
|
|
342
|
+
"name": "options",
|
|
343
|
+
"description": "多选框选项表",
|
|
344
|
+
"required": true,
|
|
345
|
+
"default": "[]",
|
|
346
|
+
"attribute": false,
|
|
347
|
+
"type": "CheckboxOptionType[]"
|
|
287
348
|
},
|
|
288
349
|
{
|
|
289
|
-
"name": "
|
|
290
|
-
"description": "
|
|
291
|
-
"
|
|
292
|
-
"type": "
|
|
350
|
+
"name": "type",
|
|
351
|
+
"description": "类型",
|
|
352
|
+
"default": "\"default\"",
|
|
353
|
+
"type": "CheckboxType"
|
|
293
354
|
},
|
|
294
355
|
{
|
|
295
356
|
"name": "disabled",
|
|
@@ -297,34 +358,32 @@
|
|
|
297
358
|
"type": "boolean"
|
|
298
359
|
},
|
|
299
360
|
{
|
|
300
|
-
"name": "
|
|
301
|
-
"description": "
|
|
302
|
-
"default": "
|
|
303
|
-
"type": "
|
|
361
|
+
"name": "isCustom",
|
|
362
|
+
"description": "是否为自定义",
|
|
363
|
+
"default": "false",
|
|
364
|
+
"type": "boolean"
|
|
304
365
|
},
|
|
305
366
|
{
|
|
306
|
-
"name": "
|
|
307
|
-
"description": "
|
|
308
|
-
"
|
|
309
|
-
"type": "UIType"
|
|
367
|
+
"name": "required",
|
|
368
|
+
"description": "是否必填",
|
|
369
|
+
"type": "boolean"
|
|
310
370
|
},
|
|
311
371
|
{
|
|
312
|
-
"name": "
|
|
313
|
-
"description": "
|
|
314
|
-
"
|
|
315
|
-
"type": "
|
|
372
|
+
"name": "message",
|
|
373
|
+
"description": "校验文本",
|
|
374
|
+
"attribute": false,
|
|
375
|
+
"type": "Record<string, string>"
|
|
316
376
|
},
|
|
317
377
|
{
|
|
318
|
-
"name": "
|
|
319
|
-
"description": "
|
|
320
|
-
"
|
|
321
|
-
"type": "React.CSSProperties"
|
|
378
|
+
"name": "isGroup",
|
|
379
|
+
"description": "是否为复选框,为true时,则可设置分组数据 optionGroups",
|
|
380
|
+
"type": "boolean"
|
|
322
381
|
},
|
|
323
382
|
{
|
|
324
|
-
"name": "
|
|
325
|
-
"description": "
|
|
383
|
+
"name": "optionGroups",
|
|
384
|
+
"description": "多选框选项分组数据,需要设置 isGroup 为 true 才生效",
|
|
326
385
|
"attribute": false,
|
|
327
|
-
"type": "
|
|
386
|
+
"type": "OptionGroup[]"
|
|
328
387
|
},
|
|
329
388
|
{
|
|
330
389
|
"name": "themeVariant",
|
|
@@ -335,23 +394,23 @@
|
|
|
335
394
|
"events": [
|
|
336
395
|
{
|
|
337
396
|
"name": "change",
|
|
338
|
-
"description": "
|
|
397
|
+
"description": "复选框变化事件",
|
|
339
398
|
"detail": {
|
|
340
|
-
"type": "
|
|
399
|
+
"type": "CheckboxOptionType[]"
|
|
341
400
|
}
|
|
342
401
|
},
|
|
343
402
|
{
|
|
344
403
|
"name": "options.change",
|
|
345
|
-
"description": "
|
|
404
|
+
"description": "复选框变化事件",
|
|
346
405
|
"detail": {
|
|
347
|
-
"type": "{\n options:
|
|
406
|
+
"type": "{\n options: CheckboxOptionType[];\n name: string;\n }"
|
|
348
407
|
}
|
|
349
408
|
}
|
|
350
409
|
],
|
|
351
410
|
"slots": [],
|
|
352
411
|
"methods": [],
|
|
353
412
|
"parts": [],
|
|
354
|
-
"description": "
|
|
413
|
+
"description": "表单复选框构件",
|
|
355
414
|
"category": "form-input-basic"
|
|
356
415
|
},
|
|
357
416
|
{
|
|
@@ -509,178 +568,16 @@
|
|
|
509
568
|
},
|
|
510
569
|
{
|
|
511
570
|
"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": "复选框变化事件",
|
|
668
|
-
"detail": {
|
|
669
|
-
"type": "CheckboxOptionType[]"
|
|
670
|
-
}
|
|
671
|
-
},
|
|
672
|
-
{
|
|
673
|
-
"name": "options.change",
|
|
674
|
-
"description": "复选框变化事件",
|
|
571
|
+
"description": "选项列表变化事件",
|
|
675
572
|
"detail": {
|
|
676
|
-
"type": "{\n options:
|
|
573
|
+
"type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
|
|
677
574
|
}
|
|
678
575
|
}
|
|
679
576
|
],
|
|
680
577
|
"slots": [],
|
|
681
578
|
"methods": [],
|
|
682
579
|
"parts": [],
|
|
683
|
-
"description": "
|
|
580
|
+
"description": "通用下拉选择构件",
|
|
684
581
|
"category": "form-input-basic"
|
|
685
582
|
},
|
|
686
583
|
{
|
|
@@ -775,6 +672,109 @@
|
|
|
775
672
|
"description": "动态表单",
|
|
776
673
|
"category": "form-input-basic"
|
|
777
674
|
},
|
|
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": [
|
|
@@ -884,6 +884,11 @@
|
|
|
884
884
|
"description": "是否必填",
|
|
885
885
|
"attribute": false,
|
|
886
886
|
"type": "Record<string, string>"
|
|
887
|
+
},
|
|
888
|
+
{
|
|
889
|
+
"name": "themeVariant",
|
|
890
|
+
"description": "主题变体",
|
|
891
|
+
"type": "\"default\" | \"elevo\""
|
|
887
892
|
}
|
|
888
893
|
],
|
|
889
894
|
"events": [
|
|
@@ -953,6 +958,16 @@
|
|
|
953
958
|
"description": "校验文本信息",
|
|
954
959
|
"attribute": false,
|
|
955
960
|
"type": "Record<string, string>"
|
|
961
|
+
},
|
|
962
|
+
{
|
|
963
|
+
"name": "variant",
|
|
964
|
+
"description": "变体",
|
|
965
|
+
"type": "\"default\" | \"avatar\""
|
|
966
|
+
},
|
|
967
|
+
{
|
|
968
|
+
"name": "themeVariant",
|
|
969
|
+
"description": "主题变体",
|
|
970
|
+
"type": "\"default\" | \"elevo\""
|
|
956
971
|
}
|
|
957
972
|
],
|
|
958
973
|
"events": [
|
|
@@ -1426,24 +1441,27 @@
|
|
|
1426
1441
|
"category": "form-input-basic"
|
|
1427
1442
|
},
|
|
1428
1443
|
{
|
|
1429
|
-
"name": "eo-
|
|
1444
|
+
"name": "eo-color-picker",
|
|
1430
1445
|
"properties": [
|
|
1431
1446
|
{
|
|
1432
1447
|
"name": "name",
|
|
1433
|
-
"description": "
|
|
1448
|
+
"description": "字段名称",
|
|
1434
1449
|
"type": "string"
|
|
1435
1450
|
},
|
|
1436
1451
|
{
|
|
1437
1452
|
"name": "label",
|
|
1438
|
-
"description": "
|
|
1453
|
+
"description": "字段说明",
|
|
1439
1454
|
"type": "string"
|
|
1440
1455
|
},
|
|
1441
1456
|
{
|
|
1442
1457
|
"name": "value",
|
|
1443
|
-
"description": "
|
|
1444
|
-
"
|
|
1445
|
-
|
|
1446
|
-
|
|
1458
|
+
"description": "值",
|
|
1459
|
+
"type": "string"
|
|
1460
|
+
},
|
|
1461
|
+
{
|
|
1462
|
+
"name": "defaultValue",
|
|
1463
|
+
"description": "颜色默认的值",
|
|
1464
|
+
"type": "string | Color"
|
|
1447
1465
|
},
|
|
1448
1466
|
{
|
|
1449
1467
|
"name": "required",
|
|
@@ -1451,84 +1469,74 @@
|
|
|
1451
1469
|
"type": "boolean"
|
|
1452
1470
|
},
|
|
1453
1471
|
{
|
|
1454
|
-
"name": "
|
|
1455
|
-
"description": "
|
|
1456
|
-
"
|
|
1457
|
-
"type": "RangeType"
|
|
1458
|
-
},
|
|
1459
|
-
{
|
|
1460
|
-
"name": "placeholder",
|
|
1461
|
-
"description": "输入框提示文字,单时间段时为string,范围时间段时为[string, string]",
|
|
1462
|
-
"attribute": false,
|
|
1463
|
-
"type": "string | [string, string]"
|
|
1472
|
+
"name": "allowClear",
|
|
1473
|
+
"description": "允许清除选择的颜色",
|
|
1474
|
+
"type": "boolean"
|
|
1464
1475
|
},
|
|
1465
1476
|
{
|
|
1466
|
-
"name": "
|
|
1467
|
-
"description": "
|
|
1477
|
+
"name": "size",
|
|
1478
|
+
"description": "设置触发器大小",
|
|
1479
|
+
"default": "middle",
|
|
1468
1480
|
"attribute": false,
|
|
1469
|
-
"type": "
|
|
1481
|
+
"type": "\"small\" | \"middle\" | \"large\""
|
|
1470
1482
|
},
|
|
1471
1483
|
{
|
|
1472
|
-
"name": "
|
|
1473
|
-
"description": "
|
|
1474
|
-
"type": "
|
|
1484
|
+
"name": "showText",
|
|
1485
|
+
"description": "显示颜色文本",
|
|
1486
|
+
"type": "boolean"
|
|
1475
1487
|
},
|
|
1476
1488
|
{
|
|
1477
|
-
"name": "
|
|
1478
|
-
"description": "",
|
|
1479
|
-
"default": "true\n是否在初始化完成后额外触发一次`time.range.change`, 这里因为历史原因之前默认行为就是在初始化后会触发该事件,这里为了兼容之前的行为,默认值只能设置为 true。",
|
|
1489
|
+
"name": "disabled",
|
|
1490
|
+
"description": "是否禁用",
|
|
1480
1491
|
"type": "boolean"
|
|
1481
1492
|
},
|
|
1482
1493
|
{
|
|
1483
|
-
"name": "
|
|
1484
|
-
"description": "",
|
|
1485
|
-
"default": "
|
|
1494
|
+
"name": "format",
|
|
1495
|
+
"description": "颜色格式",
|
|
1496
|
+
"default": "hex",
|
|
1486
1497
|
"attribute": false,
|
|
1487
|
-
"type": "
|
|
1498
|
+
"type": "\"rgb\" | \"hex\" | \"hsb\""
|
|
1488
1499
|
},
|
|
1489
1500
|
{
|
|
1490
|
-
"name": "
|
|
1501
|
+
"name": "configProps",
|
|
1502
|
+
"description": "透传 antd ColorPicker 属性 [ColorPickerProps](https://ant.design/components/color-picker-cn#api)",
|
|
1491
1503
|
"attribute": false,
|
|
1492
|
-
"type": "
|
|
1504
|
+
"type": "Partial<ColorPickerProps>"
|
|
1493
1505
|
}
|
|
1494
1506
|
],
|
|
1495
1507
|
"events": [
|
|
1496
1508
|
{
|
|
1497
1509
|
"name": "change",
|
|
1498
|
-
"description": "
|
|
1510
|
+
"description": "颜色变化事件, 返回值格式和`format`格式一致",
|
|
1499
1511
|
"detail": {
|
|
1500
|
-
"type": "
|
|
1512
|
+
"type": "string | undefined"
|
|
1501
1513
|
}
|
|
1502
1514
|
}
|
|
1503
1515
|
],
|
|
1504
1516
|
"slots": [],
|
|
1505
1517
|
"methods": [],
|
|
1506
1518
|
"parts": [],
|
|
1507
|
-
"description": "
|
|
1508
|
-
"category": "form-input-basic"
|
|
1519
|
+
"description": "构件 `eo-color-picker`"
|
|
1509
1520
|
},
|
|
1510
1521
|
{
|
|
1511
|
-
"name": "eo-
|
|
1522
|
+
"name": "eo-time-range-picker",
|
|
1512
1523
|
"properties": [
|
|
1513
1524
|
{
|
|
1514
1525
|
"name": "name",
|
|
1515
|
-
"description": "
|
|
1526
|
+
"description": "时间段选择器字段名",
|
|
1516
1527
|
"type": "string"
|
|
1517
1528
|
},
|
|
1518
1529
|
{
|
|
1519
1530
|
"name": "label",
|
|
1520
|
-
"description": "
|
|
1531
|
+
"description": "时间段选择器说明",
|
|
1521
1532
|
"type": "string"
|
|
1522
1533
|
},
|
|
1523
1534
|
{
|
|
1524
1535
|
"name": "value",
|
|
1525
|
-
"description": "
|
|
1526
|
-
"
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
"name": "defaultValue",
|
|
1530
|
-
"description": "颜色默认的值",
|
|
1531
|
-
"type": "string | Color"
|
|
1536
|
+
"description": "时间段选择器的初始值",
|
|
1537
|
+
"default": "{ \"startTime\": \"00:00:00\", \"endTime\": \"23:59:59\" }",
|
|
1538
|
+
"attribute": false,
|
|
1539
|
+
"type": "TimeRange"
|
|
1532
1540
|
},
|
|
1533
1541
|
{
|
|
1534
1542
|
"name": "required",
|
|
@@ -1536,54 +1544,61 @@
|
|
|
1536
1544
|
"type": "boolean"
|
|
1537
1545
|
},
|
|
1538
1546
|
{
|
|
1539
|
-
"name": "
|
|
1540
|
-
"description": "
|
|
1541
|
-
"
|
|
1547
|
+
"name": "rangeType",
|
|
1548
|
+
"description": "时间段类型",
|
|
1549
|
+
"attribute": false,
|
|
1550
|
+
"type": "RangeType"
|
|
1542
1551
|
},
|
|
1543
1552
|
{
|
|
1544
|
-
"name": "
|
|
1545
|
-
"description": "
|
|
1546
|
-
"default": "middle",
|
|
1553
|
+
"name": "placeholder",
|
|
1554
|
+
"description": "输入框提示文字,单时间段时为string,范围时间段时为[string, string]",
|
|
1547
1555
|
"attribute": false,
|
|
1548
|
-
"type": "
|
|
1556
|
+
"type": "string | [string, string]"
|
|
1549
1557
|
},
|
|
1550
1558
|
{
|
|
1551
|
-
"name": "
|
|
1552
|
-
"description": "
|
|
1553
|
-
"
|
|
1559
|
+
"name": "inputStyle",
|
|
1560
|
+
"description": "输入框样式",
|
|
1561
|
+
"attribute": false,
|
|
1562
|
+
"type": "React.CSSProperties"
|
|
1554
1563
|
},
|
|
1555
1564
|
{
|
|
1556
|
-
"name": "
|
|
1557
|
-
"description": "
|
|
1565
|
+
"name": "selectNearDays",
|
|
1566
|
+
"description": "只有rangeType在`date` 和 `dateTime`下, 才支持只选择最近n天(当前时间向前n天)",
|
|
1567
|
+
"type": "number"
|
|
1568
|
+
},
|
|
1569
|
+
{
|
|
1570
|
+
"name": "emitChangeOnInit",
|
|
1571
|
+
"description": "",
|
|
1572
|
+
"default": "true\n是否在初始化完成后额外触发一次`time.range.change`, 这里因为历史原因之前默认行为就是在初始化后会触发该事件,这里为了兼容之前的行为,默认值只能设置为 true。",
|
|
1558
1573
|
"type": "boolean"
|
|
1559
1574
|
},
|
|
1560
1575
|
{
|
|
1561
|
-
"name": "
|
|
1562
|
-
"description": "
|
|
1563
|
-
"default": "
|
|
1576
|
+
"name": "presetRanges",
|
|
1577
|
+
"description": "",
|
|
1578
|
+
"default": "[]\n预设时间范围快捷选择;设置了属性selectNearDays时,属性presetRanges不生效;属性rangeType为week时,presetRanges的值只能为本周、本月、本季度、今年,属性rangeType为month、quarter、year时,以此类推",
|
|
1564
1579
|
"attribute": false,
|
|
1565
|
-
"type": "
|
|
1580
|
+
"type": "presetRangeType[]"
|
|
1566
1581
|
},
|
|
1567
1582
|
{
|
|
1568
|
-
"name": "
|
|
1569
|
-
"description": "透传 antd ColorPicker 属性 [ColorPickerProps](https://ant.design/components/color-picker-cn#api)",
|
|
1583
|
+
"name": "validator",
|
|
1570
1584
|
"attribute": false,
|
|
1571
|
-
"type": "
|
|
1585
|
+
"type": "((value: any) => MessageBody | string)"
|
|
1572
1586
|
}
|
|
1573
1587
|
],
|
|
1574
1588
|
"events": [
|
|
1575
1589
|
{
|
|
1576
1590
|
"name": "change",
|
|
1577
|
-
"description": "
|
|
1591
|
+
"description": "时间段变化时触发",
|
|
1578
1592
|
"detail": {
|
|
1579
|
-
"type": "
|
|
1593
|
+
"type": "TimeRange"
|
|
1580
1594
|
}
|
|
1581
1595
|
}
|
|
1582
1596
|
],
|
|
1583
1597
|
"slots": [],
|
|
1584
1598
|
"methods": [],
|
|
1585
1599
|
"parts": [],
|
|
1586
|
-
"description": "
|
|
1600
|
+
"description": "时间区间选择器",
|
|
1601
|
+
"category": "form-input-basic"
|
|
1587
1602
|
},
|
|
1588
1603
|
{
|
|
1589
1604
|
"name": "eo-form-item",
|