vant 4.0.0-alpha.4 → 4.0.0-beta.0
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/LICENSE +10 -0
- package/README.md +4 -4
- package/changelog.generated.md +250 -0
- package/es/action-bar/ActionBar.d.ts +4 -0
- package/es/action-bar/ActionBar.mjs +13 -2
- package/es/action-bar/index.d.ts +3 -0
- package/es/address-edit/AddressEdit.mjs +2 -2
- package/es/calendar/Calendar.mjs +9 -4
- package/es/calendar/types.d.ts +1 -0
- package/es/cell/Cell.d.ts +1 -1
- package/es/cell/index.d.ts +1 -1
- package/es/collapse-item/CollapseItem.d.ts +1 -1
- package/es/collapse-item/index.d.ts +1 -1
- package/es/date-picker/utils.d.ts +1 -1
- package/es/dialog/Dialog.d.ts +9 -1
- package/es/dialog/Dialog.mjs +6 -0
- package/es/dialog/function-call.d.ts +6 -184
- package/es/dialog/function-call.mjs +45 -45
- package/es/dialog/index.d.ts +130 -3
- package/es/dialog/index.mjs +16 -2
- package/es/dialog/types.d.ts +3 -7
- package/es/field/Field.d.ts +4 -2
- package/es/field/Field.mjs +7 -1
- package/es/field/index.d.ts +4 -2
- package/es/image-preview/function-call.d.ts +1 -134
- package/es/image-preview/function-call.mjs +3 -7
- package/es/image-preview/index.d.ts +129 -2
- package/es/image-preview/index.mjs +6 -2
- package/es/index.d.ts +1 -1
- package/es/index.mjs +1 -1
- package/es/locale/index.d.ts +1 -1
- package/es/notify/function-call.d.ts +4 -100
- package/es/notify/function-call.mjs +25 -29
- package/es/notify/index.d.ts +91 -2
- package/es/notify/index.mjs +14 -2
- package/es/notify/types.d.ts +0 -6
- package/es/popup/Popup.mjs +1 -1
- package/es/pull-refresh/PullRefresh.d.ts +2 -1
- package/es/pull-refresh/PullRefresh.mjs +5 -1
- package/es/pull-refresh/index.d.ts +2 -1
- package/es/submit-bar/SubmitBar.d.ts +4 -0
- package/es/submit-bar/SubmitBar.mjs +13 -2
- package/es/submit-bar/index.d.ts +3 -0
- package/es/switch/Switch.mjs +2 -1
- package/es/toast/function-call.d.ts +10 -18
- package/es/toast/function-call.mjs +22 -20
- package/es/toast/index.d.ts +76 -2
- package/es/toast/index.mjs +22 -2
- package/es/toast/types.d.ts +10 -7
- package/es/uploader/Uploader.d.ts +3 -3
- package/es/uploader/Uploader.mjs +3 -3
- package/es/uploader/index.d.ts +2 -2
- package/es/utils/basic.d.ts +3 -3
- package/es/utils/create.d.ts +1 -1
- package/lib/action-bar/ActionBar.d.ts +4 -0
- package/lib/action-bar/ActionBar.js +12 -1
- package/lib/action-bar/index.d.ts +3 -0
- package/lib/address-edit/AddressEdit.js +1 -1
- package/lib/calendar/Calendar.js +8 -3
- package/lib/calendar/types.d.ts +1 -0
- package/lib/cell/Cell.d.ts +1 -1
- package/lib/cell/index.d.ts +1 -1
- package/lib/collapse-item/CollapseItem.d.ts +1 -1
- package/lib/collapse-item/index.d.ts +1 -1
- package/lib/date-picker/utils.d.ts +1 -1
- package/lib/dialog/Dialog.d.ts +9 -1
- package/lib/dialog/Dialog.js +6 -0
- package/lib/dialog/function-call.d.ts +6 -184
- package/lib/dialog/function-call.js +42 -42
- package/lib/dialog/index.d.ts +130 -3
- package/lib/dialog/index.js +14 -3
- package/lib/dialog/types.d.ts +3 -7
- package/lib/field/Field.d.ts +4 -2
- package/lib/field/Field.js +7 -1
- package/lib/field/index.d.ts +4 -2
- package/lib/image-preview/function-call.d.ts +1 -134
- package/lib/image-preview/function-call.js +2 -6
- package/lib/image-preview/index.d.ts +129 -2
- package/lib/image-preview/index.js +10 -3
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/index.d.ts +1 -1
- package/lib/notify/function-call.d.ts +4 -100
- package/lib/notify/function-call.js +24 -28
- package/lib/notify/index.d.ts +91 -2
- package/lib/notify/index.js +13 -3
- package/lib/notify/types.d.ts +0 -6
- package/lib/popup/Popup.js +1 -1
- package/lib/pull-refresh/PullRefresh.d.ts +2 -1
- package/lib/pull-refresh/PullRefresh.js +5 -1
- package/lib/pull-refresh/index.d.ts +2 -1
- package/lib/submit-bar/SubmitBar.d.ts +4 -0
- package/lib/submit-bar/SubmitBar.js +12 -1
- package/lib/submit-bar/index.d.ts +3 -0
- package/lib/switch/Switch.js +2 -1
- package/lib/toast/function-call.d.ts +10 -18
- package/lib/toast/function-call.js +21 -19
- package/lib/toast/index.d.ts +76 -2
- package/lib/toast/index.js +17 -3
- package/lib/toast/types.d.ts +10 -7
- package/lib/uploader/Uploader.d.ts +3 -3
- package/lib/uploader/Uploader.js +2 -2
- package/lib/uploader/index.d.ts +2 -2
- package/lib/utils/basic.d.ts +3 -3
- package/lib/utils/create.d.ts +1 -1
- package/lib/vant.cjs.js +204 -160
- package/lib/vant.es.js +188 -162
- package/lib/vant.js +205 -161
- package/lib/vant.min.js +1 -1
- package/package.json +4 -4
- package/vetur/attributes.json +124 -108
- package/vetur/tags.json +41 -37
- package/vetur/web-types.json +635 -568
- package/es/action-bar/index.less +0 -16
- package/es/action-bar/style/less.d.ts +0 -1
- package/es/action-bar/style/less.mjs +0 -2
- package/es/action-bar-button/index.less +0 -38
- package/es/action-bar-button/style/less.d.ts +0 -1
- package/es/action-bar-button/style/less.mjs +0 -7
- package/es/action-bar-icon/index.less +0 -34
- package/es/action-bar-icon/style/less.d.ts +0 -1
- package/es/action-bar-icon/style/less.mjs +0 -5
- package/es/action-sheet/index.less +0 -131
- package/es/action-sheet/style/less.d.ts +0 -1
- package/es/action-sheet/style/less.mjs +0 -7
- package/es/address-edit/index.less +0 -39
- package/es/address-edit/style/less.d.ts +0 -1
- package/es/address-edit/style/less.mjs +0 -13
- package/es/address-list/index.less +0 -110
- package/es/address-list/style/less.d.ts +0 -1
- package/es/address-list/style/less.mjs +0 -11
- package/es/area/style/less.d.ts +0 -1
- package/es/area/style/less.mjs +0 -3
- package/es/badge/index.less +0 -72
- package/es/badge/style/less.d.ts +0 -1
- package/es/badge/style/less.mjs +0 -2
- package/es/button/index.less +0 -241
- package/es/button/style/less.d.ts +0 -1
- package/es/button/style/less.mjs +0 -5
- package/es/calendar/index.less +0 -217
- package/es/calendar/style/less.d.ts +0 -1
- package/es/calendar/style/less.mjs +0 -10
- package/es/card/index.less +0 -126
- package/es/card/style/less.d.ts +0 -1
- package/es/card/style/less.mjs +0 -6
- package/es/cascader/index.less +0 -92
- package/es/cascader/style/less.d.ts +0 -1
- package/es/cascader/style/less.mjs +0 -9
- package/es/cell/index.less +0 -119
- package/es/cell/style/less.d.ts +0 -1
- package/es/cell/style/less.mjs +0 -4
- package/es/cell-group/index.less +0 -32
- package/es/cell-group/style/less.d.ts +0 -1
- package/es/cell-group/style/less.mjs +0 -2
- package/es/checkbox/index.less +0 -96
- package/es/checkbox/style/less.d.ts +0 -1
- package/es/checkbox/style/less.mjs +0 -5
- package/es/checkbox-group/index.less +0 -6
- package/es/checkbox-group/style/less.d.ts +0 -1
- package/es/checkbox-group/style/less.mjs +0 -2
- package/es/circle/index.less +0 -49
- package/es/circle/style/less.d.ts +0 -1
- package/es/circle/style/less.mjs +0 -2
- package/es/col/index.less +0 -19
- package/es/col/style/less.d.ts +0 -1
- package/es/col/style/less.mjs +0 -3
- package/es/collapse/style/less.d.ts +0 -1
- package/es/collapse/style/less.mjs +0 -1
- package/es/collapse-item/index.less +0 -75
- package/es/collapse-item/style/less.d.ts +0 -1
- package/es/collapse-item/style/less.mjs +0 -5
- package/es/config-provider/style/less.d.ts +0 -1
- package/es/config-provider/style/less.mjs +0 -1
- package/es/contact-card/index.less +0 -47
- package/es/contact-card/style/less.d.ts +0 -1
- package/es/contact-card/style/less.mjs +0 -5
- package/es/contact-edit/index.less +0 -37
- package/es/contact-edit/style/less.d.ts +0 -1
- package/es/contact-edit/style/less.mjs +0 -9
- package/es/contact-list/index.less +0 -65
- package/es/contact-list/style/less.d.ts +0 -1
- package/es/contact-list/style/less.mjs +0 -11
- package/es/count-down/index.less +0 -11
- package/es/count-down/style/less.d.ts +0 -1
- package/es/count-down/style/less.mjs +0 -2
- package/es/coupon/index.less +0 -127
- package/es/coupon/style/less.d.ts +0 -1
- package/es/coupon/style/less.mjs +0 -6
- package/es/coupon-cell/index.less +0 -9
- package/es/coupon-cell/style/less.d.ts +0 -1
- package/es/coupon-cell/style/less.mjs +0 -5
- package/es/coupon-list/index.less +0 -86
- package/es/coupon-list/style/less.d.ts +0 -1
- package/es/coupon-list/style/less.mjs +0 -17
- package/es/date-picker/style/less.d.ts +0 -1
- package/es/date-picker/style/less.mjs +0 -3
- package/es/dialog/index.less +0 -140
- package/es/dialog/style/less.d.ts +0 -1
- package/es/dialog/style/less.mjs +0 -10
- package/es/divider/index.less +0 -73
- package/es/divider/style/less.d.ts +0 -1
- package/es/divider/style/less.mjs +0 -2
- package/es/dropdown-item/index.less +0 -41
- package/es/dropdown-item/style/less.d.ts +0 -1
- package/es/dropdown-item/style/less.mjs +0 -8
- package/es/dropdown-menu/index.less +0 -80
- package/es/dropdown-menu/style/less.d.ts +0 -1
- package/es/dropdown-menu/style/less.mjs +0 -2
- package/es/empty/index.less +0 -41
- package/es/empty/style/less.d.ts +0 -1
- package/es/empty/style/less.mjs +0 -2
- package/es/field/index.less +0 -196
- package/es/field/style/less.d.ts +0 -1
- package/es/field/style/less.mjs +0 -5
- package/es/form/style/less.d.ts +0 -1
- package/es/form/style/less.mjs +0 -1
- package/es/grid/index.less +0 -4
- package/es/grid/style/less.d.ts +0 -1
- package/es/grid/style/less.mjs +0 -2
- package/es/grid-item/index.less +0 -97
- package/es/grid-item/style/less.d.ts +0 -1
- package/es/grid-item/style/less.mjs +0 -5
- package/es/icon/index.less +0 -10
- package/es/icon/style/less.d.ts +0 -1
- package/es/icon/style/less.mjs +0 -3
- package/es/image/index.less +0 -55
- package/es/image/style/less.d.ts +0 -1
- package/es/image/style/less.mjs +0 -4
- package/es/image-preview/index.less +0 -110
- package/es/image-preview/style/less.d.ts +0 -1
- package/es/image-preview/style/less.mjs +0 -10
- package/es/index-anchor/index.less +0 -31
- package/es/index-anchor/style/less.d.ts +0 -1
- package/es/index-anchor/style/less.mjs +0 -3
- package/es/index-bar/index.less +0 -33
- package/es/index-bar/style/less.d.ts +0 -1
- package/es/index-bar/style/less.mjs +0 -2
- package/es/lazyload/style/less.d.ts +0 -1
- package/es/lazyload/style/less.mjs +0 -1
- package/es/list/index.less +0 -29
- package/es/list/style/less.d.ts +0 -1
- package/es/list/style/less.mjs +0 -3
- package/es/loading/index.less +0 -109
- package/es/loading/style/less.d.ts +0 -1
- package/es/loading/style/less.mjs +0 -2
- package/es/locale/style/less.d.ts +0 -1
- package/es/locale/style/less.mjs +0 -1
- package/es/nav-bar/index.less +0 -78
- package/es/nav-bar/style/less.d.ts +0 -1
- package/es/nav-bar/style/less.mjs +0 -4
- package/es/notice-bar/index.less +0 -70
- package/es/notice-bar/style/less.d.ts +0 -1
- package/es/notice-bar/style/less.mjs +0 -4
- package/es/notify/index.less +0 -42
- package/es/notify/style/less.d.ts +0 -1
- package/es/notify/style/less.mjs +0 -6
- package/es/number-keyboard/index.less +0 -159
- package/es/number-keyboard/style/less.d.ts +0 -1
- package/es/number-keyboard/style/less.mjs +0 -3
- package/es/overlay/index.less +0 -14
- package/es/overlay/style/less.d.ts +0 -1
- package/es/overlay/style/less.mjs +0 -2
- package/es/pagination/index.less +0 -89
- package/es/pagination/style/less.d.ts +0 -1
- package/es/pagination/style/less.mjs +0 -2
- package/es/password-input/index.less +0 -100
- package/es/password-input/style/less.d.ts +0 -1
- package/es/password-input/style/less.mjs +0 -2
- package/es/picker/index.less +0 -138
- package/es/picker/style/less.d.ts +0 -1
- package/es/picker/style/less.mjs +0 -3
- package/es/popover/index.less +0 -288
- package/es/popover/style/less.d.ts +0 -1
- package/es/popover/style/less.mjs +0 -6
- package/es/popup/index.less +0 -139
- package/es/popup/style/less.d.ts +0 -1
- package/es/popup/style/less.mjs +0 -5
- package/es/progress/index.less +0 -53
- package/es/progress/style/less.d.ts +0 -1
- package/es/progress/style/less.mjs +0 -2
- package/es/pull-refresh/index.less +0 -36
- package/es/pull-refresh/style/less.d.ts +0 -1
- package/es/pull-refresh/style/less.mjs +0 -3
- package/es/radio/index.less +0 -96
- package/es/radio/style/less.d.ts +0 -1
- package/es/radio/style/less.mjs +0 -6
- package/es/radio-group/index.less +0 -6
- package/es/radio-group/style/less.d.ts +0 -1
- package/es/radio-group/style/less.mjs +0 -2
- package/es/rate/index.less +0 -52
- package/es/rate/style/less.d.ts +0 -1
- package/es/rate/style/less.mjs +0 -4
- package/es/row/index.less +0 -32
- package/es/row/style/less.d.ts +0 -1
- package/es/row/style/less.mjs +0 -2
- package/es/search/index.less +0 -76
- package/es/search/style/less.d.ts +0 -1
- package/es/search/style/less.mjs +0 -6
- package/es/share-sheet/index.less +0 -152
- package/es/share-sheet/style/less.d.ts +0 -1
- package/es/share-sheet/style/less.mjs +0 -6
- package/es/sidebar/index.less +0 -9
- package/es/sidebar/style/less.d.ts +0 -1
- package/es/sidebar/style/less.mjs +0 -2
- package/es/sidebar-item/index.less +0 -72
- package/es/sidebar-item/style/less.d.ts +0 -1
- package/es/sidebar-item/style/less.mjs +0 -4
- package/es/skeleton/index.less +0 -73
- package/es/skeleton/style/less.d.ts +0 -1
- package/es/skeleton/style/less.mjs +0 -2
- package/es/slider/index.less +0 -104
- package/es/slider/style/less.d.ts +0 -1
- package/es/slider/style/less.mjs +0 -2
- package/es/step/index.less +0 -147
- package/es/step/style/less.d.ts +0 -1
- package/es/step/style/less.mjs +0 -5
- package/es/stepper/index.less +0 -129
- package/es/stepper/style/less.d.ts +0 -1
- package/es/stepper/style/less.mjs +0 -2
- package/es/steps/index.less +0 -23
- package/es/steps/style/less.d.ts +0 -1
- package/es/steps/style/less.mjs +0 -2
- package/es/sticky/index.less +0 -10
- package/es/sticky/style/less.d.ts +0 -1
- package/es/sticky/style/less.mjs +0 -2
- package/es/style/animation.less +0 -135
- package/es/style/base.less +0 -89
- package/es/style/css-variables.less +0 -90
- package/es/style/mixins/clearfix.less +0 -7
- package/es/style/mixins/ellipsis.less +0 -15
- package/es/style/mixins/hairline.less +0 -37
- package/es/style/normalize.less +0 -36
- package/es/submit-bar/index.less +0 -97
- package/es/submit-bar/style/less.d.ts +0 -1
- package/es/submit-bar/style/less.mjs +0 -6
- package/es/swipe/index.less +0 -65
- package/es/swipe/style/less.d.ts +0 -1
- package/es/swipe/style/less.mjs +0 -2
- package/es/swipe-cell/index.less +0 -27
- package/es/swipe-cell/style/less.d.ts +0 -1
- package/es/swipe-cell/style/less.mjs +0 -2
- package/es/swipe-item/index.less +0 -6
- package/es/swipe-item/style/less.d.ts +0 -1
- package/es/swipe-item/style/less.mjs +0 -3
- package/es/switch/index.less +0 -75
- package/es/switch/style/less.d.ts +0 -1
- package/es/switch/style/less.mjs +0 -3
- package/es/tab/index.less +0 -15
- package/es/tab/style/less.d.ts +0 -1
- package/es/tab/style/less.mjs +0 -7
- package/es/tabbar/index.less +0 -20
- package/es/tabbar/style/less.d.ts +0 -1
- package/es/tabbar/style/less.mjs +0 -2
- package/es/tabbar-item/index.less +0 -44
- package/es/tabbar-item/style/less.d.ts +0 -1
- package/es/tabbar-item/style/less.mjs +0 -5
- package/es/tabs/index.less +0 -170
- package/es/tabs/style/less.d.ts +0 -1
- package/es/tabs/style/less.mjs +0 -5
- package/es/tag/index.less +0 -115
- package/es/tag/style/less.d.ts +0 -1
- package/es/tag/style/less.mjs +0 -4
- package/es/time-picker/style/less.d.ts +0 -1
- package/es/time-picker/style/less.mjs +0 -3
- package/es/toast/index.less +0 -89
- package/es/toast/style/less.d.ts +0 -1
- package/es/toast/style/less.mjs +0 -7
- package/es/tree-select/index.less +0 -68
- package/es/tree-select/style/less.d.ts +0 -1
- package/es/tree-select/style/less.mjs +0 -6
- package/es/uploader/index.less +0 -191
- package/es/uploader/style/less.d.ts +0 -1
- package/es/uploader/style/less.mjs +0 -11
- package/lib/action-bar/index.less +0 -16
- package/lib/action-bar/style/less.d.ts +0 -1
- package/lib/action-bar/style/less.js +0 -2
- package/lib/action-bar-button/index.less +0 -38
- package/lib/action-bar-button/style/less.d.ts +0 -1
- package/lib/action-bar-button/style/less.js +0 -7
- package/lib/action-bar-icon/index.less +0 -34
- package/lib/action-bar-icon/style/less.d.ts +0 -1
- package/lib/action-bar-icon/style/less.js +0 -5
- package/lib/action-sheet/index.less +0 -131
- package/lib/action-sheet/style/less.d.ts +0 -1
- package/lib/action-sheet/style/less.js +0 -7
- package/lib/address-edit/index.less +0 -39
- package/lib/address-edit/style/less.d.ts +0 -1
- package/lib/address-edit/style/less.js +0 -13
- package/lib/address-list/index.less +0 -110
- package/lib/address-list/style/less.d.ts +0 -1
- package/lib/address-list/style/less.js +0 -11
- package/lib/area/style/less.d.ts +0 -1
- package/lib/area/style/less.js +0 -3
- package/lib/badge/index.less +0 -72
- package/lib/badge/style/less.d.ts +0 -1
- package/lib/badge/style/less.js +0 -2
- package/lib/button/index.less +0 -241
- package/lib/button/style/less.d.ts +0 -1
- package/lib/button/style/less.js +0 -5
- package/lib/calendar/index.less +0 -217
- package/lib/calendar/style/less.d.ts +0 -1
- package/lib/calendar/style/less.js +0 -10
- package/lib/card/index.less +0 -126
- package/lib/card/style/less.d.ts +0 -1
- package/lib/card/style/less.js +0 -6
- package/lib/cascader/index.less +0 -92
- package/lib/cascader/style/less.d.ts +0 -1
- package/lib/cascader/style/less.js +0 -9
- package/lib/cell/index.less +0 -119
- package/lib/cell/style/less.d.ts +0 -1
- package/lib/cell/style/less.js +0 -4
- package/lib/cell-group/index.less +0 -32
- package/lib/cell-group/style/less.d.ts +0 -1
- package/lib/cell-group/style/less.js +0 -2
- package/lib/checkbox/index.less +0 -96
- package/lib/checkbox/style/less.d.ts +0 -1
- package/lib/checkbox/style/less.js +0 -5
- package/lib/checkbox-group/index.less +0 -6
- package/lib/checkbox-group/style/less.d.ts +0 -1
- package/lib/checkbox-group/style/less.js +0 -2
- package/lib/circle/index.less +0 -49
- package/lib/circle/style/less.d.ts +0 -1
- package/lib/circle/style/less.js +0 -2
- package/lib/col/index.less +0 -19
- package/lib/col/style/less.d.ts +0 -1
- package/lib/col/style/less.js +0 -3
- package/lib/collapse/style/less.d.ts +0 -1
- package/lib/collapse/style/less.js +0 -1
- package/lib/collapse-item/index.less +0 -75
- package/lib/collapse-item/style/less.d.ts +0 -1
- package/lib/collapse-item/style/less.js +0 -5
- package/lib/config-provider/style/less.d.ts +0 -1
- package/lib/config-provider/style/less.js +0 -1
- package/lib/contact-card/index.less +0 -47
- package/lib/contact-card/style/less.d.ts +0 -1
- package/lib/contact-card/style/less.js +0 -5
- package/lib/contact-edit/index.less +0 -37
- package/lib/contact-edit/style/less.d.ts +0 -1
- package/lib/contact-edit/style/less.js +0 -9
- package/lib/contact-list/index.less +0 -65
- package/lib/contact-list/style/less.d.ts +0 -1
- package/lib/contact-list/style/less.js +0 -11
- package/lib/count-down/index.less +0 -11
- package/lib/count-down/style/less.d.ts +0 -1
- package/lib/count-down/style/less.js +0 -2
- package/lib/coupon/index.less +0 -127
- package/lib/coupon/style/less.d.ts +0 -1
- package/lib/coupon/style/less.js +0 -6
- package/lib/coupon-cell/index.less +0 -9
- package/lib/coupon-cell/style/less.d.ts +0 -1
- package/lib/coupon-cell/style/less.js +0 -5
- package/lib/coupon-list/index.less +0 -86
- package/lib/coupon-list/style/less.d.ts +0 -1
- package/lib/coupon-list/style/less.js +0 -17
- package/lib/date-picker/style/less.d.ts +0 -1
- package/lib/date-picker/style/less.js +0 -3
- package/lib/dialog/index.less +0 -140
- package/lib/dialog/style/less.d.ts +0 -1
- package/lib/dialog/style/less.js +0 -10
- package/lib/divider/index.less +0 -73
- package/lib/divider/style/less.d.ts +0 -1
- package/lib/divider/style/less.js +0 -2
- package/lib/dropdown-item/index.less +0 -41
- package/lib/dropdown-item/style/less.d.ts +0 -1
- package/lib/dropdown-item/style/less.js +0 -8
- package/lib/dropdown-menu/index.less +0 -80
- package/lib/dropdown-menu/style/less.d.ts +0 -1
- package/lib/dropdown-menu/style/less.js +0 -2
- package/lib/empty/index.less +0 -41
- package/lib/empty/style/less.d.ts +0 -1
- package/lib/empty/style/less.js +0 -2
- package/lib/field/index.less +0 -196
- package/lib/field/style/less.d.ts +0 -1
- package/lib/field/style/less.js +0 -5
- package/lib/form/style/less.d.ts +0 -1
- package/lib/form/style/less.js +0 -1
- package/lib/grid/index.less +0 -4
- package/lib/grid/style/less.d.ts +0 -1
- package/lib/grid/style/less.js +0 -2
- package/lib/grid-item/index.less +0 -97
- package/lib/grid-item/style/less.d.ts +0 -1
- package/lib/grid-item/style/less.js +0 -5
- package/lib/icon/index.less +0 -10
- package/lib/icon/style/less.d.ts +0 -1
- package/lib/icon/style/less.js +0 -3
- package/lib/image/index.less +0 -55
- package/lib/image/style/less.d.ts +0 -1
- package/lib/image/style/less.js +0 -4
- package/lib/image-preview/index.less +0 -110
- package/lib/image-preview/style/less.d.ts +0 -1
- package/lib/image-preview/style/less.js +0 -10
- package/lib/index-anchor/index.less +0 -31
- package/lib/index-anchor/style/less.d.ts +0 -1
- package/lib/index-anchor/style/less.js +0 -3
- package/lib/index-bar/index.less +0 -33
- package/lib/index-bar/style/less.d.ts +0 -1
- package/lib/index-bar/style/less.js +0 -2
- package/lib/index.less +0 -80
- package/lib/lazyload/style/less.d.ts +0 -1
- package/lib/lazyload/style/less.js +0 -1
- package/lib/list/index.less +0 -29
- package/lib/list/style/less.d.ts +0 -1
- package/lib/list/style/less.js +0 -3
- package/lib/loading/index.less +0 -109
- package/lib/loading/style/less.d.ts +0 -1
- package/lib/loading/style/less.js +0 -2
- package/lib/locale/style/less.d.ts +0 -1
- package/lib/locale/style/less.js +0 -1
- package/lib/nav-bar/index.less +0 -78
- package/lib/nav-bar/style/less.d.ts +0 -1
- package/lib/nav-bar/style/less.js +0 -4
- package/lib/notice-bar/index.less +0 -70
- package/lib/notice-bar/style/less.d.ts +0 -1
- package/lib/notice-bar/style/less.js +0 -4
- package/lib/notify/index.less +0 -42
- package/lib/notify/style/less.d.ts +0 -1
- package/lib/notify/style/less.js +0 -6
- package/lib/number-keyboard/index.less +0 -159
- package/lib/number-keyboard/style/less.d.ts +0 -1
- package/lib/number-keyboard/style/less.js +0 -3
- package/lib/overlay/index.less +0 -14
- package/lib/overlay/style/less.d.ts +0 -1
- package/lib/overlay/style/less.js +0 -2
- package/lib/pagination/index.less +0 -89
- package/lib/pagination/style/less.d.ts +0 -1
- package/lib/pagination/style/less.js +0 -2
- package/lib/password-input/index.less +0 -100
- package/lib/password-input/style/less.d.ts +0 -1
- package/lib/password-input/style/less.js +0 -2
- package/lib/picker/index.less +0 -138
- package/lib/picker/style/less.d.ts +0 -1
- package/lib/picker/style/less.js +0 -3
- package/lib/popover/index.less +0 -288
- package/lib/popover/style/less.d.ts +0 -1
- package/lib/popover/style/less.js +0 -6
- package/lib/popup/index.less +0 -139
- package/lib/popup/style/less.d.ts +0 -1
- package/lib/popup/style/less.js +0 -5
- package/lib/progress/index.less +0 -53
- package/lib/progress/style/less.d.ts +0 -1
- package/lib/progress/style/less.js +0 -2
- package/lib/pull-refresh/index.less +0 -36
- package/lib/pull-refresh/style/less.d.ts +0 -1
- package/lib/pull-refresh/style/less.js +0 -3
- package/lib/radio/index.less +0 -96
- package/lib/radio/style/less.d.ts +0 -1
- package/lib/radio/style/less.js +0 -6
- package/lib/radio-group/index.less +0 -6
- package/lib/radio-group/style/less.d.ts +0 -1
- package/lib/radio-group/style/less.js +0 -2
- package/lib/rate/index.less +0 -52
- package/lib/rate/style/less.d.ts +0 -1
- package/lib/rate/style/less.js +0 -4
- package/lib/row/index.less +0 -32
- package/lib/row/style/less.d.ts +0 -1
- package/lib/row/style/less.js +0 -2
- package/lib/search/index.less +0 -76
- package/lib/search/style/less.d.ts +0 -1
- package/lib/search/style/less.js +0 -6
- package/lib/share-sheet/index.less +0 -152
- package/lib/share-sheet/style/less.d.ts +0 -1
- package/lib/share-sheet/style/less.js +0 -6
- package/lib/sidebar/index.less +0 -9
- package/lib/sidebar/style/less.d.ts +0 -1
- package/lib/sidebar/style/less.js +0 -2
- package/lib/sidebar-item/index.less +0 -72
- package/lib/sidebar-item/style/less.d.ts +0 -1
- package/lib/sidebar-item/style/less.js +0 -4
- package/lib/skeleton/index.less +0 -73
- package/lib/skeleton/style/less.d.ts +0 -1
- package/lib/skeleton/style/less.js +0 -2
- package/lib/slider/index.less +0 -104
- package/lib/slider/style/less.d.ts +0 -1
- package/lib/slider/style/less.js +0 -2
- package/lib/ssr.js +0 -7
- package/lib/ssr.mjs +0 -1
- package/lib/step/index.less +0 -147
- package/lib/step/style/less.d.ts +0 -1
- package/lib/step/style/less.js +0 -5
- package/lib/stepper/index.less +0 -129
- package/lib/stepper/style/less.d.ts +0 -1
- package/lib/stepper/style/less.js +0 -2
- package/lib/steps/index.less +0 -23
- package/lib/steps/style/less.d.ts +0 -1
- package/lib/steps/style/less.js +0 -2
- package/lib/sticky/index.less +0 -10
- package/lib/sticky/style/less.d.ts +0 -1
- package/lib/sticky/style/less.js +0 -2
- package/lib/style/animation.less +0 -135
- package/lib/style/base.less +0 -89
- package/lib/style/css-variables.less +0 -90
- package/lib/style/mixins/clearfix.less +0 -7
- package/lib/style/mixins/ellipsis.less +0 -15
- package/lib/style/mixins/hairline.less +0 -37
- package/lib/style/normalize.less +0 -36
- package/lib/submit-bar/index.less +0 -97
- package/lib/submit-bar/style/less.d.ts +0 -1
- package/lib/submit-bar/style/less.js +0 -6
- package/lib/swipe/index.less +0 -65
- package/lib/swipe/style/less.d.ts +0 -1
- package/lib/swipe/style/less.js +0 -2
- package/lib/swipe-cell/index.less +0 -27
- package/lib/swipe-cell/style/less.d.ts +0 -1
- package/lib/swipe-cell/style/less.js +0 -2
- package/lib/swipe-item/index.less +0 -6
- package/lib/swipe-item/style/less.d.ts +0 -1
- package/lib/swipe-item/style/less.js +0 -3
- package/lib/switch/index.less +0 -75
- package/lib/switch/style/less.d.ts +0 -1
- package/lib/switch/style/less.js +0 -3
- package/lib/tab/index.less +0 -15
- package/lib/tab/style/less.d.ts +0 -1
- package/lib/tab/style/less.js +0 -7
- package/lib/tabbar/index.less +0 -20
- package/lib/tabbar/style/less.d.ts +0 -1
- package/lib/tabbar/style/less.js +0 -2
- package/lib/tabbar-item/index.less +0 -44
- package/lib/tabbar-item/style/less.d.ts +0 -1
- package/lib/tabbar-item/style/less.js +0 -5
- package/lib/tabs/index.less +0 -170
- package/lib/tabs/style/less.d.ts +0 -1
- package/lib/tabs/style/less.js +0 -5
- package/lib/tag/index.less +0 -115
- package/lib/tag/style/less.d.ts +0 -1
- package/lib/tag/style/less.js +0 -4
- package/lib/time-picker/style/less.d.ts +0 -1
- package/lib/time-picker/style/less.js +0 -3
- package/lib/toast/index.less +0 -89
- package/lib/toast/style/less.d.ts +0 -1
- package/lib/toast/style/less.js +0 -7
- package/lib/tree-select/index.less +0 -68
- package/lib/tree-select/style/less.d.ts +0 -1
- package/lib/tree-select/style/less.js +0 -6
- package/lib/uploader/index.less +0 -191
- package/lib/uploader/style/less.d.ts +0 -1
- package/lib/uploader/style/less.js +0 -11
- package/lib/vant.cjs.min.js +0 -1
- package/lib/vant.es.min.js +0 -14191
package/LICENSE
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) Youzan
|
4
|
+
Copyright (c) Chen Jiahan and other contributors
|
5
|
+
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
7
|
+
|
8
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
9
|
+
|
10
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
CHANGED
@@ -18,7 +18,7 @@
|
|
18
18
|
<p align="center">
|
19
19
|
🔥 <a href="https://vant-contrib.gitee.io/vant">文档网站(国内)</a>
|
20
20
|
|
21
|
-
🌈 <a href="https://
|
21
|
+
🌈 <a href="https://vant-ui.github.io/vant">文档网站(GitHub)</a>
|
22
22
|
|
23
23
|
🇨🇳 <a href="./README.zh-CN.md">中文版介绍</a>
|
24
24
|
</p>
|
@@ -74,7 +74,7 @@ const app = createApp();
|
|
74
74
|
app.use(Button);
|
75
75
|
```
|
76
76
|
|
77
|
-
See more in [Quickstart](https://
|
77
|
+
See more in [Quickstart](https://vant-ui.github.io/vant#/en-US/quickstart).
|
78
78
|
|
79
79
|
## Browser Support
|
80
80
|
|
@@ -106,8 +106,8 @@ Vant 3/4 supports modern browsers and Chrome >= 51、iOS >= 10.0 (same as Vue 3)
|
|
106
106
|
|
107
107
|
## Links
|
108
108
|
|
109
|
-
- [Documentation](https://
|
110
|
-
- [Changelog](https://
|
109
|
+
- [Documentation](https://vant-ui.github.io/vant)
|
110
|
+
- [Changelog](https://vant-ui.github.io/vant#/en-US/changelog)
|
111
111
|
- [Gitter](https://gitter.im/vant-contrib/discuss?utm_source=share-link&utm_medium=link&utm_campaign=share-link)
|
112
112
|
|
113
113
|
## Preview
|
@@ -0,0 +1,250 @@
|
|
1
|
+
### [v4.0.0-beta.0](https://github.com/youzan/vant/compare/v3.5.2...v4.0.0-beta.0)
|
2
|
+
|
3
|
+
`2022-07-16`
|
4
|
+
|
5
|
+
**Bug Fixes**
|
6
|
+
|
7
|
+
- @vant-cli: compilation error when using setup syntactic sugar and including subcomponents [cb7512](https://github.com/youzan/vant/commit/cb751211f1184a7a36627b45290f84c64d656f5a)
|
8
|
+
- Uploader: should not preview failed images [#10790](https://github.com/youzan/vant/issues/10790)
|
9
|
+
|
10
|
+
**Document**
|
11
|
+
|
12
|
+
- changelog: @vant/cli@4.0.3 [#10772](https://github.com/youzan/vant/issues/10772)
|
13
|
+
- changelog: 4.0.0-alpha.4 [635194](https://github.com/youzan/vant/commit/63519433f12d4b1a17191c83df1dd928f5909542)
|
14
|
+
- changelog: vant@3.5.2 [e5a3aa](https://github.com/youzan/vant/commit/e5a3aa103dcd087f091d757ad244179ad4a70f42)
|
15
|
+
- update website domain [#10798](https://github.com/youzan/vant/issues/10798)
|
16
|
+
|
17
|
+
**Feature**
|
18
|
+
|
19
|
+
- add @vant/compat package [#10806](https://github.com/youzan/vant/issues/10806)
|
20
|
+
- Calendar: expose getSelectedDate method [419a8e](https://github.com/youzan/vant/commit/419a8e4f0e6454b9aac30d5800318deabec099cb)
|
21
|
+
- cli: support site.headHtml option [#10807](https://github.com/youzan/vant/issues/10807)
|
22
|
+
|
23
|
+
**perf**
|
24
|
+
|
25
|
+
- cli: improve cli boot time [#10780](https://github.com/youzan/vant/issues/10780)
|
26
|
+
- cli: replace lint-staged with nano-staged [#10778](https://github.com/youzan/vant/issues/10778)
|
27
|
+
- cli: replace ora with nanospinner [#10779](https://github.com/youzan/vant/issues/10779)
|
28
|
+
- remove less source file to remove bundle size [#10752](https://github.com/youzan/vant/issues/10752)
|
29
|
+
|
30
|
+
**refactor**
|
31
|
+
|
32
|
+
- Dialog: redesign function-call API [#10781](https://github.com/youzan/vant/issues/10781)
|
33
|
+
- ImagePreview: redesign function-call API [#10802](https://github.com/youzan/vant/issues/10802)
|
34
|
+
- Notify: redesign function-call API [#10782](https://github.com/youzan/vant/issues/10782)
|
35
|
+
- Toast: redesign function-call API [#10804](https://github.com/youzan/vant/issues/10804)
|
36
|
+
|
37
|
+
**release**
|
38
|
+
|
39
|
+
- @vant/cli 4.0.3 [e4fc6f](https://github.com/youzan/vant/commit/e4fc6f9081728d3f59ef8d60c18bc5e7fa72d571)
|
40
|
+
### [v4.0.0-alpha.4](https://github.com/youzan/vant/compare/v3.5.0-beta.0...v4.0.0-alpha.4)
|
41
|
+
|
42
|
+
`2022-05-31`
|
43
|
+
|
44
|
+
**Document**
|
45
|
+
|
46
|
+
- changelog: 4.0.0-alpha.3 [fe2115](https://github.com/youzan/vant/commit/fe2115ee5c1e86f006858bc930219313afb46747)
|
47
|
+
|
48
|
+
**Feature**
|
49
|
+
|
50
|
+
- using mjs extension for esmodule [#10625](https://github.com/youzan/vant/issues/10625)
|
51
|
+
|
52
|
+
**release**
|
53
|
+
|
54
|
+
- 4.0.0-alpha.4 [1f19fb](https://github.com/youzan/vant/commit/1f19fb0d9f91317e799f4ce8f017f56841dad6e6)
|
55
|
+
### [v4.0.0-alpha.3](https://github.com/youzan/vant/compare/v3.4.9...v4.0.0-alpha.3)
|
56
|
+
|
57
|
+
`2022-05-02`
|
58
|
+
|
59
|
+
**Bug Fixes**
|
60
|
+
|
61
|
+
- Search: style error in dark mode [#10527](https://github.com/youzan/vant/issues/10527)
|
62
|
+
|
63
|
+
**Document**
|
64
|
+
|
65
|
+
- changelog: 4.0.0-alpha.2 [912a5f](https://github.com/youzan/vant/commit/912a5f17b1b429baa063de91c68a8bf6650b1189)
|
66
|
+
|
67
|
+
**release**
|
68
|
+
|
69
|
+
- 4.0.0-alpha.3 [bc60f5](https://github.com/youzan/vant/commit/bc60f5116bd832c599ec8ba43b58daece4abe280)
|
70
|
+
### [v4.0.0-alpha.2](https://github.com/youzan/vant/compare/v3.4.8...v4.0.0-alpha.2)
|
71
|
+
|
72
|
+
`2022-04-16`
|
73
|
+
|
74
|
+
**Document**
|
75
|
+
|
76
|
+
- changelog: 4.0.0-alpha.1 [5bff9e](https://github.com/youzan/vant/commit/5bff9e8c5ff4716740c7555ef185163569f7576c)
|
77
|
+
|
78
|
+
- breaking change(AddressEdit): remove postal [e08e98](https://github.com/youzan/vant/commit/e08e9845a29b8d5587f02eff84368e32157678f4)
|
79
|
+
|
80
|
+
**release**
|
81
|
+
|
82
|
+
- 4.0.0-alpha.2 [ea57c9](https://github.com/youzan/vant/commit/ea57c9e9ffc10847ac31e1c6b6dac8f81c4abb22)
|
83
|
+
### [v4.0.0-alpha.1](https://github.com/youzan/vant/compare/v3.4.6...v4.0.0-alpha.1)
|
84
|
+
|
85
|
+
`2022-03-19`
|
86
|
+
|
87
|
+
**Bug Fixes**
|
88
|
+
|
89
|
+
- Calendar, Picker: Fix calendar and picker's title color in dark mode [#10403](https://github.com/youzan/vant/issues/10403)
|
90
|
+
- ConfigProvider: dark mode not work as default value [#10413](https://github.com/youzan/vant/issues/10413)
|
91
|
+
- DatePicker: failed to update model value [#10415](https://github.com/youzan/vant/issues/10415)
|
92
|
+
- Dialog: Fix dialog title and message color in dark mode [#10379](https://github.com/youzan/vant/issues/10379)
|
93
|
+
|
94
|
+
**build**
|
95
|
+
|
96
|
+
- deploy v4 site [06199f](https://github.com/youzan/vant/commit/06199faf2c170bcd95e6aa49b51d981373ac42a6)
|
97
|
+
- fix workflow name [992eea](https://github.com/youzan/vant/commit/992eea3eeb8758942d40f9b893d0ff41c296c3ea)
|
98
|
+
|
99
|
+
**Document**
|
100
|
+
|
101
|
+
- DatePicker: fix formatter usage [#10416](https://github.com/youzan/vant/issues/10416)
|
102
|
+
- fix publicPath [db2e6c](https://github.com/youzan/vant/commit/db2e6ca12f75ee0db3b25cd1f9766f9e74e285f6)
|
103
|
+
- Picker: add v-model usage [#10417](https://github.com/youzan/vant/issues/10417)
|
104
|
+
- update [3a1e79](https://github.com/youzan/vant/commit/3a1e792e3151861e0ed780baa67823729db6a8a6)
|
105
|
+
- update 4.0.0-alpha changelog [#10339](https://github.com/youzan/vant/issues/10339)
|
106
|
+
|
107
|
+
**release**
|
108
|
+
|
109
|
+
- 4.0.0-alpha.1 [475d10](https://github.com/youzan/vant/commit/475d108ccb0f09dc09269751bd1bc15d1ea2ed0a)
|
110
|
+
### [v4.0.0-alpha.0](https://github.com/youzan/vant/compare/v3.4.5...v4.0.0-alpha.0)
|
111
|
+
|
112
|
+
`2022-02-21`
|
113
|
+
|
114
|
+
**Bug Fixes**
|
115
|
+
|
116
|
+
- AddressEdit: selectedOption maybe undefined [3979dd](https://github.com/youzan/vant/commit/3979ddc40af1325f5cc7889c6f0f277ccdb110c9)
|
117
|
+
- Area: allow to reset modelValue [8d49b8](https://github.com/youzan/vant/commit/8d49b88748c6bd36437628ab0242352dc0ba5159)
|
118
|
+
- DatePicker: allow modelValue to be empty [980f97](https://github.com/youzan/vant/commit/980f9760112958a2bd5c1e88a410e4c15636658a)
|
119
|
+
- Picker: currentColumns calculation [113e1b](https://github.com/youzan/vant/commit/113e1b7a6239c3097956e8692cb512e8ccecccb8)
|
120
|
+
- Picker: error when options is empty [018621](https://github.com/youzan/vant/commit/0186219586b75227bf69ce0e514c3ed94c52e1cc)
|
121
|
+
- Picker: failed to update modelValue [ff69fd](https://github.com/youzan/vant/commit/ff69fdacc7dd9bcf6bd17c4a493902d027644d92)
|
122
|
+
- Picker: fix some bugs [22654b](https://github.com/youzan/vant/commit/22654bf518cc21e45cf9ed5e597f5d5e1f411a17)
|
123
|
+
- Picker: option.className not work [d16075](https://github.com/youzan/vant/commit/d16075f39efbd7aeed4feab08cd4587bc73eb54c)
|
124
|
+
- Picker: should update modelValue immediately [e61bd4](https://github.com/youzan/vant/commit/e61bd487fa81533a6deb6c8aa52e92a549a000a4)
|
125
|
+
- Picker: should update selectedValues correctly [2a8bb8](https://github.com/youzan/vant/commit/2a8bb86fbb7d65f9ddc053de8bc3c9c1175d3dff)
|
126
|
+
- TimePicker: remove columns-order prop [7d22cc](https://github.com/youzan/vant/commit/7d22cc2155bef564ee910498d2f8f319ef601a41)
|
127
|
+
- TimePicker: should update modelValue immediately [7dae50](https://github.com/youzan/vant/commit/7dae50b0c9809e17448264752de831504f7f084d)
|
128
|
+
- vant-cli: pnpm compatibility [#10214](https://github.com/youzan/vant/issues/10214)
|
129
|
+
|
130
|
+
**Document**
|
131
|
+
|
132
|
+
- @vant/cli: changelog 4.0.0-rc.6 [fda3f1](https://github.com/youzan/vant/commit/fda3f1be9403c68bcc734ae08c760af3d0df6fa1)
|
133
|
+
- Area: update documents [a9baa3](https://github.com/youzan/vant/commit/a9baa3b2d188a16637acc1051fb554142408315b)
|
134
|
+
- dark mode [d4584a](https://github.com/youzan/vant/commit/d4584aafda247ad4d520afc063cd6a74f8d7ee4c)
|
135
|
+
- DatePicker: fix currentDate of year-month [c942ef](https://github.com/youzan/vant/commit/c942efb76b53885a66de5291c86ca1160713cfb3)
|
136
|
+
- docsearch version v4 [15e746](https://github.com/youzan/vant/commit/15e7461a93a32c7a0e43e46955adc45d845bc064)
|
137
|
+
- Form: fix demo [7deba8](https://github.com/youzan/vant/commit/7deba88b918f74d68b7880621983f2ad2d8eb549)
|
138
|
+
- Form: fix Picker demo [9cfef0](https://github.com/youzan/vant/commit/9cfef027aa787ed85566a7ce23beb8c2e8bffba1)
|
139
|
+
- Picker: new document [cc10eb](https://github.com/youzan/vant/commit/cc10eb1f2adddc5a6d34336669b85a8a571c1803)
|
140
|
+
- Picker: update demo [ceaab3](https://github.com/youzan/vant/commit/ceaab349f177d0280d15f66686890dc092434b80)
|
141
|
+
- update migration guide [d68053](https://github.com/youzan/vant/commit/d68053ea7f469953a8e81819e4aeb47ab169124f)
|
142
|
+
- update migration guide [f436b5](https://github.com/youzan/vant/commit/f436b5ae09af3f3ff8a5d21105ad0ff85cd48ff7)
|
143
|
+
- update v4 migration guide [6c24fa](https://github.com/youzan/vant/commit/6c24fa728ee078419cbd7b8efcd35b3b70021208)
|
144
|
+
- update Vant 4 [2ceb68](https://github.com/youzan/vant/commit/2ceb68e691440b49394ea05a82912f1e972146dd)
|
145
|
+
|
146
|
+
- breaking change(AddressEdit): adjust change-area event params [b3cf1d](https://github.com/youzan/vant/commit/b3cf1dfb54f04af08011d2b9930fd725856d153a)
|
147
|
+
- breaking change: event name become camelCase [8ca974](https://github.com/youzan/vant/commit/8ca9741845cc7f5c73c23bb81c98ec2802971e27)
|
148
|
+
- breaking change: shorter css var names [7d6916](https://github.com/youzan/vant/commit/7d6916b946440fdd7fb3e0bd4c1117c989d74a93)
|
149
|
+
- breaking change: no longer support less vars [ada5db](https://github.com/youzan/vant/commit/ada5db011c676893a2917b9424be1aeafe54134b)
|
150
|
+
- breaking change(Tabs): remove click、disabled event [099141](https://github.com/youzan/vant/commit/099141f6c5b0e43c7e3ceeae98ee7e6e512212d6)
|
151
|
+
- breaking change(Picker): remove default slot、value-key prop [6a4033](https://github.com/youzan/vant/commit/6a4033b6bc72c38ff103c16e039ecd73ccacd4df)
|
152
|
+
|
153
|
+
**Feature**
|
154
|
+
|
155
|
+
- @vant/cli: desktop site support dark mode [35a990](https://github.com/youzan/vant/commit/35a990ed65500311cbcafae506780dc6d3fb49fa)
|
156
|
+
- @vant/cli: mobile site support dark mode [df24a3](https://github.com/youzan/vant/commit/df24a3b6834e4b9439580498f9c4a7448f7ca7c2)
|
157
|
+
- ActionBar: update icon text color [650bdd](https://github.com/youzan/vant/commit/650bdd22941d9119d8a78f1ffc37d8562c68f9a1)
|
158
|
+
- add dark mode basic variables [73322f](https://github.com/youzan/vant/commit/73322fd310849f53bf6f9e5bc508991c770af620)
|
159
|
+
- Area: add getSelectedOptions method [35a500](https://github.com/youzan/vant/commit/35a50012c76495119a44efa2cfc231f8b1921f40)
|
160
|
+
- ConfigProvider: add theme prop [f95734](https://github.com/youzan/vant/commit/f9573402a79d2de0abcfb43f6cbcf4c7e7e8c64f)
|
161
|
+
- ConfigProvider: dark theme class [97b074](https://github.com/youzan/vant/commit/97b074ad0c3d8f25b9281120444901128bfdc5a1)
|
162
|
+
- DatePicker: date columns calculation [e8ffc8](https://github.com/youzan/vant/commit/e8ffc80dc65a9a09e342a97d9314c498e8e78264)
|
163
|
+
- Picker: add getSelectedOptions method [83295e](https://github.com/youzan/vant/commit/83295e655da9ae2debbf2e7472753517d5b5241d)
|
164
|
+
- TimePicker: support select second [2e053a](https://github.com/youzan/vant/commit/2e053ad76bf254fbe14cee2b3c3d2dc7766c9462)
|
165
|
+
|
166
|
+
**refactor**
|
167
|
+
|
168
|
+
- Area component [cca428](https://github.com/youzan/vant/commit/cca428aac63da792e8de8f3f6f76d164cab46cb6)
|
169
|
+
- attach css variables to body element [541458](https://github.com/youzan/vant/commit/541458c41b69e3bc977aa39a0e91be2b2d91883a)
|
170
|
+
- DatePicker Component [5b4075](https://github.com/youzan/vant/commit/5b407566db61d2ff7e6512ca8f82f39111d8da0f)
|
171
|
+
- DatePicker: v-model now is string array [ef8e66](https://github.com/youzan/vant/commit/ef8e66a9244606899339c7153ec2d66406afbf81)
|
172
|
+
- Picker: data driven [89b029](https://github.com/youzan/vant/commit/89b029aa42400b2570b7676b881f6311abe42352)
|
173
|
+
- Picker: rename item-height to option-height [c06141](https://github.com/youzan/vant/commit/c061412138e41a07a87110692621517eac814428)
|
174
|
+
- rename --van-background-light to --van-background-2 [98b999](https://github.com/youzan/vant/commit/98b999d911c41ac1a73e6ef375b4966befe69b20)
|
175
|
+
- TimePicker component [42d1dd](https://github.com/youzan/vant/commit/42d1dd836c141f499343aa6a8278d1b3be4953ac)
|
176
|
+
- TimePicker: modelValue now is string array [fdcf99](https://github.com/youzan/vant/commit/fdcf9931bed3da6f1faedff99f3a6b8202d75691)
|
177
|
+
|
178
|
+
**release**
|
179
|
+
|
180
|
+
- @vant/cli 4.0.0-rc.6 [e93ae7](https://github.com/youzan/vant/commit/e93ae7b430afac7f431af23e334eaf0bf17a9e9d)
|
181
|
+
- 4.0.0-alpha.0 [c20664](https://github.com/youzan/vant/commit/c206642d2d6771b681c369653228ec692fd28754)
|
182
|
+
|
183
|
+
**style**
|
184
|
+
|
185
|
+
- @vant/cli: adjust css vars [b6fcd3](https://github.com/youzan/vant/commit/b6fcd32dcf201703d32ee4ce70d6147b4c4605ef)
|
186
|
+
- @vant/cli: improve demo style in dark mode [0e8e32](https://github.com/youzan/vant/commit/0e8e3200a2f3fbdfd46f324d89ae05a38680f421)
|
187
|
+
- @vant/cli: improve mobile style in dark mode [f5c32c](https://github.com/youzan/vant/commit/f5c32c29f115ef072a20ff736732a1c66557f992)
|
188
|
+
- AddressEdit: submit button using primary type [c65d4f](https://github.com/youzan/vant/commit/c65d4f96727059d19ad7bb014b53d679754bd512)
|
189
|
+
- AddressList: using primary color [fcd91c](https://github.com/youzan/vant/commit/fcd91cb0b03ade0def49928bdd2ec2ea652f4408)
|
190
|
+
- Button: adjust font-smoothing [bda361](https://github.com/youzan/vant/commit/bda3617d14f3e93f04748915bb595467c1696945)
|
191
|
+
- Button: increase default border radius from 2px to 4px [d86771](https://github.com/youzan/vant/commit/d867710cc9ca273dbf6c1d4edc568f57e5806243)
|
192
|
+
- Button: update default button border color [bd2428](https://github.com/youzan/vant/commit/bd24288a12b38fecafc6302f1216587e7a6710fb)
|
193
|
+
- Calendar: using primary color by default [4e89e8](https://github.com/youzan/vant/commit/4e89e88845adba1af3a6a6db19d8df7cae6aa9fb)
|
194
|
+
- Card: blue tag [369201](https://github.com/youzan/vant/commit/3692014070beb9d3187106803e742b28ab0b3310)
|
195
|
+
- Card: improve card mode style [cb2d99](https://github.com/youzan/vant/commit/cb2d99c8cf7abde3e08df79085f13a21c47c9bc7)
|
196
|
+
- Cascader: using primary color by default [84b90b](https://github.com/youzan/vant/commit/84b90b1f4c9e52c9638426e79a269d53801cc0b1)
|
197
|
+
- Cell: remove value aline style [0a7b53](https://github.com/youzan/vant/commit/0a7b53553364691e11af6906b5d22dee8e570cce)
|
198
|
+
- ContactEdit: adjust submit button [43ae30](https://github.com/youzan/vant/commit/43ae30026adf98b076ec26c3214c24387cb63082)
|
199
|
+
- ContactList: using primary color [d39f6a](https://github.com/youzan/vant/commit/d39f6a898afa4c5bbd5ef33035e42f656b0ec6f7)
|
200
|
+
- CouponList: change default color [85c5ad](https://github.com/youzan/vant/commit/85c5ad671868b7156968b681a00b147a57504c84)
|
201
|
+
- CouponList: update field background color in dark mode [82e0e4](https://github.com/youzan/vant/commit/82e0e454d0de31d5a1a68a17a6e566d42ba86d74)
|
202
|
+
- DropdownMenu: using primary color by default [37e7c6](https://github.com/youzan/vant/commit/37e7c618b82527616d9f988f3249dda347eb7923)
|
203
|
+
- Field: adjust label color [8e98e9](https://github.com/youzan/vant/commit/8e98e9744939003f1679b465ccd5124539a99f36)
|
204
|
+
- GridItem: adust text color [42f03f](https://github.com/youzan/vant/commit/42f03fe1a241ff5311e9fe6696fb614b225faa72)
|
205
|
+
- increase font-weight bold [bef919](https://github.com/youzan/vant/commit/bef919c7f011bffdb31bad1ca085df5be24679f4)
|
206
|
+
- IndexBar: increase font weight of active index [d6e80e](https://github.com/youzan/vant/commit/d6e80e8954931927808c7fabf37473db35e8730b)
|
207
|
+
- IndexBar: using primary color by default [8b95db](https://github.com/youzan/vant/commit/8b95db15746bbf02a9091c8e604c9bb3884148b0)
|
208
|
+
- Sidebar: using primary color by default [eeb233](https://github.com/youzan/vant/commit/eeb233bf990a598282c21559520415a64a237179)
|
209
|
+
- Slider: improve dark mode color [fc2847](https://github.com/youzan/vant/commit/fc2847fdb442f3a5c5f1e26cc14858e136a86b3c)
|
210
|
+
- Stepper: using primary color by default [41b1cd](https://github.com/youzan/vant/commit/41b1cd71854514404c6a601ee22586a9ae243ee3)
|
211
|
+
- Steps: update default button border color [5a1566](https://github.com/youzan/vant/commit/5a15660c77082d814da2b68527136994ab9112f8)
|
212
|
+
- Switch: adjust style [2acd47](https://github.com/youzan/vant/commit/2acd47b5ee251d1af729c44b8516a4cc0fa06d44)
|
213
|
+
- Switch: adjust width [73788f](https://github.com/youzan/vant/commit/73788f9e88beba576d2599a939caa4b4970b396f)
|
214
|
+
- Tabbar: adjust text color [39b51d](https://github.com/youzan/vant/commit/39b51d5dae7e9c0ab1e5fb03a868a06cdbf6b269)
|
215
|
+
- Tabs: using primary color by default [3b10d6](https://github.com/youzan/vant/commit/3b10d66bb92869d03b7af8228bfd1b1e0361a033)
|
216
|
+
- TreeSelect: using primary color [cce3ce](https://github.com/youzan/vant/commit/cce3ceb5b68e445d0b9ea94f91d6b46246444b36)
|
217
|
+
- update van doc background [5b3c4f](https://github.com/youzan/vant/commit/5b3c4f15468428c29dcd7cc43ca5a82831b6f87a)
|
218
|
+
|
219
|
+
**Types**
|
220
|
+
|
221
|
+
- AddressEdit: SearchItem optional [27c46b](https://github.com/youzan/vant/commit/27c46b01ae391f7c26430ea258181d1f534511a0)
|
222
|
+
- DatePicker: export DatePickerColumnType [829db0](https://github.com/youzan/vant/commit/829db06d5b2576e2024a280bd10ba1fa3f17f25c)
|
223
|
+
- Picker: fix columns prop typing [6c64bc](https://github.com/youzan/vant/commit/6c64bc33c1ba537b7951dcbc02d6deec3aaab093)
|
224
|
+
- Picker: fix return type of getSelectedOptions [967cb5](https://github.com/youzan/vant/commit/967cb56c181cc145189a868f49c4666a75f85b00)
|
225
|
+
- TimePicker: export TimePickerColumnType [b608fb](https://github.com/youzan/vant/commit/b608fb23f031cf09a474039cd9cd23f8bc7811d3)
|
226
|
+
### [v3.5.2](https://github.com/youzan/vant/compare/v3.5.1...v3.5.2)
|
227
|
+
|
228
|
+
`2022-06-26`
|
229
|
+
|
230
|
+
**Bug Fixes**
|
231
|
+
|
232
|
+
- List: element with `overflow: overlay` style should be considered a scroll container [#10743](https://github.com/youzan/vant/issues/10743)
|
233
|
+
|
234
|
+
**Document**
|
235
|
+
|
236
|
+
- add guide of function component style [#10728](https://github.com/youzan/vant/issues/10728)
|
237
|
+
- changelog: 3.5.1 [ffefe3](https://github.com/youzan/vant/commit/ffefe3002f674f644b90f8fdfb04dc004a3a8c4f)
|
238
|
+
- Switch: fix custom node demo [#10720](https://github.com/youzan/vant/issues/10720)
|
239
|
+
|
240
|
+
**Feature**
|
241
|
+
|
242
|
+
- ActionBar: add placeholder prop [#10724](https://github.com/youzan/vant/issues/10724)
|
243
|
+
- cli: add build.bundleOptions config [#10751](https://github.com/youzan/vant/issues/10751)
|
244
|
+
- cli: add css.removeSourceFile config [#10750](https://github.com/youzan/vant/issues/10750)
|
245
|
+
- Field: add start-validate and end-validate event [#10726](https://github.com/youzan/vant/issues/10726)
|
246
|
+
- SubmitBar: add placeholder prop [#10725](https://github.com/youzan/vant/issues/10725)
|
247
|
+
|
248
|
+
**release**
|
249
|
+
|
250
|
+
- 3.5.2 [52957e](https://github.com/youzan/vant/commit/52957ec244f2e33fff7768c1a52e29fc6589019d)
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import { type ExtractPropTypes } from 'vue';
|
2
2
|
export declare const ACTION_BAR_KEY: unique symbol;
|
3
3
|
declare const actionBarProps: {
|
4
|
+
placeholder: BooleanConstructor;
|
4
5
|
safeAreaInsetBottom: {
|
5
6
|
type: BooleanConstructor;
|
6
7
|
default: true;
|
@@ -8,16 +9,19 @@ declare const actionBarProps: {
|
|
8
9
|
};
|
9
10
|
export declare type ActionBarProps = ExtractPropTypes<typeof actionBarProps>;
|
10
11
|
declare const _default: import("vue").DefineComponent<{
|
12
|
+
placeholder: BooleanConstructor;
|
11
13
|
safeAreaInsetBottom: {
|
12
14
|
type: BooleanConstructor;
|
13
15
|
default: true;
|
14
16
|
};
|
15
17
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
18
|
+
placeholder: BooleanConstructor;
|
16
19
|
safeAreaInsetBottom: {
|
17
20
|
type: BooleanConstructor;
|
18
21
|
default: true;
|
19
22
|
};
|
20
23
|
}>>, {
|
24
|
+
placeholder: boolean;
|
21
25
|
safeAreaInsetBottom: boolean;
|
22
26
|
}>;
|
23
27
|
export default _default;
|
@@ -1,10 +1,12 @@
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
2
|
-
import { defineComponent } from "vue";
|
2
|
+
import { defineComponent, ref } from "vue";
|
3
3
|
import { truthProp, createNamespace } from "../utils/index.mjs";
|
4
4
|
import { useChildren } from "@vant/use";
|
5
|
+
import { usePlaceholder } from "../composables/use-placeholder.mjs";
|
5
6
|
const [name, bem] = createNamespace("action-bar");
|
6
7
|
const ACTION_BAR_KEY = Symbol(name);
|
7
8
|
const actionBarProps = {
|
9
|
+
placeholder: Boolean,
|
8
10
|
safeAreaInsetBottom: truthProp
|
9
11
|
};
|
10
12
|
var stdin_default = defineComponent({
|
@@ -13,18 +15,27 @@ var stdin_default = defineComponent({
|
|
13
15
|
setup(props, {
|
14
16
|
slots
|
15
17
|
}) {
|
18
|
+
const root = ref();
|
19
|
+
const renderPlaceholder = usePlaceholder(root, bem);
|
16
20
|
const {
|
17
21
|
linkChildren
|
18
22
|
} = useChildren(ACTION_BAR_KEY);
|
19
23
|
linkChildren();
|
20
|
-
|
24
|
+
const renderActionBar = () => {
|
21
25
|
var _a;
|
22
26
|
return _createVNode("div", {
|
27
|
+
"ref": root,
|
23
28
|
"class": [bem(), {
|
24
29
|
"van-safe-area-bottom": props.safeAreaInsetBottom
|
25
30
|
}]
|
26
31
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
27
32
|
};
|
33
|
+
return () => {
|
34
|
+
if (props.placeholder) {
|
35
|
+
return renderPlaceholder(renderActionBar);
|
36
|
+
}
|
37
|
+
return renderActionBar();
|
38
|
+
};
|
28
39
|
}
|
29
40
|
});
|
30
41
|
export {
|
package/es/action-bar/index.d.ts
CHANGED
@@ -1,14 +1,17 @@
|
|
1
1
|
export declare const ActionBar: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
|
+
placeholder: BooleanConstructor;
|
2
3
|
safeAreaInsetBottom: {
|
3
4
|
type: BooleanConstructor;
|
4
5
|
default: true;
|
5
6
|
};
|
6
7
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
8
|
+
placeholder: BooleanConstructor;
|
7
9
|
safeAreaInsetBottom: {
|
8
10
|
type: BooleanConstructor;
|
9
11
|
default: true;
|
10
12
|
};
|
11
13
|
}>>, {
|
14
|
+
placeholder: boolean;
|
12
15
|
safeAreaInsetBottom: boolean;
|
13
16
|
}>>;
|
14
17
|
export default ActionBar;
|
@@ -7,7 +7,7 @@ import { Cell } from "../cell/index.mjs";
|
|
7
7
|
import { Form } from "../form/index.mjs";
|
8
8
|
import { Field } from "../field/index.mjs";
|
9
9
|
import { Popup } from "../popup/index.mjs";
|
10
|
-
import {
|
10
|
+
import { showToast } from "../toast/index.mjs";
|
11
11
|
import { Button } from "../button/index.mjs";
|
12
12
|
import { Switch } from "../switch/index.mjs";
|
13
13
|
import AddressEditDetail from "./AddressEditDetail.mjs";
|
@@ -133,7 +133,7 @@ var stdin_default = defineComponent({
|
|
133
133
|
selectedOptions
|
134
134
|
}) => {
|
135
135
|
if (selectedValues.some((value) => value === AREA_EMPTY_CODE)) {
|
136
|
-
|
136
|
+
showToast(t("areaEmpty"));
|
137
137
|
} else {
|
138
138
|
showAreaPopup.value = false;
|
139
139
|
assignAreaText(selectedOptions);
|
package/es/calendar/Calendar.mjs
CHANGED
@@ -7,7 +7,7 @@ import { useRefs } from "../composables/use-refs.mjs";
|
|
7
7
|
import { useExpose } from "../composables/use-expose.mjs";
|
8
8
|
import { Popup } from "../popup/index.mjs";
|
9
9
|
import { Button } from "../button/index.mjs";
|
10
|
-
import {
|
10
|
+
import { showToast } from "../toast/index.mjs";
|
11
11
|
import CalendarMonth from "./CalendarMonth.mjs";
|
12
12
|
import CalendarHeader from "./CalendarHeader.mjs";
|
13
13
|
const calendarProps = {
|
@@ -112,6 +112,9 @@ var stdin_default = defineComponent({
|
|
112
112
|
const months = computed(() => {
|
113
113
|
const months2 = [];
|
114
114
|
const cursor = new Date(props.minDate);
|
115
|
+
if (props.lazyRender && !props.show && props.poppable) {
|
116
|
+
return months2;
|
117
|
+
}
|
115
118
|
cursor.setDate(1);
|
116
119
|
do {
|
117
120
|
months2.push(new Date(cursor));
|
@@ -130,6 +133,7 @@ var stdin_default = defineComponent({
|
|
130
133
|
}
|
131
134
|
return !currentDate.value;
|
132
135
|
});
|
136
|
+
const getSelectedDate = () => currentDate.value;
|
133
137
|
const onScroll = () => {
|
134
138
|
const top = getScrollTop(bodyRef.value);
|
135
139
|
const bottom = top + bodyHeight;
|
@@ -214,7 +218,7 @@ var stdin_default = defineComponent({
|
|
214
218
|
} = props;
|
215
219
|
if (maxRange && calcDateNum(date) > maxRange) {
|
216
220
|
if (showRangePrompt) {
|
217
|
-
|
221
|
+
showToast(rangePrompt || t("rangePrompt", maxRange));
|
218
222
|
}
|
219
223
|
emit("overRange");
|
220
224
|
return false;
|
@@ -300,7 +304,7 @@ var stdin_default = defineComponent({
|
|
300
304
|
const [unselectedDate] = dates.splice(selectedIndex, 1);
|
301
305
|
emit("unselect", cloneDate(unselectedDate));
|
302
306
|
} else if (props.maxRange && dates.length >= props.maxRange) {
|
303
|
-
|
307
|
+
showToast(props.rangePrompt || t("rangePrompt", props.maxRange));
|
304
308
|
} else {
|
305
309
|
select([...dates, date]);
|
306
310
|
}
|
@@ -372,7 +376,8 @@ var stdin_default = defineComponent({
|
|
372
376
|
});
|
373
377
|
useExpose({
|
374
378
|
reset,
|
375
|
-
scrollToDate
|
379
|
+
scrollToDate,
|
380
|
+
getSelectedDate
|
376
381
|
});
|
377
382
|
onMountedOrActivated(init);
|
378
383
|
return () => {
|
package/es/calendar/types.d.ts
CHANGED
@@ -15,6 +15,7 @@ export declare type CalendarDayItem = {
|
|
15
15
|
export declare type CalendarExpose = {
|
16
16
|
reset: (date?: Date | Date[]) => void;
|
17
17
|
scrollToDate: (targetDate: Date) => void;
|
18
|
+
getSelectedDate: () => Date | Date[] | null;
|
18
19
|
};
|
19
20
|
export declare type CalendarInstance = ComponentPublicInstance<CalendarProps, CalendarExpose>;
|
20
21
|
export declare type CalendarMonthInstance = ComponentPublicInstance<CalendarMonthProps, {
|
package/es/cell/Cell.d.ts
CHANGED
@@ -110,10 +110,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
110
110
|
replace: BooleanConstructor;
|
111
111
|
}>>, {
|
112
112
|
replace: boolean;
|
113
|
+
required: boolean;
|
113
114
|
center: boolean;
|
114
115
|
isLink: boolean;
|
115
116
|
border: boolean;
|
116
|
-
required: boolean;
|
117
117
|
clickable: boolean | null;
|
118
118
|
}>;
|
119
119
|
export default _default;
|
package/es/cell/index.d.ts
CHANGED
@@ -54,10 +54,10 @@ export declare const Cell: import("../utils").WithInstall<import("vue").DefineCo
|
|
54
54
|
replace: BooleanConstructor;
|
55
55
|
}>>, {
|
56
56
|
replace: boolean;
|
57
|
+
required: boolean;
|
57
58
|
center: boolean;
|
58
59
|
isLink: boolean;
|
59
60
|
border: boolean;
|
60
|
-
required: boolean;
|
61
61
|
clickable: boolean | null;
|
62
62
|
}>>;
|
63
63
|
export default Cell;
|
@@ -107,11 +107,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
107
107
|
default: true;
|
108
108
|
};
|
109
109
|
}>>, {
|
110
|
+
required: boolean;
|
110
111
|
center: boolean;
|
111
112
|
disabled: boolean;
|
112
113
|
isLink: boolean;
|
113
114
|
border: boolean;
|
114
|
-
required: boolean;
|
115
115
|
clickable: boolean | null;
|
116
116
|
readonly: boolean;
|
117
117
|
lazyRender: boolean;
|
@@ -69,11 +69,11 @@ export declare const CollapseItem: import("../utils").WithInstall<import("vue").
|
|
69
69
|
default: true;
|
70
70
|
};
|
71
71
|
}>>, {
|
72
|
+
required: boolean;
|
72
73
|
center: boolean;
|
73
74
|
disabled: boolean;
|
74
75
|
isLink: boolean;
|
75
76
|
border: boolean;
|
76
|
-
required: boolean;
|
77
77
|
clickable: boolean | null;
|
78
78
|
readonly: boolean;
|
79
79
|
lazyRender: boolean;
|
@@ -39,5 +39,5 @@ export declare const sharedProps: {
|
|
39
39
|
export declare const pickerInheritKeys: ("title" | "readonly" | "loading" | "allowHtml" | "optionHeight" | "showToolbar" | "swipeDuration" | "visibleOptionNum" | "cancelButtonText" | "confirmButtonText")[];
|
40
40
|
export declare function times<T>(n: number, iteratee: (index: number) => T): T[];
|
41
41
|
export declare const getMonthEndDay: (year: number, month: number) => number;
|
42
|
-
export declare const genOptions: <T extends string>(min: number, max: number, type: T, formatter: Formatter, filter?: Filter
|
42
|
+
export declare const genOptions: <T extends string>(min: number, max: number, type: T, formatter: Formatter, filter?: Filter) => PickerOption[];
|
43
43
|
export {};
|
package/es/dialog/Dialog.d.ts
CHANGED
@@ -30,7 +30,7 @@ declare const dialogProps: {
|
|
30
30
|
theme: PropType<DialogTheme>;
|
31
31
|
width: (NumberConstructor | StringConstructor)[];
|
32
32
|
message: PropType<DialogMessage>;
|
33
|
-
callback: PropType<(action?: DialogAction
|
33
|
+
callback: PropType<(action?: DialogAction) => void>;
|
34
34
|
allowHtml: BooleanConstructor;
|
35
35
|
className: PropType<unknown>;
|
36
36
|
transition: {
|
@@ -45,8 +45,10 @@ declare const dialogProps: {
|
|
45
45
|
showCancelButton: BooleanConstructor;
|
46
46
|
cancelButtonText: StringConstructor;
|
47
47
|
cancelButtonColor: StringConstructor;
|
48
|
+
cancelButtonDisabled: BooleanConstructor;
|
48
49
|
confirmButtonText: StringConstructor;
|
49
50
|
confirmButtonColor: StringConstructor;
|
51
|
+
confirmButtonDisabled: BooleanConstructor;
|
50
52
|
showConfirmButton: {
|
51
53
|
type: BooleanConstructor;
|
52
54
|
default: true;
|
@@ -99,8 +101,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
99
101
|
showCancelButton: BooleanConstructor;
|
100
102
|
cancelButtonText: StringConstructor;
|
101
103
|
cancelButtonColor: StringConstructor;
|
104
|
+
cancelButtonDisabled: BooleanConstructor;
|
102
105
|
confirmButtonText: StringConstructor;
|
103
106
|
confirmButtonColor: StringConstructor;
|
107
|
+
confirmButtonDisabled: BooleanConstructor;
|
104
108
|
showConfirmButton: {
|
105
109
|
type: BooleanConstructor;
|
106
110
|
default: true;
|
@@ -151,8 +155,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
151
155
|
showCancelButton: BooleanConstructor;
|
152
156
|
cancelButtonText: StringConstructor;
|
153
157
|
cancelButtonColor: StringConstructor;
|
158
|
+
cancelButtonDisabled: BooleanConstructor;
|
154
159
|
confirmButtonText: StringConstructor;
|
155
160
|
confirmButtonColor: StringConstructor;
|
161
|
+
confirmButtonDisabled: BooleanConstructor;
|
156
162
|
showConfirmButton: {
|
157
163
|
type: BooleanConstructor;
|
158
164
|
default: true;
|
@@ -174,6 +180,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
174
180
|
closeOnPopstate: boolean;
|
175
181
|
allowHtml: boolean;
|
176
182
|
showCancelButton: boolean;
|
183
|
+
cancelButtonDisabled: boolean;
|
184
|
+
confirmButtonDisabled: boolean;
|
177
185
|
showConfirmButton: boolean;
|
178
186
|
}>;
|
179
187
|
export default _default;
|
package/es/dialog/Dialog.mjs
CHANGED
@@ -21,8 +21,10 @@ const dialogProps = extend({}, popupSharedProps, {
|
|
21
21
|
showCancelButton: Boolean,
|
22
22
|
cancelButtonText: String,
|
23
23
|
cancelButtonColor: String,
|
24
|
+
cancelButtonDisabled: Boolean,
|
24
25
|
confirmButtonText: String,
|
25
26
|
confirmButtonColor: String,
|
27
|
+
confirmButtonDisabled: Boolean,
|
26
28
|
showConfirmButton: truthProp,
|
27
29
|
closeOnClickOverlay: Boolean
|
28
30
|
});
|
@@ -143,6 +145,7 @@ var stdin_default = defineComponent({
|
|
143
145
|
color: props.cancelButtonColor
|
144
146
|
},
|
145
147
|
"loading": loading.cancel,
|
148
|
+
"disabled": props.cancelButtonDisabled,
|
146
149
|
"onClick": onCancel
|
147
150
|
}, null), props.showConfirmButton && _createVNode(Button, {
|
148
151
|
"size": "large",
|
@@ -154,6 +157,7 @@ var stdin_default = defineComponent({
|
|
154
157
|
color: props.confirmButtonColor
|
155
158
|
},
|
156
159
|
"loading": loading.confirm,
|
160
|
+
"disabled": props.confirmButtonDisabled,
|
157
161
|
"onClick": onConfirm
|
158
162
|
}, null)]);
|
159
163
|
const renderRoundButtons = () => _createVNode(ActionBar, {
|
@@ -165,6 +169,7 @@ var stdin_default = defineComponent({
|
|
165
169
|
"class": bem("cancel"),
|
166
170
|
"color": props.cancelButtonColor,
|
167
171
|
"loading": loading.cancel,
|
172
|
+
"disabled": props.cancelButtonDisabled,
|
168
173
|
"onClick": onCancel
|
169
174
|
}, null), props.showConfirmButton && _createVNode(ActionBarButton, {
|
170
175
|
"type": "danger",
|
@@ -172,6 +177,7 @@ var stdin_default = defineComponent({
|
|
172
177
|
"class": bem("confirm"),
|
173
178
|
"color": props.confirmButtonColor,
|
174
179
|
"loading": loading.confirm,
|
180
|
+
"disabled": props.confirmButtonDisabled,
|
175
181
|
"onClick": onConfirm
|
176
182
|
}, null)]
|
177
183
|
});
|