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/lib/dialog/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,21 @@ 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
|
-
Dialog: () =>
|
21
|
-
|
23
|
+
Dialog: () => Dialog,
|
24
|
+
closeDialog: () => import_function_call.closeDialog,
|
25
|
+
default: () => stdin_default,
|
26
|
+
resetDialogDefaultOptions: () => import_function_call.resetDialogDefaultOptions,
|
27
|
+
setDialogDefaultOptions: () => import_function_call.setDialogDefaultOptions,
|
28
|
+
showConfirmDialog: () => import_function_call.showConfirmDialog,
|
29
|
+
showDialog: () => import_function_call.showDialog
|
22
30
|
});
|
23
31
|
module.exports = __toCommonJS(stdin_exports);
|
32
|
+
var import_utils = require("../utils");
|
33
|
+
var import_Dialog = __toESM(require("./Dialog"));
|
24
34
|
var import_function_call = require("./function-call");
|
25
|
-
|
35
|
+
const Dialog = (0, import_utils.withInstall)(import_Dialog.default);
|
36
|
+
var stdin_default = Dialog;
|
package/lib/dialog/types.d.ts
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
import { Dialog } from './function-call';
|
2
1
|
import type { CSSProperties, TeleportProps } from 'vue';
|
3
2
|
import type { Interceptor, Numeric } from '../utils';
|
4
3
|
export declare type DialogTheme = 'default' | 'round-button';
|
@@ -21,16 +20,13 @@ export declare type DialogOptions = {
|
|
21
20
|
overlayClass?: string;
|
22
21
|
overlayStyle?: CSSProperties;
|
23
22
|
closeOnPopstate?: boolean;
|
24
|
-
cancelButtonText?: string;
|
25
23
|
showCancelButton?: boolean;
|
26
24
|
showConfirmButton?: boolean;
|
25
|
+
cancelButtonText?: string;
|
27
26
|
cancelButtonColor?: string;
|
27
|
+
cancelButtonDisabled?: boolean;
|
28
28
|
confirmButtonText?: string;
|
29
29
|
confirmButtonColor?: string;
|
30
|
+
confirmButtonDisabled?: boolean;
|
30
31
|
closeOnClickOverlay?: boolean;
|
31
32
|
};
|
32
|
-
declare module '@vue/runtime-core' {
|
33
|
-
interface ComponentCustomProperties {
|
34
|
-
$dialog: typeof Dialog;
|
35
|
-
}
|
36
|
-
}
|
package/lib/field/Field.d.ts
CHANGED
@@ -209,7 +209,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
209
209
|
type: BooleanConstructor;
|
210
210
|
default: null;
|
211
211
|
};
|
212
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "focus" | "blur" | "keypress" | "clickInput" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue")[], "clear" | "focus" | "blur" | "keypress" | "clickInput" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
212
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue")[], "clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
213
213
|
icon: StringConstructor;
|
214
214
|
size: PropType<import("../cell").CellSize>;
|
215
215
|
title: (NumberConstructor | StringConstructor)[];
|
@@ -297,17 +297,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
297
297
|
onKeypress?: ((...args: any[]) => any) | undefined;
|
298
298
|
onClear?: ((...args: any[]) => any) | undefined;
|
299
299
|
onClickInput?: ((...args: any[]) => any) | undefined;
|
300
|
+
onEndValidate?: ((...args: any[]) => any) | undefined;
|
301
|
+
onStartValidate?: ((...args: any[]) => any) | undefined;
|
300
302
|
onClickLeftIcon?: ((...args: any[]) => any) | undefined;
|
301
303
|
onClickRightIcon?: ((...args: any[]) => any) | undefined;
|
302
304
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
303
305
|
}, {
|
304
306
|
type: FieldType;
|
307
|
+
required: boolean;
|
305
308
|
center: boolean;
|
306
309
|
autofocus: boolean;
|
307
310
|
disabled: boolean;
|
308
311
|
isLink: boolean;
|
309
312
|
border: boolean;
|
310
|
-
required: boolean;
|
311
313
|
clickable: boolean | null;
|
312
314
|
clearable: boolean;
|
313
315
|
clearIcon: string;
|
package/lib/field/Field.js
CHANGED
@@ -81,7 +81,7 @@ const fieldProps = (0, import_utils.extend)({}, import_Cell.cellSharedProps, fie
|
|
81
81
|
var stdin_default = (0, import_vue2.defineComponent)({
|
82
82
|
name,
|
83
83
|
props: fieldProps,
|
84
|
-
emits: ["blur", "focus", "clear", "keypress", "clickInput", "clickLeftIcon", "clickRightIcon", "update:modelValue"],
|
84
|
+
emits: ["blur", "focus", "clear", "keypress", "clickInput", "endValidate", "startValidate", "clickLeftIcon", "clickRightIcon", "update:modelValue"],
|
85
85
|
setup(props, {
|
86
86
|
emit,
|
87
87
|
slots
|
@@ -155,18 +155,24 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
155
155
|
state.status = "unvalidated";
|
156
156
|
state.validateMessage = "";
|
157
157
|
};
|
158
|
+
const endValidate = () => emit("endValidate", {
|
159
|
+
status: state.status
|
160
|
+
});
|
158
161
|
const validate = (rules = props.rules) => new Promise((resolve) => {
|
159
162
|
resetValidation();
|
160
163
|
if (rules) {
|
164
|
+
emit("startValidate");
|
161
165
|
runRules(rules).then(() => {
|
162
166
|
if (state.status === "failed") {
|
163
167
|
resolve({
|
164
168
|
name: props.name,
|
165
169
|
message: state.validateMessage
|
166
170
|
});
|
171
|
+
endValidate();
|
167
172
|
} else {
|
168
173
|
state.status = "passed";
|
169
174
|
resolve();
|
175
|
+
endValidate();
|
170
176
|
}
|
171
177
|
});
|
172
178
|
} else {
|
package/lib/field/index.d.ts
CHANGED
@@ -81,7 +81,7 @@ export declare const Field: import("../utils").WithInstall<import("vue").DefineC
|
|
81
81
|
type: BooleanConstructor;
|
82
82
|
default: null;
|
83
83
|
};
|
84
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "focus" | "blur" | "keypress" | "clickInput" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue")[], "clear" | "focus" | "blur" | "keypress" | "clickInput" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
84
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue")[], "clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
85
85
|
icon: StringConstructor;
|
86
86
|
size: import("vue").PropType<import("..").CellSize>;
|
87
87
|
title: (NumberConstructor | StringConstructor)[];
|
@@ -169,17 +169,19 @@ export declare const Field: import("../utils").WithInstall<import("vue").DefineC
|
|
169
169
|
onKeypress?: ((...args: any[]) => any) | undefined;
|
170
170
|
onClear?: ((...args: any[]) => any) | undefined;
|
171
171
|
onClickInput?: ((...args: any[]) => any) | undefined;
|
172
|
+
onEndValidate?: ((...args: any[]) => any) | undefined;
|
173
|
+
onStartValidate?: ((...args: any[]) => any) | undefined;
|
172
174
|
onClickLeftIcon?: ((...args: any[]) => any) | undefined;
|
173
175
|
onClickRightIcon?: ((...args: any[]) => any) | undefined;
|
174
176
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
175
177
|
}, {
|
176
178
|
type: import("./types").FieldType;
|
179
|
+
required: boolean;
|
177
180
|
center: boolean;
|
178
181
|
autofocus: boolean;
|
179
182
|
disabled: boolean;
|
180
183
|
isLink: boolean;
|
181
184
|
border: boolean;
|
182
|
-
required: boolean;
|
183
185
|
clickable: boolean | null;
|
184
186
|
clearable: boolean;
|
185
187
|
clearIcon: string;
|
@@ -1,136 +1,3 @@
|
|
1
1
|
import { ComponentInstance } from '../utils';
|
2
|
-
import type { App } from 'vue';
|
3
2
|
import type { ImagePreviewOptions } from './types';
|
4
|
-
declare const
|
5
|
-
(options: string[] | ImagePreviewOptions, startPosition?: number): ComponentInstance | undefined;
|
6
|
-
Component: import("../utils").WithInstall<import("vue").DefineComponent<{
|
7
|
-
show: BooleanConstructor;
|
8
|
-
loop: {
|
9
|
-
type: BooleanConstructor;
|
10
|
-
default: true;
|
11
|
-
};
|
12
|
-
images: {
|
13
|
-
type: import("vue").PropType<string[]>;
|
14
|
-
default: () => never[];
|
15
|
-
};
|
16
|
-
minZoom: {
|
17
|
-
type: (NumberConstructor | StringConstructor)[];
|
18
|
-
default: number;
|
19
|
-
};
|
20
|
-
maxZoom: {
|
21
|
-
type: (NumberConstructor | StringConstructor)[];
|
22
|
-
default: number;
|
23
|
-
};
|
24
|
-
overlay: {
|
25
|
-
type: BooleanConstructor;
|
26
|
-
default: true;
|
27
|
-
};
|
28
|
-
closeable: BooleanConstructor;
|
29
|
-
showIndex: {
|
30
|
-
type: BooleanConstructor;
|
31
|
-
default: true;
|
32
|
-
};
|
33
|
-
className: import("vue").PropType<unknown>;
|
34
|
-
closeIcon: {
|
35
|
-
type: import("vue").PropType<string>;
|
36
|
-
default: string;
|
37
|
-
};
|
38
|
-
transition: StringConstructor;
|
39
|
-
beforeClose: import("vue").PropType<import("../utils").Interceptor>;
|
40
|
-
overlayClass: import("vue").PropType<unknown>;
|
41
|
-
overlayStyle: import("vue").PropType<import("vue").CSSProperties>;
|
42
|
-
swipeDuration: {
|
43
|
-
type: (NumberConstructor | StringConstructor)[];
|
44
|
-
default: number;
|
45
|
-
};
|
46
|
-
startPosition: {
|
47
|
-
type: (NumberConstructor | StringConstructor)[];
|
48
|
-
default: number;
|
49
|
-
};
|
50
|
-
showIndicators: BooleanConstructor;
|
51
|
-
closeOnPopstate: {
|
52
|
-
type: BooleanConstructor;
|
53
|
-
default: true;
|
54
|
-
};
|
55
|
-
closeIconPosition: {
|
56
|
-
type: import("vue").PropType<import("..").PopupCloseIconPosition>;
|
57
|
-
default: import("..").PopupCloseIconPosition;
|
58
|
-
};
|
59
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "close" | "closed" | "update:show" | "scale")[], "change" | "close" | "closed" | "update:show" | "scale", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
60
|
-
show: BooleanConstructor;
|
61
|
-
loop: {
|
62
|
-
type: BooleanConstructor;
|
63
|
-
default: true;
|
64
|
-
};
|
65
|
-
images: {
|
66
|
-
type: import("vue").PropType<string[]>;
|
67
|
-
default: () => never[];
|
68
|
-
};
|
69
|
-
minZoom: {
|
70
|
-
type: (NumberConstructor | StringConstructor)[];
|
71
|
-
default: number;
|
72
|
-
};
|
73
|
-
maxZoom: {
|
74
|
-
type: (NumberConstructor | StringConstructor)[];
|
75
|
-
default: number;
|
76
|
-
};
|
77
|
-
overlay: {
|
78
|
-
type: BooleanConstructor;
|
79
|
-
default: true;
|
80
|
-
};
|
81
|
-
closeable: BooleanConstructor;
|
82
|
-
showIndex: {
|
83
|
-
type: BooleanConstructor;
|
84
|
-
default: true;
|
85
|
-
};
|
86
|
-
className: import("vue").PropType<unknown>;
|
87
|
-
closeIcon: {
|
88
|
-
type: import("vue").PropType<string>;
|
89
|
-
default: string;
|
90
|
-
};
|
91
|
-
transition: StringConstructor;
|
92
|
-
beforeClose: import("vue").PropType<import("../utils").Interceptor>;
|
93
|
-
overlayClass: import("vue").PropType<unknown>;
|
94
|
-
overlayStyle: import("vue").PropType<import("vue").CSSProperties>;
|
95
|
-
swipeDuration: {
|
96
|
-
type: (NumberConstructor | StringConstructor)[];
|
97
|
-
default: number;
|
98
|
-
};
|
99
|
-
startPosition: {
|
100
|
-
type: (NumberConstructor | StringConstructor)[];
|
101
|
-
default: number;
|
102
|
-
};
|
103
|
-
showIndicators: BooleanConstructor;
|
104
|
-
closeOnPopstate: {
|
105
|
-
type: BooleanConstructor;
|
106
|
-
default: true;
|
107
|
-
};
|
108
|
-
closeIconPosition: {
|
109
|
-
type: import("vue").PropType<import("..").PopupCloseIconPosition>;
|
110
|
-
default: import("..").PopupCloseIconPosition;
|
111
|
-
};
|
112
|
-
}>> & {
|
113
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
114
|
-
onClose?: ((...args: any[]) => any) | undefined;
|
115
|
-
onClosed?: ((...args: any[]) => any) | undefined;
|
116
|
-
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
117
|
-
onScale?: ((...args: any[]) => any) | undefined;
|
118
|
-
}, {
|
119
|
-
loop: boolean;
|
120
|
-
overlay: boolean;
|
121
|
-
show: boolean;
|
122
|
-
closeIcon: string;
|
123
|
-
closeable: boolean;
|
124
|
-
closeOnPopstate: boolean;
|
125
|
-
closeIconPosition: import("..").PopupCloseIconPosition;
|
126
|
-
swipeDuration: string | number;
|
127
|
-
showIndicators: boolean;
|
128
|
-
startPosition: string | number;
|
129
|
-
minZoom: string | number;
|
130
|
-
maxZoom: string | number;
|
131
|
-
images: string[];
|
132
|
-
showIndex: boolean;
|
133
|
-
}>>;
|
134
|
-
install(app: App): void;
|
135
|
-
};
|
136
|
-
export { ImagePreview };
|
3
|
+
export declare const showImagePreview: (options: string[] | ImagePreviewOptions, startPosition?: number) => ComponentInstance | undefined;
|
@@ -20,7 +20,7 @@ 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
|
+
showImagePreview: () => showImagePreview
|
24
24
|
});
|
25
25
|
module.exports = __toCommonJS(stdin_exports);
|
26
26
|
var import_vue = require("vue");
|
@@ -70,7 +70,7 @@ function initInstance() {
|
|
70
70
|
}
|
71
71
|
}));
|
72
72
|
}
|
73
|
-
const
|
73
|
+
const showImagePreview = (options, startPosition = 0) => {
|
74
74
|
if (!import_utils.inBrowser) {
|
75
75
|
return;
|
76
76
|
}
|
@@ -84,7 +84,3 @@ const ImagePreview = (options, startPosition = 0) => {
|
|
84
84
|
instance.open((0, import_utils.extend)({}, defaultConfig, options));
|
85
85
|
return instance;
|
86
86
|
};
|
87
|
-
ImagePreview.Component = (0, import_utils.withInstall)(import_ImagePreview.default);
|
88
|
-
ImagePreview.install = (app) => {
|
89
|
-
app.use(ImagePreview.Component);
|
90
|
-
};
|
@@ -1,7 +1,134 @@
|
|
1
|
-
import { ImagePreview } from './function-call';
|
2
1
|
import type { ImagePreviewProps } from './ImagePreview';
|
2
|
+
export declare const ImagePreview: import("../utils").WithInstall<import("vue").DefineComponent<{
|
3
|
+
show: BooleanConstructor;
|
4
|
+
loop: {
|
5
|
+
type: BooleanConstructor;
|
6
|
+
default: true;
|
7
|
+
};
|
8
|
+
images: {
|
9
|
+
type: import("vue").PropType<string[]>;
|
10
|
+
default: () => never[];
|
11
|
+
};
|
12
|
+
minZoom: {
|
13
|
+
type: (NumberConstructor | StringConstructor)[];
|
14
|
+
default: number;
|
15
|
+
};
|
16
|
+
maxZoom: {
|
17
|
+
type: (NumberConstructor | StringConstructor)[];
|
18
|
+
default: number;
|
19
|
+
};
|
20
|
+
overlay: {
|
21
|
+
type: BooleanConstructor;
|
22
|
+
default: true;
|
23
|
+
};
|
24
|
+
closeable: BooleanConstructor;
|
25
|
+
showIndex: {
|
26
|
+
type: BooleanConstructor;
|
27
|
+
default: true;
|
28
|
+
};
|
29
|
+
className: import("vue").PropType<unknown>;
|
30
|
+
closeIcon: {
|
31
|
+
type: import("vue").PropType<string>;
|
32
|
+
default: string;
|
33
|
+
};
|
34
|
+
transition: StringConstructor;
|
35
|
+
beforeClose: import("vue").PropType<import("../utils").Interceptor>;
|
36
|
+
overlayClass: import("vue").PropType<unknown>;
|
37
|
+
overlayStyle: import("vue").PropType<import("vue").CSSProperties>;
|
38
|
+
swipeDuration: {
|
39
|
+
type: (NumberConstructor | StringConstructor)[];
|
40
|
+
default: number;
|
41
|
+
};
|
42
|
+
startPosition: {
|
43
|
+
type: (NumberConstructor | StringConstructor)[];
|
44
|
+
default: number;
|
45
|
+
};
|
46
|
+
showIndicators: BooleanConstructor;
|
47
|
+
closeOnPopstate: {
|
48
|
+
type: BooleanConstructor;
|
49
|
+
default: true;
|
50
|
+
};
|
51
|
+
closeIconPosition: {
|
52
|
+
type: import("vue").PropType<import("..").PopupCloseIconPosition>;
|
53
|
+
default: import("..").PopupCloseIconPosition;
|
54
|
+
};
|
55
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "close" | "closed" | "update:show" | "scale")[], "change" | "close" | "closed" | "update:show" | "scale", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
56
|
+
show: BooleanConstructor;
|
57
|
+
loop: {
|
58
|
+
type: BooleanConstructor;
|
59
|
+
default: true;
|
60
|
+
};
|
61
|
+
images: {
|
62
|
+
type: import("vue").PropType<string[]>;
|
63
|
+
default: () => never[];
|
64
|
+
};
|
65
|
+
minZoom: {
|
66
|
+
type: (NumberConstructor | StringConstructor)[];
|
67
|
+
default: number;
|
68
|
+
};
|
69
|
+
maxZoom: {
|
70
|
+
type: (NumberConstructor | StringConstructor)[];
|
71
|
+
default: number;
|
72
|
+
};
|
73
|
+
overlay: {
|
74
|
+
type: BooleanConstructor;
|
75
|
+
default: true;
|
76
|
+
};
|
77
|
+
closeable: BooleanConstructor;
|
78
|
+
showIndex: {
|
79
|
+
type: BooleanConstructor;
|
80
|
+
default: true;
|
81
|
+
};
|
82
|
+
className: import("vue").PropType<unknown>;
|
83
|
+
closeIcon: {
|
84
|
+
type: import("vue").PropType<string>;
|
85
|
+
default: string;
|
86
|
+
};
|
87
|
+
transition: StringConstructor;
|
88
|
+
beforeClose: import("vue").PropType<import("../utils").Interceptor>;
|
89
|
+
overlayClass: import("vue").PropType<unknown>;
|
90
|
+
overlayStyle: import("vue").PropType<import("vue").CSSProperties>;
|
91
|
+
swipeDuration: {
|
92
|
+
type: (NumberConstructor | StringConstructor)[];
|
93
|
+
default: number;
|
94
|
+
};
|
95
|
+
startPosition: {
|
96
|
+
type: (NumberConstructor | StringConstructor)[];
|
97
|
+
default: number;
|
98
|
+
};
|
99
|
+
showIndicators: BooleanConstructor;
|
100
|
+
closeOnPopstate: {
|
101
|
+
type: BooleanConstructor;
|
102
|
+
default: true;
|
103
|
+
};
|
104
|
+
closeIconPosition: {
|
105
|
+
type: import("vue").PropType<import("..").PopupCloseIconPosition>;
|
106
|
+
default: import("..").PopupCloseIconPosition;
|
107
|
+
};
|
108
|
+
}>> & {
|
109
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
110
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
111
|
+
onClosed?: ((...args: any[]) => any) | undefined;
|
112
|
+
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
113
|
+
onScale?: ((...args: any[]) => any) | undefined;
|
114
|
+
}, {
|
115
|
+
loop: boolean;
|
116
|
+
overlay: boolean;
|
117
|
+
show: boolean;
|
118
|
+
closeIcon: string;
|
119
|
+
closeable: boolean;
|
120
|
+
closeOnPopstate: boolean;
|
121
|
+
closeIconPosition: import("..").PopupCloseIconPosition;
|
122
|
+
swipeDuration: string | number;
|
123
|
+
showIndicators: boolean;
|
124
|
+
startPosition: string | number;
|
125
|
+
minZoom: string | number;
|
126
|
+
maxZoom: string | number;
|
127
|
+
images: string[];
|
128
|
+
showIndex: boolean;
|
129
|
+
}>>;
|
3
130
|
export default ImagePreview;
|
4
|
-
export {
|
131
|
+
export { showImagePreview } from './function-call';
|
5
132
|
export type { ImagePreviewProps };
|
6
133
|
export type { ImagePreviewOptions, ImagePreviewInstance, ImagePreviewScaleEventParams, } from './types';
|
7
134
|
declare module 'vue' {
|
@@ -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,17 @@ 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
|
-
ImagePreview: () =>
|
21
|
-
default: () => stdin_default
|
23
|
+
ImagePreview: () => ImagePreview,
|
24
|
+
default: () => stdin_default,
|
25
|
+
showImagePreview: () => import_function_call.showImagePreview
|
22
26
|
});
|
23
27
|
module.exports = __toCommonJS(stdin_exports);
|
28
|
+
var import_utils = require("../utils");
|
29
|
+
var import_ImagePreview = __toESM(require("./ImagePreview"));
|
24
30
|
var import_function_call = require("./function-call");
|
25
|
-
|
31
|
+
const ImagePreview = (0, import_utils.withInstall)(import_ImagePreview.default);
|
32
|
+
var stdin_default = ImagePreview;
|
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
@@ -196,7 +196,7 @@ __reExport(stdin_exports, require("./time-picker"), module.exports);
|
|
196
196
|
__reExport(stdin_exports, require("./toast"), module.exports);
|
197
197
|
__reExport(stdin_exports, require("./tree-select"), module.exports);
|
198
198
|
__reExport(stdin_exports, require("./uploader"), module.exports);
|
199
|
-
const version = "4.0.0-
|
199
|
+
const version = "4.0.0-beta.0";
|
200
200
|
function install(app) {
|
201
201
|
const components = [
|
202
202
|
import_action_bar.ActionBar,
|
package/lib/locale/index.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
declare type Message = Record<string, any>;
|
2
2
|
export declare const Locale: {
|
3
3
|
messages(): Message;
|
4
|
-
use(newLang: string, newMessages?: Message
|
4
|
+
use(newLang: string, newMessages?: Message): void;
|
5
5
|
add(newMessages?: Message): void;
|
6
6
|
};
|
7
7
|
export default Locale;
|
@@ -1,102 +1,6 @@
|
|
1
|
-
import { App } from 'vue';
|
2
1
|
import { type ComponentInstance } from '../utils';
|
3
2
|
import type { NotifyMessage, NotifyOptions } from './types';
|
4
|
-
declare
|
5
|
-
declare
|
6
|
-
|
7
|
-
|
8
|
-
var setDefaultOptions: (options: NotifyOptions) => void;
|
9
|
-
var resetDefaultOptions: () => void;
|
10
|
-
var Component: import("../utils").WithInstall<import("vue").DefineComponent<{
|
11
|
-
show: BooleanConstructor;
|
12
|
-
zIndex: (NumberConstructor | StringConstructor)[];
|
13
|
-
overlay: {
|
14
|
-
type: BooleanConstructor;
|
15
|
-
default: true;
|
16
|
-
};
|
17
|
-
duration: (NumberConstructor | StringConstructor)[];
|
18
|
-
teleport: import("vue").PropType<string | import("vue").RendererElement | null | undefined>;
|
19
|
-
lockScroll: {
|
20
|
-
type: BooleanConstructor;
|
21
|
-
default: true;
|
22
|
-
};
|
23
|
-
lazyRender: {
|
24
|
-
type: BooleanConstructor;
|
25
|
-
default: true;
|
26
|
-
};
|
27
|
-
beforeClose: import("vue").PropType<import("../utils").Interceptor>;
|
28
|
-
overlayStyle: import("vue").PropType<import("vue").CSSProperties>;
|
29
|
-
overlayClass: import("vue").PropType<unknown>;
|
30
|
-
transitionAppear: BooleanConstructor;
|
31
|
-
closeOnClickOverlay: {
|
32
|
-
type: BooleanConstructor;
|
33
|
-
default: true;
|
34
|
-
};
|
35
|
-
} & {
|
36
|
-
type: {
|
37
|
-
type: import("vue").PropType<import("./types").NotifyType>;
|
38
|
-
default: import("./types").NotifyType;
|
39
|
-
};
|
40
|
-
color: StringConstructor;
|
41
|
-
message: (NumberConstructor | StringConstructor)[];
|
42
|
-
position: {
|
43
|
-
type: import("vue").PropType<import("./types").NotifyPosition>;
|
44
|
-
default: import("./types").NotifyPosition;
|
45
|
-
};
|
46
|
-
className: import("vue").PropType<unknown>;
|
47
|
-
background: StringConstructor;
|
48
|
-
lockScroll: BooleanConstructor;
|
49
|
-
}, () => 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<{
|
50
|
-
show: BooleanConstructor;
|
51
|
-
zIndex: (NumberConstructor | StringConstructor)[];
|
52
|
-
overlay: {
|
53
|
-
type: BooleanConstructor;
|
54
|
-
default: true;
|
55
|
-
};
|
56
|
-
duration: (NumberConstructor | StringConstructor)[];
|
57
|
-
teleport: import("vue").PropType<string | import("vue").RendererElement | null | undefined>;
|
58
|
-
lockScroll: {
|
59
|
-
type: BooleanConstructor;
|
60
|
-
default: true;
|
61
|
-
};
|
62
|
-
lazyRender: {
|
63
|
-
type: BooleanConstructor;
|
64
|
-
default: true;
|
65
|
-
};
|
66
|
-
beforeClose: import("vue").PropType<import("../utils").Interceptor>;
|
67
|
-
overlayStyle: import("vue").PropType<import("vue").CSSProperties>;
|
68
|
-
overlayClass: import("vue").PropType<unknown>;
|
69
|
-
transitionAppear: BooleanConstructor;
|
70
|
-
closeOnClickOverlay: {
|
71
|
-
type: BooleanConstructor;
|
72
|
-
default: true;
|
73
|
-
};
|
74
|
-
} & {
|
75
|
-
type: {
|
76
|
-
type: import("vue").PropType<import("./types").NotifyType>;
|
77
|
-
default: import("./types").NotifyType;
|
78
|
-
};
|
79
|
-
color: StringConstructor;
|
80
|
-
message: (NumberConstructor | StringConstructor)[];
|
81
|
-
position: {
|
82
|
-
type: import("vue").PropType<import("./types").NotifyPosition>;
|
83
|
-
default: import("./types").NotifyPosition;
|
84
|
-
};
|
85
|
-
className: import("vue").PropType<unknown>;
|
86
|
-
background: StringConstructor;
|
87
|
-
lockScroll: BooleanConstructor;
|
88
|
-
}>> & {
|
89
|
-
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
90
|
-
}, {
|
91
|
-
type: import("./types").NotifyType;
|
92
|
-
position: import("./types").NotifyPosition;
|
93
|
-
overlay: boolean;
|
94
|
-
show: boolean;
|
95
|
-
lockScroll: boolean;
|
96
|
-
lazyRender: boolean;
|
97
|
-
transitionAppear: boolean;
|
98
|
-
closeOnClickOverlay: boolean;
|
99
|
-
}>>;
|
100
|
-
var install: (app: App<any>) => void;
|
101
|
-
}
|
102
|
-
export { Notify };
|
3
|
+
export declare const closeNotify: () => void;
|
4
|
+
export declare function showNotify(options: NotifyMessage | NotifyOptions): ComponentInstance | undefined;
|
5
|
+
export declare const setNotifyDefaultOptions: (options: NotifyOptions) => NotifyOptions;
|
6
|
+
export declare const resetNotifyDefaultOptions: () => void;
|