@plasmicpkgs/antd 0.0.10 → 0.0.14
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.
|
@@ -32,37 +32,45 @@ var buttonMeta = {
|
|
|
32
32
|
type: {
|
|
33
33
|
type: "choice",
|
|
34
34
|
options: ["default", "primary", "ghost", "dashed", "link", "text"],
|
|
35
|
-
description: "Can be set to primary, ghost, dashed, link, text, default"
|
|
35
|
+
description: "Can be set to primary, ghost, dashed, link, text, default",
|
|
36
|
+
defaultValueHint: "default"
|
|
36
37
|
},
|
|
37
38
|
size: {
|
|
38
39
|
type: "choice",
|
|
39
40
|
options: ["small", "medium", "large"],
|
|
40
|
-
description: "Set the size of button"
|
|
41
|
+
description: "Set the size of button",
|
|
42
|
+
defaultValueHint: "medium"
|
|
41
43
|
},
|
|
42
44
|
shape: {
|
|
43
45
|
type: "choice",
|
|
44
46
|
options: ["default", "circle", "round"],
|
|
45
|
-
description: "Can be set button shape"
|
|
47
|
+
description: "Can be set button shape",
|
|
48
|
+
defaultValueHint: "default"
|
|
46
49
|
},
|
|
47
50
|
disabled: {
|
|
48
51
|
type: "boolean",
|
|
49
|
-
description: "Disabled state of button"
|
|
52
|
+
description: "Disabled state of button",
|
|
53
|
+
defaultValueHint: false
|
|
50
54
|
},
|
|
51
55
|
ghost: {
|
|
52
56
|
type: "boolean",
|
|
53
|
-
description: "Make background transparent and invert text and border colors"
|
|
57
|
+
description: "Make background transparent and invert text and border colors",
|
|
58
|
+
defaultValueHint: false
|
|
54
59
|
},
|
|
55
60
|
danger: {
|
|
56
61
|
type: "boolean",
|
|
57
|
-
description: "Set the danger status of button"
|
|
62
|
+
description: "Set the danger status of button",
|
|
63
|
+
defaultValueHint: false
|
|
58
64
|
},
|
|
59
65
|
block: {
|
|
60
66
|
type: "boolean",
|
|
61
|
-
description: "Option to fit button width to its parent width"
|
|
67
|
+
description: "Option to fit button width to its parent width",
|
|
68
|
+
defaultValueHint: false
|
|
62
69
|
},
|
|
63
70
|
loading: {
|
|
64
71
|
type: "boolean",
|
|
65
|
-
description: "Set the loading status of button"
|
|
72
|
+
description: "Set the loading status of button",
|
|
73
|
+
defaultValueHint: false
|
|
66
74
|
},
|
|
67
75
|
href: {
|
|
68
76
|
type: "string",
|
|
@@ -71,7 +79,11 @@ var buttonMeta = {
|
|
|
71
79
|
target: {
|
|
72
80
|
type: "choice",
|
|
73
81
|
options: ["_blank", "_self", "_parent", "_top"],
|
|
74
|
-
description: "Same as target attribute of a, works when href is specified"
|
|
82
|
+
description: "Same as target attribute of a, works when href is specified",
|
|
83
|
+
hidden: function hidden(props) {
|
|
84
|
+
return !props.href;
|
|
85
|
+
},
|
|
86
|
+
defaultValueHint: "_self"
|
|
75
87
|
},
|
|
76
88
|
children: {
|
|
77
89
|
type: "slot",
|
|
@@ -190,21 +202,25 @@ var checkboxMeta = {
|
|
|
190
202
|
props: {
|
|
191
203
|
autoFocus: {
|
|
192
204
|
type: "boolean",
|
|
193
|
-
description: "If get focus when component mounted"
|
|
205
|
+
description: "If get focus when component mounted",
|
|
206
|
+
defaultValueHint: false
|
|
194
207
|
},
|
|
195
208
|
checked: {
|
|
196
209
|
type: "boolean",
|
|
197
210
|
editOnly: true,
|
|
198
211
|
uncontrolledProp: "defaultChecked",
|
|
199
|
-
description: "Specifies the initial state: whether or not the checkbox is selected"
|
|
212
|
+
description: "Specifies the initial state: whether or not the checkbox is selected",
|
|
213
|
+
defaultValueHint: false
|
|
200
214
|
},
|
|
201
215
|
disabled: {
|
|
202
216
|
type: "boolean",
|
|
203
|
-
description: "If disable checkbox"
|
|
217
|
+
description: "If disable checkbox",
|
|
218
|
+
defaultValueHint: false
|
|
204
219
|
},
|
|
205
220
|
indeterminate: {
|
|
206
221
|
type: "boolean",
|
|
207
|
-
description: "The indeterminate checked state of checkbox"
|
|
222
|
+
description: "The indeterminate checked state of checkbox",
|
|
223
|
+
defaultValueHint: false
|
|
208
224
|
},
|
|
209
225
|
value: {
|
|
210
226
|
type: "string",
|
|
@@ -221,7 +237,7 @@ var checkboxMeta = {
|
|
|
221
237
|
importPath: "antd/lib/checkbox/Checkbox",
|
|
222
238
|
importName: "Checkbox",
|
|
223
239
|
defaultStyles: {
|
|
224
|
-
marginLeft:
|
|
240
|
+
marginLeft: 0
|
|
225
241
|
},
|
|
226
242
|
isDefaultExport: true
|
|
227
243
|
};
|
|
@@ -238,7 +254,8 @@ var checkboxGroupMeta = {
|
|
|
238
254
|
props: {
|
|
239
255
|
disabled: {
|
|
240
256
|
type: "boolean",
|
|
241
|
-
description: "If disable all checkboxes"
|
|
257
|
+
description: "If disable all checkboxes",
|
|
258
|
+
defaultValueHint: false
|
|
242
259
|
},
|
|
243
260
|
value: {
|
|
244
261
|
type: "choice",
|
|
@@ -293,20 +310,24 @@ var carouselMeta = {
|
|
|
293
310
|
props: {
|
|
294
311
|
autoplay: {
|
|
295
312
|
type: "boolean",
|
|
296
|
-
description: "Whether to scroll automatically"
|
|
313
|
+
description: "Whether to scroll automatically",
|
|
314
|
+
defaultValueHint: false
|
|
297
315
|
},
|
|
298
316
|
dotPosition: {
|
|
299
317
|
type: "choice",
|
|
300
318
|
options: ["top", "bottom", "left", "right"],
|
|
301
|
-
description: "The position of the dots"
|
|
319
|
+
description: "The position of the dots",
|
|
320
|
+
defaultValueHint: "bottom"
|
|
302
321
|
},
|
|
303
322
|
dots: {
|
|
304
323
|
type: "boolean",
|
|
305
|
-
description: "Whether to show the dots at the bottom of the gallery"
|
|
324
|
+
description: "Whether to show the dots at the bottom of the gallery",
|
|
325
|
+
defaultValueHint: true
|
|
306
326
|
},
|
|
307
327
|
effect: {
|
|
308
328
|
type: "choice",
|
|
309
|
-
options: ["scrollx", "fade"]
|
|
329
|
+
options: ["scrollx", "fade"],
|
|
330
|
+
defaultValueHint: "scrollx"
|
|
310
331
|
},
|
|
311
332
|
children: {
|
|
312
333
|
type: "slot",
|
|
@@ -349,7 +370,8 @@ var collapstePanelMeta = {
|
|
|
349
370
|
},
|
|
350
371
|
forceRender: {
|
|
351
372
|
type: "boolean",
|
|
352
|
-
description: "Forced render of content on panel, instead of lazy rending after clicking on header"
|
|
373
|
+
description: "Forced render of content on panel, instead of lazy rending after clicking on header",
|
|
374
|
+
defaultValueHint: false
|
|
353
375
|
},
|
|
354
376
|
header: {
|
|
355
377
|
type: "slot",
|
|
@@ -364,7 +386,8 @@ var collapstePanelMeta = {
|
|
|
364
386
|
},
|
|
365
387
|
showArrow: {
|
|
366
388
|
type: "boolean",
|
|
367
|
-
description: "If false, panel will not show arrow icon"
|
|
389
|
+
description: "If false, panel will not show arrow icon",
|
|
390
|
+
defaultValueHint: true
|
|
368
391
|
},
|
|
369
392
|
children: {
|
|
370
393
|
type: "slot",
|
|
@@ -392,7 +415,8 @@ var collapsteMeta = {
|
|
|
392
415
|
props: {
|
|
393
416
|
accordion: {
|
|
394
417
|
type: "boolean",
|
|
395
|
-
description: "If true, Collapse renders as Accordion"
|
|
418
|
+
description: "If true, Collapse renders as Accordion",
|
|
419
|
+
defaultValueHint: false
|
|
396
420
|
},
|
|
397
421
|
activeKey: {
|
|
398
422
|
type: "choice",
|
|
@@ -413,7 +437,8 @@ var collapsteMeta = {
|
|
|
413
437
|
},
|
|
414
438
|
bordered: {
|
|
415
439
|
type: "boolean",
|
|
416
|
-
description: "Toggles rendering of the border around the collapse block"
|
|
440
|
+
description: "Toggles rendering of the border around the collapse block",
|
|
441
|
+
defaultValueHint: true
|
|
417
442
|
},
|
|
418
443
|
collapsible: {
|
|
419
444
|
type: "choice",
|
|
@@ -423,11 +448,13 @@ var collapsteMeta = {
|
|
|
423
448
|
expandIconPosition: {
|
|
424
449
|
type: "choice",
|
|
425
450
|
options: ["left", "right"],
|
|
426
|
-
description: "Set expand icon position"
|
|
451
|
+
description: "Set expand icon position",
|
|
452
|
+
defaultValueHint: "left"
|
|
427
453
|
},
|
|
428
454
|
ghost: {
|
|
429
455
|
type: "boolean",
|
|
430
|
-
description: "Make the collapse borderless and its background transparent"
|
|
456
|
+
description: "Make the collapse borderless and its background transparent",
|
|
457
|
+
defaultValueHint: false
|
|
431
458
|
},
|
|
432
459
|
children: {
|
|
433
460
|
type: "slot",
|
|
@@ -474,11 +501,13 @@ var dropdownMeta = {
|
|
|
474
501
|
props: {
|
|
475
502
|
arrow: {
|
|
476
503
|
type: "boolean",
|
|
477
|
-
description: "Whether the dropdown arrow should be visible"
|
|
504
|
+
description: "Whether the dropdown arrow should be visible",
|
|
505
|
+
defaultValueHint: false
|
|
478
506
|
},
|
|
479
507
|
disabled: {
|
|
480
508
|
type: "boolean",
|
|
481
|
-
description: "Whether the dropdown menu is disabled"
|
|
509
|
+
description: "Whether the dropdown menu is disabled",
|
|
510
|
+
defaultValueHint: false
|
|
482
511
|
},
|
|
483
512
|
overlay: {
|
|
484
513
|
type: "slot",
|
|
@@ -491,17 +520,20 @@ var dropdownMeta = {
|
|
|
491
520
|
placement: {
|
|
492
521
|
type: "choice",
|
|
493
522
|
options: ["bottomLeft", "bottomCenter", "bottomRight", "topLeft", "topCenter", "topRight"],
|
|
494
|
-
description: "Placement of popup menu"
|
|
523
|
+
description: "Placement of popup menu",
|
|
524
|
+
defaultValueHint: "bottomLeft"
|
|
495
525
|
},
|
|
496
526
|
trigger: {
|
|
497
527
|
type: "choice",
|
|
498
528
|
options: ["click", "hover", "contextMenu"],
|
|
499
|
-
description: "The trigger mode which executes the dropdown action"
|
|
529
|
+
description: "The trigger mode which executes the dropdown action",
|
|
530
|
+
defaultValueHint: "hover"
|
|
500
531
|
},
|
|
501
532
|
visible: {
|
|
502
533
|
type: "boolean",
|
|
503
534
|
description: "Toggle visibility of dropdown menu in Plasmic Editor",
|
|
504
|
-
editOnly: true
|
|
535
|
+
editOnly: true,
|
|
536
|
+
defaultValueHint: false
|
|
505
537
|
},
|
|
506
538
|
children: {
|
|
507
539
|
type: "slot",
|
|
@@ -527,7 +559,8 @@ var dropdownButtonMeta = {
|
|
|
527
559
|
props: {
|
|
528
560
|
disabled: {
|
|
529
561
|
type: "boolean",
|
|
530
|
-
description: "Whether the dropdown menu is disabled"
|
|
562
|
+
description: "Whether the dropdown menu is disabled",
|
|
563
|
+
defaultValueHint: false
|
|
531
564
|
},
|
|
532
565
|
icon: {
|
|
533
566
|
type: "slot",
|
|
@@ -544,27 +577,32 @@ var dropdownButtonMeta = {
|
|
|
544
577
|
placement: {
|
|
545
578
|
type: "choice",
|
|
546
579
|
options: ["bottomLeft", "bottomCenter", "bottomRight", "topLeft", "topCenter", "topRight"],
|
|
547
|
-
description: "Placement of popup menu"
|
|
580
|
+
description: "Placement of popup menu",
|
|
581
|
+
defaultValueHint: "bottomLeft"
|
|
548
582
|
},
|
|
549
583
|
size: {
|
|
550
584
|
type: "choice",
|
|
551
585
|
options: ["small", "medium", "large"],
|
|
552
|
-
description: "Set the size of button"
|
|
586
|
+
description: "Set the size of button",
|
|
587
|
+
defaultValueHint: "medium"
|
|
553
588
|
},
|
|
554
589
|
trigger: {
|
|
555
590
|
type: "choice",
|
|
556
591
|
options: ["click", "hover", "contextMenu"],
|
|
557
|
-
description: "The trigger mode which executes the dropdown action"
|
|
592
|
+
description: "The trigger mode which executes the dropdown action",
|
|
593
|
+
defaultValueHint: "hover"
|
|
558
594
|
},
|
|
559
595
|
type: {
|
|
560
596
|
type: "choice",
|
|
561
597
|
options: ["default", "primary", "ghost", "dashed", "link", "text"],
|
|
562
|
-
description: "Can be set to primary, ghost, dashed, link, text, default"
|
|
598
|
+
description: "Can be set to primary, ghost, dashed, link, text, default",
|
|
599
|
+
defaultValueHint: "default"
|
|
563
600
|
},
|
|
564
601
|
visible: {
|
|
565
602
|
type: "boolean",
|
|
566
603
|
description: "Toggle visibility of dropdown menu in Plasmic Editor",
|
|
567
|
-
editOnly: true
|
|
604
|
+
editOnly: true,
|
|
605
|
+
defaultValueHint: false
|
|
568
606
|
},
|
|
569
607
|
children: {
|
|
570
608
|
type: "slot",
|
|
@@ -601,15 +639,18 @@ var inputMeta = {
|
|
|
601
639
|
},
|
|
602
640
|
allowClear: {
|
|
603
641
|
type: "boolean",
|
|
604
|
-
description: "If allow to remove input content with clear icon"
|
|
642
|
+
description: "If allow to remove input content with clear icon",
|
|
643
|
+
defaultValueHint: false
|
|
605
644
|
},
|
|
606
645
|
bordered: {
|
|
607
646
|
type: "boolean",
|
|
608
|
-
description: "Whether has border style"
|
|
647
|
+
description: "Whether has border style",
|
|
648
|
+
defaultValueHint: true
|
|
609
649
|
},
|
|
610
650
|
disabled: {
|
|
611
651
|
type: "boolean",
|
|
612
|
-
description: "Whether the input is disabled"
|
|
652
|
+
description: "Whether the input is disabled",
|
|
653
|
+
defaultValueHint: false
|
|
613
654
|
},
|
|
614
655
|
id: {
|
|
615
656
|
type: "string",
|
|
@@ -630,7 +671,8 @@ var inputMeta = {
|
|
|
630
671
|
size: {
|
|
631
672
|
type: "choice",
|
|
632
673
|
options: ["small", "middle", "large"],
|
|
633
|
-
description: "The size of the input box"
|
|
674
|
+
description: "The size of the input box",
|
|
675
|
+
defaultValueHint: "middle,"
|
|
634
676
|
},
|
|
635
677
|
suffix: {
|
|
636
678
|
type: "slot",
|
|
@@ -638,7 +680,8 @@ var inputMeta = {
|
|
|
638
680
|
},
|
|
639
681
|
type: {
|
|
640
682
|
type: "string",
|
|
641
|
-
description: "The type of input"
|
|
683
|
+
description: "The type of input",
|
|
684
|
+
defaultValueHint: "text"
|
|
642
685
|
},
|
|
643
686
|
value: {
|
|
644
687
|
type: "string",
|
|
@@ -662,7 +705,8 @@ var inputTextAreaMeta = {
|
|
|
662
705
|
props: {
|
|
663
706
|
allowClear: {
|
|
664
707
|
type: "boolean",
|
|
665
|
-
description: "If allow to remove input content with clear icon"
|
|
708
|
+
description: "If allow to remove input content with clear icon",
|
|
709
|
+
defaultValueHint: false
|
|
666
710
|
},
|
|
667
711
|
autoSize: {
|
|
668
712
|
type: "object",
|
|
@@ -670,15 +714,18 @@ var inputTextAreaMeta = {
|
|
|
670
714
|
},
|
|
671
715
|
disabled: {
|
|
672
716
|
type: "boolean",
|
|
673
|
-
description: "Whether the input is disabled"
|
|
717
|
+
description: "Whether the input is disabled",
|
|
718
|
+
defaultValueHint: false
|
|
674
719
|
},
|
|
675
720
|
bordered: {
|
|
676
721
|
type: "boolean",
|
|
677
|
-
description: "Whether has border style"
|
|
722
|
+
description: "Whether has border style",
|
|
723
|
+
defaultValueHint: true
|
|
678
724
|
},
|
|
679
725
|
showCount: {
|
|
680
726
|
type: "boolean",
|
|
681
|
-
description: "Whether show text count"
|
|
727
|
+
description: "Whether show text count",
|
|
728
|
+
defaultValueHint: false
|
|
682
729
|
},
|
|
683
730
|
id: {
|
|
684
731
|
type: "string",
|
|
@@ -720,15 +767,18 @@ var inputSearchMeta = {
|
|
|
720
767
|
},
|
|
721
768
|
allowClear: {
|
|
722
769
|
type: "boolean",
|
|
723
|
-
description: "If allow to remove input content with clear icon"
|
|
770
|
+
description: "If allow to remove input content with clear icon",
|
|
771
|
+
defaultValueHint: false
|
|
724
772
|
},
|
|
725
773
|
bordered: {
|
|
726
774
|
type: "boolean",
|
|
727
|
-
description: "Whether has border style"
|
|
775
|
+
description: "Whether has border style",
|
|
776
|
+
defaultValueHint: true
|
|
728
777
|
},
|
|
729
778
|
disabled: {
|
|
730
779
|
type: "boolean",
|
|
731
|
-
description: "Whether the input is disabled"
|
|
780
|
+
description: "Whether the input is disabled",
|
|
781
|
+
defaultValueHint: false
|
|
732
782
|
},
|
|
733
783
|
enterButton: {
|
|
734
784
|
type: "slot",
|
|
@@ -740,7 +790,8 @@ var inputSearchMeta = {
|
|
|
740
790
|
},
|
|
741
791
|
loading: {
|
|
742
792
|
type: "boolean",
|
|
743
|
-
description: "Search box with loading"
|
|
793
|
+
description: "Search box with loading",
|
|
794
|
+
defaultValueHint: false
|
|
744
795
|
},
|
|
745
796
|
maxLength: {
|
|
746
797
|
type: "number",
|
|
@@ -757,7 +808,8 @@ var inputSearchMeta = {
|
|
|
757
808
|
size: {
|
|
758
809
|
type: "choice",
|
|
759
810
|
options: ["small", "middle", "large"],
|
|
760
|
-
description: "The size of the input box"
|
|
811
|
+
description: "The size of the input box",
|
|
812
|
+
defaultValueHint: "middle"
|
|
761
813
|
},
|
|
762
814
|
suffix: {
|
|
763
815
|
type: "slot",
|
|
@@ -799,15 +851,18 @@ var inputPasswordMeta = {
|
|
|
799
851
|
},
|
|
800
852
|
allowClear: {
|
|
801
853
|
type: "boolean",
|
|
802
|
-
description: "If allow to remove input content with clear icon"
|
|
854
|
+
description: "If allow to remove input content with clear icon",
|
|
855
|
+
defaultValueHint: false
|
|
803
856
|
},
|
|
804
857
|
bordered: {
|
|
805
858
|
type: "boolean",
|
|
806
|
-
description: "Whether has border style"
|
|
859
|
+
description: "Whether has border style",
|
|
860
|
+
defaultValueHint: true
|
|
807
861
|
},
|
|
808
862
|
disabled: {
|
|
809
863
|
type: "boolean",
|
|
810
|
-
description: "Whether the input is disabled"
|
|
864
|
+
description: "Whether the input is disabled",
|
|
865
|
+
defaultValueHint: false
|
|
811
866
|
},
|
|
812
867
|
id: {
|
|
813
868
|
type: "string",
|
|
@@ -828,7 +883,8 @@ var inputPasswordMeta = {
|
|
|
828
883
|
size: {
|
|
829
884
|
type: "choice",
|
|
830
885
|
options: ["small", "middle", "large"],
|
|
831
|
-
description: "The size of the input box"
|
|
886
|
+
description: "The size of the input box",
|
|
887
|
+
defaultValueHint: "middle"
|
|
832
888
|
},
|
|
833
889
|
type: {
|
|
834
890
|
type: "string",
|
|
@@ -841,7 +897,8 @@ var inputPasswordMeta = {
|
|
|
841
897
|
},
|
|
842
898
|
visibilityToggle: {
|
|
843
899
|
type: "boolean",
|
|
844
|
-
description: "Whether show toggle button"
|
|
900
|
+
description: "Whether show toggle button",
|
|
901
|
+
defaultValueHint: true
|
|
845
902
|
}
|
|
846
903
|
},
|
|
847
904
|
importPath: "antd/lib/input/Password",
|
|
@@ -862,12 +919,14 @@ var inputGroupMeta = {
|
|
|
862
919
|
props: {
|
|
863
920
|
compact: {
|
|
864
921
|
type: "boolean",
|
|
865
|
-
description: "Whether use compact style"
|
|
922
|
+
description: "Whether use compact style",
|
|
923
|
+
defaultValueHint: false
|
|
866
924
|
},
|
|
867
925
|
size: {
|
|
868
926
|
type: "choice",
|
|
869
927
|
options: ["small", "default", "large"],
|
|
870
|
-
description: "The size of Input.Group specifies the size of the included Input fields"
|
|
928
|
+
description: "The size of Input.Group specifies the size of the included Input fields",
|
|
929
|
+
defaultValueHint: "default"
|
|
871
930
|
},
|
|
872
931
|
children: {
|
|
873
932
|
type: "slot",
|
|
@@ -899,7 +958,8 @@ var menuDividerMeta = {
|
|
|
899
958
|
props: {
|
|
900
959
|
dashed: {
|
|
901
960
|
type: "boolean",
|
|
902
|
-
description: "Whether line is dashed"
|
|
961
|
+
description: "Whether line is dashed",
|
|
962
|
+
defaultValueHint: false
|
|
903
963
|
}
|
|
904
964
|
},
|
|
905
965
|
importPath: "antd/lib/menu/MenuDivider",
|
|
@@ -920,11 +980,13 @@ var menuItemMeta = {
|
|
|
920
980
|
props: {
|
|
921
981
|
danger: {
|
|
922
982
|
type: "boolean",
|
|
923
|
-
description: "Display the danger style"
|
|
983
|
+
description: "Display the danger style",
|
|
984
|
+
defaultValueHint: false
|
|
924
985
|
},
|
|
925
986
|
disabled: {
|
|
926
987
|
type: "boolean",
|
|
927
|
-
description: "Whether disabled select"
|
|
988
|
+
description: "Whether disabled select",
|
|
989
|
+
defaultValueHint: false
|
|
928
990
|
},
|
|
929
991
|
key: {
|
|
930
992
|
type: "string",
|
|
@@ -992,7 +1054,8 @@ var subMenuMeta = {
|
|
|
992
1054
|
props: {
|
|
993
1055
|
disabled: {
|
|
994
1056
|
type: "boolean",
|
|
995
|
-
description: "Whether sub-menu is disabled"
|
|
1057
|
+
description: "Whether sub-menu is disabled",
|
|
1058
|
+
defaultValueHint: false
|
|
996
1059
|
},
|
|
997
1060
|
key: {
|
|
998
1061
|
type: "string",
|
|
@@ -1009,13 +1072,19 @@ var subMenuMeta = {
|
|
|
1009
1072
|
children: {
|
|
1010
1073
|
type: "slot",
|
|
1011
1074
|
allowedComponents: ["AntdMenuItem", "AntdMenuDivider", "AntdMenuItemGroup", "AntdSubMenu"],
|
|
1012
|
-
defaultValue: [{
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1075
|
+
defaultValue: /*#__PURE__*/[1, 2].map(function (i) {
|
|
1076
|
+
return {
|
|
1077
|
+
type: "component",
|
|
1078
|
+
name: "AntdMenuItem",
|
|
1079
|
+
props: {
|
|
1080
|
+
key: "subMenuItemKey" + i,
|
|
1081
|
+
children: [{
|
|
1082
|
+
type: "text",
|
|
1083
|
+
value: "Sub-menu item " + i
|
|
1084
|
+
}]
|
|
1085
|
+
}
|
|
1086
|
+
};
|
|
1087
|
+
})
|
|
1019
1088
|
}
|
|
1020
1089
|
},
|
|
1021
1090
|
importPath: "antd/lib/menu/SubMenu",
|
|
@@ -1040,20 +1109,24 @@ var menuMeta = {
|
|
|
1040
1109
|
},
|
|
1041
1110
|
forceSubMenuRender: {
|
|
1042
1111
|
type: "boolean",
|
|
1043
|
-
description: "Render submenu into DOM before it becomes visible"
|
|
1112
|
+
description: "Render submenu into DOM before it becomes visible",
|
|
1113
|
+
defaultValueHint: false
|
|
1044
1114
|
},
|
|
1045
1115
|
inlineIndent: {
|
|
1046
1116
|
type: "number",
|
|
1047
|
-
description: "Indent (in pixels) of inline menu items on each level"
|
|
1117
|
+
description: "Indent (in pixels) of inline menu items on each level",
|
|
1118
|
+
defaultValueHint: 24
|
|
1048
1119
|
},
|
|
1049
1120
|
mode: {
|
|
1050
1121
|
type: "choice",
|
|
1051
1122
|
options: ["horizontal", "vertical", "inline"],
|
|
1052
|
-
description: "Type of menu"
|
|
1123
|
+
description: "Type of menu",
|
|
1124
|
+
defaultValueHint: "vertical"
|
|
1053
1125
|
},
|
|
1054
1126
|
multiple: {
|
|
1055
1127
|
type: "boolean",
|
|
1056
|
-
description: "Allows selection of multiple items"
|
|
1128
|
+
description: "Allows selection of multiple items",
|
|
1129
|
+
defaultValueHint: false
|
|
1057
1130
|
},
|
|
1058
1131
|
openKeys: {
|
|
1059
1132
|
type: "choice",
|
|
@@ -1077,7 +1150,8 @@ var menuMeta = {
|
|
|
1077
1150
|
},
|
|
1078
1151
|
selectable: {
|
|
1079
1152
|
type: "boolean",
|
|
1080
|
-
description: "Allows selecting menu items"
|
|
1153
|
+
description: "Allows selecting menu items",
|
|
1154
|
+
defaultValueHint: true
|
|
1081
1155
|
},
|
|
1082
1156
|
selectedKeys: {
|
|
1083
1157
|
type: "choice",
|
|
@@ -1097,21 +1171,25 @@ var menuMeta = {
|
|
|
1097
1171
|
},
|
|
1098
1172
|
subMenuCloseDelay: {
|
|
1099
1173
|
type: "number",
|
|
1100
|
-
description: "Delay time to hide submenu when mouse leaves (in seconds)"
|
|
1174
|
+
description: "Delay time to hide submenu when mouse leaves (in seconds)",
|
|
1175
|
+
defaultValueHint: 0.1
|
|
1101
1176
|
},
|
|
1102
1177
|
subMenuOpenDelay: {
|
|
1103
1178
|
type: "number",
|
|
1104
|
-
description: "Delay time to show submenu when mouse enters, (in seconds)"
|
|
1179
|
+
description: "Delay time to show submenu when mouse enters, (in seconds)",
|
|
1180
|
+
defaultValueHint: 0
|
|
1105
1181
|
},
|
|
1106
1182
|
theme: {
|
|
1107
1183
|
type: "choice",
|
|
1108
1184
|
options: ["light", "dark"],
|
|
1109
|
-
description: "Color theme of the menu"
|
|
1185
|
+
description: "Color theme of the menu",
|
|
1186
|
+
defaultValueHint: "light"
|
|
1110
1187
|
},
|
|
1111
1188
|
triggerSubMenuAction: {
|
|
1112
1189
|
type: "choice",
|
|
1113
1190
|
options: ["hover", "click"],
|
|
1114
|
-
description: "Which action can trigger submenu open/close"
|
|
1191
|
+
description: "Which action can trigger submenu open/close",
|
|
1192
|
+
defaultValueHint: "hover"
|
|
1115
1193
|
},
|
|
1116
1194
|
children: {
|
|
1117
1195
|
type: "slot",
|
|
@@ -1143,7 +1221,8 @@ var optionMeta = {
|
|
|
1143
1221
|
props: {
|
|
1144
1222
|
disabled: {
|
|
1145
1223
|
type: "boolean",
|
|
1146
|
-
description: "Disable this option"
|
|
1224
|
+
description: "Disable this option",
|
|
1225
|
+
defaultValueHint: false
|
|
1147
1226
|
},
|
|
1148
1227
|
title: {
|
|
1149
1228
|
type: "string",
|
|
@@ -1213,25 +1292,43 @@ var selectMeta = {
|
|
|
1213
1292
|
name: "AntdSelect",
|
|
1214
1293
|
displayName: "Antd Select",
|
|
1215
1294
|
props: {
|
|
1295
|
+
allowClear: {
|
|
1296
|
+
type: "boolean",
|
|
1297
|
+
description: "Show clear button",
|
|
1298
|
+
defaultValueHint: false
|
|
1299
|
+
},
|
|
1300
|
+
autoClearSearchValue: {
|
|
1301
|
+
type: "boolean",
|
|
1302
|
+
description: "Whether the current search will be cleared on selecting an item",
|
|
1303
|
+
defaultValueHint: true,
|
|
1304
|
+
hidden: function hidden(props) {
|
|
1305
|
+
return props.mode !== "multiple" && props.mode !== "tags";
|
|
1306
|
+
}
|
|
1307
|
+
},
|
|
1216
1308
|
autoFocus: {
|
|
1217
1309
|
type: "boolean",
|
|
1218
|
-
description: "Get focus by default"
|
|
1310
|
+
description: "Get focus by default",
|
|
1311
|
+
defaultValueHint: false
|
|
1219
1312
|
},
|
|
1220
1313
|
bordered: {
|
|
1221
1314
|
type: "boolean",
|
|
1222
|
-
description: "Whether has border style"
|
|
1315
|
+
description: "Whether has border style",
|
|
1316
|
+
defaultValueHint: true
|
|
1223
1317
|
},
|
|
1224
1318
|
disabled: {
|
|
1225
1319
|
type: "boolean",
|
|
1226
|
-
description: "Whether disabled select"
|
|
1320
|
+
description: "Whether disabled select",
|
|
1321
|
+
defaultValueHint: false
|
|
1227
1322
|
},
|
|
1228
1323
|
listHeight: {
|
|
1229
1324
|
type: "number",
|
|
1230
|
-
description: "Config popup height"
|
|
1325
|
+
description: "Config popup height",
|
|
1326
|
+
defaultValueHint: 256
|
|
1231
1327
|
},
|
|
1232
1328
|
loading: {
|
|
1233
1329
|
type: "boolean",
|
|
1234
|
-
description: "Indicate loading state"
|
|
1330
|
+
description: "Indicate loading state",
|
|
1331
|
+
defaultValueHint: false
|
|
1235
1332
|
},
|
|
1236
1333
|
mode: {
|
|
1237
1334
|
type: "choice",
|
|
@@ -1242,7 +1339,8 @@ var selectMeta = {
|
|
|
1242
1339
|
type: "boolean",
|
|
1243
1340
|
editOnly: true,
|
|
1244
1341
|
uncontrolledProp: "defaultOpen",
|
|
1245
|
-
description: "Initial open state of dropdown"
|
|
1342
|
+
description: "Initial open state of dropdown",
|
|
1343
|
+
defaultValueHint: false
|
|
1246
1344
|
},
|
|
1247
1345
|
placeholder: {
|
|
1248
1346
|
type: "slot",
|
|
@@ -1253,16 +1351,19 @@ var selectMeta = {
|
|
|
1253
1351
|
},
|
|
1254
1352
|
showArrow: {
|
|
1255
1353
|
type: "boolean",
|
|
1256
|
-
description: "Whether to show the drop-down arrow"
|
|
1354
|
+
description: "Whether to show the drop-down arrow",
|
|
1355
|
+
defaultValueHint: true
|
|
1257
1356
|
},
|
|
1258
1357
|
showSearch: {
|
|
1259
1358
|
type: "boolean",
|
|
1260
|
-
description: "Whether show search input in single mode"
|
|
1359
|
+
description: "Whether show search input in single mode",
|
|
1360
|
+
defaultValueHint: false
|
|
1261
1361
|
},
|
|
1262
1362
|
size: {
|
|
1263
1363
|
type: "choice",
|
|
1264
1364
|
options: ["large", "middle", "small"],
|
|
1265
|
-
description: "Set mode of Select"
|
|
1365
|
+
description: "Set mode of Select",
|
|
1366
|
+
defaultValueHint: "middle"
|
|
1266
1367
|
},
|
|
1267
1368
|
value: {
|
|
1268
1369
|
type: "choice",
|
|
@@ -1283,7 +1384,8 @@ var selectMeta = {
|
|
|
1283
1384
|
},
|
|
1284
1385
|
virtual: {
|
|
1285
1386
|
type: "boolean",
|
|
1286
|
-
description: "Disable virtual scroll when set to false"
|
|
1387
|
+
description: "Disable virtual scroll when set to false",
|
|
1388
|
+
defaultValueHint: true
|
|
1287
1389
|
},
|
|
1288
1390
|
children: {
|
|
1289
1391
|
type: "slot",
|
|
@@ -1349,31 +1451,38 @@ var sliderMeta = {
|
|
|
1349
1451
|
props: {
|
|
1350
1452
|
max: {
|
|
1351
1453
|
type: "number",
|
|
1352
|
-
description: "The maximum value the slider can slide to"
|
|
1454
|
+
description: "The maximum value the slider can slide to",
|
|
1455
|
+
defaultValueHint: 100
|
|
1353
1456
|
},
|
|
1354
1457
|
min: {
|
|
1355
1458
|
type: "number",
|
|
1356
|
-
description: "The minimum value the slider can slide to"
|
|
1459
|
+
description: "The minimum value the slider can slide to",
|
|
1460
|
+
defaultValueHint: 0
|
|
1357
1461
|
},
|
|
1358
1462
|
included: {
|
|
1359
1463
|
type: "boolean",
|
|
1360
|
-
description: "Make effect when marks not null, true means containment and false means coordinative"
|
|
1464
|
+
description: "Make effect when marks not null, true means containment and false means coordinative",
|
|
1465
|
+
defaultValueHint: true
|
|
1361
1466
|
},
|
|
1362
1467
|
disabled: {
|
|
1363
1468
|
type: "boolean",
|
|
1364
|
-
description: "If true, the slider will not be interactable"
|
|
1469
|
+
description: "If true, the slider will not be interactable",
|
|
1470
|
+
defaultValueHint: false
|
|
1365
1471
|
},
|
|
1366
1472
|
range: {
|
|
1367
1473
|
type: "boolean",
|
|
1368
|
-
description: "Dual thumb mode"
|
|
1474
|
+
description: "Dual thumb mode",
|
|
1475
|
+
defaultValueHint: false
|
|
1369
1476
|
},
|
|
1370
1477
|
reverse: {
|
|
1371
1478
|
type: "boolean",
|
|
1372
|
-
description: "Reverse the component"
|
|
1479
|
+
description: "Reverse the component",
|
|
1480
|
+
defaultValueHint: false
|
|
1373
1481
|
},
|
|
1374
1482
|
vertical: {
|
|
1375
1483
|
type: "boolean",
|
|
1376
|
-
description: "If true, the slider will be vertical"
|
|
1484
|
+
description: "If true, the slider will be vertical",
|
|
1485
|
+
defaultValueHint: false
|
|
1377
1486
|
},
|
|
1378
1487
|
value: {
|
|
1379
1488
|
type: "number",
|
|
@@ -1422,21 +1531,25 @@ var switchMeta = {
|
|
|
1422
1531
|
props: {
|
|
1423
1532
|
autoFocus: {
|
|
1424
1533
|
type: "boolean",
|
|
1425
|
-
description: "Whether get focus when component mounted"
|
|
1534
|
+
description: "Whether get focus when component mounted",
|
|
1535
|
+
defaultValueHint: false
|
|
1426
1536
|
},
|
|
1427
1537
|
checked: {
|
|
1428
1538
|
type: "boolean",
|
|
1429
1539
|
editOnly: true,
|
|
1430
1540
|
uncontrolledProp: "defaultChecked",
|
|
1431
|
-
description: "Whether to set the initial state"
|
|
1541
|
+
description: "Whether to set the initial state",
|
|
1542
|
+
defaultValueHint: false
|
|
1432
1543
|
},
|
|
1433
1544
|
disabled: {
|
|
1434
1545
|
type: "boolean",
|
|
1435
|
-
description: "Disable switch"
|
|
1546
|
+
description: "Disable switch",
|
|
1547
|
+
defaultValueHint: false
|
|
1436
1548
|
},
|
|
1437
1549
|
loading: {
|
|
1438
1550
|
type: "boolean",
|
|
1439
|
-
description: "Loading state of switch"
|
|
1551
|
+
description: "Loading state of switch",
|
|
1552
|
+
defaultValueHint: false
|
|
1440
1553
|
},
|
|
1441
1554
|
checkedChildren: {
|
|
1442
1555
|
type: "slot",
|
|
@@ -1451,7 +1564,8 @@ var switchMeta = {
|
|
|
1451
1564
|
size: {
|
|
1452
1565
|
type: "choice",
|
|
1453
1566
|
options: ["small", "default"],
|
|
1454
|
-
description: "The size of the Switch"
|
|
1567
|
+
description: "The size of the Switch",
|
|
1568
|
+
defaultValueHint: "default"
|
|
1455
1569
|
}
|
|
1456
1570
|
},
|
|
1457
1571
|
importPath: "antd",
|
|
@@ -1486,6 +1600,16 @@ var tabPaneMeta = {
|
|
|
1486
1600
|
description: "Wether the tab can be closed or not. Only works for editable tabs",
|
|
1487
1601
|
defaultValueHint: true
|
|
1488
1602
|
},
|
|
1603
|
+
disabled: {
|
|
1604
|
+
type: "boolean",
|
|
1605
|
+
description: "Disabled state of tab",
|
|
1606
|
+
defaultValueHint: false
|
|
1607
|
+
},
|
|
1608
|
+
forceRender: {
|
|
1609
|
+
type: "boolean",
|
|
1610
|
+
description: "Forced render of content in tabs, not lazy render after clicking on tabs",
|
|
1611
|
+
defaultValueHint: false
|
|
1612
|
+
},
|
|
1489
1613
|
closeIcon: {
|
|
1490
1614
|
type: "slot",
|
|
1491
1615
|
hidePlaceholder: true
|