vant 3.2.5 → 3.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/action-bar/index.css +1 -1
- package/es/action-bar/index.less +1 -1
- package/es/action-bar-icon/ActionBarIcon.js +2 -2
- package/es/action-bar-icon/index.css +1 -1
- package/es/action-bar-icon/index.less +1 -1
- package/es/action-sheet/ActionSheet.d.ts +15 -9
- package/es/action-sheet/ActionSheet.js +7 -15
- package/es/action-sheet/index.css +1 -1
- package/es/action-sheet/index.d.ts +10 -3
- package/es/action-sheet/index.less +2 -2
- package/es/address-edit/AddressEdit.d.ts +1 -2
- package/es/address-edit/AddressEdit.js +3 -8
- package/es/address-edit/AddressEditDetail.js +5 -6
- package/es/address-edit/index.css +1 -1
- package/es/address-edit/index.d.ts +1 -2
- package/es/address-edit/index.less +2 -2
- package/es/address-edit/style/index.js +0 -3
- package/es/address-edit/style/less.js +0 -3
- package/es/address-list/AddressList.js +2 -6
- package/es/badge/index.css +1 -1
- package/es/badge/index.less +4 -2
- package/es/calendar/Calendar.js +11 -8
- package/es/calendar/index.css +1 -1
- package/es/calendar/index.less +3 -3
- package/es/card/index.css +1 -1
- package/es/card/index.less +1 -1
- package/es/cascader/Cascader.d.ts +25 -14
- package/es/cascader/Cascader.js +49 -46
- package/es/cascader/index.d.ts +8 -6
- package/es/cascader/types.d.ts +18 -0
- package/es/cascader/types.js +1 -0
- package/es/cell/index.css +1 -1
- package/es/cell/index.less +1 -1
- package/es/cell-group/index.css +1 -1
- package/es/cell-group/index.less +1 -1
- package/es/checkbox/Checker.js +1 -8
- package/es/checkbox/index.d.ts +1 -1
- package/es/checkbox/types.d.ts +3 -0
- package/es/checkbox-group/index.d.ts +1 -1
- package/es/checkbox-group/types.d.ts +2 -1
- package/es/collapse-item/index.css +1 -1
- package/es/collapse-item/index.less +1 -1
- package/es/contact-edit/ContactEdit.js +1 -4
- package/es/contact-edit/style/index.js +0 -5
- package/es/contact-edit/style/less.js +0 -5
- package/es/coupon/index.css +1 -1
- package/es/coupon/index.less +1 -1
- package/es/coupon-list/CouponList.js +1 -1
- package/es/coupon-list/index.css +1 -1
- package/es/coupon-list/index.less +1 -1
- package/es/dialog/Dialog.js +5 -10
- package/es/dialog/function-call.d.ts +2 -2
- package/es/dialog/function-call.js +2 -2
- package/es/dialog/index.css +1 -1
- package/es/dialog/index.less +1 -1
- package/es/dropdown-item/DropdownItem.js +1 -1
- package/es/dropdown-menu/index.css +1 -1
- package/es/dropdown-menu/index.less +1 -1
- package/es/empty/Network.js +8 -27
- package/es/grid-item/GridItem.js +2 -2
- package/es/grid-item/index.css +1 -1
- package/es/grid-item/index.less +1 -1
- package/es/image/Image.js +7 -20
- package/es/image/index.css +1 -1
- package/es/image/index.less +1 -1
- package/es/image-preview/ImagePreview.js +5 -6
- package/es/image-preview/function-call.js +2 -2
- package/es/image-preview/index.css +1 -1
- package/es/image-preview/index.less +1 -1
- package/es/index-anchor/index.css +1 -1
- package/es/index-anchor/index.less +2 -2
- package/es/index-bar/IndexBar.js +1 -12
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/locale/lang/de-DE-formal.d.ts +0 -1
- package/es/locale/lang/de-DE-formal.js +0 -1
- package/es/locale/lang/de-DE.d.ts +0 -1
- package/es/locale/lang/de-DE.js +0 -1
- package/es/locale/lang/en-US.d.ts +0 -1
- package/es/locale/lang/en-US.js +0 -1
- package/es/locale/lang/es-ES.d.ts +0 -1
- package/es/locale/lang/es-ES.js +0 -1
- package/es/locale/lang/fr-FR.d.ts +0 -1
- package/es/locale/lang/fr-FR.js +0 -1
- package/es/locale/lang/ja-JP.d.ts +0 -1
- package/es/locale/lang/ja-JP.js +0 -1
- package/es/locale/lang/nb-NO.d.ts +0 -1
- package/es/locale/lang/nb-NO.js +0 -1
- package/es/locale/lang/ro-RO.d.ts +0 -1
- package/es/locale/lang/ro-RO.js +0 -1
- package/es/locale/lang/ru-RU.d.ts +0 -1
- package/es/locale/lang/ru-RU.js +0 -1
- package/es/locale/lang/th-TH.d.ts +0 -1
- package/es/locale/lang/th-TH.js +0 -1
- package/es/locale/lang/tr-TR.d.ts +0 -1
- package/es/locale/lang/tr-TR.js +0 -1
- package/es/locale/lang/zh-CN.d.ts +0 -1
- package/es/locale/lang/zh-CN.js +0 -1
- package/es/locale/lang/zh-HK.d.ts +0 -1
- package/es/locale/lang/zh-HK.js +0 -1
- package/es/locale/lang/zh-TW.d.ts +0 -1
- package/es/locale/lang/zh-TW.js +0 -1
- package/es/nav-bar/index.css +1 -1
- package/es/nav-bar/index.less +1 -1
- package/es/notice-bar/NoticeBar.d.ts +1 -1
- package/es/notice-bar/index.css +1 -1
- package/es/notice-bar/index.d.ts +1 -1
- package/es/notice-bar/index.less +1 -1
- package/es/notify/Notify.d.ts +4 -2
- package/es/notify/Notify.js +6 -1
- package/es/notify/function-call.d.ts +4 -2
- package/es/notify/function-call.js +1 -1
- package/es/notify/index.css +1 -1
- package/es/notify/index.less +4 -4
- package/es/number-keyboard/index.css +1 -1
- package/es/number-keyboard/index.less +3 -3
- package/es/overlay/Overlay.js +2 -2
- package/es/overlay/index.css +1 -1
- package/es/overlay/index.less +1 -1
- package/es/pagination/index.css +1 -1
- package/es/pagination/index.less +1 -1
- package/es/password-input/index.css +1 -1
- package/es/password-input/index.less +3 -3
- package/es/picker/index.css +1 -1
- package/es/picker/index.less +2 -2
- package/es/popover/Popover.js +3 -4
- package/es/popover/index.css +1 -1
- package/es/popover/index.less +2 -2
- package/es/popup/Popup.js +2 -4
- package/es/popup/index.css +1 -1
- package/es/popup/index.less +1 -1
- package/es/progress/Progress.js +7 -3
- package/es/progress/index.css +1 -1
- package/es/progress/index.less +10 -1
- package/es/progress/var.less +1 -0
- package/es/pull-refresh/PullRefresh.js +2 -2
- package/es/radio/Radio.d.ts +9 -6
- package/es/radio/index.d.ts +2 -0
- package/es/radio-group/RadioGroup.d.ts +1 -0
- package/es/radio-group/index.d.ts +2 -0
- package/es/search/Search.js +3 -4
- package/es/search/index.css +1 -1
- package/es/search/index.less +2 -2
- package/es/share-sheet/ShareSheet.d.ts +7 -0
- package/es/share-sheet/ShareSheet.js +5 -6
- package/es/share-sheet/index.d.ts +7 -0
- package/es/sidebar-item/index.css +1 -1
- package/es/sidebar-item/index.less +1 -1
- package/es/skeleton/index.css +1 -1
- package/es/skeleton/index.less +2 -2
- package/es/slider/index.css +1 -1
- package/es/slider/index.less +3 -3
- package/es/stepper/Stepper.d.ts +1 -1
- package/es/stepper/Stepper.js +1 -2
- package/es/stepper/index.css +1 -1
- package/es/stepper/index.d.ts +1 -1
- package/es/stepper/index.less +3 -3
- package/es/steps/index.d.ts +6 -4
- package/es/submit-bar/index.css +1 -1
- package/es/submit-bar/index.less +2 -2
- package/es/swipe-cell/SwipeCell.js +1 -2
- package/es/switch/index.css +1 -1
- package/es/switch/index.less +3 -3
- package/es/tabbar/Tabbar.js +1 -2
- package/es/tabbar/index.css +1 -1
- package/es/tabbar/index.less +1 -1
- package/es/tabbar-item/TabbarItem.js +2 -2
- package/es/tabs/Tabs.js +2 -5
- package/es/tabs/index.css +1 -1
- package/es/tabs/index.less +2 -2
- package/es/tag/index.css +1 -1
- package/es/tag/index.less +6 -6
- package/es/toast/Toast.js +5 -11
- package/es/toast/index.css +1 -1
- package/es/toast/index.less +1 -1
- package/es/tree-select/index.css +1 -1
- package/es/tree-select/index.less +2 -2
- package/es/uploader/UploaderPreviewItem.js +3 -4
- package/es/uploader/index.css +1 -1
- package/es/uploader/index.less +4 -4
- package/es/utils/interceptor.d.ts +1 -2
- package/es/utils/interceptor.js +6 -9
- package/lib/action-bar/index.css +1 -1
- package/lib/action-bar/index.less +1 -1
- package/lib/action-bar-icon/ActionBarIcon.js +1 -1
- package/lib/action-bar-icon/index.css +1 -1
- package/lib/action-bar-icon/index.less +1 -1
- package/lib/action-sheet/ActionSheet.d.ts +15 -9
- package/lib/action-sheet/ActionSheet.js +6 -14
- package/lib/action-sheet/index.css +1 -1
- package/lib/action-sheet/index.d.ts +10 -3
- package/lib/action-sheet/index.less +2 -2
- package/lib/address-edit/AddressEdit.d.ts +1 -2
- package/lib/address-edit/AddressEdit.js +3 -9
- package/lib/address-edit/AddressEditDetail.js +4 -5
- package/lib/address-edit/index.css +1 -1
- package/lib/address-edit/index.d.ts +1 -2
- package/lib/address-edit/index.less +2 -2
- package/lib/address-edit/style/index.js +0 -6
- package/lib/address-edit/style/less.js +0 -6
- package/lib/address-list/AddressList.js +2 -6
- package/lib/badge/index.css +1 -1
- package/lib/badge/index.less +4 -2
- package/lib/calendar/Calendar.js +11 -8
- package/lib/calendar/index.css +1 -1
- package/lib/calendar/index.less +3 -3
- package/lib/card/index.css +1 -1
- package/lib/card/index.less +1 -1
- package/lib/cascader/Cascader.d.ts +25 -14
- package/lib/cascader/Cascader.js +48 -45
- package/lib/cascader/index.d.ts +8 -6
- package/lib/cascader/types.d.ts +18 -0
- package/lib/cascader/types.js +3 -0
- package/lib/cell/index.css +1 -1
- package/lib/cell/index.less +1 -1
- package/lib/cell-group/index.css +1 -1
- package/lib/cell-group/index.less +1 -1
- package/lib/checkbox/Checker.js +1 -8
- package/lib/checkbox/index.d.ts +1 -1
- package/lib/checkbox/types.d.ts +3 -0
- package/lib/checkbox-group/index.d.ts +1 -1
- package/lib/checkbox-group/types.d.ts +2 -1
- package/lib/collapse-item/index.css +1 -1
- package/lib/collapse-item/index.less +1 -1
- package/lib/contact-edit/ContactEdit.js +1 -5
- package/lib/contact-edit/style/index.js +0 -10
- package/lib/contact-edit/style/less.js +0 -10
- package/lib/coupon/index.css +1 -1
- package/lib/coupon/index.less +1 -1
- package/lib/coupon-list/CouponList.js +1 -1
- package/lib/coupon-list/index.css +1 -1
- package/lib/coupon-list/index.less +1 -1
- package/lib/dialog/Dialog.js +5 -10
- package/lib/dialog/function-call.d.ts +2 -2
- package/lib/dialog/function-call.js +2 -2
- package/lib/dialog/index.css +1 -1
- package/lib/dialog/index.less +1 -1
- package/lib/dropdown-item/DropdownItem.js +1 -1
- package/lib/dropdown-menu/index.css +1 -1
- package/lib/dropdown-menu/index.less +1 -1
- package/lib/empty/Network.js +8 -27
- package/lib/grid-item/GridItem.js +1 -1
- package/lib/grid-item/index.css +1 -1
- package/lib/grid-item/index.less +1 -1
- package/lib/image/Image.js +7 -20
- package/lib/image/index.css +1 -1
- package/lib/image/index.less +1 -1
- package/lib/image-preview/ImagePreview.js +5 -6
- package/lib/image-preview/function-call.js +2 -2
- package/lib/image-preview/index.css +1 -1
- package/lib/image-preview/index.less +1 -1
- package/lib/index-anchor/index.css +1 -1
- package/lib/index-anchor/index.less +2 -2
- package/lib/index-bar/IndexBar.js +1 -12
- package/lib/index.css +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/index.less +1 -1
- package/lib/locale/lang/de-DE-formal.d.ts +0 -1
- package/lib/locale/lang/de-DE-formal.js +0 -1
- package/lib/locale/lang/de-DE.d.ts +0 -1
- package/lib/locale/lang/de-DE.js +0 -1
- package/lib/locale/lang/en-US.d.ts +0 -1
- package/lib/locale/lang/en-US.js +0 -1
- package/lib/locale/lang/es-ES.d.ts +0 -1
- package/lib/locale/lang/es-ES.js +0 -1
- package/lib/locale/lang/fr-FR.d.ts +0 -1
- package/lib/locale/lang/fr-FR.js +0 -1
- package/lib/locale/lang/ja-JP.d.ts +0 -1
- package/lib/locale/lang/ja-JP.js +0 -1
- package/lib/locale/lang/nb-NO.d.ts +0 -1
- package/lib/locale/lang/nb-NO.js +0 -1
- package/lib/locale/lang/ro-RO.d.ts +0 -1
- package/lib/locale/lang/ro-RO.js +0 -1
- package/lib/locale/lang/ru-RU.d.ts +0 -1
- package/lib/locale/lang/ru-RU.js +0 -1
- package/lib/locale/lang/th-TH.d.ts +0 -1
- package/lib/locale/lang/th-TH.js +0 -1
- package/lib/locale/lang/tr-TR.d.ts +0 -1
- package/lib/locale/lang/tr-TR.js +0 -1
- package/lib/locale/lang/zh-CN.d.ts +0 -1
- package/lib/locale/lang/zh-CN.js +0 -1
- package/lib/locale/lang/zh-HK.d.ts +0 -1
- package/lib/locale/lang/zh-HK.js +0 -1
- package/lib/locale/lang/zh-TW.d.ts +0 -1
- package/lib/locale/lang/zh-TW.js +0 -1
- package/lib/nav-bar/index.css +1 -1
- package/lib/nav-bar/index.less +1 -1
- package/lib/notice-bar/NoticeBar.d.ts +1 -1
- package/lib/notice-bar/index.css +1 -1
- package/lib/notice-bar/index.d.ts +1 -1
- package/lib/notice-bar/index.less +1 -1
- package/lib/notify/Notify.d.ts +4 -2
- package/lib/notify/Notify.js +6 -1
- package/lib/notify/function-call.d.ts +4 -2
- package/lib/notify/function-call.js +1 -1
- package/lib/notify/index.css +1 -1
- package/lib/notify/index.less +4 -4
- package/lib/number-keyboard/index.css +1 -1
- package/lib/number-keyboard/index.less +3 -3
- package/lib/overlay/Overlay.js +1 -1
- package/lib/overlay/index.css +1 -1
- package/lib/overlay/index.less +1 -1
- package/lib/pagination/index.css +1 -1
- package/lib/pagination/index.less +1 -1
- package/lib/password-input/index.css +1 -1
- package/lib/password-input/index.less +3 -3
- package/lib/picker/index.css +1 -1
- package/lib/picker/index.less +2 -2
- package/lib/popover/Popover.js +3 -4
- package/lib/popover/index.css +1 -1
- package/lib/popover/index.less +2 -2
- package/lib/popup/Popup.js +2 -4
- package/lib/popup/index.css +1 -1
- package/lib/popup/index.less +1 -1
- package/lib/progress/Progress.js +7 -3
- package/lib/progress/index.css +1 -1
- package/lib/progress/index.less +10 -1
- package/lib/progress/var.less +1 -0
- package/lib/pull-refresh/PullRefresh.js +1 -1
- package/lib/radio/Radio.d.ts +9 -6
- package/lib/radio/index.d.ts +2 -0
- package/lib/radio-group/RadioGroup.d.ts +1 -0
- package/lib/radio-group/index.d.ts +2 -0
- package/lib/search/Search.js +3 -4
- package/lib/search/index.css +1 -1
- package/lib/search/index.less +2 -2
- package/lib/share-sheet/ShareSheet.d.ts +7 -0
- package/lib/share-sheet/ShareSheet.js +5 -6
- package/lib/share-sheet/index.d.ts +7 -0
- package/lib/sidebar-item/index.css +1 -1
- package/lib/sidebar-item/index.less +1 -1
- package/lib/skeleton/index.css +1 -1
- package/lib/skeleton/index.less +2 -2
- package/lib/slider/index.css +1 -1
- package/lib/slider/index.less +3 -3
- package/lib/stepper/Stepper.d.ts +1 -1
- package/lib/stepper/Stepper.js +1 -2
- package/lib/stepper/index.css +1 -1
- package/lib/stepper/index.d.ts +1 -1
- package/lib/stepper/index.less +3 -3
- package/lib/steps/index.d.ts +6 -4
- package/lib/submit-bar/index.css +1 -1
- package/lib/submit-bar/index.less +2 -2
- package/lib/swipe-cell/SwipeCell.js +1 -2
- package/lib/switch/index.css +1 -1
- package/lib/switch/index.less +3 -3
- package/lib/tabbar/Tabbar.js +1 -2
- package/lib/tabbar/index.css +1 -1
- package/lib/tabbar/index.less +1 -1
- package/lib/tabbar-item/TabbarItem.js +1 -1
- package/lib/tabs/Tabs.js +2 -5
- package/lib/tabs/index.css +1 -1
- package/lib/tabs/index.less +2 -2
- package/lib/tag/index.css +1 -1
- package/lib/tag/index.less +6 -6
- package/lib/toast/Toast.js +4 -10
- package/lib/toast/index.css +1 -1
- package/lib/toast/index.less +1 -1
- package/lib/tree-select/index.css +1 -1
- package/lib/tree-select/index.less +2 -2
- package/lib/uploader/UploaderPreviewItem.js +2 -3
- package/lib/uploader/index.css +1 -1
- package/lib/uploader/index.less +4 -4
- package/lib/utils/interceptor.d.ts +1 -2
- package/lib/utils/interceptor.js +6 -9
- package/lib/vant.es.js +758 -831
- package/lib/vant.es.min.js +758 -831
- package/lib/vant.js +758 -831
- package/lib/vant.min.js +1 -1
- package/package.json +1 -1
- package/vetur/attributes.json +60 -56
- package/vetur/tags.json +18 -17
- package/vetur/web-types.json +198 -184
- package/changelog.generated.md +0 -148
package/package.json
CHANGED
package/vetur/attributes.json
CHANGED
@@ -143,7 +143,7 @@
|
|
143
143
|
},
|
144
144
|
"van-action-sheet/close-on-popstate": {
|
145
145
|
"type": "boolean",
|
146
|
-
"description": "是否在页面回退时自动关闭, 默认值: `
|
146
|
+
"description": "是否在页面回退时自动关闭, 默认值: `true`"
|
147
147
|
},
|
148
148
|
"van-action-sheet/close-on-click-action": {
|
149
149
|
"type": "boolean",
|
@@ -193,6 +193,58 @@
|
|
193
193
|
"type": "string",
|
194
194
|
"description": "默认地址标签文字, 默认值: -"
|
195
195
|
},
|
196
|
+
"van-area/value": {
|
197
|
+
"type": "string",
|
198
|
+
"description": "当前选中项对应的地区码, 默认值: -"
|
199
|
+
},
|
200
|
+
"van-area/title": {
|
201
|
+
"type": "string",
|
202
|
+
"description": "顶部栏标题, 默认值: -"
|
203
|
+
},
|
204
|
+
"van-area/confirm-button-text": {
|
205
|
+
"type": "string",
|
206
|
+
"description": "确认按钮文字, 默认值: `确认`"
|
207
|
+
},
|
208
|
+
"van-area/cancel-button-text": {
|
209
|
+
"type": "string",
|
210
|
+
"description": "取消按钮文字, 默认值: `取消`"
|
211
|
+
},
|
212
|
+
"van-area/area-list": {
|
213
|
+
"type": "object",
|
214
|
+
"description": "省市区数据,格式见下方, 默认值: -"
|
215
|
+
},
|
216
|
+
"van-area/columns-placeholder": {
|
217
|
+
"type": "string[]",
|
218
|
+
"description": "列占位提示文字, 默认值: `[]`"
|
219
|
+
},
|
220
|
+
"van-area/loading": {
|
221
|
+
"type": "boolean",
|
222
|
+
"description": "是否显示加载状态, 默认值: `false`"
|
223
|
+
},
|
224
|
+
"van-area/readonly": {
|
225
|
+
"type": "boolean",
|
226
|
+
"description": "是否为只读状态,只读状态下无法切换选项, 默认值: `false`"
|
227
|
+
},
|
228
|
+
"van-area/item-height": {
|
229
|
+
"type": "number | string",
|
230
|
+
"description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`, 默认值: `44`"
|
231
|
+
},
|
232
|
+
"van-area/columns-num": {
|
233
|
+
"type": "number | string",
|
234
|
+
"description": "显示列数,3-省市区,2-省市,1-省, 默认值: `3`"
|
235
|
+
},
|
236
|
+
"van-area/visible-item-count": {
|
237
|
+
"type": "number | string",
|
238
|
+
"description": "可见的选项个数, 默认值: `6`"
|
239
|
+
},
|
240
|
+
"van-area/swipe-duration": {
|
241
|
+
"type": "number | string",
|
242
|
+
"description": "快速滑动时惯性滚动的时长,单位 `ms`, 默认值: `1000`"
|
243
|
+
},
|
244
|
+
"van-area/is-oversea-code": {
|
245
|
+
"type": "() => boolean",
|
246
|
+
"description": "根据地区码校验海外地址,海外地址会划分至单独的分类, 默认值: -"
|
247
|
+
},
|
196
248
|
"van-address-edit/area-list": {
|
197
249
|
"type": "object",
|
198
250
|
"description": "地区列表, 默认值: -"
|
@@ -281,58 +333,6 @@
|
|
281
333
|
"type": "(key, val) => string",
|
282
334
|
"description": "自定义校验函数, 默认值: -"
|
283
335
|
},
|
284
|
-
"van-area/value": {
|
285
|
-
"type": "string",
|
286
|
-
"description": "当前选中项对应的地区码, 默认值: -"
|
287
|
-
},
|
288
|
-
"van-area/title": {
|
289
|
-
"type": "string",
|
290
|
-
"description": "顶部栏标题, 默认值: -"
|
291
|
-
},
|
292
|
-
"van-area/confirm-button-text": {
|
293
|
-
"type": "string",
|
294
|
-
"description": "确认按钮文字, 默认值: `确认`"
|
295
|
-
},
|
296
|
-
"van-area/cancel-button-text": {
|
297
|
-
"type": "string",
|
298
|
-
"description": "取消按钮文字, 默认值: `取消`"
|
299
|
-
},
|
300
|
-
"van-area/area-list": {
|
301
|
-
"type": "object",
|
302
|
-
"description": "省市区数据,格式见下方, 默认值: -"
|
303
|
-
},
|
304
|
-
"van-area/columns-placeholder": {
|
305
|
-
"type": "string[]",
|
306
|
-
"description": "列占位提示文字, 默认值: `[]`"
|
307
|
-
},
|
308
|
-
"van-area/loading": {
|
309
|
-
"type": "boolean",
|
310
|
-
"description": "是否显示加载状态, 默认值: `false`"
|
311
|
-
},
|
312
|
-
"van-area/readonly": {
|
313
|
-
"type": "boolean",
|
314
|
-
"description": "是否为只读状态,只读状态下无法切换选项, 默认值: `false`"
|
315
|
-
},
|
316
|
-
"van-area/item-height": {
|
317
|
-
"type": "number | string",
|
318
|
-
"description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`, 默认值: `44`"
|
319
|
-
},
|
320
|
-
"van-area/columns-num": {
|
321
|
-
"type": "number | string",
|
322
|
-
"description": "显示列数,3-省市区,2-省市,1-省, 默认值: `3`"
|
323
|
-
},
|
324
|
-
"van-area/visible-item-count": {
|
325
|
-
"type": "number | string",
|
326
|
-
"description": "可见的选项个数, 默认值: `6`"
|
327
|
-
},
|
328
|
-
"van-area/swipe-duration": {
|
329
|
-
"type": "number | string",
|
330
|
-
"description": "快速滑动时惯性滚动的时长,单位 `ms`, 默认值: `1000`"
|
331
|
-
},
|
332
|
-
"van-area/is-oversea-code": {
|
333
|
-
"type": "() => boolean",
|
334
|
-
"description": "根据地区码校验海外地址,海外地址会划分至单独的分类, 默认值: -"
|
335
|
-
},
|
336
336
|
"van-badge/content": {
|
337
337
|
"type": "number | string",
|
338
338
|
"description": "徽标内容, 默认值: -"
|
@@ -2439,7 +2439,7 @@
|
|
2439
2439
|
},
|
2440
2440
|
"van-radio/icon-size": {
|
2441
2441
|
"type": "number | string",
|
2442
|
-
"description": "
|
2442
|
+
"description": "图标大小,默认单位为 `px`, 默认值: `20px`"
|
2443
2443
|
},
|
2444
2444
|
"van-radio/checked-color": {
|
2445
2445
|
"type": "string",
|
@@ -2455,11 +2455,11 @@
|
|
2455
2455
|
},
|
2456
2456
|
"van-radio-group/direction": {
|
2457
2457
|
"type": "string",
|
2458
|
-
"description": "
|
2458
|
+
"description": "排列方向,可选值为 `horizontal`, 默认值: `vertical`"
|
2459
2459
|
},
|
2460
2460
|
"van-radio-group/icon-size": {
|
2461
2461
|
"type": "number | string",
|
2462
|
-
"description": "
|
2462
|
+
"description": "所有单选框的图标大小,默认单位为 `px`, 默认值: `20px`"
|
2463
2463
|
},
|
2464
2464
|
"van-radio-group/checked-color": {
|
2465
2465
|
"type": "string",
|
@@ -2641,6 +2641,10 @@
|
|
2641
2641
|
"type": "number | string",
|
2642
2642
|
"description": "动画时长,单位秒,设置为 0 可以禁用动画, 默认值: `0.3`"
|
2643
2643
|
},
|
2644
|
+
"van-share-sheet/round": {
|
2645
|
+
"type": "boolean",
|
2646
|
+
"description": "是否显示圆角, 默认值: `true`"
|
2647
|
+
},
|
2644
2648
|
"van-share-sheet/overlay": {
|
2645
2649
|
"type": "boolean",
|
2646
2650
|
"description": "是否显示遮罩层, 默认值: `true`"
|
package/vetur/tags.json
CHANGED
@@ -66,6 +66,23 @@
|
|
66
66
|
"default-tag-text"
|
67
67
|
]
|
68
68
|
},
|
69
|
+
"van-area": {
|
70
|
+
"attributes": [
|
71
|
+
"value",
|
72
|
+
"title",
|
73
|
+
"confirm-button-text",
|
74
|
+
"cancel-button-text",
|
75
|
+
"area-list",
|
76
|
+
"columns-placeholder",
|
77
|
+
"loading",
|
78
|
+
"readonly",
|
79
|
+
"item-height",
|
80
|
+
"columns-num",
|
81
|
+
"visible-item-count",
|
82
|
+
"swipe-duration",
|
83
|
+
"is-oversea-code"
|
84
|
+
]
|
85
|
+
},
|
69
86
|
"van-address-edit": {
|
70
87
|
"attributes": [
|
71
88
|
"area-list",
|
@@ -92,23 +109,6 @@
|
|
92
109
|
"validator"
|
93
110
|
]
|
94
111
|
},
|
95
|
-
"van-area": {
|
96
|
-
"attributes": [
|
97
|
-
"value",
|
98
|
-
"title",
|
99
|
-
"confirm-button-text",
|
100
|
-
"cancel-button-text",
|
101
|
-
"area-list",
|
102
|
-
"columns-placeholder",
|
103
|
-
"loading",
|
104
|
-
"readonly",
|
105
|
-
"item-height",
|
106
|
-
"columns-num",
|
107
|
-
"visible-item-count",
|
108
|
-
"swipe-duration",
|
109
|
-
"is-oversea-code"
|
110
|
-
]
|
111
|
-
},
|
112
112
|
"van-badge": {
|
113
113
|
"attributes": [
|
114
114
|
"content",
|
@@ -901,6 +901,7 @@
|
|
901
901
|
"cancel-text",
|
902
902
|
"description",
|
903
903
|
"duration",
|
904
|
+
"round",
|
904
905
|
"overlay",
|
905
906
|
"overlay-class",
|
906
907
|
"overlay-style",
|
package/vetur/web-types.json
CHANGED
@@ -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.2.
|
5
|
+
"version": "3.2.6",
|
6
6
|
"contributions": {
|
7
7
|
"html": {
|
8
8
|
"tags": [
|
@@ -434,7 +434,7 @@
|
|
434
434
|
},
|
435
435
|
{
|
436
436
|
"name": "close-on-popstate",
|
437
|
-
"default": "`
|
437
|
+
"default": "`true`",
|
438
438
|
"description": "是否在页面回退时自动关闭",
|
439
439
|
"options": [],
|
440
440
|
"value": {
|
@@ -613,6 +613,181 @@
|
|
613
613
|
}
|
614
614
|
]
|
615
615
|
},
|
616
|
+
{
|
617
|
+
"name": "van-area",
|
618
|
+
"slots": [
|
619
|
+
{
|
620
|
+
"name": "toolbar",
|
621
|
+
"description": "自定义整个顶部栏的内容"
|
622
|
+
},
|
623
|
+
{
|
624
|
+
"name": "title",
|
625
|
+
"description": "自定义标题内容"
|
626
|
+
},
|
627
|
+
{
|
628
|
+
"name": "confirm",
|
629
|
+
"description": "自定义确认按钮内容"
|
630
|
+
},
|
631
|
+
{
|
632
|
+
"name": "cancel",
|
633
|
+
"description": "自定义取消按钮内容"
|
634
|
+
},
|
635
|
+
{
|
636
|
+
"name": "columns-top",
|
637
|
+
"description": "自定义选项上方内容"
|
638
|
+
},
|
639
|
+
{
|
640
|
+
"name": "columns-bottom",
|
641
|
+
"description": "自定义选项下方内容"
|
642
|
+
}
|
643
|
+
],
|
644
|
+
"events": [
|
645
|
+
{
|
646
|
+
"name": "confirm",
|
647
|
+
"description": "点击完成按钮时触发"
|
648
|
+
},
|
649
|
+
{
|
650
|
+
"name": "cancel",
|
651
|
+
"description": "点击取消按钮时触发"
|
652
|
+
},
|
653
|
+
{
|
654
|
+
"name": "change",
|
655
|
+
"description": "选项改变时触发"
|
656
|
+
}
|
657
|
+
],
|
658
|
+
"attributes": [
|
659
|
+
{
|
660
|
+
"name": "value",
|
661
|
+
"default": "-",
|
662
|
+
"description": "当前选中项对应的地区码",
|
663
|
+
"options": [],
|
664
|
+
"value": {
|
665
|
+
"type": "string",
|
666
|
+
"kind": "expression"
|
667
|
+
}
|
668
|
+
},
|
669
|
+
{
|
670
|
+
"name": "title",
|
671
|
+
"default": "-",
|
672
|
+
"description": "顶部栏标题",
|
673
|
+
"options": [],
|
674
|
+
"value": {
|
675
|
+
"type": "string",
|
676
|
+
"kind": "expression"
|
677
|
+
}
|
678
|
+
},
|
679
|
+
{
|
680
|
+
"name": "confirm-button-text",
|
681
|
+
"default": "`确认`",
|
682
|
+
"description": "确认按钮文字",
|
683
|
+
"options": [],
|
684
|
+
"value": {
|
685
|
+
"type": "string",
|
686
|
+
"kind": "expression"
|
687
|
+
}
|
688
|
+
},
|
689
|
+
{
|
690
|
+
"name": "cancel-button-text",
|
691
|
+
"default": "`取消`",
|
692
|
+
"description": "取消按钮文字",
|
693
|
+
"options": [],
|
694
|
+
"value": {
|
695
|
+
"type": "string",
|
696
|
+
"kind": "expression"
|
697
|
+
}
|
698
|
+
},
|
699
|
+
{
|
700
|
+
"name": "area-list",
|
701
|
+
"default": "-",
|
702
|
+
"description": "省市区数据,格式见下方",
|
703
|
+
"options": [],
|
704
|
+
"value": {
|
705
|
+
"type": "object",
|
706
|
+
"kind": "expression"
|
707
|
+
}
|
708
|
+
},
|
709
|
+
{
|
710
|
+
"name": "columns-placeholder",
|
711
|
+
"default": "`[]`",
|
712
|
+
"description": "列占位提示文字",
|
713
|
+
"options": [],
|
714
|
+
"value": {
|
715
|
+
"type": "string[]",
|
716
|
+
"kind": "expression"
|
717
|
+
}
|
718
|
+
},
|
719
|
+
{
|
720
|
+
"name": "loading",
|
721
|
+
"default": "`false`",
|
722
|
+
"description": "是否显示加载状态",
|
723
|
+
"options": [],
|
724
|
+
"value": {
|
725
|
+
"type": "boolean",
|
726
|
+
"kind": "expression"
|
727
|
+
}
|
728
|
+
},
|
729
|
+
{
|
730
|
+
"name": "readonly",
|
731
|
+
"default": "`false`",
|
732
|
+
"description": "是否为只读状态,只读状态下无法切换选项",
|
733
|
+
"options": [],
|
734
|
+
"value": {
|
735
|
+
"type": "boolean",
|
736
|
+
"kind": "expression"
|
737
|
+
}
|
738
|
+
},
|
739
|
+
{
|
740
|
+
"name": "item-height",
|
741
|
+
"default": "`44`",
|
742
|
+
"description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`",
|
743
|
+
"options": [],
|
744
|
+
"value": {
|
745
|
+
"type": "number | string",
|
746
|
+
"kind": "expression"
|
747
|
+
}
|
748
|
+
},
|
749
|
+
{
|
750
|
+
"name": "columns-num",
|
751
|
+
"default": "`3`",
|
752
|
+
"description": "显示列数,3-省市区,2-省市,1-省",
|
753
|
+
"options": [],
|
754
|
+
"value": {
|
755
|
+
"type": "number | string",
|
756
|
+
"kind": "expression"
|
757
|
+
}
|
758
|
+
},
|
759
|
+
{
|
760
|
+
"name": "visible-item-count",
|
761
|
+
"default": "`6`",
|
762
|
+
"description": "可见的选项个数",
|
763
|
+
"options": [],
|
764
|
+
"value": {
|
765
|
+
"type": "number | string",
|
766
|
+
"kind": "expression"
|
767
|
+
}
|
768
|
+
},
|
769
|
+
{
|
770
|
+
"name": "swipe-duration",
|
771
|
+
"default": "`1000`",
|
772
|
+
"description": "快速滑动时惯性滚动的时长,单位 `ms`",
|
773
|
+
"options": [],
|
774
|
+
"value": {
|
775
|
+
"type": "number | string",
|
776
|
+
"kind": "expression"
|
777
|
+
}
|
778
|
+
},
|
779
|
+
{
|
780
|
+
"name": "is-oversea-code",
|
781
|
+
"default": "-",
|
782
|
+
"description": "根据地区码校验海外地址,海外地址会划分至单独的分类",
|
783
|
+
"options": [],
|
784
|
+
"value": {
|
785
|
+
"type": "() => boolean",
|
786
|
+
"kind": "expression"
|
787
|
+
}
|
788
|
+
}
|
789
|
+
]
|
790
|
+
},
|
616
791
|
{
|
617
792
|
"name": "van-address-edit",
|
618
793
|
"slots": [
|
@@ -634,10 +809,6 @@
|
|
634
809
|
"name": "delete",
|
635
810
|
"description": "确认删除地址时触发"
|
636
811
|
},
|
637
|
-
{
|
638
|
-
"name": "cancel-delete",
|
639
|
-
"description": "取消删除地址时触发"
|
640
|
-
},
|
641
812
|
{
|
642
813
|
"name": "select-search",
|
643
814
|
"description": "选中搜索结果时触发"
|
@@ -882,181 +1053,6 @@
|
|
882
1053
|
}
|
883
1054
|
]
|
884
1055
|
},
|
885
|
-
{
|
886
|
-
"name": "van-area",
|
887
|
-
"slots": [
|
888
|
-
{
|
889
|
-
"name": "toolbar",
|
890
|
-
"description": "自定义整个顶部栏的内容"
|
891
|
-
},
|
892
|
-
{
|
893
|
-
"name": "title",
|
894
|
-
"description": "自定义标题内容"
|
895
|
-
},
|
896
|
-
{
|
897
|
-
"name": "confirm",
|
898
|
-
"description": "自定义确认按钮内容"
|
899
|
-
},
|
900
|
-
{
|
901
|
-
"name": "cancel",
|
902
|
-
"description": "自定义取消按钮内容"
|
903
|
-
},
|
904
|
-
{
|
905
|
-
"name": "columns-top",
|
906
|
-
"description": "自定义选项上方内容"
|
907
|
-
},
|
908
|
-
{
|
909
|
-
"name": "columns-bottom",
|
910
|
-
"description": "自定义选项下方内容"
|
911
|
-
}
|
912
|
-
],
|
913
|
-
"events": [
|
914
|
-
{
|
915
|
-
"name": "confirm",
|
916
|
-
"description": "点击完成按钮时触发"
|
917
|
-
},
|
918
|
-
{
|
919
|
-
"name": "cancel",
|
920
|
-
"description": "点击取消按钮时触发"
|
921
|
-
},
|
922
|
-
{
|
923
|
-
"name": "change",
|
924
|
-
"description": "选项改变时触发"
|
925
|
-
}
|
926
|
-
],
|
927
|
-
"attributes": [
|
928
|
-
{
|
929
|
-
"name": "value",
|
930
|
-
"default": "-",
|
931
|
-
"description": "当前选中项对应的地区码",
|
932
|
-
"options": [],
|
933
|
-
"value": {
|
934
|
-
"type": "string",
|
935
|
-
"kind": "expression"
|
936
|
-
}
|
937
|
-
},
|
938
|
-
{
|
939
|
-
"name": "title",
|
940
|
-
"default": "-",
|
941
|
-
"description": "顶部栏标题",
|
942
|
-
"options": [],
|
943
|
-
"value": {
|
944
|
-
"type": "string",
|
945
|
-
"kind": "expression"
|
946
|
-
}
|
947
|
-
},
|
948
|
-
{
|
949
|
-
"name": "confirm-button-text",
|
950
|
-
"default": "`确认`",
|
951
|
-
"description": "确认按钮文字",
|
952
|
-
"options": [],
|
953
|
-
"value": {
|
954
|
-
"type": "string",
|
955
|
-
"kind": "expression"
|
956
|
-
}
|
957
|
-
},
|
958
|
-
{
|
959
|
-
"name": "cancel-button-text",
|
960
|
-
"default": "`取消`",
|
961
|
-
"description": "取消按钮文字",
|
962
|
-
"options": [],
|
963
|
-
"value": {
|
964
|
-
"type": "string",
|
965
|
-
"kind": "expression"
|
966
|
-
}
|
967
|
-
},
|
968
|
-
{
|
969
|
-
"name": "area-list",
|
970
|
-
"default": "-",
|
971
|
-
"description": "省市区数据,格式见下方",
|
972
|
-
"options": [],
|
973
|
-
"value": {
|
974
|
-
"type": "object",
|
975
|
-
"kind": "expression"
|
976
|
-
}
|
977
|
-
},
|
978
|
-
{
|
979
|
-
"name": "columns-placeholder",
|
980
|
-
"default": "`[]`",
|
981
|
-
"description": "列占位提示文字",
|
982
|
-
"options": [],
|
983
|
-
"value": {
|
984
|
-
"type": "string[]",
|
985
|
-
"kind": "expression"
|
986
|
-
}
|
987
|
-
},
|
988
|
-
{
|
989
|
-
"name": "loading",
|
990
|
-
"default": "`false`",
|
991
|
-
"description": "是否显示加载状态",
|
992
|
-
"options": [],
|
993
|
-
"value": {
|
994
|
-
"type": "boolean",
|
995
|
-
"kind": "expression"
|
996
|
-
}
|
997
|
-
},
|
998
|
-
{
|
999
|
-
"name": "readonly",
|
1000
|
-
"default": "`false`",
|
1001
|
-
"description": "是否为只读状态,只读状态下无法切换选项",
|
1002
|
-
"options": [],
|
1003
|
-
"value": {
|
1004
|
-
"type": "boolean",
|
1005
|
-
"kind": "expression"
|
1006
|
-
}
|
1007
|
-
},
|
1008
|
-
{
|
1009
|
-
"name": "item-height",
|
1010
|
-
"default": "`44`",
|
1011
|
-
"description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`",
|
1012
|
-
"options": [],
|
1013
|
-
"value": {
|
1014
|
-
"type": "number | string",
|
1015
|
-
"kind": "expression"
|
1016
|
-
}
|
1017
|
-
},
|
1018
|
-
{
|
1019
|
-
"name": "columns-num",
|
1020
|
-
"default": "`3`",
|
1021
|
-
"description": "显示列数,3-省市区,2-省市,1-省",
|
1022
|
-
"options": [],
|
1023
|
-
"value": {
|
1024
|
-
"type": "number | string",
|
1025
|
-
"kind": "expression"
|
1026
|
-
}
|
1027
|
-
},
|
1028
|
-
{
|
1029
|
-
"name": "visible-item-count",
|
1030
|
-
"default": "`6`",
|
1031
|
-
"description": "可见的选项个数",
|
1032
|
-
"options": [],
|
1033
|
-
"value": {
|
1034
|
-
"type": "number | string",
|
1035
|
-
"kind": "expression"
|
1036
|
-
}
|
1037
|
-
},
|
1038
|
-
{
|
1039
|
-
"name": "swipe-duration",
|
1040
|
-
"default": "`1000`",
|
1041
|
-
"description": "快速滑动时惯性滚动的时长,单位 `ms`",
|
1042
|
-
"options": [],
|
1043
|
-
"value": {
|
1044
|
-
"type": "number | string",
|
1045
|
-
"kind": "expression"
|
1046
|
-
}
|
1047
|
-
},
|
1048
|
-
{
|
1049
|
-
"name": "is-oversea-code",
|
1050
|
-
"default": "-",
|
1051
|
-
"description": "根据地区码校验海外地址,海外地址会划分至单独的分类",
|
1052
|
-
"options": [],
|
1053
|
-
"value": {
|
1054
|
-
"type": "() => boolean",
|
1055
|
-
"kind": "expression"
|
1056
|
-
}
|
1057
|
-
}
|
1058
|
-
]
|
1059
|
-
},
|
1060
1056
|
{
|
1061
1057
|
"name": "van-badge",
|
1062
1058
|
"slots": [
|
@@ -1399,6 +1395,10 @@
|
|
1399
1395
|
"name": "footer",
|
1400
1396
|
"description": "自定义底部区域内容"
|
1401
1397
|
},
|
1398
|
+
{
|
1399
|
+
"name": "confirm-text",
|
1400
|
+
"description": "自定义确认按钮的内容"
|
1401
|
+
},
|
1402
1402
|
{
|
1403
1403
|
"name": "top-info",
|
1404
1404
|
"description": "自定义日期上方的提示信息"
|
@@ -7572,7 +7572,7 @@
|
|
7572
7572
|
{
|
7573
7573
|
"name": "icon-size",
|
7574
7574
|
"default": "`20px`",
|
7575
|
-
"description": "
|
7575
|
+
"description": "图标大小,默认单位为 `px`",
|
7576
7576
|
"options": [],
|
7577
7577
|
"value": {
|
7578
7578
|
"type": "number | string",
|
@@ -7624,7 +7624,7 @@
|
|
7624
7624
|
{
|
7625
7625
|
"name": "direction",
|
7626
7626
|
"default": "`vertical`",
|
7627
|
-
"description": "
|
7627
|
+
"description": "排列方向,可选值为 `horizontal`",
|
7628
7628
|
"options": [],
|
7629
7629
|
"value": {
|
7630
7630
|
"type": "string",
|
@@ -7634,7 +7634,7 @@
|
|
7634
7634
|
{
|
7635
7635
|
"name": "icon-size",
|
7636
7636
|
"default": "`20px`",
|
7637
|
-
"description": "
|
7637
|
+
"description": "所有单选框的图标大小,默认单位为 `px`",
|
7638
7638
|
"options": [],
|
7639
7639
|
"value": {
|
7640
7640
|
"type": "number | string",
|
@@ -8209,6 +8209,16 @@
|
|
8209
8209
|
"kind": "expression"
|
8210
8210
|
}
|
8211
8211
|
},
|
8212
|
+
{
|
8213
|
+
"name": "round",
|
8214
|
+
"default": "`true`",
|
8215
|
+
"description": "是否显示圆角",
|
8216
|
+
"options": [],
|
8217
|
+
"value": {
|
8218
|
+
"type": "boolean",
|
8219
|
+
"kind": "expression"
|
8220
|
+
}
|
8221
|
+
},
|
8212
8222
|
{
|
8213
8223
|
"name": "overlay",
|
8214
8224
|
"default": "`true`",
|
@@ -9046,6 +9056,10 @@
|
|
9046
9056
|
{
|
9047
9057
|
"name": "van-step",
|
9048
9058
|
"slots": [
|
9059
|
+
{
|
9060
|
+
"name": "default",
|
9061
|
+
"description": "步骤内容"
|
9062
|
+
},
|
9049
9063
|
{
|
9050
9064
|
"name": "active-icon",
|
9051
9065
|
"description": "自定义激活状态图标"
|