vant 3.5.0-beta.0 → 3.5.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.
Files changed (255) hide show
  1. package/es/action-bar/ActionBar.mjs +1 -1
  2. package/es/action-bar/index.mjs +2 -2
  3. package/es/action-bar-button/ActionBarButton.mjs +5 -5
  4. package/es/action-bar-button/index.mjs +2 -2
  5. package/es/action-bar-icon/ActionBarIcon.mjs +5 -5
  6. package/es/action-bar-icon/index.mjs +2 -2
  7. package/es/action-sheet/ActionSheet.mjs +5 -5
  8. package/es/action-sheet/index.mjs +2 -2
  9. package/es/address-edit/AddressEdit.mjs +11 -11
  10. package/es/address-edit/AddressEditDetail.mjs +3 -3
  11. package/es/address-edit/index.mjs +2 -2
  12. package/es/address-list/AddressList.mjs +4 -4
  13. package/es/address-list/AddressListItem.mjs +5 -5
  14. package/es/address-list/index.mjs +2 -2
  15. package/es/area/Area.mjs +5 -5
  16. package/es/area/index.mjs +2 -2
  17. package/es/badge/Badge.mjs +1 -1
  18. package/es/badge/index.mjs +2 -2
  19. package/es/button/Button.mjs +4 -4
  20. package/es/button/index.mjs +2 -2
  21. package/es/calendar/Calendar.mjs +12 -9
  22. package/es/calendar/CalendarDay.mjs +2 -2
  23. package/es/calendar/CalendarHeader.mjs +2 -2
  24. package/es/calendar/CalendarMonth.mjs +6 -6
  25. package/es/calendar/index.mjs +2 -2
  26. package/es/calendar/utils.mjs +1 -1
  27. package/es/card/Card.mjs +3 -3
  28. package/es/card/index.mjs +2 -2
  29. package/es/cascader/Cascader.mjs +4 -4
  30. package/es/cascader/index.mjs +2 -2
  31. package/es/cell/Cell.mjs +3 -3
  32. package/es/cell/index.mjs +2 -2
  33. package/es/cell-group/CellGroup.mjs +1 -1
  34. package/es/cell-group/index.mjs +2 -2
  35. package/es/checkbox/Checkbox.mjs +4 -4
  36. package/es/checkbox/Checker.mjs +2 -2
  37. package/es/checkbox/index.mjs +2 -2
  38. package/es/checkbox-group/CheckboxGroup.mjs +2 -2
  39. package/es/checkbox-group/index.mjs +2 -2
  40. package/es/circle/Circle.mjs +1 -1
  41. package/es/circle/index.mjs +2 -2
  42. package/es/col/Col.mjs +2 -2
  43. package/es/col/index.mjs +2 -2
  44. package/es/collapse/Collapse.mjs +1 -1
  45. package/es/collapse/index.mjs +2 -2
  46. package/es/collapse-item/CollapseItem.mjs +6 -6
  47. package/es/collapse-item/index.mjs +2 -2
  48. package/es/composables/use-expose.mjs +1 -1
  49. package/es/composables/use-lock-scroll.mjs +2 -2
  50. package/es/composables/use-placeholder.mjs +1 -1
  51. package/es/composables/use-visibility-change.mjs +1 -1
  52. package/es/config-provider/ConfigProvider.mjs +1 -1
  53. package/es/config-provider/index.mjs +2 -2
  54. package/es/contact-card/ContactCard.mjs +2 -2
  55. package/es/contact-card/index.mjs +2 -2
  56. package/es/contact-edit/ContactEdit.mjs +6 -6
  57. package/es/contact-edit/index.mjs +2 -2
  58. package/es/contact-list/ContactList.mjs +7 -7
  59. package/es/contact-list/index.mjs +2 -2
  60. package/es/count-down/CountDown.mjs +3 -3
  61. package/es/count-down/index.mjs +2 -2
  62. package/es/count-down/utils.mjs +1 -1
  63. package/es/coupon/Coupon.mjs +3 -3
  64. package/es/coupon/index.mjs +2 -2
  65. package/es/coupon/utils.mjs +1 -1
  66. package/es/coupon-cell/CouponCell.mjs +2 -2
  67. package/es/coupon-cell/index.mjs +2 -2
  68. package/es/coupon-list/CouponList.mjs +8 -8
  69. package/es/coupon-list/index.mjs +2 -2
  70. package/es/datetime-picker/DatePicker.mjs +4 -4
  71. package/es/datetime-picker/DatetimePicker.mjs +4 -4
  72. package/es/datetime-picker/TimePicker.mjs +4 -4
  73. package/es/datetime-picker/index.mjs +2 -2
  74. package/es/datetime-picker/utils.mjs +2 -2
  75. package/es/dialog/Dialog.d.ts +8 -0
  76. package/es/dialog/Dialog.mjs +12 -6
  77. package/es/dialog/function-call.d.ts +10 -0
  78. package/es/dialog/function-call.mjs +5 -3
  79. package/es/dialog/index.mjs +1 -1
  80. package/es/dialog/types.d.ts +3 -1
  81. package/es/divider/Divider.mjs +1 -1
  82. package/es/divider/index.mjs +2 -2
  83. package/es/dropdown-item/DropdownItem.mjs +6 -6
  84. package/es/dropdown-item/index.mjs +2 -2
  85. package/es/dropdown-menu/DropdownMenu.mjs +2 -2
  86. package/es/dropdown-menu/index.mjs +2 -2
  87. package/es/empty/Empty.mjs +2 -2
  88. package/es/empty/index.mjs +2 -2
  89. package/es/field/Field.mjs +7 -7
  90. package/es/field/index.mjs +2 -2
  91. package/es/field/utils.mjs +1 -1
  92. package/es/form/Form.mjs +2 -2
  93. package/es/form/index.mjs +2 -2
  94. package/es/grid/Grid.mjs +2 -2
  95. package/es/grid/index.mjs +2 -2
  96. package/es/grid-item/GridItem.mjs +5 -5
  97. package/es/grid-item/index.mjs +2 -2
  98. package/es/icon/Icon.mjs +3 -3
  99. package/es/icon/index.mjs +2 -2
  100. package/es/image/Image.mjs +2 -2
  101. package/es/image/index.mjs +2 -2
  102. package/es/image-preview/ImagePreview.mjs +6 -6
  103. package/es/image-preview/ImagePreviewItem.mjs +5 -5
  104. package/es/image-preview/function-call.mjs +3 -3
  105. package/es/image-preview/index.mjs +1 -1
  106. package/es/index-anchor/IndexAnchor.mjs +4 -4
  107. package/es/index-anchor/index.mjs +2 -2
  108. package/es/index-bar/IndexBar.mjs +3 -3
  109. package/es/index-bar/index.mjs +2 -2
  110. package/es/index.d.ts +1 -1
  111. package/es/index.mjs +172 -172
  112. package/es/lazyload/index.mjs +1 -1
  113. package/es/lazyload/vue-lazyload/index.mjs +4 -4
  114. package/es/lazyload/vue-lazyload/lazy-container.mjs +1 -1
  115. package/es/lazyload/vue-lazyload/lazy-image.mjs +2 -2
  116. package/es/lazyload/vue-lazyload/lazy.mjs +3 -3
  117. package/es/lazyload/vue-lazyload/listener.mjs +2 -2
  118. package/es/list/List.mjs +4 -4
  119. package/es/list/index.mjs +2 -2
  120. package/es/loading/Loading.mjs +1 -1
  121. package/es/loading/index.mjs +2 -2
  122. package/es/locale/index.mjs +2 -2
  123. package/es/nav-bar/NavBar.mjs +3 -3
  124. package/es/nav-bar/index.mjs +2 -2
  125. package/es/notice-bar/NoticeBar.mjs +4 -4
  126. package/es/notice-bar/index.mjs +2 -2
  127. package/es/notify/Notify.mjs +3 -3
  128. package/es/notify/function-call.mjs +3 -3
  129. package/es/notify/index.mjs +1 -1
  130. package/es/number-keyboard/NumberKeyboard.mjs +2 -2
  131. package/es/number-keyboard/NumberKeyboardKey.mjs +3 -3
  132. package/es/number-keyboard/index.mjs +2 -2
  133. package/es/overlay/Overlay.mjs +2 -2
  134. package/es/overlay/index.mjs +2 -2
  135. package/es/pagination/Pagination.mjs +1 -1
  136. package/es/pagination/index.mjs +2 -2
  137. package/es/password-input/PasswordInput.mjs +1 -1
  138. package/es/password-input/index.mjs +2 -2
  139. package/es/picker/Picker.mjs +5 -5
  140. package/es/picker/PickerColumn.mjs +6 -4
  141. package/es/picker/index.mjs +2 -2
  142. package/es/popover/Popover.mjs +3 -3
  143. package/es/popover/index.mjs +2 -2
  144. package/es/popup/Popup.mjs +9 -9
  145. package/es/popup/index.mjs +2 -2
  146. package/es/popup/shared.mjs +1 -1
  147. package/es/progress/Progress.mjs +1 -1
  148. package/es/progress/index.mjs +2 -2
  149. package/es/pull-refresh/PullRefresh.d.ts +2 -1
  150. package/es/pull-refresh/PullRefresh.mjs +8 -4
  151. package/es/pull-refresh/index.d.ts +2 -1
  152. package/es/pull-refresh/index.mjs +2 -2
  153. package/es/radio/Radio.mjs +3 -3
  154. package/es/radio/index.mjs +2 -2
  155. package/es/radio-group/RadioGroup.mjs +1 -1
  156. package/es/radio-group/index.mjs +2 -2
  157. package/es/rate/Rate.mjs +4 -4
  158. package/es/rate/index.mjs +2 -2
  159. package/es/row/Row.mjs +1 -1
  160. package/es/row/index.mjs +2 -2
  161. package/es/search/Search.mjs +5 -5
  162. package/es/search/index.mjs +2 -2
  163. package/es/share-sheet/ShareSheet.mjs +4 -4
  164. package/es/share-sheet/index.mjs +2 -2
  165. package/es/sidebar/Sidebar.mjs +1 -1
  166. package/es/sidebar/index.mjs +2 -2
  167. package/es/sidebar-item/SidebarItem.mjs +4 -4
  168. package/es/sidebar-item/index.mjs +2 -2
  169. package/es/skeleton/Skeleton.mjs +1 -1
  170. package/es/skeleton/index.mjs +2 -2
  171. package/es/slider/Slider.mjs +2 -2
  172. package/es/slider/index.mjs +2 -2
  173. package/es/step/Step.mjs +3 -3
  174. package/es/step/index.mjs +2 -2
  175. package/es/stepper/Stepper.mjs +1 -1
  176. package/es/stepper/index.mjs +2 -2
  177. package/es/steps/Steps.mjs +1 -1
  178. package/es/steps/index.mjs +2 -2
  179. package/es/sticky/Sticky.mjs +2 -2
  180. package/es/sticky/index.mjs +2 -2
  181. package/es/submit-bar/SubmitBar.mjs +3 -3
  182. package/es/submit-bar/index.mjs +2 -2
  183. package/es/swipe/Swipe.mjs +4 -4
  184. package/es/swipe/index.mjs +2 -2
  185. package/es/swipe-cell/SwipeCell.mjs +3 -3
  186. package/es/swipe-cell/index.mjs +2 -2
  187. package/es/swipe-item/SwipeItem.mjs +3 -3
  188. package/es/swipe-item/index.mjs +2 -2
  189. package/es/switch/Switch.mjs +4 -3
  190. package/es/switch/index.mjs +2 -2
  191. package/es/tab/Tab.mjs +7 -7
  192. package/es/tab/index.mjs +2 -2
  193. package/es/tabbar/Tabbar.mjs +2 -2
  194. package/es/tabbar/index.mjs +2 -2
  195. package/es/tabbar-item/TabbarItem.mjs +5 -5
  196. package/es/tabbar-item/index.mjs +2 -2
  197. package/es/tabs/Tabs.mjs +10 -10
  198. package/es/tabs/TabsContent.mjs +2 -2
  199. package/es/tabs/TabsTitle.mjs +2 -2
  200. package/es/tabs/index.mjs +2 -2
  201. package/es/tabs/utils.mjs +1 -1
  202. package/es/tag/Tag.mjs +2 -2
  203. package/es/tag/index.mjs +2 -2
  204. package/es/toast/Toast.mjs +5 -5
  205. package/es/toast/function-call.d.ts +5 -6
  206. package/es/toast/function-call.mjs +3 -3
  207. package/es/toast/index.mjs +1 -1
  208. package/es/toast/types.d.ts +10 -1
  209. package/es/tree-select/TreeSelect.mjs +4 -4
  210. package/es/tree-select/index.mjs +2 -2
  211. package/es/uploader/Uploader.d.ts +3 -3
  212. package/es/uploader/Uploader.mjs +6 -6
  213. package/es/uploader/UploaderPreviewItem.mjs +5 -5
  214. package/es/uploader/index.d.ts +2 -2
  215. package/es/uploader/index.mjs +2 -2
  216. package/es/uploader/utils.mjs +1 -1
  217. package/es/utils/create.mjs +4 -4
  218. package/es/utils/deep-assign.mjs +1 -1
  219. package/es/utils/deep-clone.mjs +1 -1
  220. package/es/utils/dom.mjs +1 -1
  221. package/es/utils/format.mjs +3 -3
  222. package/es/utils/index.mjs +9 -9
  223. package/es/utils/interceptor.mjs +2 -2
  224. package/es/utils/mount-component.mjs +2 -2
  225. package/es/utils/validate.mjs +1 -1
  226. package/es/utils/with-install.mjs +1 -1
  227. package/lib/calendar/Calendar.js +3 -0
  228. package/lib/dialog/Dialog.d.ts +8 -0
  229. package/lib/dialog/Dialog.js +6 -0
  230. package/lib/dialog/function-call.d.ts +10 -0
  231. package/lib/dialog/function-call.js +2 -0
  232. package/lib/dialog/types.d.ts +3 -1
  233. package/lib/index.d.ts +1 -1
  234. package/lib/index.js +1 -1
  235. package/lib/picker/Picker.js +1 -1
  236. package/lib/picker/PickerColumn.js +2 -0
  237. package/lib/popup/Popup.js +1 -1
  238. package/lib/pull-refresh/PullRefresh.d.ts +2 -1
  239. package/lib/pull-refresh/PullRefresh.js +5 -1
  240. package/lib/pull-refresh/index.d.ts +2 -1
  241. package/lib/switch/Switch.js +2 -1
  242. package/lib/toast/function-call.d.ts +5 -6
  243. package/lib/toast/types.d.ts +10 -1
  244. package/lib/uploader/Uploader.d.ts +3 -3
  245. package/lib/uploader/index.d.ts +2 -2
  246. package/lib/vant.cjs.js +23 -5
  247. package/lib/vant.cjs.min.js +1 -1
  248. package/lib/vant.es.js +23 -5
  249. package/lib/vant.es.min.js +23 -5
  250. package/lib/vant.js +23 -5
  251. package/lib/vant.min.js +1 -1
  252. package/package.json +3 -3
  253. package/vetur/attributes.json +398 -390
  254. package/vetur/tags.json +140 -138
  255. package/vetur/web-types.json +1526 -1493
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "framework": "vue",
4
4
  "name": "vant",
5
- "version": "3.5.0-beta.0",
5
+ "version": "3.5.1",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "tags": [
@@ -833,198 +833,6 @@
833
833
  }
834
834
  ]
835
835
  },
836
- {
837
- "name": "van-area",
838
- "slots": [
839
- {
840
- "name": "toolbar",
841
- "description": "Custom toolbar content"
842
- },
843
- {
844
- "name": "title",
845
- "description": "Custom title"
846
- },
847
- {
848
- "name": "confirm",
849
- "description": "Custom confirm button text"
850
- },
851
- {
852
- "name": "cancel",
853
- "description": "Custom cancel button text"
854
- },
855
- {
856
- "name": "columns-top",
857
- "description": "Custom content above columns"
858
- },
859
- {
860
- "name": "columns-bottom",
861
- "description": "Custom content below columns"
862
- }
863
- ],
864
- "events": [
865
- {
866
- "name": "confirm",
867
- "description": "Emitted when the confirm button is clicked",
868
- "arguments": [
869
- {
870
- "name": "result",
871
- "type": "ConfirmResult"
872
- }
873
- ]
874
- },
875
- {
876
- "name": "cancel",
877
- "description": "Emitted when the cancel button is clicked",
878
- "arguments": []
879
- },
880
- {
881
- "name": "change",
882
- "description": "Emitted when current option changed",
883
- "arguments": [
884
- {
885
- "name": "current",
886
- "type": "values"
887
- },
888
- {
889
- "name": "column",
890
- "type": "index"
891
- }
892
- ]
893
- }
894
- ],
895
- "attributes": [
896
- {
897
- "name": "value",
898
- "default": "-",
899
- "description": "the `code` of selected area",
900
- "options": [],
901
- "value": {
902
- "type": "string",
903
- "kind": "expression"
904
- }
905
- },
906
- {
907
- "name": "title",
908
- "default": "-",
909
- "description": "Toolbar title",
910
- "options": [],
911
- "value": {
912
- "type": "string",
913
- "kind": "expression"
914
- }
915
- },
916
- {
917
- "name": "confirm-button-text",
918
- "default": "`Confirm`",
919
- "description": "Text of confirm button",
920
- "options": [],
921
- "value": {
922
- "type": "string",
923
- "kind": "expression"
924
- }
925
- },
926
- {
927
- "name": "cancel-button-text",
928
- "default": "`Cancel`",
929
- "description": "Text of cancel button",
930
- "options": [],
931
- "value": {
932
- "type": "string",
933
- "kind": "expression"
934
- }
935
- },
936
- {
937
- "name": "area-list",
938
- "default": "-",
939
- "description": "Area list data",
940
- "options": [],
941
- "value": {
942
- "type": "object",
943
- "kind": "expression"
944
- }
945
- },
946
- {
947
- "name": "columns-placeholder",
948
- "default": "`[]`",
949
- "description": "Placeholder of columns",
950
- "options": [],
951
- "value": {
952
- "type": "string[]",
953
- "kind": "expression"
954
- }
955
- },
956
- {
957
- "name": "loading",
958
- "default": "`false`",
959
- "description": "Whether to show loading prompt",
960
- "options": [],
961
- "value": {
962
- "type": "boolean",
963
- "kind": "expression"
964
- }
965
- },
966
- {
967
- "name": "readonly",
968
- "default": "`false`",
969
- "description": "Whether to be readonly",
970
- "options": [],
971
- "value": {
972
- "type": "boolean",
973
- "kind": "expression"
974
- }
975
- },
976
- {
977
- "name": "item-height",
978
- "default": "`44`",
979
- "description": "Option height, supports `px` `vw` `vh` `rem` unit, default `px`",
980
- "options": [],
981
- "value": {
982
- "type": "number | string",
983
- "kind": "expression"
984
- }
985
- },
986
- {
987
- "name": "columns-num",
988
- "default": "`3`",
989
- "description": "Level of picker",
990
- "options": [],
991
- "value": {
992
- "type": "number | string",
993
- "kind": "expression"
994
- }
995
- },
996
- {
997
- "name": "visible-item-count",
998
- "default": "`6`",
999
- "description": "Count of visible columns",
1000
- "options": [],
1001
- "value": {
1002
- "type": "number | string",
1003
- "kind": "expression"
1004
- }
1005
- },
1006
- {
1007
- "name": "swipe-duration",
1008
- "default": "`1000`",
1009
- "description": "Duration of the momentum animation, unit `ms`",
1010
- "options": [],
1011
- "value": {
1012
- "type": "number | string",
1013
- "kind": "expression"
1014
- }
1015
- },
1016
- {
1017
- "name": "is-oversea-code",
1018
- "default": "-",
1019
- "description": "The method to validate oversea code",
1020
- "options": [],
1021
- "value": {
1022
- "type": "() => boolean",
1023
- "kind": "expression"
1024
- }
1025
- }
1026
- ]
1027
- },
1028
836
  {
1029
837
  "name": "van-badge",
1030
838
  "slots": [
@@ -1282,48 +1090,69 @@
1282
1090
  ]
1283
1091
  },
1284
1092
  {
1285
- "name": "van-button",
1093
+ "name": "van-area",
1286
1094
  "slots": [
1287
1095
  {
1288
- "name": "default",
1289
- "description": "Default slot"
1096
+ "name": "toolbar",
1097
+ "description": "Custom toolbar content"
1290
1098
  },
1291
1099
  {
1292
- "name": "icon",
1293
- "description": "Custom icon"
1100
+ "name": "title",
1101
+ "description": "Custom title"
1294
1102
  },
1295
1103
  {
1296
- "name": "loading",
1297
- "description": "Custom loading icon"
1104
+ "name": "confirm",
1105
+ "description": "Custom confirm button text"
1106
+ },
1107
+ {
1108
+ "name": "cancel",
1109
+ "description": "Custom cancel button text"
1110
+ },
1111
+ {
1112
+ "name": "columns-top",
1113
+ "description": "Custom content above columns"
1114
+ },
1115
+ {
1116
+ "name": "columns-bottom",
1117
+ "description": "Custom content below columns"
1298
1118
  }
1299
1119
  ],
1300
1120
  "events": [
1301
1121
  {
1302
- "name": "click",
1303
- "description": "Emitted when button is clicked and not disabled or loading",
1122
+ "name": "confirm",
1123
+ "description": "Emitted when the confirm button is clicked",
1304
1124
  "arguments": [
1305
1125
  {
1306
- "name": "event",
1307
- "type": "MouseEvent"
1126
+ "name": "result",
1127
+ "type": "ConfirmResult"
1308
1128
  }
1309
1129
  ]
1310
1130
  },
1311
1131
  {
1312
- "name": "touchstart",
1313
- "description": "Emitted when button is touched",
1132
+ "name": "cancel",
1133
+ "description": "Emitted when the cancel button is clicked",
1134
+ "arguments": []
1135
+ },
1136
+ {
1137
+ "name": "change",
1138
+ "description": "Emitted when current option changed",
1314
1139
  "arguments": [
1315
1140
  {
1316
- "name": "event",
1317
- "type": "TouchEvent"
1141
+ "name": "current",
1142
+ "type": "values"
1143
+ },
1144
+ {
1145
+ "name": "column",
1146
+ "type": "index"
1318
1147
  }
1319
1148
  ]
1320
1149
  }
1321
1150
  ],
1322
1151
  "attributes": [
1323
1152
  {
1324
- "name": "type",
1325
- "default": "`default`",
1326
- "description": "Can be set to `primary` `success` `warning` `danger`",
1153
+ "name": "value",
1154
+ "default": "-",
1155
+ "description": "the `code` of selected area",
1327
1156
  "options": [],
1328
1157
  "value": {
1329
1158
  "type": "string",
@@ -1331,9 +1160,9 @@
1331
1160
  }
1332
1161
  },
1333
1162
  {
1334
- "name": "size",
1335
- "default": "`normal`",
1336
- "description": "Can be set to `large` `small` `mini`",
1163
+ "name": "title",
1164
+ "default": "-",
1165
+ "description": "Toolbar title",
1337
1166
  "options": [],
1338
1167
  "value": {
1339
1168
  "type": "string",
@@ -1341,7 +1170,178 @@
1341
1170
  }
1342
1171
  },
1343
1172
  {
1344
- "name": "text",
1173
+ "name": "confirm-button-text",
1174
+ "default": "`Confirm`",
1175
+ "description": "Text of confirm button",
1176
+ "options": [],
1177
+ "value": {
1178
+ "type": "string",
1179
+ "kind": "expression"
1180
+ }
1181
+ },
1182
+ {
1183
+ "name": "cancel-button-text",
1184
+ "default": "`Cancel`",
1185
+ "description": "Text of cancel button",
1186
+ "options": [],
1187
+ "value": {
1188
+ "type": "string",
1189
+ "kind": "expression"
1190
+ }
1191
+ },
1192
+ {
1193
+ "name": "area-list",
1194
+ "default": "-",
1195
+ "description": "Area list data",
1196
+ "options": [],
1197
+ "value": {
1198
+ "type": "object",
1199
+ "kind": "expression"
1200
+ }
1201
+ },
1202
+ {
1203
+ "name": "columns-placeholder",
1204
+ "default": "`[]`",
1205
+ "description": "Placeholder of columns",
1206
+ "options": [],
1207
+ "value": {
1208
+ "type": "string[]",
1209
+ "kind": "expression"
1210
+ }
1211
+ },
1212
+ {
1213
+ "name": "loading",
1214
+ "default": "`false`",
1215
+ "description": "Whether to show loading prompt",
1216
+ "options": [],
1217
+ "value": {
1218
+ "type": "boolean",
1219
+ "kind": "expression"
1220
+ }
1221
+ },
1222
+ {
1223
+ "name": "readonly",
1224
+ "default": "`false`",
1225
+ "description": "Whether to be readonly",
1226
+ "options": [],
1227
+ "value": {
1228
+ "type": "boolean",
1229
+ "kind": "expression"
1230
+ }
1231
+ },
1232
+ {
1233
+ "name": "item-height",
1234
+ "default": "`44`",
1235
+ "description": "Option height, supports `px` `vw` `vh` `rem` unit, default `px`",
1236
+ "options": [],
1237
+ "value": {
1238
+ "type": "number | string",
1239
+ "kind": "expression"
1240
+ }
1241
+ },
1242
+ {
1243
+ "name": "columns-num",
1244
+ "default": "`3`",
1245
+ "description": "Level of picker",
1246
+ "options": [],
1247
+ "value": {
1248
+ "type": "number | string",
1249
+ "kind": "expression"
1250
+ }
1251
+ },
1252
+ {
1253
+ "name": "visible-item-count",
1254
+ "default": "`6`",
1255
+ "description": "Count of visible columns",
1256
+ "options": [],
1257
+ "value": {
1258
+ "type": "number | string",
1259
+ "kind": "expression"
1260
+ }
1261
+ },
1262
+ {
1263
+ "name": "swipe-duration",
1264
+ "default": "`1000`",
1265
+ "description": "Duration of the momentum animation, unit `ms`",
1266
+ "options": [],
1267
+ "value": {
1268
+ "type": "number | string",
1269
+ "kind": "expression"
1270
+ }
1271
+ },
1272
+ {
1273
+ "name": "is-oversea-code",
1274
+ "default": "-",
1275
+ "description": "The method to validate oversea code",
1276
+ "options": [],
1277
+ "value": {
1278
+ "type": "() => boolean",
1279
+ "kind": "expression"
1280
+ }
1281
+ }
1282
+ ]
1283
+ },
1284
+ {
1285
+ "name": "van-button",
1286
+ "slots": [
1287
+ {
1288
+ "name": "default",
1289
+ "description": "Default slot"
1290
+ },
1291
+ {
1292
+ "name": "icon",
1293
+ "description": "Custom icon"
1294
+ },
1295
+ {
1296
+ "name": "loading",
1297
+ "description": "Custom loading icon"
1298
+ }
1299
+ ],
1300
+ "events": [
1301
+ {
1302
+ "name": "click",
1303
+ "description": "Emitted when button is clicked and not disabled or loading",
1304
+ "arguments": [
1305
+ {
1306
+ "name": "event",
1307
+ "type": "MouseEvent"
1308
+ }
1309
+ ]
1310
+ },
1311
+ {
1312
+ "name": "touchstart",
1313
+ "description": "Emitted when button is touched",
1314
+ "arguments": [
1315
+ {
1316
+ "name": "event",
1317
+ "type": "TouchEvent"
1318
+ }
1319
+ ]
1320
+ }
1321
+ ],
1322
+ "attributes": [
1323
+ {
1324
+ "name": "type",
1325
+ "default": "`default`",
1326
+ "description": "Can be set to `primary` `success` `warning` `danger`",
1327
+ "options": [],
1328
+ "value": {
1329
+ "type": "string",
1330
+ "kind": "expression"
1331
+ }
1332
+ },
1333
+ {
1334
+ "name": "size",
1335
+ "default": "`normal`",
1336
+ "description": "Can be set to `large` `small` `mini`",
1337
+ "options": [],
1338
+ "value": {
1339
+ "type": "string",
1340
+ "kind": "expression"
1341
+ }
1342
+ },
1343
+ {
1344
+ "name": "text",
1345
1345
  "default": "-",
1346
1346
  "description": "Text",
1347
1347
  "options": [],
@@ -2922,103 +2922,117 @@
2922
2922
  ]
2923
2923
  },
2924
2924
  {
2925
- "name": "van-row",
2925
+ "name": "van-collapse",
2926
2926
  "slots": [],
2927
2927
  "events": [
2928
2928
  {
2929
- "name": "click",
2930
- "description": "Emitted when the row is clicked",
2929
+ "name": "change",
2930
+ "description": "Emitted when switching panel",
2931
2931
  "arguments": [
2932
2932
  {
2933
- "name": "event",
2934
- "type": "MouseEvent"
2933
+ "name": "activeNames",
2934
+ "type": "string | number | Array<string | number>"
2935
2935
  }
2936
2936
  ]
2937
2937
  }
2938
2938
  ],
2939
2939
  "attributes": [
2940
2940
  {
2941
- "name": "gutter",
2941
+ "name": "v-model",
2942
2942
  "default": "-",
2943
- "description": "Grid spacing(px)",
2943
+ "description": "Names of current active panels",
2944
2944
  "options": [],
2945
2945
  "value": {
2946
- "type": "number | string",
2946
+ "type": "accordion mode: _number | string_<br>non-accordion mode: _(number | string)[]",
2947
2947
  "kind": "expression"
2948
2948
  }
2949
2949
  },
2950
2950
  {
2951
- "name": "tag",
2952
- "default": "`div`",
2953
- "description": "Custom element tag",
2951
+ "name": "accordion",
2952
+ "default": "`false`",
2953
+ "description": "Whether to be accordion mode",
2954
2954
  "options": [],
2955
2955
  "value": {
2956
- "type": "string",
2956
+ "type": "boolean",
2957
2957
  "kind": "expression"
2958
2958
  }
2959
2959
  },
2960
2960
  {
2961
- "name": "justify",
2962
- "default": "`start`",
2963
- "description": "Flex main axis, can be set to end/center/space-around/space-between",
2961
+ "name": "border",
2962
+ "default": "`true`",
2963
+ "description": "Whether to show outer border",
2964
2964
  "options": [],
2965
2965
  "value": {
2966
- "type": "string",
2966
+ "type": "boolean",
2967
2967
  "kind": "expression"
2968
2968
  }
2969
+ }
2970
+ ]
2971
+ },
2972
+ {
2973
+ "name": "van-collapse-item",
2974
+ "slots": [
2975
+ {
2976
+ "name": "default",
2977
+ "description": "Content"
2969
2978
  },
2970
2979
  {
2971
- "name": "align",
2972
- "default": "`top`",
2973
- "description": "Flex cross axis, be set to center/bottom",
2980
+ "name": "title",
2981
+ "description": "Custom header title"
2982
+ },
2983
+ {
2984
+ "name": "value",
2985
+ "description": "Custom header value"
2986
+ },
2987
+ {
2988
+ "name": "label",
2989
+ "description": "Custom header label"
2990
+ },
2991
+ {
2992
+ "name": "icon",
2993
+ "description": "Custom header left icon"
2994
+ },
2995
+ {
2996
+ "name": "right-icon",
2997
+ "description": "Custom header right icon"
2998
+ }
2999
+ ],
3000
+ "events": [],
3001
+ "attributes": [
3002
+ {
3003
+ "name": "name",
3004
+ "default": "`index`",
3005
+ "description": "Name",
2974
3006
  "options": [],
2975
3007
  "value": {
2976
- "type": "string",
3008
+ "type": "number | string",
2977
3009
  "kind": "expression"
2978
3010
  }
2979
3011
  },
2980
3012
  {
2981
- "name": "wrap",
2982
- "default": "`true`",
2983
- "description": "Whether to wrap",
3013
+ "name": "icon",
3014
+ "default": "-",
3015
+ "description": "Left Icon",
2984
3016
  "options": [],
2985
3017
  "value": {
2986
- "type": "boolean",
3018
+ "type": "string",
2987
3019
  "kind": "expression"
2988
3020
  }
2989
- }
2990
- ]
2991
- },
2992
- {
2993
- "name": "van-col",
2994
- "slots": [],
2995
- "events": [
2996
- {
2997
- "name": "click",
2998
- "description": "Emitted when the col is clicked",
2999
- "arguments": [
3000
- {
3001
- "name": "event",
3002
- "type": "MouseEvent"
3003
- }
3004
- ]
3005
- }
3006
- ],
3007
- "attributes": [
3021
+ },
3008
3022
  {
3009
- "name": "span",
3023
+ "name": "size",
3010
3024
  "default": "-",
3011
- "description": "number of column the grid spans",
3025
+ "description": "Title size, can be set to `large`",
3012
3026
  "options": [],
3013
3027
  "value": {
3014
- "type": "number | string",
3028
+ "type": "string",
3015
3029
  "kind": "expression"
3016
3030
  }
3017
3031
  },
3018
3032
  {
3019
- "name": "offset",
3033
+ "name": "title",
3020
3034
  "default": "-",
3021
- "description": "number of spacing on the left side of the grid",
3035
+ "description": "Title",
3022
3036
  "options": [],
3023
3037
  "value": {
3024
3038
  "type": "number | string",
@@ -3026,47 +3040,29 @@
3026
3040
  }
3027
3041
  },
3028
3042
  {
3029
- "name": "tag",
3030
- "default": "`div`",
3031
- "description": "Custom element tag",
3043
+ "name": "value",
3044
+ "default": "-",
3045
+ "description": "Right text",
3032
3046
  "options": [],
3033
3047
  "value": {
3034
- "type": "string",
3048
+ "type": "number | string",
3035
3049
  "kind": "expression"
3036
3050
  }
3037
- }
3038
- ]
3039
- },
3040
- {
3041
- "name": "van-collapse",
3042
- "slots": [],
3043
- "events": [
3044
- {
3045
- "name": "change",
3046
- "description": "Emitted when switching panel",
3047
- "arguments": [
3048
- {
3049
- "name": "activeNames",
3050
- "type": "string | number | Array<string | number>"
3051
- }
3052
- ]
3053
- }
3054
- ],
3055
- "attributes": [
3051
+ },
3056
3052
  {
3057
- "name": "v-model",
3053
+ "name": "label",
3058
3054
  "default": "-",
3059
- "description": "Names of current active panels",
3055
+ "description": "Description below the title",
3060
3056
  "options": [],
3061
3057
  "value": {
3062
- "type": "accordion mode: _number | string_<br>non-accordion mode: _(number | string)[]",
3058
+ "type": "string",
3063
3059
  "kind": "expression"
3064
3060
  }
3065
3061
  },
3066
3062
  {
3067
- "name": "accordion",
3068
- "default": "`false`",
3069
- "description": "Whether to be accordion mode",
3063
+ "name": "border",
3064
+ "default": "`true`",
3065
+ "description": "Whether to show inner border",
3070
3066
  "options": [],
3071
3067
  "value": {
3072
3068
  "type": "boolean",
@@ -3074,181 +3070,185 @@
3074
3070
  }
3075
3071
  },
3076
3072
  {
3077
- "name": "border",
3078
- "default": "`true`",
3079
- "description": "Whether to show outer border",
3073
+ "name": "disabled",
3074
+ "default": "`false`",
3075
+ "description": "Whether to disabled collapse",
3080
3076
  "options": [],
3081
3077
  "value": {
3082
3078
  "type": "boolean",
3083
3079
  "kind": "expression"
3084
3080
  }
3085
- }
3086
- ]
3087
- },
3088
- {
3089
- "name": "van-collapse-item",
3090
- "slots": [
3091
- {
3092
- "name": "default",
3093
- "description": "Content"
3094
- },
3095
- {
3096
- "name": "title",
3097
- "description": "Custom header title"
3098
- },
3099
- {
3100
- "name": "value",
3101
- "description": "Custom header value"
3102
- },
3103
- {
3104
- "name": "label",
3105
- "description": "Custom header label"
3106
- },
3107
- {
3108
- "name": "icon",
3109
- "description": "Custom header left icon"
3110
3081
  },
3111
3082
  {
3112
- "name": "right-icon",
3113
- "description": "Custom header right icon"
3114
- }
3115
- ],
3116
- "events": [],
3117
- "attributes": [
3118
- {
3119
- "name": "name",
3120
- "default": "`index`",
3121
- "description": "Name",
3083
+ "name": "readonly",
3084
+ "default": "`false`",
3085
+ "description": "Whether to be readonly",
3122
3086
  "options": [],
3123
3087
  "value": {
3124
- "type": "number | string",
3088
+ "type": "boolean",
3125
3089
  "kind": "expression"
3126
3090
  }
3127
3091
  },
3128
3092
  {
3129
- "name": "icon",
3130
- "default": "-",
3131
- "description": "Left Icon",
3093
+ "name": "is-link",
3094
+ "default": "`true`",
3095
+ "description": "Whether to show link icon",
3132
3096
  "options": [],
3133
3097
  "value": {
3134
- "type": "string",
3098
+ "type": "boolean",
3135
3099
  "kind": "expression"
3136
3100
  }
3137
3101
  },
3138
3102
  {
3139
- "name": "size",
3140
- "default": "-",
3141
- "description": "Title size, can be set to `large`",
3103
+ "name": "lazy-render",
3104
+ "default": "`true`",
3105
+ "description": "Whether to lazy render util opened",
3142
3106
  "options": [],
3143
3107
  "value": {
3144
- "type": "string",
3108
+ "type": "boolean",
3145
3109
  "kind": "expression"
3146
3110
  }
3147
3111
  },
3148
3112
  {
3149
- "name": "title",
3113
+ "name": "title-class",
3150
3114
  "default": "-",
3151
- "description": "Title",
3115
+ "description": "Title className",
3152
3116
  "options": [],
3153
3117
  "value": {
3154
- "type": "number | string",
3118
+ "type": "string",
3155
3119
  "kind": "expression"
3156
3120
  }
3157
3121
  },
3158
3122
  {
3159
- "name": "value",
3123
+ "name": "value-class",
3160
3124
  "default": "-",
3161
- "description": "Right text",
3125
+ "description": "Value className",
3162
3126
  "options": [],
3163
3127
  "value": {
3164
- "type": "number | string",
3128
+ "type": "string",
3165
3129
  "kind": "expression"
3166
3130
  }
3167
3131
  },
3168
3132
  {
3169
- "name": "label",
3133
+ "name": "label-class",
3170
3134
  "default": "-",
3171
- "description": "Description below the title",
3135
+ "description": "Label className",
3172
3136
  "options": [],
3173
3137
  "value": {
3174
3138
  "type": "string",
3175
3139
  "kind": "expression"
3176
3140
  }
3177
- },
3141
+ }
3142
+ ]
3143
+ },
3144
+ {
3145
+ "name": "van-row",
3146
+ "slots": [],
3147
+ "events": [
3178
3148
  {
3179
- "name": "border",
3180
- "default": "`true`",
3181
- "description": "Whether to show inner border",
3149
+ "name": "click",
3150
+ "description": "Emitted when the row is clicked",
3151
+ "arguments": [
3152
+ {
3153
+ "name": "event",
3154
+ "type": "MouseEvent"
3155
+ }
3156
+ ]
3157
+ }
3158
+ ],
3159
+ "attributes": [
3160
+ {
3161
+ "name": "gutter",
3162
+ "default": "-",
3163
+ "description": "Grid spacing(px)",
3182
3164
  "options": [],
3183
3165
  "value": {
3184
- "type": "boolean",
3166
+ "type": "number | string",
3185
3167
  "kind": "expression"
3186
3168
  }
3187
3169
  },
3188
3170
  {
3189
- "name": "disabled",
3190
- "default": "`false`",
3191
- "description": "Whether to disabled collapse",
3171
+ "name": "tag",
3172
+ "default": "`div`",
3173
+ "description": "Custom element tag",
3192
3174
  "options": [],
3193
3175
  "value": {
3194
- "type": "boolean",
3176
+ "type": "string",
3195
3177
  "kind": "expression"
3196
3178
  }
3197
3179
  },
3198
3180
  {
3199
- "name": "readonly",
3200
- "default": "`false`",
3201
- "description": "Whether to be readonly",
3181
+ "name": "justify",
3182
+ "default": "`start`",
3183
+ "description": "Flex main axis, can be set to end/center/space-around/space-between",
3202
3184
  "options": [],
3203
3185
  "value": {
3204
- "type": "boolean",
3186
+ "type": "string",
3205
3187
  "kind": "expression"
3206
3188
  }
3207
3189
  },
3208
3190
  {
3209
- "name": "is-link",
3210
- "default": "`true`",
3211
- "description": "Whether to show link icon",
3191
+ "name": "align",
3192
+ "default": "`top`",
3193
+ "description": "Flex cross axis, be set to center/bottom",
3212
3194
  "options": [],
3213
3195
  "value": {
3214
- "type": "boolean",
3196
+ "type": "string",
3215
3197
  "kind": "expression"
3216
3198
  }
3217
3199
  },
3218
3200
  {
3219
- "name": "lazy-render",
3201
+ "name": "wrap",
3220
3202
  "default": "`true`",
3221
- "description": "Whether to lazy render util opened",
3203
+ "description": "Whether to wrap",
3222
3204
  "options": [],
3223
3205
  "value": {
3224
3206
  "type": "boolean",
3225
3207
  "kind": "expression"
3226
3208
  }
3227
- },
3209
+ }
3210
+ ]
3211
+ },
3212
+ {
3213
+ "name": "van-col",
3214
+ "slots": [],
3215
+ "events": [
3228
3216
  {
3229
- "name": "title-class",
3217
+ "name": "click",
3218
+ "description": "Emitted when the col is clicked",
3219
+ "arguments": [
3220
+ {
3221
+ "name": "event",
3222
+ "type": "MouseEvent"
3223
+ }
3224
+ ]
3225
+ }
3226
+ ],
3227
+ "attributes": [
3228
+ {
3229
+ "name": "span",
3230
3230
  "default": "-",
3231
- "description": "Title className",
3231
+ "description": "number of column the grid spans",
3232
3232
  "options": [],
3233
3233
  "value": {
3234
- "type": "string",
3234
+ "type": "number | string",
3235
3235
  "kind": "expression"
3236
3236
  }
3237
3237
  },
3238
3238
  {
3239
- "name": "value-class",
3239
+ "name": "offset",
3240
3240
  "default": "-",
3241
- "description": "Value className",
3241
+ "description": "number of spacing on the left side of the grid",
3242
3242
  "options": [],
3243
3243
  "value": {
3244
- "type": "string",
3244
+ "type": "number | string",
3245
3245
  "kind": "expression"
3246
3246
  }
3247
3247
  },
3248
3248
  {
3249
- "name": "label-class",
3250
- "default": "-",
3251
- "description": "Label className",
3249
+ "name": "tag",
3250
+ "default": "`div`",
3251
+ "description": "Custom element tag",
3252
3252
  "options": [],
3253
3253
  "value": {
3254
3254
  "type": "string",
@@ -3610,111 +3610,69 @@
3610
3610
  ]
3611
3611
  },
3612
3612
  {
3613
- "name": "van-coupon-cell",
3614
- "slots": [],
3615
- "events": [],
3616
- "attributes": [
3613
+ "name": "van-datetime-picker",
3614
+ "slots": [
3615
+ {
3616
+ "name": "default",
3617
+ "description": "Custom toolbar content"
3618
+ },
3617
3619
  {
3618
3620
  "name": "title",
3619
- "default": "`Coupon`",
3620
- "description": "Cell title",
3621
- "options": [],
3622
- "value": {
3623
- "type": "string",
3624
- "kind": "expression"
3625
- }
3621
+ "description": "Custom title"
3626
3622
  },
3627
3623
  {
3628
- "name": "chosen-coupon",
3629
- "default": "`-1`",
3630
- "description": "Index of chosen coupon",
3631
- "options": [],
3632
- "value": {
3633
- "type": "number | string",
3634
- "kind": "expression"
3635
- }
3636
- },
3637
- {
3638
- "name": "coupons",
3639
- "default": "`[]`",
3640
- "description": "Coupon list",
3641
- "options": [],
3642
- "value": {
3643
- "type": "Coupon[]",
3644
- "kind": "expression"
3645
- }
3624
+ "name": "confirm",
3625
+ "description": "Custom confirm button text"
3646
3626
  },
3647
3627
  {
3648
- "name": "editable",
3649
- "default": "`true`",
3650
- "description": "Cell editable",
3651
- "options": [],
3652
- "value": {
3653
- "type": "boolean",
3654
- "kind": "expression"
3655
- }
3628
+ "name": "cancel",
3629
+ "description": "Custom cancel button text"
3656
3630
  },
3657
3631
  {
3658
- "name": "border",
3659
- "default": "`true`",
3660
- "description": "Whether to show inner border",
3661
- "options": [],
3662
- "value": {
3663
- "type": "boolean",
3664
- "kind": "expression"
3665
- }
3632
+ "name": "option",
3633
+ "description": "Custom option content"
3666
3634
  },
3667
3635
  {
3668
- "name": "currency",
3669
- "default": "`¥`",
3670
- "description": "Currency symbol",
3671
- "options": [],
3672
- "value": {
3673
- "type": "string",
3674
- "kind": "expression"
3675
- }
3676
- }
3677
- ]
3678
- },
3679
- {
3680
- "name": "van-coupon-list",
3681
- "slots": [
3682
- {
3683
- "name": "list-footer",
3684
- "description": "Coupon list bottom"
3636
+ "name": "columns-top",
3637
+ "description": "Custom content above columns"
3685
3638
  },
3686
3639
  {
3687
- "name": "disabled-list-footer",
3688
- "description": "Unavailable coupons list bottom"
3640
+ "name": "columns-bottom",
3641
+ "description": "Custom content below columns"
3689
3642
  }
3690
3643
  ],
3691
3644
  "events": [
3692
3645
  {
3693
3646
  "name": "change",
3694
- "description": "Emitted when chosen coupon changed",
3647
+ "description": "Emitted when value changed",
3695
3648
  "arguments": [
3696
3649
  {
3697
- "name": "index",
3698
- "type": "index of chosen coupon"
3650
+ "name": "value",
3651
+ "type": "current value"
3699
3652
  }
3700
3653
  ]
3701
3654
  },
3702
3655
  {
3703
- "name": "exchange",
3704
- "description": "Emitted when exchanging coupon",
3656
+ "name": "confirm",
3657
+ "description": "Emitted when the confirm button is clicked",
3705
3658
  "arguments": [
3706
3659
  {
3707
- "name": "code",
3708
- "type": "exchange code"
3660
+ "name": "value",
3661
+ "type": "current value"
3709
3662
  }
3710
3663
  ]
3664
+ },
3665
+ {
3666
+ "name": "cancel",
3667
+ "description": "Emitted when the cancel button is clicked",
3668
+ "arguments": []
3711
3669
  }
3712
3670
  ],
3713
3671
  "attributes": [
3714
3672
  {
3715
- "name": "v-model",
3716
- "default": "-",
3717
- "description": "Current exchange code",
3673
+ "name": "type",
3674
+ "default": "`datetime`",
3675
+ "description": "Can be set to `date` `time`<br> `year-month` `month-day` `datehour`",
3718
3676
  "options": [],
3719
3677
  "value": {
3720
3678
  "type": "string",
@@ -3722,251 +3680,307 @@
3722
3680
  }
3723
3681
  },
3724
3682
  {
3725
- "name": "chosen-coupon",
3726
- "default": "`-1`",
3727
- "description": "Index of chosen coupon",
3683
+ "name": "title",
3684
+ "default": "`''`",
3685
+ "description": "Toolbar title",
3728
3686
  "options": [],
3729
3687
  "value": {
3730
- "type": "number",
3688
+ "type": "string",
3731
3689
  "kind": "expression"
3732
3690
  }
3733
3691
  },
3734
3692
  {
3735
- "name": "coupons",
3736
- "default": "`[]`",
3737
- "description": "Coupon list",
3693
+ "name": "confirm-button-text",
3694
+ "default": "`Confirm`",
3695
+ "description": "Text of confirm button",
3738
3696
  "options": [],
3739
3697
  "value": {
3740
- "type": "Coupon[]",
3698
+ "type": "string",
3741
3699
  "kind": "expression"
3742
3700
  }
3743
3701
  },
3744
3702
  {
3745
- "name": "disabled-coupons",
3746
- "default": "`[]`",
3747
- "description": "Disabled coupon list",
3703
+ "name": "cancel-button-text",
3704
+ "default": "`Cancel`",
3705
+ "description": "Text of cancel button",
3748
3706
  "options": [],
3749
3707
  "value": {
3750
- "type": "Coupon[]",
3708
+ "type": "string",
3751
3709
  "kind": "expression"
3752
3710
  }
3753
3711
  },
3754
3712
  {
3755
- "name": "enabled-title",
3756
- "default": "`Available`",
3757
- "description": "Title of coupon list",
3713
+ "name": "show-toolbar",
3714
+ "default": "`true`",
3715
+ "description": "Whether to show toolbar",
3758
3716
  "options": [],
3759
3717
  "value": {
3760
- "type": "string",
3718
+ "type": "boolean",
3761
3719
  "kind": "expression"
3762
3720
  }
3763
3721
  },
3764
3722
  {
3765
- "name": "disabled-title",
3766
- "default": "`Unavailable`",
3767
- "description": "Title of disabled coupon list",
3723
+ "name": "loading",
3724
+ "default": "`false`",
3725
+ "description": "Whether to show loading prompt",
3768
3726
  "options": [],
3769
3727
  "value": {
3770
- "type": "string",
3728
+ "type": "boolean",
3771
3729
  "kind": "expression"
3772
3730
  }
3773
3731
  },
3774
3732
  {
3775
- "name": "exchange-button-text",
3776
- "default": "`Exchange`",
3777
- "description": "Exchange button text",
3733
+ "name": "readonly",
3734
+ "default": "`false`",
3735
+ "description": "Whether to be readonly",
3778
3736
  "options": [],
3779
3737
  "value": {
3780
- "type": "string",
3738
+ "type": "boolean",
3781
3739
  "kind": "expression"
3782
3740
  }
3783
3741
  },
3784
3742
  {
3785
- "name": "exchange-button-loading",
3786
- "default": "`false`",
3787
- "description": "Whether to show loading in exchange button",
3743
+ "name": "filter",
3744
+ "default": "-",
3745
+ "description": "Option filter",
3788
3746
  "options": [],
3789
3747
  "value": {
3790
- "type": "boolean",
3748
+ "type": "(type: string, values: string[]) => string[]",
3791
3749
  "kind": "expression"
3792
3750
  }
3793
3751
  },
3794
3752
  {
3795
- "name": "exchange-button-disabled",
3796
- "default": "`false`",
3797
- "description": "Whether to disable exchange button",
3753
+ "name": "formatter",
3754
+ "default": "-",
3755
+ "description": "Option text formatter",
3798
3756
  "options": [],
3799
3757
  "value": {
3800
- "type": "boolean",
3758
+ "type": "(type: string, value: string) => string",
3801
3759
  "kind": "expression"
3802
3760
  }
3803
3761
  },
3804
3762
  {
3805
- "name": "exchange-min-length",
3806
- "default": "`1`",
3807
- "description": "Min length to enable exchange button",
3763
+ "name": "columns-order",
3764
+ "default": "-",
3765
+ "description": "Array for ordering columns, where item can be set to<br> `year`, `month`, `day`, `hour` and `minute`",
3808
3766
  "options": [],
3809
3767
  "value": {
3810
- "type": "number",
3768
+ "type": "string[]",
3811
3769
  "kind": "expression"
3812
3770
  }
3813
3771
  },
3814
3772
  {
3815
- "name": "displayed-coupon-index",
3816
- "default": "-",
3817
- "description": "Index of displayed coupon",
3773
+ "name": "item-height",
3774
+ "default": "`44`",
3775
+ "description": "Option height, supports `px` `vw` `vh` `rem` unit, default `px`",
3818
3776
  "options": [],
3819
3777
  "value": {
3820
- "type": "number",
3778
+ "type": "number | string",
3821
3779
  "kind": "expression"
3822
3780
  }
3823
3781
  },
3824
3782
  {
3825
- "name": "close-button-text",
3826
- "default": "`Close`",
3827
- "description": "Close button text",
3783
+ "name": "visible-item-count",
3784
+ "default": "`6`",
3785
+ "description": "Count of visible columns",
3828
3786
  "options": [],
3829
3787
  "value": {
3830
- "type": "string",
3788
+ "type": "number | string",
3831
3789
  "kind": "expression"
3832
3790
  }
3833
3791
  },
3834
3792
  {
3835
- "name": "input-placeholder",
3836
- "default": "`Coupon code`",
3837
- "description": "Input placeholder",
3793
+ "name": "swipe-duration",
3794
+ "default": "`1000`",
3795
+ "description": "Duration of the momentum animation, unit `ms`",
3838
3796
  "options": [],
3839
3797
  "value": {
3840
- "type": "string",
3798
+ "type": "number | string",
3799
+ "kind": "expression"
3800
+ }
3801
+ }
3802
+ ]
3803
+ },
3804
+ {
3805
+ "name": "van-date-picker",
3806
+ "slots": [],
3807
+ "events": [],
3808
+ "attributes": [
3809
+ {
3810
+ "name": "min-date",
3811
+ "default": "Ten years ago on January 1",
3812
+ "description": "Min date",
3813
+ "options": [],
3814
+ "value": {
3815
+ "type": "Date",
3841
3816
  "kind": "expression"
3842
3817
  }
3843
3818
  },
3844
3819
  {
3845
- "name": "currency",
3846
- "default": "`¥`",
3847
- "description": "Currency symbol",
3820
+ "name": "max-date",
3821
+ "default": "Ten years later on December 31",
3822
+ "description": "Max date",
3848
3823
  "options": [],
3849
3824
  "value": {
3850
- "type": "string",
3825
+ "type": "Date",
3826
+ "kind": "expression"
3827
+ }
3828
+ }
3829
+ ]
3830
+ },
3831
+ {
3832
+ "name": "van-time-picker",
3833
+ "slots": [],
3834
+ "events": [],
3835
+ "attributes": [
3836
+ {
3837
+ "name": "min-hour",
3838
+ "default": "`0`",
3839
+ "description": "Min hour for `time` type",
3840
+ "options": [],
3841
+ "value": {
3842
+ "type": "number | string",
3851
3843
  "kind": "expression"
3852
3844
  }
3853
3845
  },
3854
3846
  {
3855
- "name": "empty-image",
3856
- "default": "-",
3857
- "description": "Placeholder image when list is empty",
3847
+ "name": "max-hour",
3848
+ "default": "`23`",
3849
+ "description": "Max hour for `time` type",
3858
3850
  "options": [],
3859
3851
  "value": {
3860
- "type": "string",
3852
+ "type": "number | string",
3861
3853
  "kind": "expression"
3862
3854
  }
3863
3855
  },
3864
3856
  {
3865
- "name": "show-count",
3866
- "default": "`true`",
3867
- "description": "Whether to show coupon count in tab title",
3857
+ "name": "min-minute",
3858
+ "default": "`0`",
3859
+ "description": "Max minute for `time` type",
3868
3860
  "options": [],
3869
3861
  "value": {
3870
- "type": "boolean",
3862
+ "type": "number | string",
3863
+ "kind": "expression"
3864
+ }
3865
+ },
3866
+ {
3867
+ "name": "max-minute",
3868
+ "default": "`59`",
3869
+ "description": "Max minute for `time` type",
3870
+ "options": [],
3871
+ "value": {
3872
+ "type": "number | string",
3871
3873
  "kind": "expression"
3872
3874
  }
3873
3875
  }
3874
3876
  ]
3875
3877
  },
3876
3878
  {
3877
- "name": "van-datetime-picker",
3878
- "slots": [
3879
+ "name": "van-coupon-cell",
3880
+ "slots": [],
3881
+ "events": [],
3882
+ "attributes": [
3879
3883
  {
3880
- "name": "default",
3881
- "description": "Custom toolbar content"
3884
+ "name": "title",
3885
+ "default": "`Coupon`",
3886
+ "description": "Cell title",
3887
+ "options": [],
3888
+ "value": {
3889
+ "type": "string",
3890
+ "kind": "expression"
3891
+ }
3882
3892
  },
3883
3893
  {
3884
- "name": "title",
3885
- "description": "Custom title"
3894
+ "name": "chosen-coupon",
3895
+ "default": "`-1`",
3896
+ "description": "Index of chosen coupon",
3897
+ "options": [],
3898
+ "value": {
3899
+ "type": "number | string",
3900
+ "kind": "expression"
3901
+ }
3886
3902
  },
3887
3903
  {
3888
- "name": "confirm",
3889
- "description": "Custom confirm button text"
3904
+ "name": "coupons",
3905
+ "default": "`[]`",
3906
+ "description": "Coupon list",
3907
+ "options": [],
3908
+ "value": {
3909
+ "type": "Coupon[]",
3910
+ "kind": "expression"
3911
+ }
3890
3912
  },
3891
3913
  {
3892
- "name": "cancel",
3893
- "description": "Custom cancel button text"
3914
+ "name": "editable",
3915
+ "default": "`true`",
3916
+ "description": "Cell editable",
3917
+ "options": [],
3918
+ "value": {
3919
+ "type": "boolean",
3920
+ "kind": "expression"
3921
+ }
3894
3922
  },
3895
3923
  {
3896
- "name": "option",
3897
- "description": "Custom option content"
3924
+ "name": "border",
3925
+ "default": "`true`",
3926
+ "description": "Whether to show inner border",
3927
+ "options": [],
3928
+ "value": {
3929
+ "type": "boolean",
3930
+ "kind": "expression"
3931
+ }
3898
3932
  },
3899
3933
  {
3900
- "name": "columns-top",
3901
- "description": "Custom content above columns"
3934
+ "name": "currency",
3935
+ "default": "`¥`",
3936
+ "description": "Currency symbol",
3937
+ "options": [],
3938
+ "value": {
3939
+ "type": "string",
3940
+ "kind": "expression"
3941
+ }
3942
+ }
3943
+ ]
3944
+ },
3945
+ {
3946
+ "name": "van-coupon-list",
3947
+ "slots": [
3948
+ {
3949
+ "name": "list-footer",
3950
+ "description": "Coupon list bottom"
3902
3951
  },
3903
3952
  {
3904
- "name": "columns-bottom",
3905
- "description": "Custom content below columns"
3953
+ "name": "disabled-list-footer",
3954
+ "description": "Unavailable coupons list bottom"
3906
3955
  }
3907
3956
  ],
3908
3957
  "events": [
3909
3958
  {
3910
3959
  "name": "change",
3911
- "description": "Emitted when value changed",
3960
+ "description": "Emitted when chosen coupon changed",
3912
3961
  "arguments": [
3913
3962
  {
3914
- "name": "value",
3915
- "type": "current value"
3963
+ "name": "index",
3964
+ "type": "index of chosen coupon"
3916
3965
  }
3917
3966
  ]
3918
3967
  },
3919
3968
  {
3920
- "name": "confirm",
3921
- "description": "Emitted when the confirm button is clicked",
3969
+ "name": "exchange",
3970
+ "description": "Emitted when exchanging coupon",
3922
3971
  "arguments": [
3923
3972
  {
3924
- "name": "value",
3925
- "type": "current value"
3973
+ "name": "code",
3974
+ "type": "exchange code"
3926
3975
  }
3927
3976
  ]
3928
- },
3929
- {
3930
- "name": "cancel",
3931
- "description": "Emitted when the cancel button is clicked",
3932
- "arguments": []
3933
3977
  }
3934
3978
  ],
3935
3979
  "attributes": [
3936
3980
  {
3937
- "name": "type",
3938
- "default": "`datetime`",
3939
- "description": "Can be set to `date` `time`<br> `year-month` `month-day` `datehour`",
3940
- "options": [],
3941
- "value": {
3942
- "type": "string",
3943
- "kind": "expression"
3944
- }
3945
- },
3946
- {
3947
- "name": "title",
3948
- "default": "`''`",
3949
- "description": "Toolbar title",
3950
- "options": [],
3951
- "value": {
3952
- "type": "string",
3953
- "kind": "expression"
3954
- }
3955
- },
3956
- {
3957
- "name": "confirm-button-text",
3958
- "default": "`Confirm`",
3959
- "description": "Text of confirm button",
3960
- "options": [],
3961
- "value": {
3962
- "type": "string",
3963
- "kind": "expression"
3964
- }
3965
- },
3966
- {
3967
- "name": "cancel-button-text",
3968
- "default": "`Cancel`",
3969
- "description": "Text of cancel button",
3981
+ "name": "v-model",
3982
+ "default": "-",
3983
+ "description": "Current exchange code",
3970
3984
  "options": [],
3971
3985
  "value": {
3972
3986
  "type": "string",
@@ -3974,166 +3988,152 @@
3974
3988
  }
3975
3989
  },
3976
3990
  {
3977
- "name": "show-toolbar",
3978
- "default": "`true`",
3979
- "description": "Whether to show toolbar",
3991
+ "name": "chosen-coupon",
3992
+ "default": "`-1`",
3993
+ "description": "Index of chosen coupon",
3980
3994
  "options": [],
3981
3995
  "value": {
3982
- "type": "boolean",
3996
+ "type": "number",
3983
3997
  "kind": "expression"
3984
3998
  }
3985
3999
  },
3986
4000
  {
3987
- "name": "loading",
3988
- "default": "`false`",
3989
- "description": "Whether to show loading prompt",
4001
+ "name": "coupons",
4002
+ "default": "`[]`",
4003
+ "description": "Coupon list",
3990
4004
  "options": [],
3991
4005
  "value": {
3992
- "type": "boolean",
4006
+ "type": "Coupon[]",
3993
4007
  "kind": "expression"
3994
4008
  }
3995
4009
  },
3996
4010
  {
3997
- "name": "readonly",
3998
- "default": "`false`",
3999
- "description": "Whether to be readonly",
4011
+ "name": "disabled-coupons",
4012
+ "default": "`[]`",
4013
+ "description": "Disabled coupon list",
4000
4014
  "options": [],
4001
4015
  "value": {
4002
- "type": "boolean",
4016
+ "type": "Coupon[]",
4003
4017
  "kind": "expression"
4004
4018
  }
4005
4019
  },
4006
4020
  {
4007
- "name": "filter",
4008
- "default": "-",
4009
- "description": "Option filter",
4021
+ "name": "enabled-title",
4022
+ "default": "`Available`",
4023
+ "description": "Title of coupon list",
4010
4024
  "options": [],
4011
4025
  "value": {
4012
- "type": "(type: string, values: string[]) => string[]",
4026
+ "type": "string",
4013
4027
  "kind": "expression"
4014
4028
  }
4015
4029
  },
4016
4030
  {
4017
- "name": "formatter",
4018
- "default": "-",
4019
- "description": "Option text formatter",
4031
+ "name": "disabled-title",
4032
+ "default": "`Unavailable`",
4033
+ "description": "Title of disabled coupon list",
4020
4034
  "options": [],
4021
4035
  "value": {
4022
- "type": "(type: string, value: string) => string",
4036
+ "type": "string",
4023
4037
  "kind": "expression"
4024
4038
  }
4025
4039
  },
4026
4040
  {
4027
- "name": "columns-order",
4028
- "default": "-",
4029
- "description": "Array for ordering columns, where item can be set to<br> `year`, `month`, `day`, `hour` and `minute`",
4041
+ "name": "exchange-button-text",
4042
+ "default": "`Exchange`",
4043
+ "description": "Exchange button text",
4030
4044
  "options": [],
4031
4045
  "value": {
4032
- "type": "string[]",
4046
+ "type": "string",
4033
4047
  "kind": "expression"
4034
4048
  }
4035
4049
  },
4036
4050
  {
4037
- "name": "item-height",
4038
- "default": "`44`",
4039
- "description": "Option height, supports `px` `vw` `vh` `rem` unit, default `px`",
4051
+ "name": "exchange-button-loading",
4052
+ "default": "`false`",
4053
+ "description": "Whether to show loading in exchange button",
4040
4054
  "options": [],
4041
4055
  "value": {
4042
- "type": "number | string",
4056
+ "type": "boolean",
4043
4057
  "kind": "expression"
4044
4058
  }
4045
4059
  },
4046
4060
  {
4047
- "name": "visible-item-count",
4048
- "default": "`6`",
4049
- "description": "Count of visible columns",
4061
+ "name": "exchange-button-disabled",
4062
+ "default": "`false`",
4063
+ "description": "Whether to disable exchange button",
4050
4064
  "options": [],
4051
4065
  "value": {
4052
- "type": "number | string",
4066
+ "type": "boolean",
4053
4067
  "kind": "expression"
4054
4068
  }
4055
4069
  },
4056
4070
  {
4057
- "name": "swipe-duration",
4058
- "default": "`1000`",
4059
- "description": "Duration of the momentum animation, unit `ms`",
4071
+ "name": "exchange-min-length",
4072
+ "default": "`1`",
4073
+ "description": "Min length to enable exchange button",
4060
4074
  "options": [],
4061
4075
  "value": {
4062
- "type": "number | string",
4076
+ "type": "number",
4063
4077
  "kind": "expression"
4064
4078
  }
4065
- }
4066
- ]
4067
- },
4068
- {
4069
- "name": "van-date-picker",
4070
- "slots": [],
4071
- "events": [],
4072
- "attributes": [
4079
+ },
4073
4080
  {
4074
- "name": "min-date",
4075
- "default": "Ten years ago on January 1",
4076
- "description": "Min date",
4081
+ "name": "displayed-coupon-index",
4082
+ "default": "-",
4083
+ "description": "Index of displayed coupon",
4077
4084
  "options": [],
4078
4085
  "value": {
4079
- "type": "Date",
4086
+ "type": "number",
4080
4087
  "kind": "expression"
4081
4088
  }
4082
4089
  },
4083
4090
  {
4084
- "name": "max-date",
4085
- "default": "Ten years later on December 31",
4086
- "description": "Max date",
4091
+ "name": "close-button-text",
4092
+ "default": "`Close`",
4093
+ "description": "Close button text",
4087
4094
  "options": [],
4088
4095
  "value": {
4089
- "type": "Date",
4096
+ "type": "string",
4090
4097
  "kind": "expression"
4091
4098
  }
4092
- }
4093
- ]
4094
- },
4095
- {
4096
- "name": "van-time-picker",
4097
- "slots": [],
4098
- "events": [],
4099
- "attributes": [
4099
+ },
4100
4100
  {
4101
- "name": "min-hour",
4102
- "default": "`0`",
4103
- "description": "Min hour for `time` type",
4101
+ "name": "input-placeholder",
4102
+ "default": "`Coupon code`",
4103
+ "description": "Input placeholder",
4104
4104
  "options": [],
4105
4105
  "value": {
4106
- "type": "number | string",
4106
+ "type": "string",
4107
4107
  "kind": "expression"
4108
4108
  }
4109
4109
  },
4110
4110
  {
4111
- "name": "max-hour",
4112
- "default": "`23`",
4113
- "description": "Max hour for `time` type",
4111
+ "name": "currency",
4112
+ "default": "`¥`",
4113
+ "description": "Currency symbol",
4114
4114
  "options": [],
4115
4115
  "value": {
4116
- "type": "number | string",
4116
+ "type": "string",
4117
4117
  "kind": "expression"
4118
4118
  }
4119
4119
  },
4120
4120
  {
4121
- "name": "min-minute",
4122
- "default": "`0`",
4123
- "description": "Max minute for `time` type",
4121
+ "name": "empty-image",
4122
+ "default": "-",
4123
+ "description": "Placeholder image when list is empty",
4124
4124
  "options": [],
4125
4125
  "value": {
4126
- "type": "number | string",
4126
+ "type": "string",
4127
4127
  "kind": "expression"
4128
4128
  }
4129
4129
  },
4130
4130
  {
4131
- "name": "max-minute",
4132
- "default": "`59`",
4133
- "description": "Max minute for `time` type",
4131
+ "name": "show-count",
4132
+ "default": "`true`",
4133
+ "description": "Whether to show coupon count in tab title",
4134
4134
  "options": [],
4135
4135
  "value": {
4136
- "type": "number | string",
4136
+ "type": "boolean",
4137
4137
  "kind": "expression"
4138
4138
  }
4139
4139
  }
@@ -4288,6 +4288,16 @@
4288
4288
  "kind": "expression"
4289
4289
  }
4290
4290
  },
4291
+ {
4292
+ "name": "cancel-button-disabled",
4293
+ "default": "`false`",
4294
+ "description": "Whether to disable cancel button",
4295
+ "options": [],
4296
+ "value": {
4297
+ "type": "boolean",
4298
+ "kind": "expression"
4299
+ }
4300
+ },
4291
4301
  {
4292
4302
  "name": "confirm-button-text",
4293
4303
  "default": "`Confirm`",
@@ -4308,6 +4318,16 @@
4308
4318
  "kind": "expression"
4309
4319
  }
4310
4320
  },
4321
+ {
4322
+ "name": "confirm-button-disabled",
4323
+ "default": "`false`",
4324
+ "description": "Whether to disable confirm button",
4325
+ "options": [],
4326
+ "value": {
4327
+ "type": "boolean",
4328
+ "kind": "expression"
4329
+ }
4330
+ },
4311
4331
  {
4312
4332
  "name": "overlay",
4313
4333
  "default": "`true`",
@@ -5072,182 +5092,19 @@
5072
5092
  }
5073
5093
  },
5074
5094
  {
5075
- "name": "format-trigger",
5076
- "default": "`onChange`",
5077
- "description": "When to format value, can be set to `onBlur`",
5078
- "options": [],
5079
- "value": {
5080
- "type": "FieldFormatTrigger",
5081
- "kind": "expression"
5082
- }
5083
- },
5084
- {
5085
- "name": "arrow-direction",
5086
- "default": "`right`",
5087
- "description": "Can be set to `left` `up` `down`",
5088
- "options": [],
5089
- "value": {
5090
- "type": "string",
5091
- "kind": "expression"
5092
- }
5093
- },
5094
- {
5095
- "name": "label-class",
5096
- "default": "-",
5097
- "description": "Label className",
5098
- "options": [],
5099
- "value": {
5100
- "type": "string | Array | object",
5101
- "kind": "expression"
5102
- }
5103
- },
5104
- {
5105
- "name": "label-width",
5106
- "default": "`6.2em`",
5107
- "description": "Label width",
5108
- "options": [],
5109
- "value": {
5110
- "type": "number | string",
5111
- "kind": "expression"
5112
- }
5113
- },
5114
- {
5115
- "name": "label-align",
5116
- "default": "`left`",
5117
- "description": "Label align, can be set to `center` `right`",
5118
- "options": [],
5119
- "value": {
5120
- "type": "FieldTextAlign",
5121
- "kind": "expression"
5122
- }
5123
- },
5124
- {
5125
- "name": "input-align",
5126
- "default": "`left`",
5127
- "description": "Input align, can be set to `center` `right`",
5128
- "options": [],
5129
- "value": {
5130
- "type": "FieldTextAlign",
5131
- "kind": "expression"
5132
- }
5133
- },
5134
- {
5135
- "name": "autosize",
5136
- "default": "`false`",
5137
- "description": "Textarea auto resize, can accept an object,<br>e.g. { maxHeight: 100, minHeight: 50 }",
5138
- "options": [],
5139
- "value": {
5140
- "type": "boolean | FieldAutosizeConfig",
5141
- "kind": "expression"
5142
- }
5143
- },
5144
- {
5145
- "name": "left-icon",
5146
- "default": "-",
5147
- "description": "Left side icon name",
5148
- "options": [],
5149
- "value": {
5150
- "type": "string",
5151
- "kind": "expression"
5152
- }
5153
- },
5154
- {
5155
- "name": "right-icon",
5156
- "default": "-",
5157
- "description": "Right side icon name",
5158
- "options": [],
5159
- "value": {
5160
- "type": "string",
5161
- "kind": "expression"
5162
- }
5163
- },
5164
- {
5165
- "name": "icon-prefix",
5166
- "default": "`van-icon`",
5167
- "description": "Icon className prefix",
5168
- "options": [],
5169
- "value": {
5170
- "type": "string",
5171
- "kind": "expression"
5172
- }
5173
- },
5174
- {
5175
- "name": "rules",
5176
- "default": "-",
5177
- "description": "Form validation rules",
5178
- "options": [],
5179
- "value": {
5180
- "type": "FieldRule[]",
5181
- "kind": "expression"
5182
- }
5183
- },
5184
- {
5185
- "name": "autocomplete",
5186
- "default": "-",
5187
- "description": "HTML native attribute, see [MDN - autocomplete](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete)",
5188
- "options": [],
5189
- "value": {
5190
- "type": "string",
5191
- "kind": "expression"
5192
- }
5193
- },
5194
- {
5195
- "name": "enterkeyhint",
5196
- "default": "-",
5197
- "description": "HTML native attribute, see [MDN - enterkeyhint](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/enterkeyhint)<br>",
5198
- "options": [],
5199
- "value": {
5200
- "type": "string",
5201
- "kind": "expression"
5202
- }
5203
- }
5204
- ]
5205
- },
5206
- {
5207
- "name": "van-form",
5208
- "slots": [
5209
- {
5210
- "name": "default",
5211
- "description": "Form content"
5212
- }
5213
- ],
5214
- "events": [
5215
- {
5216
- "name": "submit",
5217
- "description": "Emitted after submitting the form and validation passed",
5218
- "arguments": [
5219
- {
5220
- "name": "values",
5221
- "type": "object"
5222
- }
5223
- ]
5224
- },
5225
- {
5226
- "name": "failed",
5227
- "description": "Emitted after submitting the form and validation failed",
5228
- "arguments": [
5229
- {
5230
- "name": "errorInfo",
5231
- "type": "{ values: object, errors: object[] }"
5232
- }
5233
- ]
5234
- }
5235
- ],
5236
- "attributes": [
5237
- {
5238
- "name": "label-width",
5239
- "default": "`6.2em`",
5240
- "description": "Field label width",
5095
+ "name": "format-trigger",
5096
+ "default": "`onChange`",
5097
+ "description": "When to format value, can be set to `onBlur`",
5241
5098
  "options": [],
5242
5099
  "value": {
5243
- "type": "number | string",
5100
+ "type": "FieldFormatTrigger",
5244
5101
  "kind": "expression"
5245
5102
  }
5246
5103
  },
5247
5104
  {
5248
- "name": "label-align",
5249
- "default": "`left`",
5250
- "description": "Field label align, can be set to `center` `right`",
5105
+ "name": "arrow-direction",
5106
+ "default": "`right`",
5107
+ "description": "Can be set to `left` `up` `down`",
5251
5108
  "options": [],
5252
5109
  "value": {
5253
5110
  "type": "string",
@@ -5255,112 +5112,112 @@
5255
5112
  }
5256
5113
  },
5257
5114
  {
5258
- "name": "input-align",
5259
- "default": "`left`",
5260
- "description": "Field input align, can be set to `center` `right`",
5115
+ "name": "label-class",
5116
+ "default": "-",
5117
+ "description": "Label className",
5261
5118
  "options": [],
5262
5119
  "value": {
5263
- "type": "string",
5120
+ "type": "string | Array | object",
5264
5121
  "kind": "expression"
5265
5122
  }
5266
5123
  },
5267
5124
  {
5268
- "name": "error-message-align",
5269
- "default": "`left`",
5270
- "description": "Error message align, can be set to `center` `right`",
5125
+ "name": "label-width",
5126
+ "default": "`6.2em`",
5127
+ "description": "Label width",
5271
5128
  "options": [],
5272
5129
  "value": {
5273
- "type": "string",
5130
+ "type": "number | string",
5274
5131
  "kind": "expression"
5275
5132
  }
5276
5133
  },
5277
5134
  {
5278
- "name": "validate-trigger",
5279
- "default": "`onBlur`",
5280
- "description": "When to validate the form, can be set to `onChange`、`onSubmit`, supports using array to set multiple values",
5135
+ "name": "label-align",
5136
+ "default": "`left`",
5137
+ "description": "Label align, can be set to `center` `right`",
5281
5138
  "options": [],
5282
5139
  "value": {
5283
- "type": "string | string[]",
5140
+ "type": "FieldTextAlign",
5284
5141
  "kind": "expression"
5285
5142
  }
5286
5143
  },
5287
5144
  {
5288
- "name": "colon",
5289
- "default": "`false`",
5290
- "description": "Whether to display colon after label",
5145
+ "name": "input-align",
5146
+ "default": "`left`",
5147
+ "description": "Input align, can be set to `center` `right`",
5291
5148
  "options": [],
5292
5149
  "value": {
5293
- "type": "boolean",
5150
+ "type": "FieldTextAlign",
5294
5151
  "kind": "expression"
5295
5152
  }
5296
5153
  },
5297
5154
  {
5298
- "name": "disabled",
5155
+ "name": "autosize",
5299
5156
  "default": "`false`",
5300
- "description": "Whether to disable form",
5157
+ "description": "Textarea auto resize, can accept an object,<br>e.g. { maxHeight: 100, minHeight: 50 }",
5301
5158
  "options": [],
5302
5159
  "value": {
5303
- "type": "boolean",
5160
+ "type": "boolean | FieldAutosizeConfig",
5304
5161
  "kind": "expression"
5305
5162
  }
5306
5163
  },
5307
5164
  {
5308
- "name": "readonly",
5309
- "default": "`false`",
5310
- "description": "Whether to be readonly",
5165
+ "name": "left-icon",
5166
+ "default": "-",
5167
+ "description": "Left side icon name",
5311
5168
  "options": [],
5312
5169
  "value": {
5313
- "type": "boolean",
5170
+ "type": "string",
5314
5171
  "kind": "expression"
5315
5172
  }
5316
5173
  },
5317
5174
  {
5318
- "name": "validate-first",
5319
- "default": "`false`",
5320
- "description": "Whether to stop the validation when a rule fails",
5175
+ "name": "right-icon",
5176
+ "default": "-",
5177
+ "description": "Right side icon name",
5321
5178
  "options": [],
5322
5179
  "value": {
5323
- "type": "boolean",
5180
+ "type": "string",
5324
5181
  "kind": "expression"
5325
5182
  }
5326
5183
  },
5327
5184
  {
5328
- "name": "scroll-to-error",
5329
- "default": "`false`",
5330
- "description": "Whether to scroll to the error field when validation failed",
5185
+ "name": "icon-prefix",
5186
+ "default": "`van-icon`",
5187
+ "description": "Icon className prefix",
5331
5188
  "options": [],
5332
5189
  "value": {
5333
- "type": "boolean",
5190
+ "type": "string",
5334
5191
  "kind": "expression"
5335
5192
  }
5336
5193
  },
5337
5194
  {
5338
- "name": "show-error",
5339
- "default": "`false`",
5340
- "description": "Whether to highlight input when validation failed",
5195
+ "name": "rules",
5196
+ "default": "-",
5197
+ "description": "Form validation rules",
5341
5198
  "options": [],
5342
5199
  "value": {
5343
- "type": "boolean",
5200
+ "type": "FieldRule[]",
5344
5201
  "kind": "expression"
5345
5202
  }
5346
5203
  },
5347
5204
  {
5348
- "name": "show-error-message",
5349
- "default": "`true`",
5350
- "description": "Whether to show error message when validation failed",
5205
+ "name": "autocomplete",
5206
+ "default": "-",
5207
+ "description": "HTML native attribute, see [MDN - autocomplete](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete)",
5351
5208
  "options": [],
5352
5209
  "value": {
5353
- "type": "boolean",
5210
+ "type": "string",
5354
5211
  "kind": "expression"
5355
5212
  }
5356
5213
  },
5357
5214
  {
5358
- "name": "submit-on-enter",
5359
- "default": "`true`",
5360
- "description": "Whether to submit form on enter",
5215
+ "name": "enterkeyhint",
5216
+ "default": "-",
5217
+ "description": "HTML native attribute, see [MDN - enterkeyhint](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/enterkeyhint)<br>",
5361
5218
  "options": [],
5362
5219
  "value": {
5363
- "type": "boolean",
5220
+ "type": "string",
5364
5221
  "kind": "expression"
5365
5222
  }
5366
5223
  }
@@ -5528,14 +5385,177 @@
5528
5385
  "description": "Icon color",
5529
5386
  "options": [],
5530
5387
  "value": {
5531
- "type": "string",
5388
+ "type": "string",
5389
+ "kind": "expression"
5390
+ }
5391
+ },
5392
+ {
5393
+ "name": "dot",
5394
+ "default": "`false`",
5395
+ "description": "Whether to show red dot",
5396
+ "options": [],
5397
+ "value": {
5398
+ "type": "boolean",
5399
+ "kind": "expression"
5400
+ }
5401
+ },
5402
+ {
5403
+ "name": "badge",
5404
+ "default": "-",
5405
+ "description": "Content of the badge",
5406
+ "options": [],
5407
+ "value": {
5408
+ "type": "number | string",
5409
+ "kind": "expression"
5410
+ }
5411
+ },
5412
+ {
5413
+ "name": "badge-props",
5414
+ "default": "-",
5415
+ "description": "Props of Badge, see [Badge - props](#/en-US/badge#props)",
5416
+ "options": [],
5417
+ "value": {
5418
+ "type": "BadgeProps",
5419
+ "kind": "expression"
5420
+ }
5421
+ },
5422
+ {
5423
+ "name": "url",
5424
+ "default": "-",
5425
+ "description": "Link URL",
5426
+ "options": [],
5427
+ "value": {
5428
+ "type": "string",
5429
+ "kind": "expression"
5430
+ }
5431
+ },
5432
+ {
5433
+ "name": "to",
5434
+ "default": "-",
5435
+ "description": "Target route of the link, same as to of vue-router",
5436
+ "options": [],
5437
+ "value": {
5438
+ "type": "string | object",
5439
+ "kind": "expression"
5440
+ }
5441
+ },
5442
+ {
5443
+ "name": "replace",
5444
+ "default": "`false`",
5445
+ "description": "If true, the navigation will not leave a history record",
5446
+ "options": [],
5447
+ "value": {
5448
+ "type": "boolean",
5449
+ "kind": "expression"
5450
+ }
5451
+ }
5452
+ ]
5453
+ },
5454
+ {
5455
+ "name": "van-form",
5456
+ "slots": [
5457
+ {
5458
+ "name": "default",
5459
+ "description": "Form content"
5460
+ }
5461
+ ],
5462
+ "events": [
5463
+ {
5464
+ "name": "submit",
5465
+ "description": "Emitted after submitting the form and validation passed",
5466
+ "arguments": [
5467
+ {
5468
+ "name": "values",
5469
+ "type": "object"
5470
+ }
5471
+ ]
5472
+ },
5473
+ {
5474
+ "name": "failed",
5475
+ "description": "Emitted after submitting the form and validation failed",
5476
+ "arguments": [
5477
+ {
5478
+ "name": "errorInfo",
5479
+ "type": "{ values: object, errors: object[] }"
5480
+ }
5481
+ ]
5482
+ }
5483
+ ],
5484
+ "attributes": [
5485
+ {
5486
+ "name": "label-width",
5487
+ "default": "`6.2em`",
5488
+ "description": "Field label width",
5489
+ "options": [],
5490
+ "value": {
5491
+ "type": "number | string",
5492
+ "kind": "expression"
5493
+ }
5494
+ },
5495
+ {
5496
+ "name": "label-align",
5497
+ "default": "`left`",
5498
+ "description": "Field label align, can be set to `center` `right`",
5499
+ "options": [],
5500
+ "value": {
5501
+ "type": "string",
5502
+ "kind": "expression"
5503
+ }
5504
+ },
5505
+ {
5506
+ "name": "input-align",
5507
+ "default": "`left`",
5508
+ "description": "Field input align, can be set to `center` `right`",
5509
+ "options": [],
5510
+ "value": {
5511
+ "type": "string",
5512
+ "kind": "expression"
5513
+ }
5514
+ },
5515
+ {
5516
+ "name": "error-message-align",
5517
+ "default": "`left`",
5518
+ "description": "Error message align, can be set to `center` `right`",
5519
+ "options": [],
5520
+ "value": {
5521
+ "type": "string",
5522
+ "kind": "expression"
5523
+ }
5524
+ },
5525
+ {
5526
+ "name": "validate-trigger",
5527
+ "default": "`onBlur`",
5528
+ "description": "When to validate the form, can be set to `onChange`、`onSubmit`, supports using array to set multiple values",
5529
+ "options": [],
5530
+ "value": {
5531
+ "type": "string | string[]",
5532
+ "kind": "expression"
5533
+ }
5534
+ },
5535
+ {
5536
+ "name": "colon",
5537
+ "default": "`false`",
5538
+ "description": "Whether to display colon after label",
5539
+ "options": [],
5540
+ "value": {
5541
+ "type": "boolean",
5542
+ "kind": "expression"
5543
+ }
5544
+ },
5545
+ {
5546
+ "name": "disabled",
5547
+ "default": "`false`",
5548
+ "description": "Whether to disable form",
5549
+ "options": [],
5550
+ "value": {
5551
+ "type": "boolean",
5532
5552
  "kind": "expression"
5533
5553
  }
5534
5554
  },
5535
5555
  {
5536
- "name": "dot",
5556
+ "name": "readonly",
5537
5557
  "default": "`false`",
5538
- "description": "Whether to show red dot",
5558
+ "description": "Whether to be readonly",
5539
5559
  "options": [],
5540
5560
  "value": {
5541
5561
  "type": "boolean",
@@ -5543,49 +5563,49 @@
5543
5563
  }
5544
5564
  },
5545
5565
  {
5546
- "name": "badge",
5547
- "default": "-",
5548
- "description": "Content of the badge",
5566
+ "name": "validate-first",
5567
+ "default": "`false`",
5568
+ "description": "Whether to stop the validation when a rule fails",
5549
5569
  "options": [],
5550
5570
  "value": {
5551
- "type": "number | string",
5571
+ "type": "boolean",
5552
5572
  "kind": "expression"
5553
5573
  }
5554
5574
  },
5555
5575
  {
5556
- "name": "badge-props",
5557
- "default": "-",
5558
- "description": "Props of Badge, see [Badge - props](#/en-US/badge#props)",
5576
+ "name": "scroll-to-error",
5577
+ "default": "`false`",
5578
+ "description": "Whether to scroll to the error field when validation failed",
5559
5579
  "options": [],
5560
5580
  "value": {
5561
- "type": "BadgeProps",
5581
+ "type": "boolean",
5562
5582
  "kind": "expression"
5563
5583
  }
5564
5584
  },
5565
5585
  {
5566
- "name": "url",
5567
- "default": "-",
5568
- "description": "Link URL",
5586
+ "name": "show-error",
5587
+ "default": "`false`",
5588
+ "description": "Whether to highlight input when validation failed",
5569
5589
  "options": [],
5570
5590
  "value": {
5571
- "type": "string",
5591
+ "type": "boolean",
5572
5592
  "kind": "expression"
5573
5593
  }
5574
5594
  },
5575
5595
  {
5576
- "name": "to",
5577
- "default": "-",
5578
- "description": "Target route of the link, same as to of vue-router",
5596
+ "name": "show-error-message",
5597
+ "default": "`true`",
5598
+ "description": "Whether to show error message when validation failed",
5579
5599
  "options": [],
5580
5600
  "value": {
5581
- "type": "string | object",
5601
+ "type": "boolean",
5582
5602
  "kind": "expression"
5583
5603
  }
5584
5604
  },
5585
5605
  {
5586
- "name": "replace",
5587
- "default": "`false`",
5588
- "description": "If true, the navigation will not leave a history record",
5606
+ "name": "submit-on-enter",
5607
+ "default": "`true`",
5608
+ "description": "Whether to submit form on enter",
5589
5609
  "options": [],
5590
5610
  "value": {
5591
5611
  "type": "boolean",
@@ -7156,34 +7176,243 @@
7156
7176
  "description": "Password value",
7157
7177
  "options": [],
7158
7178
  "value": {
7159
- "type": "string",
7179
+ "type": "string",
7180
+ "kind": "expression"
7181
+ }
7182
+ },
7183
+ {
7184
+ "name": "info",
7185
+ "default": "-",
7186
+ "description": "Bottom info",
7187
+ "options": [],
7188
+ "value": {
7189
+ "type": "string",
7190
+ "kind": "expression"
7191
+ }
7192
+ },
7193
+ {
7194
+ "name": "error-info",
7195
+ "default": "-",
7196
+ "description": "Bottom error info",
7197
+ "options": [],
7198
+ "value": {
7199
+ "type": "string",
7200
+ "kind": "expression"
7201
+ }
7202
+ },
7203
+ {
7204
+ "name": "length",
7205
+ "default": "`6`",
7206
+ "description": "Maxlength of password",
7207
+ "options": [],
7208
+ "value": {
7209
+ "type": "number | string",
7210
+ "kind": "expression"
7211
+ }
7212
+ },
7213
+ {
7214
+ "name": "gutter",
7215
+ "default": "`0`",
7216
+ "description": "Gutter of input",
7217
+ "options": [],
7218
+ "value": {
7219
+ "type": "number | string",
7220
+ "kind": "expression"
7221
+ }
7222
+ },
7223
+ {
7224
+ "name": "mask",
7225
+ "default": "`true`",
7226
+ "description": "Whether to mask value",
7227
+ "options": [],
7228
+ "value": {
7229
+ "type": "boolean",
7230
+ "kind": "expression"
7231
+ }
7232
+ },
7233
+ {
7234
+ "name": "focused",
7235
+ "default": "`false`",
7236
+ "description": "Whether to show focused cursor",
7237
+ "options": [],
7238
+ "value": {
7239
+ "type": "boolean",
7240
+ "kind": "expression"
7241
+ }
7242
+ }
7243
+ ]
7244
+ },
7245
+ {
7246
+ "name": "van-picker",
7247
+ "slots": [
7248
+ {
7249
+ "name": "toolbar",
7250
+ "description": "Custom toolbar content"
7251
+ },
7252
+ {
7253
+ "name": "title",
7254
+ "description": "Custom title"
7255
+ },
7256
+ {
7257
+ "name": "confirm",
7258
+ "description": "Custom confirm button text"
7259
+ },
7260
+ {
7261
+ "name": "cancel",
7262
+ "description": "Custom cancel button text"
7263
+ },
7264
+ {
7265
+ "name": "option",
7266
+ "description": "Custom option content"
7267
+ },
7268
+ {
7269
+ "name": "columns-top",
7270
+ "description": "Custom content above columns"
7271
+ },
7272
+ {
7273
+ "name": "columns-bottom",
7274
+ "description": "Custom content below columns"
7275
+ }
7276
+ ],
7277
+ "events": [
7278
+ {
7279
+ "name": "confirm",
7280
+ "description": "Emitted when click confirm button.<br>**Notice: the arguments return an array when the multiple columns mode.**",
7281
+ "arguments": [
7282
+ {
7283
+ "name": "currentValue",
7284
+ "type": "PickerOption | PickerOption[]"
7285
+ },
7286
+ {
7287
+ "name": "currentIndex",
7288
+ "type": "number | number[]"
7289
+ }
7290
+ ]
7291
+ },
7292
+ {
7293
+ "name": "cancel",
7294
+ "description": "Emitted when click cancel button.<br>**Notice: the arguments return an array when the multiple columns mode.**",
7295
+ "arguments": [
7296
+ {
7297
+ "name": "currentValue",
7298
+ "type": "PickerOption | PickerOption[]"
7299
+ },
7300
+ {
7301
+ "name": "currentIndex",
7302
+ "type": "number | number[]"
7303
+ }
7304
+ ]
7305
+ },
7306
+ {
7307
+ "name": "change",
7308
+ "description": "Emitted when current option changed.<br>**Notice: the arguments return an array when the multiple columns mode.**",
7309
+ "arguments": [
7310
+ {
7311
+ "name": "currentValue",
7312
+ "type": "PickerOption | PickerOption[]"
7313
+ },
7314
+ {
7315
+ "name": "currentIndex",
7316
+ "type": "number | number[]"
7317
+ }
7318
+ ]
7319
+ }
7320
+ ],
7321
+ "attributes": [
7322
+ {
7323
+ "name": "columns",
7324
+ "default": "`[]`",
7325
+ "description": "Columns data",
7326
+ "options": [],
7327
+ "value": {
7328
+ "type": "Column[]",
7329
+ "kind": "expression"
7330
+ }
7331
+ },
7332
+ {
7333
+ "name": "columns-field-names",
7334
+ "default": "`{ text: 'text', values: 'values', children: 'children' }`",
7335
+ "description": "custom columns field",
7336
+ "options": [],
7337
+ "value": {
7338
+ "type": "object",
7339
+ "kind": "expression"
7340
+ }
7341
+ },
7342
+ {
7343
+ "name": "title",
7344
+ "default": "-",
7345
+ "description": "Toolbar title",
7346
+ "options": [],
7347
+ "value": {
7348
+ "type": "string",
7349
+ "kind": "expression"
7350
+ }
7351
+ },
7352
+ {
7353
+ "name": "confirm-button-text",
7354
+ "default": "`Confirm`",
7355
+ "description": "Text of confirm button",
7356
+ "options": [],
7357
+ "value": {
7358
+ "type": "string",
7359
+ "kind": "expression"
7360
+ }
7361
+ },
7362
+ {
7363
+ "name": "cancel-button-text",
7364
+ "default": "`Cancel`",
7365
+ "description": "Text of cancel button",
7366
+ "options": [],
7367
+ "value": {
7368
+ "type": "string",
7369
+ "kind": "expression"
7370
+ }
7371
+ },
7372
+ {
7373
+ "name": "toolbar-position",
7374
+ "default": "`top`",
7375
+ "description": "Toolbar position, cat be set to `bottom`",
7376
+ "options": [],
7377
+ "value": {
7378
+ "type": "string",
7379
+ "kind": "expression"
7380
+ }
7381
+ },
7382
+ {
7383
+ "name": "loading",
7384
+ "default": "`false`",
7385
+ "description": "Whether to show loading prompt",
7386
+ "options": [],
7387
+ "value": {
7388
+ "type": "boolean",
7160
7389
  "kind": "expression"
7161
7390
  }
7162
7391
  },
7163
7392
  {
7164
- "name": "info",
7165
- "default": "-",
7166
- "description": "Bottom info",
7393
+ "name": "show-toolbar",
7394
+ "default": "`true`",
7395
+ "description": "Whether to show toolbar",
7167
7396
  "options": [],
7168
7397
  "value": {
7169
- "type": "string",
7398
+ "type": "boolean",
7170
7399
  "kind": "expression"
7171
7400
  }
7172
7401
  },
7173
7402
  {
7174
- "name": "error-info",
7175
- "default": "-",
7176
- "description": "Bottom error info",
7403
+ "name": "allow-html",
7404
+ "default": "`false`",
7405
+ "description": "Whether to allow HTML in option text",
7177
7406
  "options": [],
7178
7407
  "value": {
7179
- "type": "string",
7408
+ "type": "boolean",
7180
7409
  "kind": "expression"
7181
7410
  }
7182
7411
  },
7183
7412
  {
7184
- "name": "length",
7185
- "default": "`6`",
7186
- "description": "Maxlength of password",
7413
+ "name": "default-index",
7414
+ "default": "`0`",
7415
+ "description": "Default value index of single column picker",
7187
7416
  "options": [],
7188
7417
  "value": {
7189
7418
  "type": "number | string",
@@ -7191,9 +7420,9 @@
7191
7420
  }
7192
7421
  },
7193
7422
  {
7194
- "name": "gutter",
7195
- "default": "`0`",
7196
- "description": "Gutter of input",
7423
+ "name": "item-height",
7424
+ "default": "`44`",
7425
+ "description": "Option height, supports `px` `vw` `vh` `rem` unit, default `px`",
7197
7426
  "options": [],
7198
7427
  "value": {
7199
7428
  "type": "number | string",
@@ -7201,22 +7430,22 @@
7201
7430
  }
7202
7431
  },
7203
7432
  {
7204
- "name": "mask",
7205
- "default": "`true`",
7206
- "description": "Whether to mask value",
7433
+ "name": "visible-item-count",
7434
+ "default": "`6`",
7435
+ "description": "Count of visible columns",
7207
7436
  "options": [],
7208
7437
  "value": {
7209
- "type": "boolean",
7438
+ "type": "number | string",
7210
7439
  "kind": "expression"
7211
7440
  }
7212
7441
  },
7213
7442
  {
7214
- "name": "focused",
7215
- "default": "`false`",
7216
- "description": "Whether to show focused cursor",
7443
+ "name": "swipe-duration",
7444
+ "default": "`1000`",
7445
+ "description": "Duration of the momentum animation, unit `ms`",
7217
7446
  "options": [],
7218
7447
  "value": {
7219
- "type": "boolean",
7448
+ "type": "number | string",
7220
7449
  "kind": "expression"
7221
7450
  }
7222
7451
  }
@@ -7336,268 +7565,59 @@
7336
7565
  }
7337
7566
  },
7338
7567
  {
7339
- "name": "duration",
7340
- "default": "`0.3`",
7341
- "description": "Transition duration, unit second",
7342
- "options": [],
7343
- "value": {
7344
- "type": "number | string",
7345
- "kind": "expression"
7346
- }
7347
- },
7348
- {
7349
- "name": "offset",
7350
- "default": "`[0, 8]`",
7351
- "description": "Distance to reference",
7352
- "options": [],
7353
- "value": {
7354
- "type": "[number, number]",
7355
- "kind": "expression"
7356
- }
7357
- },
7358
- {
7359
- "name": "overlay",
7360
- "default": "`false`",
7361
- "description": "Whether to show overlay",
7362
- "options": [],
7363
- "value": {
7364
- "type": "boolean",
7365
- "kind": "expression"
7366
- }
7367
- },
7368
- {
7369
- "name": "overlay-class",
7370
- "default": "-",
7371
- "description": "Custom overlay class",
7372
- "options": [],
7373
- "value": {
7374
- "type": "string | Array | object",
7375
- "kind": "expression"
7376
- }
7377
- },
7378
- {
7379
- "name": "overlay-style",
7380
- "default": "-",
7381
- "description": "Custom overlay style",
7382
- "options": [],
7383
- "value": {
7384
- "type": "object",
7385
- "kind": "expression"
7386
- }
7387
- },
7388
- {
7389
- "name": "show-arrow",
7390
- "default": "`true`",
7391
- "description": "Whether to show arrow",
7392
- "options": [],
7393
- "value": {
7394
- "type": "boolean",
7395
- "kind": "expression"
7396
- }
7397
- },
7398
- {
7399
- "name": "close-on-click-action",
7400
- "default": "`true`",
7401
- "description": "Whether to close when clicking action",
7402
- "options": [],
7403
- "value": {
7404
- "type": "boolean",
7405
- "kind": "expression"
7406
- }
7407
- },
7408
- {
7409
- "name": "close-on-click-outside",
7410
- "default": "`true`",
7411
- "description": "Whether to close when clicking outside",
7412
- "options": [],
7413
- "value": {
7414
- "type": "boolean",
7415
- "kind": "expression"
7416
- }
7417
- },
7418
- {
7419
- "name": "close-on-click-overlay",
7420
- "default": "`true`",
7421
- "description": "Whether to close when clicking overlay",
7422
- "options": [],
7423
- "value": {
7424
- "type": "boolean",
7425
- "kind": "expression"
7426
- }
7427
- },
7428
- {
7429
- "name": "teleport",
7430
- "default": "`body`",
7431
- "description": "Specifies a target element where Popover will be mounted",
7432
- "options": [],
7433
- "value": {
7434
- "type": "string | Element",
7435
- "kind": "expression"
7436
- }
7437
- },
7438
- {
7439
- "name": "icon-prefix",
7440
- "default": "`van-icon`",
7441
- "description": "Icon className prefix",
7442
- "options": [],
7443
- "value": {
7444
- "type": "string",
7445
- "kind": "expression"
7446
- }
7447
- }
7448
- ]
7449
- },
7450
- {
7451
- "name": "van-picker",
7452
- "slots": [
7453
- {
7454
- "name": "toolbar",
7455
- "description": "Custom toolbar content"
7456
- },
7457
- {
7458
- "name": "title",
7459
- "description": "Custom title"
7460
- },
7461
- {
7462
- "name": "confirm",
7463
- "description": "Custom confirm button text"
7464
- },
7465
- {
7466
- "name": "cancel",
7467
- "description": "Custom cancel button text"
7468
- },
7469
- {
7470
- "name": "option",
7471
- "description": "Custom option content"
7472
- },
7473
- {
7474
- "name": "columns-top",
7475
- "description": "Custom content above columns"
7476
- },
7477
- {
7478
- "name": "columns-bottom",
7479
- "description": "Custom content below columns"
7480
- }
7481
- ],
7482
- "events": [
7483
- {
7484
- "name": "confirm",
7485
- "description": "Emitted when click confirm button.<br>**Notice: the arguments return an array when the multiple columns mode.**",
7486
- "arguments": [
7487
- {
7488
- "name": "currentValue",
7489
- "type": "PickerOption | PickerOption[]"
7490
- },
7491
- {
7492
- "name": "currentIndex",
7493
- "type": "number | number[]"
7494
- }
7495
- ]
7496
- },
7497
- {
7498
- "name": "cancel",
7499
- "description": "Emitted when click cancel button.<br>**Notice: the arguments return an array when the multiple columns mode.**",
7500
- "arguments": [
7501
- {
7502
- "name": "currentValue",
7503
- "type": "PickerOption | PickerOption[]"
7504
- },
7505
- {
7506
- "name": "currentIndex",
7507
- "type": "number | number[]"
7508
- }
7509
- ]
7510
- },
7511
- {
7512
- "name": "change",
7513
- "description": "Emitted when current option changed.<br>**Notice: the arguments return an array when the multiple columns mode.**",
7514
- "arguments": [
7515
- {
7516
- "name": "currentValue",
7517
- "type": "PickerOption | PickerOption[]"
7518
- },
7519
- {
7520
- "name": "currentIndex",
7521
- "type": "number | number[]"
7522
- }
7523
- ]
7524
- }
7525
- ],
7526
- "attributes": [
7527
- {
7528
- "name": "columns",
7529
- "default": "`[]`",
7530
- "description": "Columns data",
7531
- "options": [],
7532
- "value": {
7533
- "type": "Column[]",
7534
- "kind": "expression"
7535
- }
7536
- },
7537
- {
7538
- "name": "columns-field-names",
7539
- "default": "`{ text: 'text', values: 'values', children: 'children' }`",
7540
- "description": "custom columns field",
7541
- "options": [],
7542
- "value": {
7543
- "type": "object",
7544
- "kind": "expression"
7545
- }
7546
- },
7547
- {
7548
- "name": "title",
7549
- "default": "-",
7550
- "description": "Toolbar title",
7568
+ "name": "duration",
7569
+ "default": "`0.3`",
7570
+ "description": "Transition duration, unit second",
7551
7571
  "options": [],
7552
7572
  "value": {
7553
- "type": "string",
7573
+ "type": "number | string",
7554
7574
  "kind": "expression"
7555
7575
  }
7556
7576
  },
7557
7577
  {
7558
- "name": "confirm-button-text",
7559
- "default": "`Confirm`",
7560
- "description": "Text of confirm button",
7578
+ "name": "offset",
7579
+ "default": "`[0, 8]`",
7580
+ "description": "Distance to reference",
7561
7581
  "options": [],
7562
7582
  "value": {
7563
- "type": "string",
7583
+ "type": "[number, number]",
7564
7584
  "kind": "expression"
7565
7585
  }
7566
7586
  },
7567
7587
  {
7568
- "name": "cancel-button-text",
7569
- "default": "`Cancel`",
7570
- "description": "Text of cancel button",
7588
+ "name": "overlay",
7589
+ "default": "`false`",
7590
+ "description": "Whether to show overlay",
7571
7591
  "options": [],
7572
7592
  "value": {
7573
- "type": "string",
7593
+ "type": "boolean",
7574
7594
  "kind": "expression"
7575
7595
  }
7576
7596
  },
7577
7597
  {
7578
- "name": "toolbar-position",
7579
- "default": "`top`",
7580
- "description": "Toolbar position, cat be set to `bottom`",
7598
+ "name": "overlay-class",
7599
+ "default": "-",
7600
+ "description": "Custom overlay class",
7581
7601
  "options": [],
7582
7602
  "value": {
7583
- "type": "string",
7603
+ "type": "string | Array | object",
7584
7604
  "kind": "expression"
7585
7605
  }
7586
7606
  },
7587
7607
  {
7588
- "name": "loading",
7589
- "default": "`false`",
7590
- "description": "Whether to show loading prompt",
7608
+ "name": "overlay-style",
7609
+ "default": "-",
7610
+ "description": "Custom overlay style",
7591
7611
  "options": [],
7592
7612
  "value": {
7593
- "type": "boolean",
7613
+ "type": "object",
7594
7614
  "kind": "expression"
7595
7615
  }
7596
7616
  },
7597
7617
  {
7598
- "name": "show-toolbar",
7618
+ "name": "show-arrow",
7599
7619
  "default": "`true`",
7600
- "description": "Whether to show toolbar",
7620
+ "description": "Whether to show arrow",
7601
7621
  "options": [],
7602
7622
  "value": {
7603
7623
  "type": "boolean",
@@ -7605,9 +7625,9 @@
7605
7625
  }
7606
7626
  },
7607
7627
  {
7608
- "name": "allow-html",
7609
- "default": "`false`",
7610
- "description": "Whether to allow HTML in option text",
7628
+ "name": "close-on-click-action",
7629
+ "default": "`true`",
7630
+ "description": "Whether to close when clicking action",
7611
7631
  "options": [],
7612
7632
  "value": {
7613
7633
  "type": "boolean",
@@ -7615,116 +7635,96 @@
7615
7635
  }
7616
7636
  },
7617
7637
  {
7618
- "name": "default-index",
7619
- "default": "`0`",
7620
- "description": "Default value index of single column picker",
7638
+ "name": "close-on-click-outside",
7639
+ "default": "`true`",
7640
+ "description": "Whether to close when clicking outside",
7621
7641
  "options": [],
7622
7642
  "value": {
7623
- "type": "number | string",
7643
+ "type": "boolean",
7624
7644
  "kind": "expression"
7625
7645
  }
7626
7646
  },
7627
7647
  {
7628
- "name": "item-height",
7629
- "default": "`44`",
7630
- "description": "Option height, supports `px` `vw` `vh` `rem` unit, default `px`",
7648
+ "name": "close-on-click-overlay",
7649
+ "default": "`true`",
7650
+ "description": "Whether to close when clicking overlay",
7631
7651
  "options": [],
7632
7652
  "value": {
7633
- "type": "number | string",
7653
+ "type": "boolean",
7634
7654
  "kind": "expression"
7635
7655
  }
7636
7656
  },
7637
7657
  {
7638
- "name": "visible-item-count",
7639
- "default": "`6`",
7640
- "description": "Count of visible columns",
7658
+ "name": "teleport",
7659
+ "default": "`body`",
7660
+ "description": "Specifies a target element where Popover will be mounted",
7641
7661
  "options": [],
7642
7662
  "value": {
7643
- "type": "number | string",
7663
+ "type": "string | Element",
7644
7664
  "kind": "expression"
7645
7665
  }
7646
7666
  },
7647
7667
  {
7648
- "name": "swipe-duration",
7649
- "default": "`1000`",
7650
- "description": "Duration of the momentum animation, unit `ms`",
7668
+ "name": "icon-prefix",
7669
+ "default": "`van-icon`",
7670
+ "description": "Icon className prefix",
7651
7671
  "options": [],
7652
7672
  "value": {
7653
- "type": "number | string",
7673
+ "type": "string",
7654
7674
  "kind": "expression"
7655
7675
  }
7656
7676
  }
7657
7677
  ]
7658
7678
  },
7659
7679
  {
7660
- "name": "van-popup",
7680
+ "name": "van-pull-refresh",
7661
7681
  "slots": [
7662
7682
  {
7663
7683
  "name": "default",
7664
- "description": "Content of Popup"
7684
+ "description": "Default slot"
7665
7685
  },
7666
7686
  {
7667
- "name": "overlay-content",
7668
- "description": "Content of Popup overlay"
7669
- }
7670
- ],
7671
- "events": [
7672
- {
7673
- "name": "click",
7674
- "description": "Emitted when Popup is clicked",
7675
- "arguments": [
7676
- {
7677
- "name": "event",
7678
- "type": "MouseEvent"
7679
- }
7680
- ]
7687
+ "name": "normal",
7688
+ "description": "Content of head when at normal status"
7681
7689
  },
7682
7690
  {
7683
- "name": "click-overlay",
7684
- "description": "Emitted when overlay is clicked",
7685
- "arguments": [
7686
- {
7687
- "name": "event",
7688
- "type": "MouseEvent"
7689
- }
7690
- ]
7691
+ "name": "pulling",
7692
+ "description": "Content of head when at pulling"
7691
7693
  },
7692
7694
  {
7693
- "name": "click-close-icon",
7694
- "description": "Emitted when close icon is clicked",
7695
- "arguments": [
7696
- {
7697
- "name": "event",
7698
- "type": "MouseEvent"
7699
- }
7700
- ]
7695
+ "name": "loosing",
7696
+ "description": "Content of head when at loosing"
7701
7697
  },
7702
7698
  {
7703
- "name": "open",
7704
- "description": "Emitted when opening Popup",
7705
- "arguments": []
7699
+ "name": "loading",
7700
+ "description": "Content of head when at loading"
7706
7701
  },
7707
7702
  {
7708
- "name": "close",
7709
- "description": "Emitted when closing Popup",
7710
- "arguments": []
7711
- },
7703
+ "name": "success",
7704
+ "description": "Content of head when succeed"
7705
+ }
7706
+ ],
7707
+ "events": [
7712
7708
  {
7713
- "name": "opened",
7714
- "description": "Emitted when Popup is opened",
7709
+ "name": "refresh",
7710
+ "description": "Emitted after pulling refresh",
7715
7711
  "arguments": []
7716
7712
  },
7717
7713
  {
7718
- "name": "closed",
7719
- "description": "Emitted when Popup is closed",
7720
- "arguments": []
7714
+ "name": "change",
7715
+ "description": "Emitted when draging or status changed",
7716
+ "arguments": [
7717
+ {
7718
+ "name": "{ status: string, distance: number }"
7719
+ }
7720
+ ]
7721
7721
  }
7722
7722
  ],
7723
7723
  "attributes": [
7724
7724
  {
7725
- "name": "v-model:show",
7726
- "default": "`false`",
7727
- "description": "Whether to show popup",
7725
+ "name": "v-model",
7726
+ "default": "-",
7727
+ "description": "Loading status",
7728
7728
  "options": [],
7729
7729
  "value": {
7730
7730
  "type": "boolean",
@@ -7732,19 +7732,19 @@
7732
7732
  }
7733
7733
  },
7734
7734
  {
7735
- "name": "overlay",
7736
- "default": "`true`",
7737
- "description": "Whether to show overlay",
7735
+ "name": "pulling-text",
7736
+ "default": "`Pull to refresh...`",
7737
+ "description": "Text to show when pulling",
7738
7738
  "options": [],
7739
7739
  "value": {
7740
- "type": "boolean",
7740
+ "type": "string",
7741
7741
  "kind": "expression"
7742
7742
  }
7743
7743
  },
7744
7744
  {
7745
- "name": "position",
7746
- "default": "`center`",
7747
- "description": "Can be set to `top` `bottom` `right` `left`",
7745
+ "name": "loosing-text",
7746
+ "default": "`Loose to refresh...`",
7747
+ "description": "Text to show when loosing",
7748
7748
  "options": [],
7749
7749
  "value": {
7750
7750
  "type": "string",
@@ -7752,29 +7752,29 @@
7752
7752
  }
7753
7753
  },
7754
7754
  {
7755
- "name": "overlay-class",
7756
- "default": "-",
7757
- "description": "Custom overlay class",
7755
+ "name": "loading-text",
7756
+ "default": "`Loading...`",
7757
+ "description": "Text to show when loading",
7758
7758
  "options": [],
7759
7759
  "value": {
7760
- "type": "string | Array | object",
7760
+ "type": "string",
7761
7761
  "kind": "expression"
7762
7762
  }
7763
7763
  },
7764
7764
  {
7765
- "name": "overlay-style",
7765
+ "name": "success-text",
7766
7766
  "default": "-",
7767
- "description": "Custom overlay style",
7767
+ "description": "Text to show when loading success",
7768
7768
  "options": [],
7769
7769
  "value": {
7770
- "type": "object",
7770
+ "type": "string",
7771
7771
  "kind": "expression"
7772
7772
  }
7773
7773
  },
7774
7774
  {
7775
- "name": "duration",
7776
- "default": "`0.3`",
7777
- "description": "Transition duration, unit second",
7775
+ "name": "success-duration",
7776
+ "default": "`500`",
7777
+ "description": "Success text display duration(ms)",
7778
7778
  "options": [],
7779
7779
  "value": {
7780
7780
  "type": "number | string",
@@ -7782,59 +7782,96 @@
7782
7782
  }
7783
7783
  },
7784
7784
  {
7785
- "name": "round",
7786
- "default": "`false`",
7787
- "description": "Whether to show round corner",
7785
+ "name": "animation-duration",
7786
+ "default": "`300`",
7787
+ "description": "Animation duration",
7788
7788
  "options": [],
7789
7789
  "value": {
7790
- "type": "boolean",
7790
+ "type": "number | string",
7791
7791
  "kind": "expression"
7792
7792
  }
7793
7793
  },
7794
7794
  {
7795
- "name": "lock-scroll",
7796
- "default": "`true`",
7797
- "description": "Whether to lock background scroll",
7795
+ "name": "head-height",
7796
+ "default": "`50`",
7797
+ "description": "Height of head",
7798
7798
  "options": [],
7799
7799
  "value": {
7800
- "type": "boolean",
7800
+ "type": "number | string",
7801
7801
  "kind": "expression"
7802
7802
  }
7803
7803
  },
7804
7804
  {
7805
- "name": "lazy-render",
7806
- "default": "`true`",
7807
- "description": "Whether to lazy render util appeared",
7805
+ "name": "pull-distance",
7806
+ "default": "same as `head-height`",
7807
+ "description": "The distance to trigger the pull refresh",
7808
7808
  "options": [],
7809
7809
  "value": {
7810
- "type": "boolean",
7810
+ "type": "number | string",
7811
7811
  "kind": "expression"
7812
7812
  }
7813
7813
  },
7814
7814
  {
7815
- "name": "close-on-popstate",
7815
+ "name": "disabled",
7816
7816
  "default": "`false`",
7817
- "description": "Whether to close when popstate",
7817
+ "description": "Whether to disable pull refresh",
7818
7818
  "options": [],
7819
7819
  "value": {
7820
7820
  "type": "boolean",
7821
7821
  "kind": "expression"
7822
7822
  }
7823
+ }
7824
+ ]
7825
+ },
7826
+ {
7827
+ "name": "van-radio",
7828
+ "slots": [
7829
+ {
7830
+ "name": "default",
7831
+ "description": "Custom label"
7832
+ },
7833
+ {
7834
+ "name": "icon",
7835
+ "description": "Custom icon"
7836
+ }
7837
+ ],
7838
+ "events": [
7839
+ {
7840
+ "name": "click",
7841
+ "description": "Emitted when radio is clicked",
7842
+ "arguments": [
7843
+ {
7844
+ "name": "event",
7845
+ "type": "MouseEvent"
7846
+ }
7847
+ ]
7848
+ }
7849
+ ],
7850
+ "attributes": [
7851
+ {
7852
+ "name": "name",
7853
+ "default": "-",
7854
+ "description": "Radio name",
7855
+ "options": [],
7856
+ "value": {
7857
+ "type": "any",
7858
+ "kind": "expression"
7859
+ }
7823
7860
  },
7824
7861
  {
7825
- "name": "close-on-click-overlay",
7826
- "default": "`true`",
7827
- "description": "Whether to close when overlay is clicked",
7862
+ "name": "shape",
7863
+ "default": "`round`",
7864
+ "description": "Can be set to `square`",
7828
7865
  "options": [],
7829
7866
  "value": {
7830
- "type": "boolean",
7867
+ "type": "string",
7831
7868
  "kind": "expression"
7832
7869
  }
7833
7870
  },
7834
7871
  {
7835
- "name": "closeable",
7872
+ "name": "disabled",
7836
7873
  "default": "`false`",
7837
- "description": "Whether to show close icon",
7874
+ "description": "Whether to disable radio",
7838
7875
  "options": [],
7839
7876
  "value": {
7840
7877
  "type": "boolean",
@@ -7842,19 +7879,19 @@
7842
7879
  }
7843
7880
  },
7844
7881
  {
7845
- "name": "close-icon",
7846
- "default": "`cross`",
7847
- "description": "Close icon name",
7882
+ "name": "label-disabled",
7883
+ "default": "`false`",
7884
+ "description": "Whether to disable label click",
7848
7885
  "options": [],
7849
7886
  "value": {
7850
- "type": "string",
7887
+ "type": "boolean",
7851
7888
  "kind": "expression"
7852
7889
  }
7853
7890
  },
7854
7891
  {
7855
- "name": "close-icon-position",
7856
- "default": "`top-right`",
7857
- "description": "Close Icon Position, can be set to `top-left` `bottom-left` `bottom-right`",
7892
+ "name": "label-position",
7893
+ "default": "`right`",
7894
+ "description": "Can be set to `left`",
7858
7895
  "options": [],
7859
7896
  "value": {
7860
7897
  "type": "string",
@@ -7862,39 +7899,57 @@
7862
7899
  }
7863
7900
  },
7864
7901
  {
7865
- "name": "before-close",
7866
- "default": "-",
7867
- "description": "Callback function before close",
7902
+ "name": "icon-size",
7903
+ "default": "`20px`",
7904
+ "description": "Icon size",
7868
7905
  "options": [],
7869
7906
  "value": {
7870
- "type": "(action: string) => boolean | Promise\\<boolean\\>",
7907
+ "type": "number | string",
7871
7908
  "kind": "expression"
7872
7909
  }
7873
7910
  },
7874
7911
  {
7875
- "name": "icon-prefix",
7876
- "default": "`van-icon`",
7877
- "description": "Icon className prefix",
7912
+ "name": "checked-color",
7913
+ "default": "`#1989fa`",
7914
+ "description": "Checked color",
7878
7915
  "options": [],
7879
7916
  "value": {
7880
7917
  "type": "string",
7881
7918
  "kind": "expression"
7882
7919
  }
7883
- },
7920
+ }
7921
+ ]
7922
+ },
7923
+ {
7924
+ "name": "van-radio-group",
7925
+ "slots": [],
7926
+ "events": [
7884
7927
  {
7885
- "name": "transition",
7928
+ "name": "change",
7929
+ "description": "Emitted when value changed",
7930
+ "arguments": [
7931
+ {
7932
+ "name": "name",
7933
+ "type": "string"
7934
+ }
7935
+ ]
7936
+ }
7937
+ ],
7938
+ "attributes": [
7939
+ {
7940
+ "name": "v-model",
7886
7941
  "default": "-",
7887
- "description": "Transition, equivalent to `name` prop of [transition](https://v3.vuejs.org/api/built-in-components.html#transition)",
7942
+ "description": "Name of checked radio",
7888
7943
  "options": [],
7889
7944
  "value": {
7890
- "type": "string",
7945
+ "type": "any",
7891
7946
  "kind": "expression"
7892
7947
  }
7893
7948
  },
7894
7949
  {
7895
- "name": "transition-appear",
7950
+ "name": "disabled",
7896
7951
  "default": "`false`",
7897
- "description": "Whether to apply transition on initial render",
7952
+ "description": "Disable all radios",
7898
7953
  "options": [],
7899
7954
  "value": {
7900
7955
  "type": "boolean",
@@ -7902,32 +7957,32 @@
7902
7957
  }
7903
7958
  },
7904
7959
  {
7905
- "name": "teleport",
7906
- "default": "-",
7907
- "description": "Specifies a target element where Popup will be mounted",
7960
+ "name": "direction",
7961
+ "default": "`vertical`",
7962
+ "description": "Direction, can be set to `horizontal`",
7908
7963
  "options": [],
7909
7964
  "value": {
7910
- "type": "string | Element",
7965
+ "type": "string",
7911
7966
  "kind": "expression"
7912
7967
  }
7913
7968
  },
7914
7969
  {
7915
- "name": "safe-area-inset-top",
7916
- "default": "`false`",
7917
- "description": "Whether to enable top safe area adaptation",
7970
+ "name": "icon-size",
7971
+ "default": "`20px`",
7972
+ "description": "Icon size of all radios",
7918
7973
  "options": [],
7919
7974
  "value": {
7920
- "type": "boolean",
7975
+ "type": "number | string",
7921
7976
  "kind": "expression"
7922
7977
  }
7923
7978
  },
7924
7979
  {
7925
- "name": "safe-area-inset-bottom",
7926
- "default": "`false`",
7927
- "description": "Whether to enable bottom safe area adaptation",
7980
+ "name": "checked-color",
7981
+ "default": "`#1989fa`",
7982
+ "description": "Checked color of all radios",
7928
7983
  "options": [],
7929
7984
  "value": {
7930
- "type": "boolean",
7985
+ "type": "string",
7931
7986
  "kind": "expression"
7932
7987
  }
7933
7988
  }
@@ -8031,45 +8086,74 @@
8031
8086
  ]
8032
8087
  },
8033
8088
  {
8034
- "name": "van-pull-refresh",
8089
+ "name": "van-popup",
8035
8090
  "slots": [
8036
8091
  {
8037
8092
  "name": "default",
8038
- "description": "Default slot"
8093
+ "description": "Content of Popup"
8039
8094
  },
8040
8095
  {
8041
- "name": "normal",
8042
- "description": "Content of head when at normal status"
8096
+ "name": "overlay-content",
8097
+ "description": "Content of Popup overlay"
8098
+ }
8099
+ ],
8100
+ "events": [
8101
+ {
8102
+ "name": "click",
8103
+ "description": "Emitted when Popup is clicked",
8104
+ "arguments": [
8105
+ {
8106
+ "name": "event",
8107
+ "type": "MouseEvent"
8108
+ }
8109
+ ]
8043
8110
  },
8044
8111
  {
8045
- "name": "pulling",
8046
- "description": "Content of head when at pulling"
8112
+ "name": "click-overlay",
8113
+ "description": "Emitted when overlay is clicked",
8114
+ "arguments": [
8115
+ {
8116
+ "name": "event",
8117
+ "type": "MouseEvent"
8118
+ }
8119
+ ]
8047
8120
  },
8048
8121
  {
8049
- "name": "loosing",
8050
- "description": "Content of head when at loosing"
8122
+ "name": "click-close-icon",
8123
+ "description": "Emitted when close icon is clicked",
8124
+ "arguments": [
8125
+ {
8126
+ "name": "event",
8127
+ "type": "MouseEvent"
8128
+ }
8129
+ ]
8051
8130
  },
8052
8131
  {
8053
- "name": "loading",
8054
- "description": "Content of head when at loading"
8132
+ "name": "open",
8133
+ "description": "Emitted when opening Popup",
8134
+ "arguments": []
8055
8135
  },
8056
8136
  {
8057
- "name": "success",
8058
- "description": "Content of head when succeed"
8059
- }
8060
- ],
8061
- "events": [
8137
+ "name": "close",
8138
+ "description": "Emitted when closing Popup",
8139
+ "arguments": []
8140
+ },
8062
8141
  {
8063
- "name": "refresh",
8064
- "description": "Emitted after pulling refresh",
8142
+ "name": "opened",
8143
+ "description": "Emitted when Popup is opened",
8144
+ "arguments": []
8145
+ },
8146
+ {
8147
+ "name": "closed",
8148
+ "description": "Emitted when Popup is closed",
8065
8149
  "arguments": []
8066
8150
  }
8067
8151
  ],
8068
8152
  "attributes": [
8069
8153
  {
8070
- "name": "v-model",
8071
- "default": "-",
8072
- "description": "Loading status",
8154
+ "name": "v-model:show",
8155
+ "default": "`false`",
8156
+ "description": "Whether to show popup",
8073
8157
  "options": [],
8074
8158
  "value": {
8075
8159
  "type": "boolean",
@@ -8077,29 +8161,19 @@
8077
8161
  }
8078
8162
  },
8079
8163
  {
8080
- "name": "pulling-text",
8081
- "default": "`Pull to refresh...`",
8082
- "description": "Text to show when pulling",
8083
- "options": [],
8084
- "value": {
8085
- "type": "string",
8086
- "kind": "expression"
8087
- }
8088
- },
8089
- {
8090
- "name": "loosing-text",
8091
- "default": "`Loose to refresh...`",
8092
- "description": "Text to show when loosing",
8164
+ "name": "overlay",
8165
+ "default": "`true`",
8166
+ "description": "Whether to show overlay",
8093
8167
  "options": [],
8094
8168
  "value": {
8095
- "type": "string",
8169
+ "type": "boolean",
8096
8170
  "kind": "expression"
8097
8171
  }
8098
8172
  },
8099
8173
  {
8100
- "name": "loading-text",
8101
- "default": "`Loading...`",
8102
- "description": "Text to show when loading",
8174
+ "name": "position",
8175
+ "default": "`center`",
8176
+ "description": "Can be set to `top` `bottom` `right` `left`",
8103
8177
  "options": [],
8104
8178
  "value": {
8105
8179
  "type": "string",
@@ -8107,29 +8181,29 @@
8107
8181
  }
8108
8182
  },
8109
8183
  {
8110
- "name": "success-text",
8184
+ "name": "overlay-class",
8111
8185
  "default": "-",
8112
- "description": "Text to show when loading success",
8186
+ "description": "Custom overlay class",
8113
8187
  "options": [],
8114
8188
  "value": {
8115
- "type": "string",
8189
+ "type": "string | Array | object",
8116
8190
  "kind": "expression"
8117
8191
  }
8118
8192
  },
8119
8193
  {
8120
- "name": "success-duration",
8121
- "default": "`500`",
8122
- "description": "Success text display duration(ms)",
8194
+ "name": "overlay-style",
8195
+ "default": "-",
8196
+ "description": "Custom overlay style",
8123
8197
  "options": [],
8124
8198
  "value": {
8125
- "type": "number | string",
8199
+ "type": "object",
8126
8200
  "kind": "expression"
8127
8201
  }
8128
8202
  },
8129
8203
  {
8130
- "name": "animation-duration",
8131
- "default": "`300`",
8132
- "description": "Animation duration",
8204
+ "name": "duration",
8205
+ "default": "`0.3`",
8206
+ "description": "Transition duration, unit second",
8133
8207
  "options": [],
8134
8208
  "value": {
8135
8209
  "type": "number | string",
@@ -8137,86 +8211,59 @@
8137
8211
  }
8138
8212
  },
8139
8213
  {
8140
- "name": "head-height",
8141
- "default": "`50`",
8142
- "description": "Height of head",
8214
+ "name": "round",
8215
+ "default": "`false`",
8216
+ "description": "Whether to show round corner",
8143
8217
  "options": [],
8144
8218
  "value": {
8145
- "type": "number | string",
8219
+ "type": "boolean",
8146
8220
  "kind": "expression"
8147
8221
  }
8148
8222
  },
8149
8223
  {
8150
- "name": "pull-distance",
8151
- "default": "same as `head-height`",
8152
- "description": "The distance to trigger the pull refresh",
8224
+ "name": "lock-scroll",
8225
+ "default": "`true`",
8226
+ "description": "Whether to lock background scroll",
8153
8227
  "options": [],
8154
8228
  "value": {
8155
- "type": "number | string",
8229
+ "type": "boolean",
8156
8230
  "kind": "expression"
8157
8231
  }
8158
8232
  },
8159
8233
  {
8160
- "name": "disabled",
8161
- "default": "`false`",
8162
- "description": "Whether to disable pull refresh",
8234
+ "name": "lazy-render",
8235
+ "default": "`true`",
8236
+ "description": "Whether to lazy render util appeared",
8163
8237
  "options": [],
8164
8238
  "value": {
8165
8239
  "type": "boolean",
8166
8240
  "kind": "expression"
8167
8241
  }
8168
- }
8169
- ]
8170
- },
8171
- {
8172
- "name": "van-radio",
8173
- "slots": [
8174
- {
8175
- "name": "default",
8176
- "description": "Custom label"
8177
8242
  },
8178
8243
  {
8179
- "name": "icon",
8180
- "description": "Custom icon"
8181
- }
8182
- ],
8183
- "events": [
8184
- {
8185
- "name": "click",
8186
- "description": "Emitted when radio is clicked",
8187
- "arguments": [
8188
- {
8189
- "name": "event",
8190
- "type": "MouseEvent"
8191
- }
8192
- ]
8193
- }
8194
- ],
8195
- "attributes": [
8196
- {
8197
- "name": "name",
8198
- "default": "-",
8199
- "description": "Radio name",
8244
+ "name": "close-on-popstate",
8245
+ "default": "`false`",
8246
+ "description": "Whether to close when popstate",
8200
8247
  "options": [],
8201
8248
  "value": {
8202
- "type": "any",
8249
+ "type": "boolean",
8203
8250
  "kind": "expression"
8204
8251
  }
8205
8252
  },
8206
8253
  {
8207
- "name": "shape",
8208
- "default": "`round`",
8209
- "description": "Can be set to `square`",
8254
+ "name": "close-on-click-overlay",
8255
+ "default": "`true`",
8256
+ "description": "Whether to close when overlay is clicked",
8210
8257
  "options": [],
8211
8258
  "value": {
8212
- "type": "string",
8259
+ "type": "boolean",
8213
8260
  "kind": "expression"
8214
8261
  }
8215
8262
  },
8216
8263
  {
8217
- "name": "disabled",
8264
+ "name": "closeable",
8218
8265
  "default": "`false`",
8219
- "description": "Whether to disable radio",
8266
+ "description": "Whether to show close icon",
8220
8267
  "options": [],
8221
8268
  "value": {
8222
8269
  "type": "boolean",
@@ -8224,19 +8271,19 @@
8224
8271
  }
8225
8272
  },
8226
8273
  {
8227
- "name": "label-disabled",
8228
- "default": "`false`",
8229
- "description": "Whether to disable label click",
8274
+ "name": "close-icon",
8275
+ "default": "`cross`",
8276
+ "description": "Close icon name",
8230
8277
  "options": [],
8231
8278
  "value": {
8232
- "type": "boolean",
8279
+ "type": "string",
8233
8280
  "kind": "expression"
8234
8281
  }
8235
8282
  },
8236
8283
  {
8237
- "name": "label-position",
8238
- "default": "`right`",
8239
- "description": "Can be set to `left`",
8284
+ "name": "close-icon-position",
8285
+ "default": "`top-right`",
8286
+ "description": "Close Icon Position, can be set to `top-left` `bottom-left` `bottom-right`",
8240
8287
  "options": [],
8241
8288
  "value": {
8242
8289
  "type": "string",
@@ -8244,57 +8291,39 @@
8244
8291
  }
8245
8292
  },
8246
8293
  {
8247
- "name": "icon-size",
8248
- "default": "`20px`",
8249
- "description": "Icon size",
8294
+ "name": "before-close",
8295
+ "default": "-",
8296
+ "description": "Callback function before close",
8250
8297
  "options": [],
8251
8298
  "value": {
8252
- "type": "number | string",
8299
+ "type": "(action: string) => boolean | Promise\\<boolean\\>",
8253
8300
  "kind": "expression"
8254
8301
  }
8255
8302
  },
8256
8303
  {
8257
- "name": "checked-color",
8258
- "default": "`#1989fa`",
8259
- "description": "Checked color",
8304
+ "name": "icon-prefix",
8305
+ "default": "`van-icon`",
8306
+ "description": "Icon className prefix",
8260
8307
  "options": [],
8261
8308
  "value": {
8262
8309
  "type": "string",
8263
8310
  "kind": "expression"
8264
8311
  }
8265
- }
8266
- ]
8267
- },
8268
- {
8269
- "name": "van-radio-group",
8270
- "slots": [],
8271
- "events": [
8272
- {
8273
- "name": "change",
8274
- "description": "Emitted when value changed",
8275
- "arguments": [
8276
- {
8277
- "name": "name",
8278
- "type": "string"
8279
- }
8280
- ]
8281
- }
8282
- ],
8283
- "attributes": [
8312
+ },
8284
8313
  {
8285
- "name": "v-model",
8314
+ "name": "transition",
8286
8315
  "default": "-",
8287
- "description": "Name of checked radio",
8316
+ "description": "Transition, equivalent to `name` prop of [transition](https://v3.vuejs.org/api/built-in-components.html#transition)",
8288
8317
  "options": [],
8289
8318
  "value": {
8290
- "type": "any",
8319
+ "type": "string",
8291
8320
  "kind": "expression"
8292
8321
  }
8293
8322
  },
8294
8323
  {
8295
- "name": "disabled",
8324
+ "name": "transition-appear",
8296
8325
  "default": "`false`",
8297
- "description": "Disable all radios",
8326
+ "description": "Whether to apply transition on initial render",
8298
8327
  "options": [],
8299
8328
  "value": {
8300
8329
  "type": "boolean",
@@ -8302,32 +8331,32 @@
8302
8331
  }
8303
8332
  },
8304
8333
  {
8305
- "name": "direction",
8306
- "default": "`vertical`",
8307
- "description": "Direction, can be set to `horizontal`",
8334
+ "name": "teleport",
8335
+ "default": "-",
8336
+ "description": "Specifies a target element where Popup will be mounted",
8308
8337
  "options": [],
8309
8338
  "value": {
8310
- "type": "string",
8339
+ "type": "string | Element",
8311
8340
  "kind": "expression"
8312
8341
  }
8313
8342
  },
8314
8343
  {
8315
- "name": "icon-size",
8316
- "default": "`20px`",
8317
- "description": "Icon size of all radios",
8344
+ "name": "safe-area-inset-top",
8345
+ "default": "`false`",
8346
+ "description": "Whether to enable top safe area adaptation",
8318
8347
  "options": [],
8319
8348
  "value": {
8320
- "type": "number | string",
8349
+ "type": "boolean",
8321
8350
  "kind": "expression"
8322
8351
  }
8323
8352
  },
8324
8353
  {
8325
- "name": "checked-color",
8326
- "default": "`#1989fa`",
8327
- "description": "Checked color of all radios",
8354
+ "name": "safe-area-inset-bottom",
8355
+ "default": "`false`",
8356
+ "description": "Whether to enable bottom safe area adaptation",
8328
8357
  "options": [],
8329
8358
  "value": {
8330
- "type": "string",
8359
+ "type": "boolean",
8331
8360
  "kind": "expression"
8332
8361
  }
8333
8362
  }
@@ -9513,6 +9542,83 @@
9513
9542
  }
9514
9543
  ]
9515
9544
  },
9545
+ {
9546
+ "name": "van-sticky",
9547
+ "slots": [],
9548
+ "events": [
9549
+ {
9550
+ "name": "change",
9551
+ "description": "Emitted when sticky status changed",
9552
+ "arguments": [
9553
+ {
9554
+ "name": "isFixed",
9555
+ "type": "boolean"
9556
+ }
9557
+ ]
9558
+ },
9559
+ {
9560
+ "name": "scroll",
9561
+ "description": "Emitted when scrolling",
9562
+ "arguments": [
9563
+ {
9564
+ "name": "{ scrollTop: number, isFixed: boolean }"
9565
+ }
9566
+ ]
9567
+ }
9568
+ ],
9569
+ "attributes": [
9570
+ {
9571
+ "name": "position",
9572
+ "default": "`top`",
9573
+ "description": "Offset position, can be set to `bottom`",
9574
+ "options": [],
9575
+ "value": {
9576
+ "type": "string",
9577
+ "kind": "expression"
9578
+ }
9579
+ },
9580
+ {
9581
+ "name": "offset-top",
9582
+ "default": "`0`",
9583
+ "description": "Offset top, supports `px` `vw` `vh` `rem` unit, default `px`",
9584
+ "options": [],
9585
+ "value": {
9586
+ "type": "number | string",
9587
+ "kind": "expression"
9588
+ }
9589
+ },
9590
+ {
9591
+ "name": "offset-bottom",
9592
+ "default": "`0`",
9593
+ "description": "Offset bottom, supports `px` `vw` `vh` `rem` unit, default `px`",
9594
+ "options": [],
9595
+ "value": {
9596
+ "type": "number | string",
9597
+ "kind": "expression"
9598
+ }
9599
+ },
9600
+ {
9601
+ "name": "z-index",
9602
+ "default": "`99`",
9603
+ "description": "z-index when sticky",
9604
+ "options": [],
9605
+ "value": {
9606
+ "type": "number | string",
9607
+ "kind": "expression"
9608
+ }
9609
+ },
9610
+ {
9611
+ "name": "container",
9612
+ "default": "-",
9613
+ "description": "Container DOM",
9614
+ "options": [],
9615
+ "value": {
9616
+ "type": "Element",
9617
+ "kind": "expression"
9618
+ }
9619
+ }
9620
+ ]
9621
+ },
9516
9622
  {
9517
9623
  "name": "van-stepper",
9518
9624
  "slots": [],
@@ -9911,83 +10017,6 @@
9911
10017
  "events": [],
9912
10018
  "attributes": []
9913
10019
  },
9914
- {
9915
- "name": "van-sticky",
9916
- "slots": [],
9917
- "events": [
9918
- {
9919
- "name": "change",
9920
- "description": "Emitted when sticky status changed",
9921
- "arguments": [
9922
- {
9923
- "name": "isFixed",
9924
- "type": "boolean"
9925
- }
9926
- ]
9927
- },
9928
- {
9929
- "name": "scroll",
9930
- "description": "Emitted when scrolling",
9931
- "arguments": [
9932
- {
9933
- "name": "{ scrollTop: number, isFixed: boolean }"
9934
- }
9935
- ]
9936
- }
9937
- ],
9938
- "attributes": [
9939
- {
9940
- "name": "position",
9941
- "default": "`top`",
9942
- "description": "Offset position, can be set to `bottom`",
9943
- "options": [],
9944
- "value": {
9945
- "type": "string",
9946
- "kind": "expression"
9947
- }
9948
- },
9949
- {
9950
- "name": "offset-top",
9951
- "default": "`0`",
9952
- "description": "Offset top, supports `px` `vw` `vh` `rem` unit, default `px`",
9953
- "options": [],
9954
- "value": {
9955
- "type": "number | string",
9956
- "kind": "expression"
9957
- }
9958
- },
9959
- {
9960
- "name": "offset-bottom",
9961
- "default": "`0`",
9962
- "description": "Offset bottom, supports `px` `vw` `vh` `rem` unit, default `px`",
9963
- "options": [],
9964
- "value": {
9965
- "type": "number | string",
9966
- "kind": "expression"
9967
- }
9968
- },
9969
- {
9970
- "name": "z-index",
9971
- "default": "`99`",
9972
- "description": "z-index when sticky",
9973
- "options": [],
9974
- "value": {
9975
- "type": "number | string",
9976
- "kind": "expression"
9977
- }
9978
- },
9979
- {
9980
- "name": "container",
9981
- "default": "-",
9982
- "description": "Container DOM",
9983
- "options": [],
9984
- "value": {
9985
- "type": "Element",
9986
- "kind": "expression"
9987
- }
9988
- }
9989
- ]
9990
- },
9991
10020
  {
9992
10021
  "name": "van-submit-bar",
9993
10022
  "slots": [
@@ -10439,6 +10468,10 @@
10439
10468
  {
10440
10469
  "name": "node",
10441
10470
  "description": "Custom the content of node"
10471
+ },
10472
+ {
10473
+ "name": "background",
10474
+ "description": "Custom the background of switch"
10442
10475
  }
10443
10476
  ],
10444
10477
  "events": [