@plasmicpkgs/antd 0.0.11 → 0.0.12

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",
@@ -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",
@@ -1040,20 +1103,24 @@ var menuMeta = {
1040
1103
  },
1041
1104
  forceSubMenuRender: {
1042
1105
  type: "boolean",
1043
- description: "Render submenu into DOM before it becomes visible"
1106
+ description: "Render submenu into DOM before it becomes visible",
1107
+ defaultValueHint: false
1044
1108
  },
1045
1109
  inlineIndent: {
1046
1110
  type: "number",
1047
- description: "Indent (in pixels) of inline menu items on each level"
1111
+ description: "Indent (in pixels) of inline menu items on each level",
1112
+ defaultValueHint: 24
1048
1113
  },
1049
1114
  mode: {
1050
1115
  type: "choice",
1051
1116
  options: ["horizontal", "vertical", "inline"],
1052
- description: "Type of menu"
1117
+ description: "Type of menu",
1118
+ defaultValueHint: "vertical"
1053
1119
  },
1054
1120
  multiple: {
1055
1121
  type: "boolean",
1056
- description: "Allows selection of multiple items"
1122
+ description: "Allows selection of multiple items",
1123
+ defaultValueHint: false
1057
1124
  },
1058
1125
  openKeys: {
1059
1126
  type: "choice",
@@ -1077,7 +1144,8 @@ var menuMeta = {
1077
1144
  },
1078
1145
  selectable: {
1079
1146
  type: "boolean",
1080
- description: "Allows selecting menu items"
1147
+ description: "Allows selecting menu items",
1148
+ defaultValueHint: true
1081
1149
  },
1082
1150
  selectedKeys: {
1083
1151
  type: "choice",
@@ -1097,21 +1165,25 @@ var menuMeta = {
1097
1165
  },
1098
1166
  subMenuCloseDelay: {
1099
1167
  type: "number",
1100
- description: "Delay time to hide submenu when mouse leaves (in seconds)"
1168
+ description: "Delay time to hide submenu when mouse leaves (in seconds)",
1169
+ defaultValueHint: 0.1
1101
1170
  },
1102
1171
  subMenuOpenDelay: {
1103
1172
  type: "number",
1104
- description: "Delay time to show submenu when mouse enters, (in seconds)"
1173
+ description: "Delay time to show submenu when mouse enters, (in seconds)",
1174
+ defaultValueHint: 0
1105
1175
  },
1106
1176
  theme: {
1107
1177
  type: "choice",
1108
1178
  options: ["light", "dark"],
1109
- description: "Color theme of the menu"
1179
+ description: "Color theme of the menu",
1180
+ defaultValueHint: "light"
1110
1181
  },
1111
1182
  triggerSubMenuAction: {
1112
1183
  type: "choice",
1113
1184
  options: ["hover", "click"],
1114
- description: "Which action can trigger submenu open/close"
1185
+ description: "Which action can trigger submenu open/close",
1186
+ defaultValueHint: "hover"
1115
1187
  },
1116
1188
  children: {
1117
1189
  type: "slot",
@@ -1143,7 +1215,8 @@ var optionMeta = {
1143
1215
  props: {
1144
1216
  disabled: {
1145
1217
  type: "boolean",
1146
- description: "Disable this option"
1218
+ description: "Disable this option",
1219
+ defaultValueHint: false
1147
1220
  },
1148
1221
  title: {
1149
1222
  type: "string",
@@ -1213,25 +1286,43 @@ var selectMeta = {
1213
1286
  name: "AntdSelect",
1214
1287
  displayName: "Antd Select",
1215
1288
  props: {
1289
+ allowClear: {
1290
+ type: "boolean",
1291
+ description: "Show clear button",
1292
+ defaultValueHint: false
1293
+ },
1294
+ autoClearSearchValue: {
1295
+ type: "boolean",
1296
+ description: "Whether the current search will be cleared on selecting an item",
1297
+ defaultValueHint: true,
1298
+ hidden: function hidden(props) {
1299
+ return props.mode !== "multiple" && props.mode !== "tags";
1300
+ }
1301
+ },
1216
1302
  autoFocus: {
1217
1303
  type: "boolean",
1218
- description: "Get focus by default"
1304
+ description: "Get focus by default",
1305
+ defaultValueHint: false
1219
1306
  },
1220
1307
  bordered: {
1221
1308
  type: "boolean",
1222
- description: "Whether has border style"
1309
+ description: "Whether has border style",
1310
+ defaultValueHint: true
1223
1311
  },
1224
1312
  disabled: {
1225
1313
  type: "boolean",
1226
- description: "Whether disabled select"
1314
+ description: "Whether disabled select",
1315
+ defaultValueHint: false
1227
1316
  },
1228
1317
  listHeight: {
1229
1318
  type: "number",
1230
- description: "Config popup height"
1319
+ description: "Config popup height",
1320
+ defaultValueHint: 256
1231
1321
  },
1232
1322
  loading: {
1233
1323
  type: "boolean",
1234
- description: "Indicate loading state"
1324
+ description: "Indicate loading state",
1325
+ defaultValueHint: false
1235
1326
  },
1236
1327
  mode: {
1237
1328
  type: "choice",
@@ -1242,7 +1333,8 @@ var selectMeta = {
1242
1333
  type: "boolean",
1243
1334
  editOnly: true,
1244
1335
  uncontrolledProp: "defaultOpen",
1245
- description: "Initial open state of dropdown"
1336
+ description: "Initial open state of dropdown",
1337
+ defaultValueHint: false
1246
1338
  },
1247
1339
  placeholder: {
1248
1340
  type: "slot",
@@ -1253,16 +1345,19 @@ var selectMeta = {
1253
1345
  },
1254
1346
  showArrow: {
1255
1347
  type: "boolean",
1256
- description: "Whether to show the drop-down arrow"
1348
+ description: "Whether to show the drop-down arrow",
1349
+ defaultValueHint: true
1257
1350
  },
1258
1351
  showSearch: {
1259
1352
  type: "boolean",
1260
- description: "Whether show search input in single mode"
1353
+ description: "Whether show search input in single mode",
1354
+ defaultValueHint: false
1261
1355
  },
1262
1356
  size: {
1263
1357
  type: "choice",
1264
1358
  options: ["large", "middle", "small"],
1265
- description: "Set mode of Select"
1359
+ description: "Set mode of Select",
1360
+ defaultValueHint: "middle"
1266
1361
  },
1267
1362
  value: {
1268
1363
  type: "choice",
@@ -1283,7 +1378,8 @@ var selectMeta = {
1283
1378
  },
1284
1379
  virtual: {
1285
1380
  type: "boolean",
1286
- description: "Disable virtual scroll when set to false"
1381
+ description: "Disable virtual scroll when set to false",
1382
+ defaultValueHint: true
1287
1383
  },
1288
1384
  children: {
1289
1385
  type: "slot",
@@ -1349,31 +1445,38 @@ var sliderMeta = {
1349
1445
  props: {
1350
1446
  max: {
1351
1447
  type: "number",
1352
- description: "The maximum value the slider can slide to"
1448
+ description: "The maximum value the slider can slide to",
1449
+ defaultValueHint: 100
1353
1450
  },
1354
1451
  min: {
1355
1452
  type: "number",
1356
- description: "The minimum value the slider can slide to"
1453
+ description: "The minimum value the slider can slide to",
1454
+ defaultValueHint: 0
1357
1455
  },
1358
1456
  included: {
1359
1457
  type: "boolean",
1360
- description: "Make effect when marks not null, true means containment and false means coordinative"
1458
+ description: "Make effect when marks not null, true means containment and false means coordinative",
1459
+ defaultValueHint: true
1361
1460
  },
1362
1461
  disabled: {
1363
1462
  type: "boolean",
1364
- description: "If true, the slider will not be interactable"
1463
+ description: "If true, the slider will not be interactable",
1464
+ defaultValueHint: false
1365
1465
  },
1366
1466
  range: {
1367
1467
  type: "boolean",
1368
- description: "Dual thumb mode"
1468
+ description: "Dual thumb mode",
1469
+ defaultValueHint: false
1369
1470
  },
1370
1471
  reverse: {
1371
1472
  type: "boolean",
1372
- description: "Reverse the component"
1473
+ description: "Reverse the component",
1474
+ defaultValueHint: false
1373
1475
  },
1374
1476
  vertical: {
1375
1477
  type: "boolean",
1376
- description: "If true, the slider will be vertical"
1478
+ description: "If true, the slider will be vertical",
1479
+ defaultValueHint: false
1377
1480
  },
1378
1481
  value: {
1379
1482
  type: "number",
@@ -1422,21 +1525,25 @@ var switchMeta = {
1422
1525
  props: {
1423
1526
  autoFocus: {
1424
1527
  type: "boolean",
1425
- description: "Whether get focus when component mounted"
1528
+ description: "Whether get focus when component mounted",
1529
+ defaultValueHint: false
1426
1530
  },
1427
1531
  checked: {
1428
1532
  type: "boolean",
1429
1533
  editOnly: true,
1430
1534
  uncontrolledProp: "defaultChecked",
1431
- description: "Whether to set the initial state"
1535
+ description: "Whether to set the initial state",
1536
+ defaultValueHint: false
1432
1537
  },
1433
1538
  disabled: {
1434
1539
  type: "boolean",
1435
- description: "Disable switch"
1540
+ description: "Disable switch",
1541
+ defaultValueHint: false
1436
1542
  },
1437
1543
  loading: {
1438
1544
  type: "boolean",
1439
- description: "Loading state of switch"
1545
+ description: "Loading state of switch",
1546
+ defaultValueHint: false
1440
1547
  },
1441
1548
  checkedChildren: {
1442
1549
  type: "slot",
@@ -1451,7 +1558,8 @@ var switchMeta = {
1451
1558
  size: {
1452
1559
  type: "choice",
1453
1560
  options: ["small", "default"],
1454
- description: "The size of the Switch"
1561
+ description: "The size of the Switch",
1562
+ defaultValueHint: "default"
1455
1563
  }
1456
1564
  },
1457
1565
  importPath: "antd",