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
@@ -20,7 +20,10 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
20
20
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
21
21
|
var stdin_exports = {};
|
22
22
|
__export(stdin_exports, {
|
23
|
-
|
23
|
+
closeNotify: () => closeNotify,
|
24
|
+
resetNotifyDefaultOptions: () => resetNotifyDefaultOptions,
|
25
|
+
setNotifyDefaultOptions: () => setNotifyDefaultOptions,
|
26
|
+
showNotify: () => showNotify
|
24
27
|
});
|
25
28
|
module.exports = __toCommonJS(stdin_exports);
|
26
29
|
var import_vue = require("vue");
|
@@ -47,21 +50,6 @@ function initInstance() {
|
|
47
50
|
}
|
48
51
|
}));
|
49
52
|
}
|
50
|
-
function Notify(options) {
|
51
|
-
if (!import_utils.inBrowser) {
|
52
|
-
return;
|
53
|
-
}
|
54
|
-
if (!instance) {
|
55
|
-
initInstance();
|
56
|
-
}
|
57
|
-
options = (0, import_utils.extend)({}, Notify.currentOptions, parseOptions(options));
|
58
|
-
instance.open(options);
|
59
|
-
clearTimeout(timer);
|
60
|
-
if (options.duration > 0) {
|
61
|
-
timer = window.setTimeout(Notify.clear, options.duration);
|
62
|
-
}
|
63
|
-
return instance;
|
64
|
-
}
|
65
53
|
const getDefaultOptions = () => ({
|
66
54
|
type: "danger",
|
67
55
|
color: void 0,
|
@@ -75,20 +63,28 @@ const getDefaultOptions = () => ({
|
|
75
63
|
lockScroll: false,
|
76
64
|
background: void 0
|
77
65
|
});
|
78
|
-
|
66
|
+
let currentOptions = getDefaultOptions();
|
67
|
+
const closeNotify = () => {
|
79
68
|
if (instance) {
|
80
69
|
instance.toggle(false);
|
81
70
|
}
|
82
71
|
};
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
}
|
87
|
-
|
88
|
-
|
89
|
-
}
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
72
|
+
function showNotify(options) {
|
73
|
+
if (!import_utils.inBrowser) {
|
74
|
+
return;
|
75
|
+
}
|
76
|
+
if (!instance) {
|
77
|
+
initInstance();
|
78
|
+
}
|
79
|
+
options = (0, import_utils.extend)({}, currentOptions, parseOptions(options));
|
80
|
+
instance.open(options);
|
81
|
+
clearTimeout(timer);
|
82
|
+
if (options.duration > 0) {
|
83
|
+
timer = window.setTimeout(closeNotify, options.duration);
|
84
|
+
}
|
85
|
+
return instance;
|
86
|
+
}
|
87
|
+
const setNotifyDefaultOptions = (options) => (0, import_utils.extend)(currentOptions, options);
|
88
|
+
const resetNotifyDefaultOptions = () => {
|
89
|
+
currentOptions = getDefaultOptions();
|
94
90
|
};
|
package/lib/notify/index.d.ts
CHANGED
@@ -1,6 +1,95 @@
|
|
1
|
-
|
1
|
+
export declare const Notify: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
|
+
show: BooleanConstructor;
|
3
|
+
zIndex: (NumberConstructor | StringConstructor)[];
|
4
|
+
overlay: {
|
5
|
+
type: BooleanConstructor;
|
6
|
+
default: true;
|
7
|
+
};
|
8
|
+
duration: (NumberConstructor | StringConstructor)[];
|
9
|
+
teleport: import("vue").PropType<string | import("vue").RendererElement | null | undefined>;
|
10
|
+
lockScroll: {
|
11
|
+
type: BooleanConstructor;
|
12
|
+
default: true;
|
13
|
+
};
|
14
|
+
lazyRender: {
|
15
|
+
type: BooleanConstructor;
|
16
|
+
default: true;
|
17
|
+
};
|
18
|
+
beforeClose: import("vue").PropType<import("../utils").Interceptor>;
|
19
|
+
overlayStyle: import("vue").PropType<import("vue").CSSProperties>;
|
20
|
+
overlayClass: import("vue").PropType<unknown>;
|
21
|
+
transitionAppear: BooleanConstructor;
|
22
|
+
closeOnClickOverlay: {
|
23
|
+
type: BooleanConstructor;
|
24
|
+
default: true;
|
25
|
+
};
|
26
|
+
} & {
|
27
|
+
type: {
|
28
|
+
type: import("vue").PropType<import("./types").NotifyType>;
|
29
|
+
default: import("./types").NotifyType;
|
30
|
+
};
|
31
|
+
color: StringConstructor;
|
32
|
+
message: (NumberConstructor | StringConstructor)[];
|
33
|
+
position: {
|
34
|
+
type: import("vue").PropType<import("./types").NotifyPosition>;
|
35
|
+
default: import("./types").NotifyPosition;
|
36
|
+
};
|
37
|
+
className: import("vue").PropType<unknown>;
|
38
|
+
background: StringConstructor;
|
39
|
+
lockScroll: BooleanConstructor;
|
40
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:show"[], "update:show", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
41
|
+
show: BooleanConstructor;
|
42
|
+
zIndex: (NumberConstructor | StringConstructor)[];
|
43
|
+
overlay: {
|
44
|
+
type: BooleanConstructor;
|
45
|
+
default: true;
|
46
|
+
};
|
47
|
+
duration: (NumberConstructor | StringConstructor)[];
|
48
|
+
teleport: import("vue").PropType<string | import("vue").RendererElement | null | undefined>;
|
49
|
+
lockScroll: {
|
50
|
+
type: BooleanConstructor;
|
51
|
+
default: true;
|
52
|
+
};
|
53
|
+
lazyRender: {
|
54
|
+
type: BooleanConstructor;
|
55
|
+
default: true;
|
56
|
+
};
|
57
|
+
beforeClose: import("vue").PropType<import("../utils").Interceptor>;
|
58
|
+
overlayStyle: import("vue").PropType<import("vue").CSSProperties>;
|
59
|
+
overlayClass: import("vue").PropType<unknown>;
|
60
|
+
transitionAppear: BooleanConstructor;
|
61
|
+
closeOnClickOverlay: {
|
62
|
+
type: BooleanConstructor;
|
63
|
+
default: true;
|
64
|
+
};
|
65
|
+
} & {
|
66
|
+
type: {
|
67
|
+
type: import("vue").PropType<import("./types").NotifyType>;
|
68
|
+
default: import("./types").NotifyType;
|
69
|
+
};
|
70
|
+
color: StringConstructor;
|
71
|
+
message: (NumberConstructor | StringConstructor)[];
|
72
|
+
position: {
|
73
|
+
type: import("vue").PropType<import("./types").NotifyPosition>;
|
74
|
+
default: import("./types").NotifyPosition;
|
75
|
+
};
|
76
|
+
className: import("vue").PropType<unknown>;
|
77
|
+
background: StringConstructor;
|
78
|
+
lockScroll: BooleanConstructor;
|
79
|
+
}>> & {
|
80
|
+
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
81
|
+
}, {
|
82
|
+
type: import("./types").NotifyType;
|
83
|
+
position: import("./types").NotifyPosition;
|
84
|
+
overlay: boolean;
|
85
|
+
show: boolean;
|
86
|
+
lockScroll: boolean;
|
87
|
+
lazyRender: boolean;
|
88
|
+
transitionAppear: boolean;
|
89
|
+
closeOnClickOverlay: boolean;
|
90
|
+
}>>;
|
2
91
|
export default Notify;
|
3
|
-
export {
|
92
|
+
export { showNotify, closeNotify, setNotifyDefaultOptions, resetNotifyDefaultOptions, } from './function-call';
|
4
93
|
export type { NotifyProps } from './Notify';
|
5
94
|
export type { NotifyType, NotifyOptions } from './types';
|
6
95
|
declare module 'vue' {
|
package/lib/notify/index.js
CHANGED
@@ -1,6 +1,8 @@
|
|
1
|
+
var __create = Object.create;
|
1
2
|
var __defProp = Object.defineProperty;
|
2
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
3
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
4
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
5
7
|
var __export = (target, all) => {
|
6
8
|
for (var name in all)
|
@@ -14,12 +16,20 @@ var __copyProps = (to, from, except, desc) => {
|
|
14
16
|
}
|
15
17
|
return to;
|
16
18
|
};
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
|
17
20
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
18
21
|
var stdin_exports = {};
|
19
22
|
__export(stdin_exports, {
|
20
|
-
Notify: () =>
|
21
|
-
|
23
|
+
Notify: () => Notify,
|
24
|
+
closeNotify: () => import_function_call.closeNotify,
|
25
|
+
default: () => stdin_default,
|
26
|
+
resetNotifyDefaultOptions: () => import_function_call.resetNotifyDefaultOptions,
|
27
|
+
setNotifyDefaultOptions: () => import_function_call.setNotifyDefaultOptions,
|
28
|
+
showNotify: () => import_function_call.showNotify
|
22
29
|
});
|
23
30
|
module.exports = __toCommonJS(stdin_exports);
|
31
|
+
var import_utils = require("../utils");
|
32
|
+
var import_Notify = __toESM(require("./Notify"));
|
24
33
|
var import_function_call = require("./function-call");
|
25
|
-
|
34
|
+
const Notify = (0, import_utils.withInstall)(import_Notify.default);
|
35
|
+
var stdin_default = Notify;
|
package/lib/notify/types.d.ts
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
import { Notify } from './function-call';
|
2
1
|
import type { Numeric } from '../utils';
|
3
2
|
export declare type NotifyMessage = Numeric;
|
4
3
|
export declare type NotifyType = 'primary' | 'success' | 'danger' | 'warning';
|
@@ -16,8 +15,3 @@ export declare type NotifyOptions = {
|
|
16
15
|
onClose?: () => void;
|
17
16
|
onOpened?: () => void;
|
18
17
|
};
|
19
|
-
declare module '@vue/runtime-core' {
|
20
|
-
interface ComponentCustomProperties {
|
21
|
-
$notify: typeof Notify;
|
22
|
-
}
|
23
|
-
}
|
package/lib/popup/Popup.js
CHANGED
@@ -41,7 +41,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
41
41
|
type: (NumberConstructor | StringConstructor)[];
|
42
42
|
default: number;
|
43
43
|
};
|
44
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "refresh")[], "update:modelValue" | "refresh", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
44
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change" | "refresh")[], "update:modelValue" | "change" | "refresh", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
45
45
|
disabled: BooleanConstructor;
|
46
46
|
modelValue: BooleanConstructor;
|
47
47
|
headHeight: {
|
@@ -62,6 +62,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
62
62
|
default: number;
|
63
63
|
};
|
64
64
|
}>> & {
|
65
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
65
66
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
66
67
|
onRefresh?: ((...args: any[]) => any) | undefined;
|
67
68
|
}, {
|
@@ -44,7 +44,7 @@ const pullRefreshProps = {
|
|
44
44
|
var stdin_default = (0, import_vue2.defineComponent)({
|
45
45
|
name,
|
46
46
|
props: pullRefreshProps,
|
47
|
-
emits: ["refresh", "update:modelValue"],
|
47
|
+
emits: ["change", "refresh", "update:modelValue"],
|
48
48
|
setup(props, {
|
49
49
|
emit,
|
50
50
|
slots
|
@@ -89,6 +89,10 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
89
89
|
} else {
|
90
90
|
state.status = "loosing";
|
91
91
|
}
|
92
|
+
emit("change", {
|
93
|
+
status: state.status,
|
94
|
+
distance
|
95
|
+
});
|
92
96
|
};
|
93
97
|
const getStatusText = () => {
|
94
98
|
const {
|
@@ -18,7 +18,7 @@ export declare const PullRefresh: import("../utils").WithInstall<import("vue").D
|
|
18
18
|
type: (NumberConstructor | StringConstructor)[];
|
19
19
|
default: number;
|
20
20
|
};
|
21
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "refresh")[], "update:modelValue" | "refresh", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
21
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change" | "refresh")[], "update:modelValue" | "change" | "refresh", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
22
22
|
disabled: BooleanConstructor;
|
23
23
|
modelValue: BooleanConstructor;
|
24
24
|
headHeight: {
|
@@ -39,6 +39,7 @@ export declare const PullRefresh: import("../utils").WithInstall<import("vue").D
|
|
39
39
|
default: number;
|
40
40
|
};
|
41
41
|
}>> & {
|
42
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
42
43
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
43
44
|
onRefresh?: ((...args: any[]) => any) | undefined;
|
44
45
|
}, {
|
@@ -20,6 +20,7 @@ declare const submitBarProps: {
|
|
20
20
|
};
|
21
21
|
buttonColor: StringConstructor;
|
22
22
|
suffixLabel: StringConstructor;
|
23
|
+
placeholder: BooleanConstructor;
|
23
24
|
decimalLength: {
|
24
25
|
type: (NumberConstructor | StringConstructor)[];
|
25
26
|
default: number;
|
@@ -49,6 +50,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
49
50
|
};
|
50
51
|
buttonColor: StringConstructor;
|
51
52
|
suffixLabel: StringConstructor;
|
53
|
+
placeholder: BooleanConstructor;
|
52
54
|
decimalLength: {
|
53
55
|
type: (NumberConstructor | StringConstructor)[];
|
54
56
|
default: number;
|
@@ -76,6 +78,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
76
78
|
};
|
77
79
|
buttonColor: StringConstructor;
|
78
80
|
suffixLabel: StringConstructor;
|
81
|
+
placeholder: BooleanConstructor;
|
79
82
|
decimalLength: {
|
80
83
|
type: (NumberConstructor | StringConstructor)[];
|
81
84
|
default: number;
|
@@ -88,6 +91,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
88
91
|
onSubmit?: ((...args: any[]) => any) | undefined;
|
89
92
|
}, {
|
90
93
|
disabled: boolean;
|
94
|
+
placeholder: boolean;
|
91
95
|
safeAreaInsetBottom: boolean;
|
92
96
|
loading: boolean;
|
93
97
|
currency: string;
|
@@ -25,6 +25,7 @@ var import_vue2 = require("vue");
|
|
25
25
|
var import_utils = require("../utils");
|
26
26
|
var import_icon = require("../icon");
|
27
27
|
var import_button = require("../button");
|
28
|
+
var import_use_placeholder = require("../composables/use-placeholder");
|
28
29
|
const [name, bem, t] = (0, import_utils.createNamespace)("submit-bar");
|
29
30
|
const submitBarProps = {
|
30
31
|
tip: String,
|
@@ -39,6 +40,7 @@ const submitBarProps = {
|
|
39
40
|
buttonType: (0, import_utils.makeStringProp)("danger"),
|
40
41
|
buttonColor: String,
|
41
42
|
suffixLabel: String,
|
43
|
+
placeholder: Boolean,
|
42
44
|
decimalLength: (0, import_utils.makeNumericProp)(2),
|
43
45
|
safeAreaInsetBottom: import_utils.truthProp
|
44
46
|
};
|
@@ -50,6 +52,8 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
50
52
|
emit,
|
51
53
|
slots
|
52
54
|
}) {
|
55
|
+
const root = (0, import_vue2.ref)();
|
56
|
+
const renderPlaceholder = (0, import_use_placeholder.usePlaceholder)(root, bem);
|
53
57
|
const renderText = () => {
|
54
58
|
const {
|
55
59
|
price,
|
@@ -109,9 +113,10 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
109
113
|
"onClick": onClickButton
|
110
114
|
}, null);
|
111
115
|
};
|
112
|
-
|
116
|
+
const renderSubmitBar = () => {
|
113
117
|
var _a, _b;
|
114
118
|
return (0, import_vue.createVNode)("div", {
|
119
|
+
"ref": root,
|
115
120
|
"class": [bem(), {
|
116
121
|
"van-safe-area-bottom": props.safeAreaInsetBottom
|
117
122
|
}]
|
@@ -119,5 +124,11 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
119
124
|
"class": bem("bar")
|
120
125
|
}, [(_b = slots.default) == null ? void 0 : _b.call(slots), renderText(), renderButton()])]);
|
121
126
|
};
|
127
|
+
return () => {
|
128
|
+
if (props.placeholder) {
|
129
|
+
return renderPlaceholder(renderSubmitBar);
|
130
|
+
}
|
131
|
+
return renderSubmitBar();
|
132
|
+
};
|
122
133
|
}
|
123
134
|
});
|
@@ -17,6 +17,7 @@ export declare const SubmitBar: import("../utils").WithInstall<import("vue").Def
|
|
17
17
|
};
|
18
18
|
buttonColor: StringConstructor;
|
19
19
|
suffixLabel: StringConstructor;
|
20
|
+
placeholder: BooleanConstructor;
|
20
21
|
decimalLength: {
|
21
22
|
type: (NumberConstructor | StringConstructor)[];
|
22
23
|
default: number;
|
@@ -44,6 +45,7 @@ export declare const SubmitBar: import("../utils").WithInstall<import("vue").Def
|
|
44
45
|
};
|
45
46
|
buttonColor: StringConstructor;
|
46
47
|
suffixLabel: StringConstructor;
|
48
|
+
placeholder: BooleanConstructor;
|
47
49
|
decimalLength: {
|
48
50
|
type: (NumberConstructor | StringConstructor)[];
|
49
51
|
default: number;
|
@@ -56,6 +58,7 @@ export declare const SubmitBar: import("../utils").WithInstall<import("vue").Def
|
|
56
58
|
onSubmit?: ((...args: any[]) => any) | undefined;
|
57
59
|
}, {
|
58
60
|
disabled: boolean;
|
61
|
+
placeholder: boolean;
|
59
62
|
safeAreaInsetBottom: boolean;
|
60
63
|
loading: boolean;
|
61
64
|
currency: string;
|
package/lib/switch/Switch.js
CHANGED
@@ -72,6 +72,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
72
72
|
};
|
73
73
|
(0, import_use.useCustomFieldValue)(() => props.modelValue);
|
74
74
|
return () => {
|
75
|
+
var _a;
|
75
76
|
const {
|
76
77
|
size,
|
77
78
|
loading,
|
@@ -97,7 +98,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
97
98
|
"onClick": onClick
|
98
99
|
}, [(0, import_vue.createVNode)("div", {
|
99
100
|
"class": bem("node")
|
100
|
-
}, [renderLoading()])]);
|
101
|
+
}, [renderLoading()]), (_a = slots.background) == null ? void 0 : _a.call(slots)]);
|
101
102
|
};
|
102
103
|
}
|
103
104
|
});
|
@@ -1,18 +1,10 @@
|
|
1
|
-
import {
|
2
|
-
|
3
|
-
|
4
|
-
declare
|
5
|
-
declare
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
(options: ToastOptions): void;
|
12
|
-
(type: ToastType, options: ToastOptions): void;
|
13
|
-
};
|
14
|
-
var resetDefaultOptions: (type?: ToastType | undefined) => void;
|
15
|
-
var allowMultiple: (value?: boolean) => void;
|
16
|
-
var install: (app: App<any>) => void;
|
17
|
-
}
|
18
|
-
export { Toast };
|
1
|
+
import type { ToastType, ToastOptions, ToastWrapperInstance } from './types';
|
2
|
+
export declare function showToast(options?: string | ToastOptions): ToastWrapperInstance;
|
3
|
+
export declare const showLoadingToast: (options: string | ToastOptions) => ToastWrapperInstance;
|
4
|
+
export declare const showSuccessToast: (options: string | ToastOptions) => ToastWrapperInstance;
|
5
|
+
export declare const showFailToast: (options: string | ToastOptions) => ToastWrapperInstance;
|
6
|
+
export declare const closeToast: (all?: boolean) => void;
|
7
|
+
export declare function setToastDefaultOptions(options: ToastOptions): void;
|
8
|
+
export declare function setToastDefaultOptions(type: ToastType, options: ToastOptions): void;
|
9
|
+
export declare const resetToastDefaultOptions: (type?: ToastType) => void;
|
10
|
+
export declare const allowMultipleToast: (value?: boolean) => void;
|
@@ -20,7 +20,14 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
20
20
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
21
21
|
var stdin_exports = {};
|
22
22
|
__export(stdin_exports, {
|
23
|
-
|
23
|
+
allowMultipleToast: () => allowMultipleToast,
|
24
|
+
closeToast: () => closeToast,
|
25
|
+
resetToastDefaultOptions: () => resetToastDefaultOptions,
|
26
|
+
setToastDefaultOptions: () => setToastDefaultOptions,
|
27
|
+
showFailToast: () => showFailToast,
|
28
|
+
showLoadingToast: () => showLoadingToast,
|
29
|
+
showSuccessToast: () => showSuccessToast,
|
30
|
+
showToast: () => showToast
|
24
31
|
});
|
25
32
|
module.exports = __toCommonJS(stdin_exports);
|
26
33
|
var import_vue = require("vue");
|
@@ -93,7 +100,7 @@ function createInstance() {
|
|
93
100
|
(0, import_vue2.getCurrentInstance)().render = render;
|
94
101
|
return {
|
95
102
|
open,
|
96
|
-
|
103
|
+
close,
|
97
104
|
message
|
98
105
|
};
|
99
106
|
}
|
@@ -107,7 +114,7 @@ function getInstance() {
|
|
107
114
|
}
|
108
115
|
return queue[queue.length - 1];
|
109
116
|
}
|
110
|
-
function
|
117
|
+
function showToast(options = {}) {
|
111
118
|
if (!import_utils.inBrowser) {
|
112
119
|
return {};
|
113
120
|
}
|
@@ -116,36 +123,35 @@ function Toast(options = {}) {
|
|
116
123
|
toast.open((0, import_utils.extend)({}, currentOptions, defaultOptionsMap.get(parsedOptions.type || currentOptions.type), parsedOptions));
|
117
124
|
return toast;
|
118
125
|
}
|
119
|
-
const createMethod = (type) => (options) =>
|
126
|
+
const createMethod = (type) => (options) => showToast((0, import_utils.extend)({
|
120
127
|
type
|
121
128
|
}, parseOptions(options)));
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
129
|
+
const showLoadingToast = createMethod("loading");
|
130
|
+
const showSuccessToast = createMethod("success");
|
131
|
+
const showFailToast = createMethod("fail");
|
132
|
+
const closeToast = (all) => {
|
126
133
|
var _a;
|
127
134
|
if (queue.length) {
|
128
135
|
if (all) {
|
129
136
|
queue.forEach((toast) => {
|
130
|
-
toast.
|
137
|
+
toast.close();
|
131
138
|
});
|
132
139
|
queue = [];
|
133
140
|
} else if (!allowMultiple) {
|
134
|
-
queue[0].
|
141
|
+
queue[0].close();
|
135
142
|
} else {
|
136
|
-
(_a = queue.shift()) == null ? void 0 : _a.
|
143
|
+
(_a = queue.shift()) == null ? void 0 : _a.close();
|
137
144
|
}
|
138
145
|
}
|
139
146
|
};
|
140
|
-
function
|
147
|
+
function setToastDefaultOptions(type, options) {
|
141
148
|
if (typeof type === "string") {
|
142
149
|
defaultOptionsMap.set(type, options);
|
143
150
|
} else {
|
144
151
|
(0, import_utils.extend)(currentOptions, type);
|
145
152
|
}
|
146
153
|
}
|
147
|
-
|
148
|
-
Toast.resetDefaultOptions = (type) => {
|
154
|
+
const resetToastDefaultOptions = (type) => {
|
149
155
|
if (typeof type === "string") {
|
150
156
|
defaultOptionsMap.delete(type);
|
151
157
|
} else {
|
@@ -153,10 +159,6 @@ Toast.resetDefaultOptions = (type) => {
|
|
153
159
|
defaultOptionsMap.clear();
|
154
160
|
}
|
155
161
|
};
|
156
|
-
|
162
|
+
const allowMultipleToast = (value = true) => {
|
157
163
|
allowMultiple = value;
|
158
164
|
};
|
159
|
-
Toast.install = (app) => {
|
160
|
-
app.use((0, import_utils.withInstall)(import_Toast.default));
|
161
|
-
app.config.globalProperties.$toast = Toast;
|
162
|
-
};
|
package/lib/toast/index.d.ts
CHANGED
@@ -1,5 +1,79 @@
|
|
1
|
-
|
1
|
+
export declare const Toast: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
|
+
icon: StringConstructor;
|
3
|
+
show: BooleanConstructor;
|
4
|
+
type: {
|
5
|
+
type: import("vue").PropType<import("./types").ToastType>;
|
6
|
+
default: import("./types").ToastType;
|
7
|
+
};
|
8
|
+
overlay: BooleanConstructor;
|
9
|
+
message: (NumberConstructor | StringConstructor)[];
|
10
|
+
iconSize: (NumberConstructor | StringConstructor)[];
|
11
|
+
duration: {
|
12
|
+
type: NumberConstructor;
|
13
|
+
default: number;
|
14
|
+
};
|
15
|
+
position: {
|
16
|
+
type: import("vue").PropType<import("./types").ToastPosition>;
|
17
|
+
default: import("./types").ToastPosition;
|
18
|
+
};
|
19
|
+
teleport: import("vue").PropType<string | import("vue").RendererElement | null | undefined>;
|
20
|
+
className: import("vue").PropType<unknown>;
|
21
|
+
iconPrefix: StringConstructor;
|
22
|
+
transition: {
|
23
|
+
type: import("vue").PropType<string>;
|
24
|
+
default: string;
|
25
|
+
};
|
26
|
+
loadingType: import("vue").PropType<import("..").LoadingType>;
|
27
|
+
forbidClick: BooleanConstructor;
|
28
|
+
overlayClass: import("vue").PropType<unknown>;
|
29
|
+
overlayStyle: import("vue").PropType<import("vue").CSSProperties>;
|
30
|
+
closeOnClick: BooleanConstructor;
|
31
|
+
closeOnClickOverlay: BooleanConstructor;
|
32
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:show"[], "update:show", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
33
|
+
icon: StringConstructor;
|
34
|
+
show: BooleanConstructor;
|
35
|
+
type: {
|
36
|
+
type: import("vue").PropType<import("./types").ToastType>;
|
37
|
+
default: import("./types").ToastType;
|
38
|
+
};
|
39
|
+
overlay: BooleanConstructor;
|
40
|
+
message: (NumberConstructor | StringConstructor)[];
|
41
|
+
iconSize: (NumberConstructor | StringConstructor)[];
|
42
|
+
duration: {
|
43
|
+
type: NumberConstructor;
|
44
|
+
default: number;
|
45
|
+
};
|
46
|
+
position: {
|
47
|
+
type: import("vue").PropType<import("./types").ToastPosition>;
|
48
|
+
default: import("./types").ToastPosition;
|
49
|
+
};
|
50
|
+
teleport: import("vue").PropType<string | import("vue").RendererElement | null | undefined>;
|
51
|
+
className: import("vue").PropType<unknown>;
|
52
|
+
iconPrefix: StringConstructor;
|
53
|
+
transition: {
|
54
|
+
type: import("vue").PropType<string>;
|
55
|
+
default: string;
|
56
|
+
};
|
57
|
+
loadingType: import("vue").PropType<import("..").LoadingType>;
|
58
|
+
forbidClick: BooleanConstructor;
|
59
|
+
overlayClass: import("vue").PropType<unknown>;
|
60
|
+
overlayStyle: import("vue").PropType<import("vue").CSSProperties>;
|
61
|
+
closeOnClick: BooleanConstructor;
|
62
|
+
closeOnClickOverlay: BooleanConstructor;
|
63
|
+
}>> & {
|
64
|
+
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
65
|
+
}, {
|
66
|
+
type: import("./types").ToastType;
|
67
|
+
position: import("./types").ToastPosition;
|
68
|
+
overlay: boolean;
|
69
|
+
show: boolean;
|
70
|
+
duration: number;
|
71
|
+
closeOnClickOverlay: boolean;
|
72
|
+
transition: string;
|
73
|
+
forbidClick: boolean;
|
74
|
+
closeOnClick: boolean;
|
75
|
+
}>>;
|
2
76
|
export default Toast;
|
3
|
-
export {
|
77
|
+
export { showToast, closeToast, showFailToast, showLoadingToast, showSuccessToast, allowMultipleToast, setToastDefaultOptions, resetToastDefaultOptions, } from './function-call';
|
4
78
|
export type { ToastProps } from './Toast';
|
5
79
|
export type { ToastType, ToastOptions, ToastPosition } from './types';
|
package/lib/toast/index.js
CHANGED
@@ -1,6 +1,8 @@
|
|
1
|
+
var __create = Object.create;
|
1
2
|
var __defProp = Object.defineProperty;
|
2
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
3
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
4
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
5
7
|
var __export = (target, all) => {
|
6
8
|
for (var name in all)
|
@@ -14,12 +16,24 @@ var __copyProps = (to, from, except, desc) => {
|
|
14
16
|
}
|
15
17
|
return to;
|
16
18
|
};
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
|
17
20
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
18
21
|
var stdin_exports = {};
|
19
22
|
__export(stdin_exports, {
|
20
|
-
Toast: () =>
|
21
|
-
|
23
|
+
Toast: () => Toast,
|
24
|
+
allowMultipleToast: () => import_function_call.allowMultipleToast,
|
25
|
+
closeToast: () => import_function_call.closeToast,
|
26
|
+
default: () => stdin_default,
|
27
|
+
resetToastDefaultOptions: () => import_function_call.resetToastDefaultOptions,
|
28
|
+
setToastDefaultOptions: () => import_function_call.setToastDefaultOptions,
|
29
|
+
showFailToast: () => import_function_call.showFailToast,
|
30
|
+
showLoadingToast: () => import_function_call.showLoadingToast,
|
31
|
+
showSuccessToast: () => import_function_call.showSuccessToast,
|
32
|
+
showToast: () => import_function_call.showToast
|
22
33
|
});
|
23
34
|
module.exports = __toCommonJS(stdin_exports);
|
35
|
+
var import_utils = require("../utils");
|
36
|
+
var import_Toast = __toESM(require("./Toast"));
|
24
37
|
var import_function_call = require("./function-call");
|
25
|
-
|
38
|
+
const Toast = (0, import_utils.withInstall)(import_Toast.default);
|
39
|
+
var stdin_default = Toast;
|