vant 3.3.7 → 3.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/action-bar/ActionBar.d.ts +7 -6
- package/es/action-bar/ActionBar.js +24 -20
- package/es/action-bar/index.css +1 -1
- package/es/action-bar/index.d.ts +11 -5
- package/es/action-bar/index.js +8 -4
- package/es/action-bar/style/index.js +2 -2
- package/es/action-bar/style/less.js +2 -2
- package/es/action-bar-button/ActionBarButton.d.ts +12 -22
- package/es/action-bar-button/ActionBarButton.js +26 -28
- package/es/action-bar-button/index.css +1 -1
- package/es/action-bar-button/index.d.ts +16 -21
- package/es/action-bar-button/index.js +8 -4
- package/es/action-bar-button/style/index.js +7 -7
- package/es/action-bar-button/style/less.js +7 -7
- package/es/action-bar-icon/ActionBarIcon.d.ts +21 -28
- package/es/action-bar-icon/ActionBarIcon.js +29 -32
- package/es/action-bar-icon/index.css +1 -1
- package/es/action-bar-icon/index.d.ts +19 -23
- package/es/action-bar-icon/index.js +8 -4
- package/es/action-bar-icon/style/index.js +5 -5
- package/es/action-bar-icon/style/less.js +5 -5
- package/es/action-sheet/ActionSheet.d.ts +55 -48
- package/es/action-sheet/ActionSheet.js +64 -66
- package/es/action-sheet/index.css +1 -1
- package/es/action-sheet/index.d.ts +59 -47
- package/es/action-sheet/index.js +8 -4
- package/es/action-sheet/style/index.js +7 -7
- package/es/action-sheet/style/less.js +7 -7
- package/es/address-edit/AddressEdit.d.ts +49 -49
- package/es/address-edit/AddressEdit.js +186 -219
- package/es/address-edit/AddressEditDetail.d.ts +11 -21
- package/es/address-edit/AddressEditDetail.js +32 -43
- package/es/address-edit/index.css +1 -1
- package/es/address-edit/index.d.ts +53 -48
- package/es/address-edit/index.js +8 -4
- package/es/address-edit/style/index.js +13 -13
- package/es/address-edit/style/less.js +13 -13
- package/es/address-edit/types.js +0 -1
- package/es/address-list/AddressList.d.ts +19 -19
- package/es/address-list/AddressList.js +38 -49
- package/es/address-list/AddressListItem.d.ts +10 -13
- package/es/address-list/AddressListItem.js +39 -49
- package/es/address-list/index.css +1 -1
- package/es/address-list/index.d.ts +23 -18
- package/es/address-list/index.js +8 -4
- package/es/address-list/index.less +1 -1
- package/es/address-list/style/index.js +11 -11
- package/es/address-list/style/less.js +11 -11
- package/es/area/Area.d.ts +42 -34
- package/es/area/Area.js +99 -161
- package/es/area/index.d.ts +46 -33
- package/es/area/index.js +8 -4
- package/es/area/style/index.js +3 -3
- package/es/area/style/less.js +3 -3
- package/es/area/types.js +0 -1
- package/es/badge/Badge.d.ts +20 -21
- package/es/badge/Badge.js +33 -47
- package/es/badge/index.css +1 -1
- package/es/badge/index.d.ts +24 -20
- package/es/badge/index.js +8 -4
- package/es/badge/style/index.js +2 -2
- package/es/badge/style/less.js +2 -2
- package/es/button/Button.d.ts +40 -48
- package/es/button/Button.js +43 -63
- package/es/button/index.css +1 -1
- package/es/button/index.d.ts +44 -47
- package/es/button/index.js +8 -4
- package/es/button/style/index.js +5 -5
- package/es/button/style/less.js +5 -5
- package/es/button/types.js +0 -1
- package/es/calendar/Calendar.d.ts +86 -63
- package/es/calendar/Calendar.js +129 -222
- package/es/calendar/CalendarDay.d.ts +14 -15
- package/es/calendar/CalendarDay.js +54 -70
- package/es/calendar/CalendarHeader.d.ts +7 -14
- package/es/calendar/CalendarHeader.js +30 -35
- package/es/calendar/CalendarMonth.d.ts +26 -33
- package/es/calendar/CalendarMonth.js +97 -140
- package/es/calendar/index.css +1 -1
- package/es/calendar/index.d.ts +90 -62
- package/es/calendar/index.js +8 -4
- package/es/calendar/style/index.js +10 -10
- package/es/calendar/style/less.js +10 -10
- package/es/calendar/types.js +0 -1
- package/es/calendar/utils.js +40 -30
- package/es/card/Card.d.ts +17 -27
- package/es/card/Card.js +53 -72
- package/es/card/index.css +1 -1
- package/es/card/index.d.ts +21 -26
- package/es/card/index.js +8 -4
- package/es/card/style/index.js +6 -6
- package/es/card/style/less.js +6 -6
- package/es/cascader/Cascader.d.ts +37 -23
- package/es/cascader/Cascader.js +87 -120
- package/es/cascader/index.css +1 -1
- package/es/cascader/index.d.ts +37 -22
- package/es/cascader/index.js +8 -4
- package/es/cascader/index.less +0 -10
- package/es/cascader/style/index.js +9 -9
- package/es/cascader/style/less.js +9 -9
- package/es/cascader/types.js +0 -1
- package/es/cell/Cell.d.ts +28 -42
- package/es/cell/Cell.js +42 -59
- package/es/cell/index.css +1 -1
- package/es/cell/index.d.ts +32 -41
- package/es/cell/index.js +8 -4
- package/es/cell/style/index.js +4 -4
- package/es/cell/style/less.js +4 -4
- package/es/cell-group/CellGroup.d.ts +9 -11
- package/es/cell-group/CellGroup.js +25 -26
- package/es/cell-group/index.css +1 -1
- package/es/cell-group/index.d.ts +13 -10
- package/es/cell-group/index.js +8 -4
- package/es/cell-group/style/index.js +2 -2
- package/es/cell-group/style/less.js +2 -2
- package/es/checkbox/Checkbox.d.ts +18 -22
- package/es/checkbox/Checkbox.js +35 -53
- package/es/checkbox/Checker.d.ts +25 -30
- package/es/checkbox/Checker.js +37 -45
- package/es/checkbox/index.css +1 -1
- package/es/checkbox/index.d.ts +22 -21
- package/es/checkbox/index.js +8 -4
- package/es/checkbox/style/index.js +5 -5
- package/es/checkbox/style/less.js +5 -5
- package/es/checkbox/types.js +0 -1
- package/es/checkbox-group/CheckboxGroup.d.ts +12 -17
- package/es/checkbox-group/CheckboxGroup.js +32 -41
- package/es/checkbox-group/index.css +1 -1
- package/es/checkbox-group/index.d.ts +16 -16
- package/es/checkbox-group/index.js +8 -4
- package/es/checkbox-group/style/index.js +2 -2
- package/es/checkbox-group/style/less.js +2 -2
- package/es/checkbox-group/types.js +0 -1
- package/es/circle/Circle.d.ts +36 -29
- package/es/circle/Circle.js +60 -76
- package/es/circle/index.css +1 -1
- package/es/circle/index.d.ts +40 -28
- package/es/circle/index.js +8 -4
- package/es/circle/style/index.js +2 -2
- package/es/circle/style/less.js +2 -2
- package/es/col/Col.d.ts +12 -11
- package/es/col/Col.js +27 -26
- package/es/col/index.css +1 -1
- package/es/col/index.d.ts +16 -10
- package/es/col/index.js +8 -4
- package/es/col/style/index.js +3 -3
- package/es/col/style/less.js +3 -3
- package/es/collapse/Collapse.d.ts +12 -10
- package/es/collapse/Collapse.js +39 -46
- package/es/collapse/index.d.ts +16 -9
- package/es/collapse/index.js +8 -4
- package/es/collapse/style/index.js +1 -1
- package/es/collapse/style/less.js +1 -1
- package/es/collapse-item/CollapseItem.d.ts +32 -42
- package/es/collapse-item/CollapseItem.js +57 -81
- package/es/collapse-item/index.css +1 -1
- package/es/collapse-item/index.d.ts +36 -41
- package/es/collapse-item/index.js +8 -4
- package/es/collapse-item/style/index.js +5 -5
- package/es/collapse-item/style/less.js +5 -5
- package/es/collapse-item/types.js +0 -1
- package/es/composables/on-popup-reopen.js +10 -8
- package/es/composables/use-expose.js +8 -7
- package/es/composables/use-height.js +14 -7
- package/es/composables/use-id.js +11 -12
- package/es/composables/use-lazy-render.js +10 -9
- package/es/composables/use-lock-scroll.js +29 -43
- package/es/composables/use-placeholder.js +10 -7
- package/es/composables/use-refs.js +15 -8
- package/es/composables/use-route.d.ts +1 -1
- package/es/composables/use-route.js +19 -17
- package/es/composables/use-tab-status.js +7 -4
- package/es/composables/use-touch.js +27 -36
- package/es/composables/use-visibility-change.js +12 -18
- package/es/config-provider/ConfigProvider.d.ts +9 -11
- package/es/config-provider/ConfigProvider.js +23 -21
- package/es/config-provider/index.d.ts +13 -10
- package/es/config-provider/index.js +8 -4
- package/es/config-provider/style/index.js +1 -1
- package/es/config-provider/style/less.js +1 -1
- package/es/contact-card/ContactCard.d.ts +14 -15
- package/es/contact-card/ContactCard.js +24 -28
- package/es/contact-card/index.css +1 -1
- package/es/contact-card/index.d.ts +18 -14
- package/es/contact-card/index.js +8 -4
- package/es/contact-card/style/index.js +5 -5
- package/es/contact-card/style/less.js +5 -5
- package/es/contact-edit/ContactEdit.d.ts +16 -19
- package/es/contact-edit/ContactEdit.js +48 -56
- package/es/contact-edit/index.css +1 -1
- package/es/contact-edit/index.d.ts +20 -18
- package/es/contact-edit/index.js +8 -4
- package/es/contact-edit/style/index.js +9 -9
- package/es/contact-edit/style/less.js +9 -9
- package/es/contact-list/ContactList.d.ts +7 -12
- package/es/contact-list/ContactList.js +41 -51
- package/es/contact-list/index.css +1 -1
- package/es/contact-list/index.d.ts +11 -11
- package/es/contact-list/index.js +8 -4
- package/es/contact-list/style/index.js +11 -11
- package/es/contact-list/style/less.js +11 -11
- package/es/count-down/CountDown.d.ts +16 -12
- package/es/count-down/CountDown.js +23 -28
- package/es/count-down/index.css +1 -1
- package/es/count-down/index.d.ts +20 -11
- package/es/count-down/index.js +8 -4
- package/es/count-down/style/index.js +2 -2
- package/es/count-down/style/less.js +2 -2
- package/es/count-down/types.js +0 -1
- package/es/count-down/utils.js +24 -35
- package/es/coupon/Coupon.d.ts +13 -12
- package/es/coupon/Coupon.js +35 -38
- package/es/coupon/index.css +1 -1
- package/es/coupon/index.d.ts +17 -11
- package/es/coupon/index.js +8 -4
- package/es/coupon/style/index.js +6 -6
- package/es/coupon/style/less.js +6 -6
- package/es/coupon/utils.js +11 -6
- package/es/coupon-cell/CouponCell.d.ts +24 -17
- package/es/coupon-cell/CouponCell.js +23 -32
- package/es/coupon-cell/index.css +1 -1
- package/es/coupon-cell/index.d.ts +28 -16
- package/es/coupon-cell/index.js +8 -4
- package/es/coupon-cell/style/index.js +5 -5
- package/es/coupon-cell/style/less.js +5 -5
- package/es/coupon-list/CouponList.d.ts +54 -41
- package/es/coupon-list/CouponList.js +101 -112
- package/es/coupon-list/index.css +1 -1
- package/es/coupon-list/index.d.ts +58 -40
- package/es/coupon-list/index.js +8 -4
- package/es/coupon-list/style/index.js +16 -16
- package/es/coupon-list/style/less.js +16 -16
- package/es/datetime-picker/DatePicker.d.ts +45 -36
- package/es/datetime-picker/DatePicker.js +112 -157
- package/es/datetime-picker/DatetimePicker.d.ts +2 -2
- package/es/datetime-picker/DatetimePicker.js +25 -26
- package/es/datetime-picker/TimePicker.d.ts +47 -38
- package/es/datetime-picker/TimePicker.js +51 -69
- package/es/datetime-picker/index.d.ts +6 -1
- package/es/datetime-picker/index.js +8 -4
- package/es/datetime-picker/style/index.js +3 -3
- package/es/datetime-picker/style/less.js +3 -3
- package/es/datetime-picker/types.js +0 -1
- package/es/datetime-picker/utils.d.ts +1 -1
- package/es/datetime-picker/utils.js +30 -20
- package/es/dialog/Dialog.d.ts +53 -60
- package/es/dialog/Dialog.js +58 -83
- package/es/dialog/function-call.d.ts +52 -59
- package/es/dialog/function-call.js +25 -37
- package/es/dialog/index.css +1 -1
- package/es/dialog/index.d.ts +5 -0
- package/es/dialog/index.js +6 -3
- package/es/dialog/style/index.js +10 -10
- package/es/dialog/style/less.js +10 -10
- package/es/dialog/types.js +0 -1
- package/es/divider/Divider.d.ts +12 -10
- package/es/divider/Divider.js +24 -21
- package/es/divider/index.css +1 -1
- package/es/divider/index.d.ts +16 -9
- package/es/divider/index.js +8 -4
- package/es/divider/style/index.js +2 -2
- package/es/divider/style/less.js +2 -2
- package/es/dropdown-item/DropdownItem.d.ts +16 -19
- package/es/dropdown-item/DropdownItem.js +62 -94
- package/es/dropdown-item/index.css +1 -1
- package/es/dropdown-item/index.d.ts +20 -18
- package/es/dropdown-item/index.js +8 -4
- package/es/dropdown-item/style/index.js +8 -8
- package/es/dropdown-item/style/less.js +8 -8
- package/es/dropdown-item/types.js +0 -1
- package/es/dropdown-menu/DropdownMenu.d.ts +25 -19
- package/es/dropdown-menu/DropdownMenu.js +55 -61
- package/es/dropdown-menu/index.css +1 -1
- package/es/dropdown-menu/index.d.ts +29 -18
- package/es/dropdown-menu/index.js +8 -4
- package/es/dropdown-menu/index.less +0 -1
- package/es/dropdown-menu/style/index.js +2 -2
- package/es/dropdown-menu/style/less.js +2 -2
- package/es/dropdown-menu/types.js +0 -1
- package/es/empty/Empty.d.ts +9 -11
- package/es/empty/Empty.js +25 -34
- package/es/empty/Network.js +24 -23
- package/es/empty/index.css +1 -1
- package/es/empty/index.d.ts +13 -10
- package/es/empty/index.js +8 -4
- package/es/empty/style/index.js +2 -2
- package/es/empty/style/less.js +2 -2
- package/es/field/Field.d.ts +81 -91
- package/es/field/Field.js +154 -243
- package/es/field/index.css +1 -1
- package/es/field/index.d.ts +85 -90
- package/es/field/index.js +8 -4
- package/es/field/style/index.js +5 -5
- package/es/field/style/less.js +5 -5
- package/es/field/types.d.ts +1 -1
- package/es/field/types.js +0 -1
- package/es/field/utils.js +50 -69
- package/es/form/Form.d.ts +25 -31
- package/es/form/Form.js +55 -74
- package/es/form/index.d.ts +29 -30
- package/es/form/index.js +8 -4
- package/es/form/style/index.js +1 -1
- package/es/form/style/less.js +1 -1
- package/es/form/types.js +0 -1
- package/es/grid/Grid.d.ts +21 -23
- package/es/grid/Grid.js +28 -24
- package/es/grid/index.css +1 -1
- package/es/grid/index.d.ts +25 -22
- package/es/grid/index.js +8 -4
- package/es/grid/style/index.js +2 -2
- package/es/grid/style/less.js +2 -2
- package/es/grid-item/GridItem.d.ts +18 -24
- package/es/grid-item/GridItem.js +47 -62
- package/es/grid-item/index.css +1 -1
- package/es/grid-item/index.d.ts +18 -21
- package/es/grid-item/index.js +8 -4
- package/es/grid-item/style/index.js +5 -5
- package/es/grid-item/style/less.js +5 -5
- package/es/icon/Icon.d.ts +19 -21
- package/es/icon/Icon.js +34 -32
- package/es/icon/index.css +1 -1
- package/es/icon/index.d.ts +19 -18
- package/es/icon/index.js +8 -4
- package/es/icon/index.less +1 -0
- package/es/icon/style/index.js +3 -3
- package/es/icon/style/less.js +3 -3
- package/es/image/Image.d.ts +33 -33
- package/es/image/Image.js +71 -81
- package/es/image/index.css +1 -1
- package/es/image/index.d.ts +35 -32
- package/es/image/index.js +8 -4
- package/es/image/style/index.js +4 -4
- package/es/image/style/less.js +4 -4
- package/es/image-preview/ImagePreview.d.ts +57 -41
- package/es/image-preview/ImagePreview.js +52 -69
- package/es/image-preview/ImagePreviewItem.d.ts +21 -18
- package/es/image-preview/ImagePreviewItem.js +83 -108
- package/es/image-preview/function-call.d.ts +55 -40
- package/es/image-preview/function-call.js +23 -35
- package/es/image-preview/index.css +1 -1
- package/es/image-preview/index.d.ts +5 -0
- package/es/image-preview/index.js +6 -3
- package/es/image-preview/index.less +0 -1
- package/es/image-preview/style/index.js +10 -10
- package/es/image-preview/style/less.js +10 -10
- package/es/image-preview/types.d.ts +1 -0
- package/es/image-preview/types.js +0 -1
- package/es/index-anchor/IndexAnchor.d.ts +4 -6
- package/es/index-anchor/IndexAnchor.js +31 -42
- package/es/index-anchor/index.css +1 -1
- package/es/index-anchor/index.d.ts +8 -5
- package/es/index-anchor/index.js +8 -4
- package/es/index-anchor/style/index.js +3 -3
- package/es/index-anchor/style/less.js +3 -3
- package/es/index-bar/IndexBar.d.ts +18 -17
- package/es/index-bar/IndexBar.js +73 -98
- package/es/index-bar/index.css +1 -1
- package/es/index-bar/index.d.ts +22 -16
- package/es/index-bar/index.js +8 -4
- package/es/index-bar/style/index.js +2 -2
- package/es/index-bar/style/less.js +2 -2
- package/es/index-bar/types.js +0 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +267 -180
- package/es/lazyload/index.js +6 -3
- package/es/lazyload/style/index.js +1 -1
- package/es/lazyload/style/less.js +1 -1
- package/es/lazyload/vue-lazyload/index.js +17 -32
- package/es/lazyload/vue-lazyload/lazy-component.js +11 -16
- package/es/lazyload/vue-lazyload/lazy-container.js +28 -56
- package/es/lazyload/vue-lazyload/lazy-image.js +21 -46
- package/es/lazyload/vue-lazyload/lazy.js +113 -264
- package/es/lazyload/vue-lazyload/listener.js +50 -130
- package/es/lazyload/vue-lazyload/util.js +67 -87
- package/es/list/List.d.ts +21 -23
- package/es/list/List.js +52 -74
- package/es/list/index.css +1 -1
- package/es/list/index.d.ts +25 -22
- package/es/list/index.js +8 -4
- package/es/list/style/index.js +3 -3
- package/es/list/style/less.js +3 -3
- package/es/list/types.js +0 -1
- package/es/loading/Loading.d.ts +12 -17
- package/es/loading/Loading.js +25 -30
- package/es/loading/index.css +1 -1
- package/es/loading/index.d.ts +16 -16
- package/es/loading/index.js +8 -4
- package/es/loading/style/index.js +2 -2
- package/es/loading/style/less.js +2 -2
- package/es/locale/index.js +14 -19
- package/es/locale/lang/de-DE-formal.d.ts +2 -11
- package/es/locale/lang/de-DE-formal.js +46 -52
- package/es/locale/lang/de-DE.d.ts +2 -11
- package/es/locale/lang/de-DE.js +46 -52
- package/es/locale/lang/en-US.d.ts +2 -11
- package/es/locale/lang/en-US.js +46 -52
- package/es/locale/lang/es-ES.d.ts +2 -11
- package/es/locale/lang/es-ES.js +46 -52
- package/es/locale/lang/fr-FR.d.ts +2 -11
- package/es/locale/lang/fr-FR.js +46 -52
- package/es/locale/lang/hi-IN.d.ts +64 -0
- package/es/locale/lang/hi-IN.js +74 -0
- package/es/locale/lang/ja-JP.d.ts +2 -12
- package/es/locale/lang/ja-JP.js +46 -53
- package/es/locale/lang/ko-KR.d.ts +64 -0
- package/es/locale/lang/ko-KR.js +74 -0
- package/es/locale/lang/nb-NO.d.ts +2 -11
- package/es/locale/lang/nb-NO.js +46 -52
- package/es/locale/lang/pt-BR.d.ts +2 -11
- package/es/locale/lang/pt-BR.js +46 -52
- package/es/locale/lang/ro-RO.d.ts +2 -11
- package/es/locale/lang/ro-RO.js +46 -52
- package/es/locale/lang/ru-RU.d.ts +2 -11
- package/es/locale/lang/ru-RU.js +46 -52
- package/es/locale/lang/th-TH.d.ts +2 -12
- package/es/locale/lang/th-TH.js +46 -53
- package/es/locale/lang/tr-TR.d.ts +2 -11
- package/es/locale/lang/tr-TR.js +46 -52
- package/es/locale/lang/zh-CN.d.ts +2 -12
- package/es/locale/lang/zh-CN.js +46 -53
- package/es/locale/lang/zh-HK.d.ts +2 -12
- package/es/locale/lang/zh-HK.js +46 -53
- package/es/locale/lang/zh-TW.d.ts +2 -12
- package/es/locale/lang/zh-TW.js +46 -53
- package/es/locale/style/index.js +1 -1
- package/es/locale/style/less.js +1 -1
- package/es/nav-bar/NavBar.d.ts +15 -23
- package/es/nav-bar/NavBar.js +35 -47
- package/es/nav-bar/index.css +1 -1
- package/es/nav-bar/index.d.ts +19 -22
- package/es/nav-bar/index.js +8 -4
- package/es/nav-bar/index.less +0 -1
- package/es/nav-bar/style/index.js +4 -4
- package/es/nav-bar/style/less.js +4 -4
- package/es/notice-bar/NoticeBar.d.ts +21 -23
- package/es/notice-bar/NoticeBar.js +62 -85
- package/es/notice-bar/index.css +1 -1
- package/es/notice-bar/index.d.ts +25 -22
- package/es/notice-bar/index.js +8 -4
- package/es/notice-bar/style/index.js +4 -4
- package/es/notice-bar/style/less.js +4 -4
- package/es/notice-bar/types.js +0 -1
- package/es/notify/Notify.d.ts +50 -39
- package/es/notify/Notify.js +20 -21
- package/es/notify/function-call.d.ts +45 -38
- package/es/notify/function-call.js +23 -36
- package/es/notify/index.css +1 -1
- package/es/notify/index.d.ts +5 -0
- package/es/notify/index.js +6 -3
- package/es/notify/style/index.js +6 -6
- package/es/notify/style/less.js +6 -6
- package/es/notify/types.d.ts +2 -0
- package/es/notify/types.js +0 -1
- package/es/number-keyboard/NumberKeyboard.d.ts +47 -39
- package/es/number-keyboard/NumberKeyboard.js +81 -114
- package/es/number-keyboard/NumberKeyboardKey.d.ts +9 -17
- package/es/number-keyboard/NumberKeyboardKey.js +32 -48
- package/es/number-keyboard/index.css +1 -1
- package/es/number-keyboard/index.d.ts +51 -38
- package/es/number-keyboard/index.js +8 -4
- package/es/number-keyboard/index.less +0 -1
- package/es/number-keyboard/style/index.js +3 -3
- package/es/number-keyboard/style/less.js +3 -3
- package/es/overlay/Overlay.d.ts +25 -17
- package/es/overlay/Overlay.js +22 -24
- package/es/overlay/index.css +1 -1
- package/es/overlay/index.d.ts +25 -16
- package/es/overlay/index.js +8 -4
- package/es/overlay/style/index.js +2 -2
- package/es/overlay/style/less.js +2 -2
- package/es/pagination/Pagination.d.ts +30 -23
- package/es/pagination/Pagination.js +62 -84
- package/es/pagination/index.css +1 -1
- package/es/pagination/index.d.ts +34 -22
- package/es/pagination/index.js +8 -4
- package/es/pagination/style/index.js +2 -2
- package/es/pagination/style/less.js +2 -2
- package/es/password-input/PasswordInput.d.ts +19 -19
- package/es/password-input/PasswordInput.js +30 -37
- package/es/password-input/index.css +1 -1
- package/es/password-input/index.d.ts +23 -18
- package/es/password-input/index.js +8 -4
- package/es/password-input/style/index.js +2 -2
- package/es/password-input/style/less.js +2 -2
- package/es/picker/Picker.d.ts +39 -34
- package/es/picker/Picker.js +136 -198
- package/es/picker/PickerColumn.d.ts +32 -24
- package/es/picker/PickerColumn.js +86 -133
- package/es/picker/index.css +1 -1
- package/es/picker/index.d.ts +43 -33
- package/es/picker/index.js +8 -4
- package/es/picker/index.less +0 -1
- package/es/picker/style/index.js +3 -3
- package/es/picker/style/less.js +3 -3
- package/es/picker/types.d.ts +13 -0
- package/es/picker/types.js +0 -1
- package/es/popover/Popover.d.ts +49 -37
- package/es/popover/Popover.js +84 -90
- package/es/popover/index.css +1 -1
- package/es/popover/index.d.ts +53 -36
- package/es/popover/index.js +8 -4
- package/es/popover/index.less +8 -4
- package/es/popover/style/index.js +6 -6
- package/es/popover/style/less.js +6 -6
- package/es/popover/types.js +0 -1
- package/es/popup/Popup.d.ts +46 -48
- package/es/popup/Popup.js +70 -88
- package/es/popup/index.css +1 -1
- package/es/popup/index.d.ts +57 -52
- package/es/popup/index.js +8 -4
- package/es/popup/index.less +0 -1
- package/es/popup/shared.d.ts +1 -1
- package/es/popup/shared.js +7 -15
- package/es/popup/style/index.js +5 -5
- package/es/popup/style/less.js +5 -5
- package/es/popup/types.d.ts +5 -0
- package/es/popup/types.js +0 -0
- package/es/progress/Progress.d.ts +19 -23
- package/es/progress/Progress.js +23 -25
- package/es/progress/index.css +1 -1
- package/es/progress/index.d.ts +23 -22
- package/es/progress/index.js +8 -4
- package/es/progress/style/index.js +2 -2
- package/es/progress/style/less.js +2 -2
- package/es/progress/types.js +0 -1
- package/es/pull-refresh/PullRefresh.d.ts +22 -25
- package/es/pull-refresh/PullRefresh.js +66 -96
- package/es/pull-refresh/index.css +1 -1
- package/es/pull-refresh/index.d.ts +26 -24
- package/es/pull-refresh/index.js +8 -4
- package/es/pull-refresh/index.less +0 -1
- package/es/pull-refresh/style/index.js +3 -3
- package/es/pull-refresh/style/less.js +3 -3
- package/es/radio/Radio.d.ts +14 -21
- package/es/radio/Radio.js +23 -29
- package/es/radio/index.css +1 -1
- package/es/radio/index.d.ts +18 -20
- package/es/radio/index.js +8 -4
- package/es/radio/style/index.js +6 -6
- package/es/radio/style/less.js +6 -6
- package/es/radio-group/RadioGroup.d.ts +8 -15
- package/es/radio-group/RadioGroup.js +27 -25
- package/es/radio-group/index.css +1 -1
- package/es/radio-group/index.d.ts +12 -14
- package/es/radio-group/index.js +8 -4
- package/es/radio-group/style/index.js +2 -2
- package/es/radio-group/style/less.js +2 -2
- package/es/rate/Rate.d.ts +32 -33
- package/es/rate/Rate.js +53 -77
- package/es/rate/index.css +1 -1
- package/es/rate/index.d.ts +36 -32
- package/es/rate/index.js +8 -4
- package/es/rate/style/index.js +4 -4
- package/es/rate/style/less.js +4 -4
- package/es/row/Row.d.ts +17 -15
- package/es/row/Row.js +41 -40
- package/es/row/index.css +1 -1
- package/es/row/index.d.ts +21 -14
- package/es/row/index.js +8 -4
- package/es/row/style/index.js +2 -2
- package/es/row/style/less.js +2 -2
- package/es/search/Search.d.ts +65 -52
- package/es/search/Search.js +73 -77
- package/es/search/index.css +1 -1
- package/es/search/index.d.ts +69 -51
- package/es/search/index.js +8 -4
- package/es/search/style/index.js +6 -6
- package/es/search/style/less.js +6 -6
- package/es/search/types.js +0 -1
- package/es/share-sheet/ShareSheet.d.ts +46 -42
- package/es/share-sheet/ShareSheet.js +46 -65
- package/es/share-sheet/index.css +1 -1
- package/es/share-sheet/index.d.ts +50 -41
- package/es/share-sheet/index.js +8 -4
- package/es/share-sheet/index.less +0 -1
- package/es/share-sheet/style/index.js +6 -6
- package/es/share-sheet/style/less.js +6 -6
- package/es/sidebar/Sidebar.d.ts +7 -6
- package/es/sidebar/Sidebar.js +29 -28
- package/es/sidebar/index.css +1 -1
- package/es/sidebar/index.d.ts +11 -5
- package/es/sidebar/index.js +8 -4
- package/es/sidebar/style/index.js +2 -2
- package/es/sidebar/style/less.js +2 -2
- package/es/sidebar-item/SidebarItem.d.ts +16 -20
- package/es/sidebar-item/SidebarItem.js +34 -41
- package/es/sidebar-item/index.css +1 -1
- package/es/sidebar-item/index.d.ts +16 -17
- package/es/sidebar-item/index.js +8 -4
- package/es/sidebar-item/style/index.js +4 -4
- package/es/sidebar-item/style/less.js +4 -4
- package/es/skeleton/Skeleton.d.ts +28 -25
- package/es/skeleton/Skeleton.js +26 -34
- package/es/skeleton/index.css +1 -1
- package/es/skeleton/index.d.ts +32 -24
- package/es/skeleton/index.js +8 -4
- package/es/skeleton/style/index.js +2 -2
- package/es/skeleton/style/less.js +2 -2
- package/es/slider/Slider.d.ts +29 -32
- package/es/slider/Slider.js +99 -158
- package/es/slider/index.css +1 -1
- package/es/slider/index.d.ts +33 -31
- package/es/slider/index.js +8 -4
- package/es/slider/style/index.js +2 -2
- package/es/slider/style/less.js +2 -2
- package/es/step/Step.d.ts +1 -1
- package/es/step/Step.js +47 -68
- package/es/step/index.css +1 -1
- package/es/step/index.d.ts +6 -1
- package/es/step/index.js +8 -4
- package/es/step/style/index.js +5 -5
- package/es/step/style/less.js +5 -5
- package/es/stepper/Stepper.d.ts +52 -49
- package/es/stepper/Stepper.js +82 -123
- package/es/stepper/index.css +1 -1
- package/es/stepper/index.d.ts +56 -48
- package/es/stepper/index.js +8 -4
- package/es/stepper/index.less +0 -1
- package/es/stepper/style/index.js +2 -2
- package/es/stepper/style/less.js +2 -2
- package/es/steps/Steps.d.ts +20 -21
- package/es/steps/Steps.js +29 -27
- package/es/steps/index.css +1 -1
- package/es/steps/index.d.ts +24 -20
- package/es/steps/index.js +8 -4
- package/es/steps/style/index.js +2 -2
- package/es/steps/style/less.js +2 -2
- package/es/sticky/Sticky.d.ts +17 -15
- package/es/sticky/Sticky.js +58 -73
- package/es/sticky/index.css +1 -1
- package/es/sticky/index.d.ts +21 -14
- package/es/sticky/index.js +8 -4
- package/es/sticky/style/index.js +2 -2
- package/es/sticky/style/less.js +2 -2
- package/es/style/animation.css +1 -1
- package/es/style/base.css +1 -1
- package/es/style/base.less +6 -2
- package/es/style/css-variables.css +1 -1
- package/es/style/normalize.css +1 -1
- package/es/submit-bar/SubmitBar.d.ts +29 -33
- package/es/submit-bar/SubmitBar.js +48 -53
- package/es/submit-bar/index.css +1 -1
- package/es/submit-bar/index.d.ts +33 -32
- package/es/submit-bar/index.js +8 -4
- package/es/submit-bar/style/index.js +6 -6
- package/es/submit-bar/style/less.js +6 -6
- package/es/swipe/Swipe.d.ts +36 -29
- package/es/swipe/Swipe.js +140 -203
- package/es/swipe/index.css +1 -1
- package/es/swipe/index.d.ts +40 -28
- package/es/swipe/index.js +8 -4
- package/es/swipe/style/index.js +2 -2
- package/es/swipe/style/less.js +2 -2
- package/es/swipe/types.js +0 -1
- package/es/swipe-cell/SwipeCell.d.ts +12 -17
- package/es/swipe-cell/SwipeCell.js +66 -92
- package/es/swipe-cell/index.css +1 -1
- package/es/swipe-cell/index.d.ts +16 -16
- package/es/swipe-cell/index.js +8 -4
- package/es/swipe-cell/style/index.js +2 -2
- package/es/swipe-cell/style/less.js +2 -2
- package/es/swipe-cell/types.js +0 -1
- package/es/swipe-item/SwipeItem.d.ts +1 -1
- package/es/swipe-item/SwipeItem.js +40 -51
- package/es/swipe-item/index.css +1 -1
- package/es/swipe-item/index.d.ts +6 -1
- package/es/swipe-item/index.js +8 -4
- package/es/swipe-item/style/index.js +3 -3
- package/es/swipe-item/style/less.js +3 -3
- package/es/switch/Switch.d.ts +17 -21
- package/es/switch/Switch.js +28 -32
- package/es/switch/index.css +1 -1
- package/es/switch/index.d.ts +21 -20
- package/es/switch/index.js +8 -4
- package/es/switch/style/index.js +3 -3
- package/es/switch/style/less.js +3 -3
- package/es/tab/Tab.d.ts +17 -26
- package/es/tab/Tab.js +44 -56
- package/es/tab/index.css +1 -1
- package/es/tab/index.d.ts +21 -25
- package/es/tab/index.js +8 -4
- package/es/tab/style/index.js +7 -7
- package/es/tab/style/less.js +7 -7
- package/es/tabbar/Tabbar.d.ts +25 -25
- package/es/tabbar/Tabbar.js +32 -40
- package/es/tabbar/index.css +1 -1
- package/es/tabbar/index.d.ts +29 -24
- package/es/tabbar/index.js +8 -4
- package/es/tabbar/style/index.js +2 -2
- package/es/tabbar/style/less.js +2 -2
- package/es/tabbar-item/TabbarItem.d.ts +17 -22
- package/es/tabbar-item/TabbarItem.js +53 -66
- package/es/tabbar-item/index.css +1 -1
- package/es/tabbar-item/index.d.ts +17 -19
- package/es/tabbar-item/index.js +8 -4
- package/es/tabbar-item/style/index.js +5 -5
- package/es/tabbar-item/style/less.js +5 -5
- package/es/tabs/Tabs.d.ts +47 -43
- package/es/tabs/Tabs.js +146 -198
- package/es/tabs/TabsContent.d.ts +18 -17
- package/es/tabs/TabsContent.js +24 -30
- package/es/tabs/TabsTitle.d.ts +21 -33
- package/es/tabs/TabsTitle.js +34 -38
- package/es/tabs/index.css +1 -1
- package/es/tabs/index.d.ts +50 -42
- package/es/tabs/index.js +8 -4
- package/es/tabs/index.less +43 -35
- package/es/tabs/style/index.js +5 -5
- package/es/tabs/style/less.js +5 -5
- package/es/tabs/types.js +0 -1
- package/es/tabs/utils.js +16 -20
- package/es/tag/Tag.d.ts +18 -23
- package/es/tag/Tag.js +27 -34
- package/es/tag/index.css +1 -1
- package/es/tag/index.d.ts +22 -22
- package/es/tag/index.js +8 -4
- package/es/tag/index.less +0 -1
- package/es/tag/style/index.js +4 -4
- package/es/tag/style/less.js +4 -4
- package/es/toast/Toast.d.ts +32 -39
- package/es/toast/Toast.js +41 -56
- package/es/toast/function-call.d.ts +2 -2
- package/es/toast/function-call.js +55 -85
- package/es/toast/index.css +1 -1
- package/es/toast/index.js +6 -3
- package/es/toast/lock-click.js +8 -7
- package/es/toast/style/index.js +7 -7
- package/es/toast/style/less.js +7 -7
- package/es/toast/types.js +0 -1
- package/es/tree-select/TreeSelect.d.ts +27 -16
- package/es/tree-select/TreeSelect.js +39 -53
- package/es/tree-select/index.css +1 -1
- package/es/tree-select/index.d.ts +31 -15
- package/es/tree-select/index.js +8 -4
- package/es/tree-select/index.less +1 -1
- package/es/tree-select/style/index.js +6 -6
- package/es/tree-select/style/less.js +6 -6
- package/es/uploader/Uploader.d.ts +63 -52
- package/es/uploader/Uploader.js +87 -134
- package/es/uploader/UploaderPreviewItem.d.ts +14 -21
- package/es/uploader/UploaderPreviewItem.js +47 -60
- package/es/uploader/index.css +1 -1
- package/es/uploader/index.d.ts +66 -50
- package/es/uploader/index.js +8 -4
- package/es/uploader/style/index.js +11 -11
- package/es/uploader/style/less.js +11 -11
- package/es/uploader/types.js +0 -1
- package/es/uploader/utils.js +35 -39
- package/es/utils/basic.js +20 -15
- package/es/utils/constant.js +20 -9
- package/es/utils/create.js +32 -43
- package/es/utils/deep-assign.js +9 -13
- package/es/utils/deep-clone.js +9 -9
- package/es/utils/dom.js +36 -38
- package/es/utils/format.js +56 -82
- package/es/utils/index.js +9 -9
- package/es/utils/interceptor.js +13 -14
- package/es/utils/mount-component.js +18 -26
- package/es/utils/props.js +19 -13
- package/es/utils/validate.js +20 -11
- package/es/utils/with-install.js +9 -10
- package/lib/action-bar/ActionBar.d.ts +7 -6
- package/lib/action-bar/ActionBar.js +49 -33
- package/lib/action-bar/index.css +1 -1
- package/lib/action-bar/index.d.ts +11 -5
- package/lib/action-bar/index.js +31 -15
- package/lib/action-bar/style/index.js +2 -5
- package/lib/action-bar/style/less.js +2 -5
- package/lib/action-bar-button/ActionBarButton.d.ts +12 -22
- package/lib/action-bar-button/ActionBarButton.js +52 -45
- package/lib/action-bar-button/index.css +1 -1
- package/lib/action-bar-button/index.d.ts +16 -21
- package/lib/action-bar-button/index.js +31 -15
- package/lib/action-bar-button/style/index.js +7 -15
- package/lib/action-bar-button/style/less.js +7 -15
- package/lib/action-bar-icon/ActionBarIcon.d.ts +21 -28
- package/lib/action-bar-icon/ActionBarIcon.js +56 -50
- package/lib/action-bar-icon/index.css +1 -1
- package/lib/action-bar-icon/index.d.ts +19 -23
- package/lib/action-bar-icon/index.js +31 -15
- package/lib/action-bar-icon/style/index.js +5 -11
- package/lib/action-bar-icon/style/less.js +5 -11
- package/lib/action-sheet/ActionSheet.d.ts +55 -48
- package/lib/action-sheet/ActionSheet.js +100 -92
- package/lib/action-sheet/index.css +1 -1
- package/lib/action-sheet/index.d.ts +59 -47
- package/lib/action-sheet/index.js +31 -15
- package/lib/action-sheet/style/index.js +7 -15
- package/lib/action-sheet/style/less.js +7 -15
- package/lib/address-edit/AddressEdit.d.ts +49 -49
- package/lib/address-edit/AddressEdit.js +223 -253
- package/lib/address-edit/AddressEditDetail.d.ts +11 -21
- package/lib/address-edit/AddressEditDetail.js +58 -56
- package/lib/address-edit/index.css +1 -1
- package/lib/address-edit/index.d.ts +53 -48
- package/lib/address-edit/index.js +31 -15
- package/lib/address-edit/style/index.js +13 -27
- package/lib/address-edit/style/less.js +13 -27
- package/lib/address-edit/types.js +3 -3
- package/lib/address-list/AddressList.d.ts +19 -19
- package/lib/address-list/AddressList.js +67 -67
- package/lib/address-list/AddressListItem.d.ts +10 -13
- package/lib/address-list/AddressListItem.js +66 -66
- package/lib/address-list/index.css +1 -1
- package/lib/address-list/index.d.ts +23 -18
- package/lib/address-list/index.js +31 -15
- package/lib/address-list/index.less +1 -1
- package/lib/address-list/style/index.js +11 -23
- package/lib/address-list/style/less.js +11 -23
- package/lib/area/Area.d.ts +42 -34
- package/lib/area/Area.js +130 -181
- package/lib/area/index.d.ts +46 -33
- package/lib/area/index.js +31 -15
- package/lib/area/style/index.js +3 -7
- package/lib/area/style/less.js +3 -7
- package/lib/area/types.js +3 -3
- package/lib/badge/Badge.d.ts +20 -21
- package/lib/badge/Badge.js +62 -62
- package/lib/badge/index.css +1 -1
- package/lib/badge/index.d.ts +24 -20
- package/lib/badge/index.js +31 -15
- package/lib/badge/style/index.js +2 -5
- package/lib/badge/style/less.js +2 -5
- package/lib/button/Button.d.ts +40 -48
- package/lib/button/Button.js +75 -83
- package/lib/button/index.css +1 -1
- package/lib/button/index.d.ts +44 -47
- package/lib/button/index.js +31 -15
- package/lib/button/style/index.js +5 -11
- package/lib/button/style/less.js +5 -11
- package/lib/button/types.js +3 -3
- package/lib/calendar/Calendar.d.ts +86 -63
- package/lib/calendar/Calendar.js +188 -277
- package/lib/calendar/CalendarDay.d.ts +14 -15
- package/lib/calendar/CalendarDay.js +84 -87
- package/lib/calendar/CalendarHeader.d.ts +7 -14
- package/lib/calendar/CalendarHeader.js +57 -49
- package/lib/calendar/CalendarMonth.d.ts +26 -33
- package/lib/calendar/CalendarMonth.js +130 -166
- package/lib/calendar/index.css +1 -1
- package/lib/calendar/index.d.ts +90 -62
- package/lib/calendar/index.js +31 -15
- package/lib/calendar/style/index.js +10 -21
- package/lib/calendar/style/less.js +10 -21
- package/lib/calendar/types.js +3 -3
- package/lib/calendar/utils.js +59 -63
- package/lib/card/Card.d.ts +17 -27
- package/lib/card/Card.js +91 -92
- package/lib/card/index.css +1 -1
- package/lib/card/index.d.ts +21 -26
- package/lib/card/index.js +31 -15
- package/lib/card/style/index.js +6 -13
- package/lib/card/style/less.js +6 -13
- package/lib/cascader/Cascader.d.ts +37 -23
- package/lib/cascader/Cascader.js +125 -146
- package/lib/cascader/index.css +1 -1
- package/lib/cascader/index.d.ts +37 -22
- package/lib/cascader/index.js +31 -15
- package/lib/cascader/index.less +0 -10
- package/lib/cascader/style/index.js +9 -19
- package/lib/cascader/style/less.js +9 -19
- package/lib/cascader/types.js +3 -3
- package/lib/cell/Cell.d.ts +28 -42
- package/lib/cell/Cell.js +81 -87
- package/lib/cell/index.css +1 -1
- package/lib/cell/index.d.ts +32 -41
- package/lib/cell/index.js +31 -15
- package/lib/cell/style/index.js +4 -9
- package/lib/cell/style/less.js +4 -9
- package/lib/cell-group/CellGroup.d.ts +9 -11
- package/lib/cell-group/CellGroup.js +50 -37
- package/lib/cell-group/index.css +1 -1
- package/lib/cell-group/index.d.ts +13 -10
- package/lib/cell-group/index.js +31 -15
- package/lib/cell-group/style/index.js +2 -5
- package/lib/cell-group/style/less.js +2 -5
- package/lib/checkbox/Checkbox.d.ts +18 -22
- package/lib/checkbox/Checkbox.js +62 -73
- package/lib/checkbox/Checker.d.ts +25 -30
- package/lib/checkbox/Checker.js +71 -67
- package/lib/checkbox/index.css +1 -1
- package/lib/checkbox/index.d.ts +22 -21
- package/lib/checkbox/index.js +31 -15
- package/lib/checkbox/style/index.js +5 -11
- package/lib/checkbox/style/less.js +5 -11
- package/lib/checkbox/types.js +3 -3
- package/lib/checkbox-group/CheckboxGroup.d.ts +12 -17
- package/lib/checkbox-group/CheckboxGroup.js +61 -58
- package/lib/checkbox-group/index.css +1 -1
- package/lib/checkbox-group/index.d.ts +16 -16
- package/lib/checkbox-group/index.js +31 -15
- package/lib/checkbox-group/style/index.js +2 -5
- package/lib/checkbox-group/style/less.js +2 -5
- package/lib/checkbox-group/types.js +3 -3
- package/lib/circle/Circle.d.ts +36 -29
- package/lib/circle/Circle.js +100 -103
- package/lib/circle/index.css +1 -1
- package/lib/circle/index.d.ts +40 -28
- package/lib/circle/index.js +31 -15
- package/lib/circle/style/index.js +2 -5
- package/lib/circle/style/less.js +2 -5
- package/lib/col/Col.d.ts +12 -11
- package/lib/col/Col.js +54 -41
- package/lib/col/index.css +1 -1
- package/lib/col/index.d.ts +16 -10
- package/lib/col/index.js +31 -15
- package/lib/col/style/index.js +3 -7
- package/lib/col/style/less.js +3 -7
- package/lib/collapse/Collapse.d.ts +12 -10
- package/lib/collapse/Collapse.js +64 -58
- package/lib/collapse/index.d.ts +16 -9
- package/lib/collapse/index.js +31 -15
- package/lib/collapse/style/index.js +1 -3
- package/lib/collapse/style/less.js +1 -3
- package/lib/collapse-item/CollapseItem.d.ts +32 -42
- package/lib/collapse-item/CollapseItem.js +88 -104
- package/lib/collapse-item/index.css +1 -1
- package/lib/collapse-item/index.d.ts +36 -41
- package/lib/collapse-item/index.js +31 -15
- package/lib/collapse-item/style/index.js +5 -11
- package/lib/collapse-item/style/less.js +5 -11
- package/lib/collapse-item/types.js +3 -3
- package/lib/composables/on-popup-reopen.js +32 -16
- package/lib/composables/use-expose.js +31 -14
- package/lib/composables/use-height.js +37 -16
- package/lib/composables/use-id.js +33 -18
- package/lib/composables/use-lazy-render.js +32 -14
- package/lib/composables/use-lock-scroll.js +55 -56
- package/lib/composables/use-placeholder.js +33 -14
- package/lib/composables/use-refs.js +38 -14
- package/lib/composables/use-route.d.ts +1 -1
- package/lib/composables/use-route.js +39 -27
- package/lib/composables/use-tab-status.js +30 -14
- package/lib/composables/use-touch.js +49 -41
- package/lib/composables/use-visibility-change.js +38 -29
- package/lib/config-provider/ConfigProvider.d.ts +9 -11
- package/lib/config-provider/ConfigProvider.js +48 -32
- package/lib/config-provider/index.d.ts +13 -10
- package/lib/config-provider/index.js +31 -15
- package/lib/config-provider/style/index.js +1 -3
- package/lib/config-provider/style/less.js +1 -3
- package/lib/contact-card/ContactCard.d.ts +14 -15
- package/lib/contact-card/ContactCard.js +48 -39
- package/lib/contact-card/index.css +1 -1
- package/lib/contact-card/index.d.ts +18 -14
- package/lib/contact-card/index.js +31 -15
- package/lib/contact-card/style/index.js +5 -11
- package/lib/contact-card/style/less.js +5 -11
- package/lib/contact-edit/ContactEdit.d.ts +16 -19
- package/lib/contact-edit/ContactEdit.js +79 -78
- package/lib/contact-edit/index.css +1 -1
- package/lib/contact-edit/index.d.ts +20 -18
- package/lib/contact-edit/index.js +31 -15
- package/lib/contact-edit/style/index.js +9 -19
- package/lib/contact-edit/style/less.js +9 -19
- package/lib/contact-list/ContactList.d.ts +7 -12
- package/lib/contact-list/ContactList.js +70 -72
- package/lib/contact-list/index.css +1 -1
- package/lib/contact-list/index.d.ts +11 -11
- package/lib/contact-list/index.js +31 -15
- package/lib/contact-list/style/index.js +11 -23
- package/lib/contact-list/style/less.js +11 -23
- package/lib/count-down/CountDown.d.ts +16 -12
- package/lib/count-down/CountDown.js +52 -46
- package/lib/count-down/index.css +1 -1
- package/lib/count-down/index.d.ts +20 -11
- package/lib/count-down/index.js +31 -15
- package/lib/count-down/style/index.js +2 -5
- package/lib/count-down/style/less.js +2 -5
- package/lib/count-down/types.js +3 -3
- package/lib/count-down/utils.js +46 -40
- package/lib/coupon/Coupon.d.ts +13 -12
- package/lib/coupon/Coupon.js +69 -60
- package/lib/coupon/index.css +1 -1
- package/lib/coupon/index.d.ts +17 -11
- package/lib/coupon/index.js +31 -15
- package/lib/coupon/style/index.js +6 -13
- package/lib/coupon/style/less.js +6 -13
- package/lib/coupon/utils.js +33 -18
- package/lib/coupon-cell/CouponCell.d.ts +24 -17
- package/lib/coupon-cell/CouponCell.js +53 -47
- package/lib/coupon-cell/index.css +1 -1
- package/lib/coupon-cell/index.d.ts +28 -16
- package/lib/coupon-cell/index.js +31 -15
- package/lib/coupon-cell/style/index.js +5 -11
- package/lib/coupon-cell/style/less.js +5 -11
- package/lib/coupon-list/CouponList.d.ts +54 -41
- package/lib/coupon-list/CouponList.js +149 -153
- package/lib/coupon-list/index.css +1 -1
- package/lib/coupon-list/index.d.ts +58 -40
- package/lib/coupon-list/index.js +31 -15
- package/lib/coupon-list/style/index.js +16 -33
- package/lib/coupon-list/style/less.js +16 -33
- package/lib/datetime-picker/DatePicker.d.ts +45 -36
- package/lib/datetime-picker/DatePicker.js +152 -185
- package/lib/datetime-picker/DatetimePicker.d.ts +2 -2
- package/lib/datetime-picker/DatetimePicker.js +49 -41
- package/lib/datetime-picker/TimePicker.d.ts +47 -38
- package/lib/datetime-picker/TimePicker.js +92 -99
- package/lib/datetime-picker/index.d.ts +6 -1
- package/lib/datetime-picker/index.js +31 -15
- package/lib/datetime-picker/style/index.js +3 -7
- package/lib/datetime-picker/style/less.js +3 -7
- package/lib/datetime-picker/types.js +3 -3
- package/lib/datetime-picker/utils.d.ts +1 -1
- package/lib/datetime-picker/utils.js +50 -37
- package/lib/dialog/Dialog.d.ts +53 -60
- package/lib/dialog/Dialog.js +99 -114
- package/lib/dialog/function-call.d.ts +52 -59
- package/lib/dialog/function-call.js +59 -57
- package/lib/dialog/index.css +1 -1
- package/lib/dialog/index.d.ts +5 -0
- package/lib/dialog/index.js +29 -10
- package/lib/dialog/style/index.js +10 -21
- package/lib/dialog/style/less.js +10 -21
- package/lib/dialog/types.js +3 -3
- package/lib/divider/Divider.d.ts +12 -10
- package/lib/divider/Divider.js +48 -31
- package/lib/divider/index.css +1 -1
- package/lib/divider/index.d.ts +16 -9
- package/lib/divider/index.js +31 -15
- package/lib/divider/style/index.js +2 -5
- package/lib/divider/style/less.js +2 -5
- package/lib/dropdown-item/DropdownItem.d.ts +16 -19
- package/lib/dropdown-item/DropdownItem.js +96 -119
- package/lib/dropdown-item/index.css +1 -1
- package/lib/dropdown-item/index.d.ts +20 -18
- package/lib/dropdown-item/index.js +31 -15
- package/lib/dropdown-item/style/index.js +8 -17
- package/lib/dropdown-item/style/less.js +8 -17
- package/lib/dropdown-item/types.js +3 -3
- package/lib/dropdown-menu/DropdownMenu.d.ts +25 -19
- package/lib/dropdown-menu/DropdownMenu.js +91 -85
- package/lib/dropdown-menu/index.css +1 -1
- package/lib/dropdown-menu/index.d.ts +29 -18
- package/lib/dropdown-menu/index.js +31 -15
- package/lib/dropdown-menu/index.less +0 -1
- package/lib/dropdown-menu/style/index.js +2 -5
- package/lib/dropdown-menu/style/less.js +2 -5
- package/lib/dropdown-menu/types.js +3 -3
- package/lib/empty/Empty.d.ts +9 -11
- package/lib/empty/Empty.js +56 -52
- package/lib/empty/Network.js +62 -45
- package/lib/empty/index.css +1 -1
- package/lib/empty/index.d.ts +13 -10
- package/lib/empty/index.js +31 -15
- package/lib/empty/style/index.js +2 -5
- package/lib/empty/style/less.js +2 -5
- package/lib/field/Field.d.ts +81 -91
- package/lib/field/Field.js +220 -302
- package/lib/field/index.css +1 -1
- package/lib/field/index.d.ts +85 -90
- package/lib/field/index.js +31 -15
- package/lib/field/style/index.js +5 -11
- package/lib/field/style/less.js +5 -11
- package/lib/field/types.d.ts +1 -1
- package/lib/field/types.js +3 -3
- package/lib/field/utils.js +64 -87
- package/lib/form/Form.d.ts +25 -31
- package/lib/form/Form.js +84 -90
- package/lib/form/index.d.ts +29 -30
- package/lib/form/index.js +31 -15
- package/lib/form/style/index.js +1 -3
- package/lib/form/style/less.js +1 -3
- package/lib/form/types.js +3 -3
- package/lib/grid/Grid.d.ts +21 -23
- package/lib/grid/Grid.js +57 -42
- package/lib/grid/index.css +1 -1
- package/lib/grid/index.d.ts +25 -22
- package/lib/grid/index.js +31 -15
- package/lib/grid/style/index.js +2 -5
- package/lib/grid/style/less.js +2 -5
- package/lib/grid-item/GridItem.d.ts +18 -24
- package/lib/grid-item/GridItem.js +76 -82
- package/lib/grid-item/index.css +1 -1
- package/lib/grid-item/index.d.ts +18 -21
- package/lib/grid-item/index.js +31 -15
- package/lib/grid-item/style/index.js +5 -11
- package/lib/grid-item/style/less.js +5 -11
- package/lib/icon/Icon.d.ts +19 -21
- package/lib/icon/Icon.js +59 -45
- package/lib/icon/index.css +1 -1
- package/lib/icon/index.d.ts +19 -18
- package/lib/icon/index.js +31 -15
- package/lib/icon/index.less +1 -0
- package/lib/icon/style/index.js +3 -7
- package/lib/icon/style/less.js +3 -7
- package/lib/image/Image.d.ts +33 -33
- package/lib/image/Image.js +113 -110
- package/lib/image/index.css +1 -1
- package/lib/image/index.d.ts +35 -32
- package/lib/image/index.js +31 -15
- package/lib/image/style/index.js +4 -9
- package/lib/image/style/less.js +4 -9
- package/lib/image-preview/ImagePreview.d.ts +57 -41
- package/lib/image-preview/ImagePreview.js +95 -105
- package/lib/image-preview/ImagePreviewItem.d.ts +21 -18
- package/lib/image-preview/ImagePreviewItem.js +119 -133
- package/lib/image-preview/function-call.d.ts +55 -40
- package/lib/image-preview/function-call.js +54 -53
- package/lib/image-preview/index.css +1 -1
- package/lib/image-preview/index.d.ts +5 -0
- package/lib/image-preview/index.js +29 -10
- package/lib/image-preview/index.less +0 -1
- package/lib/image-preview/style/index.js +10 -21
- package/lib/image-preview/style/less.js +10 -21
- package/lib/image-preview/types.d.ts +1 -0
- package/lib/image-preview/types.js +3 -3
- package/lib/index-anchor/IndexAnchor.d.ts +4 -6
- package/lib/index-anchor/IndexAnchor.js +63 -64
- package/lib/index-anchor/index.css +1 -1
- package/lib/index-anchor/index.d.ts +8 -5
- package/lib/index-anchor/index.js +31 -15
- package/lib/index-anchor/style/index.js +3 -7
- package/lib/index-anchor/style/less.js +3 -7
- package/lib/index-bar/IndexBar.d.ts +18 -17
- package/lib/index-bar/IndexBar.js +108 -122
- package/lib/index-bar/index.css +1 -1
- package/lib/index-bar/index.d.ts +22 -16
- package/lib/index-bar/index.js +31 -15
- package/lib/index-bar/style/index.js +2 -5
- package/lib/index-bar/style/less.js +2 -5
- package/lib/index-bar/types.js +3 -3
- package/lib/index.css +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +288 -791
- package/lib/lazyload/index.js +29 -10
- package/lib/lazyload/style/index.js +1 -3
- package/lib/lazyload/style/less.js +1 -3
- package/lib/lazyload/vue-lazyload/index.js +39 -43
- package/lib/lazyload/vue-lazyload/lazy-component.js +35 -26
- package/lib/lazyload/vue-lazyload/lazy-container.js +50 -63
- package/lib/lazyload/vue-lazyload/lazy-image.js +43 -55
- package/lib/lazyload/vue-lazyload/lazy.js +149 -301
- package/lib/lazyload/vue-lazyload/listener.js +73 -140
- package/lib/lazyload/vue-lazyload/util.js +82 -109
- package/lib/list/List.d.ts +21 -23
- package/lib/list/List.js +88 -97
- package/lib/list/index.css +1 -1
- package/lib/list/index.d.ts +25 -22
- package/lib/list/index.js +31 -15
- package/lib/list/style/index.js +3 -7
- package/lib/list/style/less.js +3 -7
- package/lib/list/types.js +3 -3
- package/lib/loading/Loading.d.ts +12 -17
- package/lib/loading/Loading.js +56 -45
- package/lib/loading/index.css +1 -1
- package/lib/loading/index.d.ts +16 -16
- package/lib/loading/index.js +31 -15
- package/lib/loading/style/index.js +2 -5
- package/lib/loading/style/less.js +2 -5
- package/lib/locale/index.js +38 -32
- package/lib/locale/lang/de-DE-formal.d.ts +2 -11
- package/lib/locale/lang/de-DE-formal.js +52 -56
- package/lib/locale/lang/de-DE.d.ts +2 -11
- package/lib/locale/lang/de-DE.js +52 -56
- package/lib/locale/lang/en-US.d.ts +2 -11
- package/lib/locale/lang/en-US.js +52 -56
- package/lib/locale/lang/es-ES.d.ts +2 -11
- package/lib/locale/lang/es-ES.js +52 -56
- package/lib/locale/lang/fr-FR.d.ts +2 -11
- package/lib/locale/lang/fr-FR.js +52 -56
- package/lib/locale/lang/hi-IN.d.ts +64 -0
- package/lib/locale/lang/hi-IN.js +81 -0
- package/lib/locale/lang/ja-JP.d.ts +2 -12
- package/lib/locale/lang/ja-JP.js +52 -57
- package/lib/locale/lang/ko-KR.d.ts +64 -0
- package/lib/locale/lang/ko-KR.js +81 -0
- package/lib/locale/lang/nb-NO.d.ts +2 -11
- package/lib/locale/lang/nb-NO.js +52 -56
- package/lib/locale/lang/pt-BR.d.ts +2 -11
- package/lib/locale/lang/pt-BR.js +52 -56
- package/lib/locale/lang/ro-RO.d.ts +2 -11
- package/lib/locale/lang/ro-RO.js +52 -56
- package/lib/locale/lang/ru-RU.d.ts +2 -11
- package/lib/locale/lang/ru-RU.js +52 -56
- package/lib/locale/lang/th-TH.d.ts +2 -12
- package/lib/locale/lang/th-TH.js +52 -57
- package/lib/locale/lang/tr-TR.d.ts +2 -11
- package/lib/locale/lang/tr-TR.js +52 -56
- package/lib/locale/lang/zh-CN.d.ts +2 -12
- package/lib/locale/lang/zh-CN.js +52 -57
- package/lib/locale/lang/zh-HK.d.ts +2 -12
- package/lib/locale/lang/zh-HK.js +52 -57
- package/lib/locale/lang/zh-TW.d.ts +2 -12
- package/lib/locale/lang/zh-TW.js +52 -57
- package/lib/locale/style/index.js +1 -3
- package/lib/locale/style/less.js +1 -3
- package/lib/nav-bar/NavBar.d.ts +15 -23
- package/lib/nav-bar/NavBar.js +69 -69
- package/lib/nav-bar/index.css +1 -1
- package/lib/nav-bar/index.d.ts +19 -22
- package/lib/nav-bar/index.js +31 -15
- package/lib/nav-bar/index.less +0 -1
- package/lib/nav-bar/style/index.js +4 -9
- package/lib/nav-bar/style/less.js +4 -9
- package/lib/notice-bar/NoticeBar.d.ts +21 -23
- package/lib/notice-bar/NoticeBar.js +99 -111
- package/lib/notice-bar/index.css +1 -1
- package/lib/notice-bar/index.d.ts +25 -22
- package/lib/notice-bar/index.js +31 -15
- package/lib/notice-bar/style/index.js +4 -9
- package/lib/notice-bar/style/less.js +4 -9
- package/lib/notice-bar/types.js +3 -3
- package/lib/notify/Notify.d.ts +50 -39
- package/lib/notify/Notify.js +46 -35
- package/lib/notify/function-call.d.ts +45 -38
- package/lib/notify/function-call.js +55 -54
- package/lib/notify/index.css +1 -1
- package/lib/notify/index.d.ts +5 -0
- package/lib/notify/index.js +29 -10
- package/lib/notify/style/index.js +6 -13
- package/lib/notify/style/less.js +6 -13
- package/lib/notify/types.d.ts +2 -0
- package/lib/notify/types.js +3 -3
- package/lib/number-keyboard/NumberKeyboard.d.ts +47 -39
- package/lib/number-keyboard/NumberKeyboard.js +126 -148
- package/lib/number-keyboard/NumberKeyboardKey.d.ts +9 -17
- package/lib/number-keyboard/NumberKeyboardKey.js +62 -63
- package/lib/number-keyboard/index.css +1 -1
- package/lib/number-keyboard/index.d.ts +51 -38
- package/lib/number-keyboard/index.js +31 -15
- package/lib/number-keyboard/index.less +0 -1
- package/lib/number-keyboard/style/index.js +3 -7
- package/lib/number-keyboard/style/less.js +3 -7
- package/lib/overlay/Overlay.d.ts +25 -17
- package/lib/overlay/Overlay.js +53 -42
- package/lib/overlay/index.css +1 -1
- package/lib/overlay/index.d.ts +25 -16
- package/lib/overlay/index.js +31 -15
- package/lib/overlay/style/index.js +2 -5
- package/lib/overlay/style/less.js +2 -5
- package/lib/pagination/Pagination.d.ts +30 -23
- package/lib/pagination/Pagination.js +102 -110
- package/lib/pagination/index.css +1 -1
- package/lib/pagination/index.d.ts +34 -22
- package/lib/pagination/index.js +31 -15
- package/lib/pagination/style/index.js +2 -5
- package/lib/pagination/style/less.js +2 -5
- package/lib/password-input/PasswordInput.d.ts +19 -19
- package/lib/password-input/PasswordInput.js +65 -58
- package/lib/password-input/index.css +1 -1
- package/lib/password-input/index.d.ts +23 -18
- package/lib/password-input/index.js +31 -15
- package/lib/password-input/style/index.js +2 -5
- package/lib/password-input/style/less.js +2 -5
- package/lib/picker/Picker.d.ts +39 -34
- package/lib/picker/Picker.js +175 -231
- package/lib/picker/PickerColumn.d.ts +32 -24
- package/lib/picker/PickerColumn.js +128 -164
- package/lib/picker/index.css +1 -1
- package/lib/picker/index.d.ts +43 -33
- package/lib/picker/index.js +31 -15
- package/lib/picker/index.less +0 -1
- package/lib/picker/style/index.js +3 -7
- package/lib/picker/style/less.js +3 -7
- package/lib/picker/types.d.ts +13 -0
- package/lib/picker/types.js +3 -3
- package/lib/popover/Popover.d.ts +49 -37
- package/lib/popover/Popover.js +122 -117
- package/lib/popover/index.css +1 -1
- package/lib/popover/index.d.ts +53 -36
- package/lib/popover/index.js +31 -15
- package/lib/popover/index.less +8 -4
- package/lib/popover/style/index.js +6 -13
- package/lib/popover/style/less.js +6 -13
- package/lib/popover/types.js +3 -3
- package/lib/popup/Popup.d.ts +46 -48
- package/lib/popup/Popup.js +106 -118
- package/lib/popup/index.css +1 -1
- package/lib/popup/index.d.ts +57 -52
- package/lib/popup/index.js +31 -15
- package/lib/popup/index.less +0 -1
- package/lib/popup/shared.d.ts +1 -1
- package/lib/popup/shared.js +37 -30
- package/lib/popup/style/index.js +5 -11
- package/lib/popup/style/less.js +5 -11
- package/lib/popup/types.d.ts +5 -0
- package/lib/popup/types.js +3 -0
- package/lib/progress/Progress.d.ts +19 -23
- package/lib/progress/Progress.js +53 -41
- package/lib/progress/index.css +1 -1
- package/lib/progress/index.d.ts +23 -22
- package/lib/progress/index.js +31 -15
- package/lib/progress/style/index.js +2 -5
- package/lib/progress/style/less.js +2 -5
- package/lib/progress/types.js +3 -3
- package/lib/pull-refresh/PullRefresh.d.ts +22 -25
- package/lib/pull-refresh/PullRefresh.js +99 -118
- package/lib/pull-refresh/index.css +1 -1
- package/lib/pull-refresh/index.d.ts +26 -24
- package/lib/pull-refresh/index.js +31 -15
- package/lib/pull-refresh/index.less +0 -1
- package/lib/pull-refresh/style/index.js +3 -7
- package/lib/pull-refresh/style/less.js +3 -7
- package/lib/radio/Radio.d.ts +14 -21
- package/lib/radio/Radio.js +48 -47
- package/lib/radio/index.css +1 -1
- package/lib/radio/index.d.ts +18 -20
- package/lib/radio/index.js +31 -15
- package/lib/radio/style/index.js +6 -13
- package/lib/radio/style/less.js +6 -13
- package/lib/radio-group/RadioGroup.d.ts +8 -15
- package/lib/radio-group/RadioGroup.js +54 -40
- package/lib/radio-group/index.css +1 -1
- package/lib/radio-group/index.d.ts +12 -14
- package/lib/radio-group/index.js +31 -15
- package/lib/radio-group/style/index.js +2 -5
- package/lib/radio-group/style/less.js +2 -5
- package/lib/rate/Rate.d.ts +32 -33
- package/lib/rate/Rate.js +88 -102
- package/lib/rate/index.css +1 -1
- package/lib/rate/index.d.ts +36 -32
- package/lib/rate/index.js +31 -15
- package/lib/rate/style/index.js +4 -9
- package/lib/rate/style/less.js +4 -9
- package/lib/row/Row.d.ts +17 -15
- package/lib/row/Row.js +68 -55
- package/lib/row/index.css +1 -1
- package/lib/row/index.d.ts +21 -14
- package/lib/row/index.js +31 -15
- package/lib/row/style/index.js +2 -5
- package/lib/row/style/less.js +2 -5
- package/lib/search/Search.d.ts +65 -52
- package/lib/search/Search.js +101 -94
- package/lib/search/index.css +1 -1
- package/lib/search/index.d.ts +69 -51
- package/lib/search/index.js +31 -15
- package/lib/search/style/index.js +6 -13
- package/lib/search/style/less.js +6 -13
- package/lib/search/types.js +3 -3
- package/lib/share-sheet/ShareSheet.d.ts +46 -42
- package/lib/share-sheet/ShareSheet.js +81 -88
- package/lib/share-sheet/index.css +1 -1
- package/lib/share-sheet/index.d.ts +50 -41
- package/lib/share-sheet/index.js +31 -15
- package/lib/share-sheet/index.less +0 -1
- package/lib/share-sheet/style/index.js +6 -13
- package/lib/share-sheet/style/less.js +6 -13
- package/lib/sidebar/Sidebar.d.ts +7 -6
- package/lib/sidebar/Sidebar.js +54 -41
- package/lib/sidebar/index.css +1 -1
- package/lib/sidebar/index.d.ts +11 -5
- package/lib/sidebar/index.js +31 -15
- package/lib/sidebar/style/index.js +2 -5
- package/lib/sidebar/style/less.js +2 -5
- package/lib/sidebar-item/SidebarItem.d.ts +16 -20
- package/lib/sidebar-item/SidebarItem.js +59 -56
- package/lib/sidebar-item/index.css +1 -1
- package/lib/sidebar-item/index.d.ts +16 -17
- package/lib/sidebar-item/index.js +31 -15
- package/lib/sidebar-item/style/index.js +4 -9
- package/lib/sidebar-item/style/less.js +4 -9
- package/lib/skeleton/Skeleton.d.ts +28 -25
- package/lib/skeleton/Skeleton.js +61 -55
- package/lib/skeleton/index.css +1 -1
- package/lib/skeleton/index.d.ts +32 -24
- package/lib/skeleton/index.js +31 -15
- package/lib/skeleton/style/index.js +2 -5
- package/lib/skeleton/style/less.js +2 -5
- package/lib/slider/Slider.d.ts +29 -32
- package/lib/slider/Slider.js +138 -185
- package/lib/slider/index.css +1 -1
- package/lib/slider/index.d.ts +33 -31
- package/lib/slider/index.js +31 -15
- package/lib/slider/style/index.js +2 -5
- package/lib/slider/style/less.js +2 -5
- package/lib/step/Step.d.ts +1 -1
- package/lib/step/Step.js +79 -89
- package/lib/step/index.css +1 -1
- package/lib/step/index.d.ts +6 -1
- package/lib/step/index.js +31 -15
- package/lib/step/style/index.js +5 -11
- package/lib/step/style/less.js +5 -11
- package/lib/stepper/Stepper.d.ts +52 -49
- package/lib/stepper/Stepper.js +134 -162
- package/lib/stepper/index.css +1 -1
- package/lib/stepper/index.d.ts +56 -48
- package/lib/stepper/index.js +31 -15
- package/lib/stepper/index.less +0 -1
- package/lib/stepper/style/index.js +2 -5
- package/lib/stepper/style/less.js +2 -5
- package/lib/steps/Steps.d.ts +20 -21
- package/lib/steps/Steps.js +54 -40
- package/lib/steps/index.css +1 -1
- package/lib/steps/index.d.ts +24 -20
- package/lib/steps/index.js +31 -15
- package/lib/steps/style/index.js +2 -5
- package/lib/steps/style/less.js +2 -5
- package/lib/sticky/Sticky.d.ts +17 -15
- package/lib/sticky/Sticky.js +86 -89
- package/lib/sticky/index.css +1 -1
- package/lib/sticky/index.d.ts +21 -14
- package/lib/sticky/index.js +31 -15
- package/lib/sticky/style/index.js +2 -5
- package/lib/sticky/style/less.js +2 -5
- package/lib/style/animation.css +1 -1
- package/lib/style/base.css +1 -1
- package/lib/style/base.less +6 -2
- package/lib/style/css-variables.css +1 -1
- package/lib/style/normalize.css +1 -1
- package/lib/submit-bar/SubmitBar.d.ts +29 -33
- package/lib/submit-bar/SubmitBar.js +80 -73
- package/lib/submit-bar/index.css +1 -1
- package/lib/submit-bar/index.d.ts +33 -32
- package/lib/submit-bar/index.js +31 -15
- package/lib/submit-bar/style/index.js +6 -13
- package/lib/submit-bar/style/less.js +6 -13
- package/lib/swipe/Swipe.d.ts +36 -29
- package/lib/swipe/Swipe.js +191 -244
- package/lib/swipe/index.css +1 -1
- package/lib/swipe/index.d.ts +40 -28
- package/lib/swipe/index.js +31 -15
- package/lib/swipe/style/index.js +2 -5
- package/lib/swipe/style/less.js +2 -5
- package/lib/swipe/types.js +3 -3
- package/lib/swipe-cell/SwipeCell.d.ts +12 -17
- package/lib/swipe-cell/SwipeCell.js +98 -112
- package/lib/swipe-cell/index.css +1 -1
- package/lib/swipe-cell/index.d.ts +16 -16
- package/lib/swipe-cell/index.js +31 -15
- package/lib/swipe-cell/style/index.js +2 -5
- package/lib/swipe-cell/style/less.js +2 -5
- package/lib/swipe-cell/types.js +3 -3
- package/lib/swipe-item/SwipeItem.d.ts +1 -1
- package/lib/swipe-item/SwipeItem.js +67 -67
- package/lib/swipe-item/index.css +1 -1
- package/lib/swipe-item/index.d.ts +6 -1
- package/lib/swipe-item/index.js +31 -15
- package/lib/swipe-item/style/index.js +3 -7
- package/lib/swipe-item/style/less.js +3 -7
- package/lib/switch/Switch.d.ts +17 -21
- package/lib/switch/Switch.js +60 -52
- package/lib/switch/index.css +1 -1
- package/lib/switch/index.d.ts +21 -20
- package/lib/switch/index.js +31 -15
- package/lib/switch/style/index.js +3 -7
- package/lib/switch/style/less.js +3 -7
- package/lib/tab/Tab.d.ts +17 -26
- package/lib/tab/Tab.js +79 -84
- package/lib/tab/index.css +1 -1
- package/lib/tab/index.d.ts +21 -25
- package/lib/tab/index.js +31 -15
- package/lib/tab/style/index.js +7 -15
- package/lib/tab/style/less.js +7 -15
- package/lib/tabbar/Tabbar.d.ts +25 -25
- package/lib/tabbar/Tabbar.js +64 -61
- package/lib/tabbar/index.css +1 -1
- package/lib/tabbar/index.d.ts +29 -24
- package/lib/tabbar/index.js +31 -15
- package/lib/tabbar/style/index.js +2 -5
- package/lib/tabbar/style/less.js +2 -5
- package/lib/tabbar-item/TabbarItem.d.ts +17 -22
- package/lib/tabbar-item/TabbarItem.js +81 -85
- package/lib/tabbar-item/index.css +1 -1
- package/lib/tabbar-item/index.d.ts +17 -19
- package/lib/tabbar-item/index.js +31 -15
- package/lib/tabbar-item/style/index.js +5 -11
- package/lib/tabbar-item/style/less.js +5 -11
- package/lib/tabs/Tabs.d.ts +47 -43
- package/lib/tabs/Tabs.js +203 -253
- package/lib/tabs/TabsContent.d.ts +18 -17
- package/lib/tabs/TabsContent.js +54 -47
- package/lib/tabs/TabsTitle.d.ts +21 -33
- package/lib/tabs/TabsTitle.js +61 -52
- package/lib/tabs/index.css +1 -1
- package/lib/tabs/index.d.ts +50 -42
- package/lib/tabs/index.js +31 -15
- package/lib/tabs/index.less +43 -35
- package/lib/tabs/style/index.js +5 -11
- package/lib/tabs/style/less.js +5 -11
- package/lib/tabs/types.js +3 -3
- package/lib/tabs/utils.js +41 -31
- package/lib/tag/Tag.d.ts +18 -23
- package/lib/tag/Tag.js +53 -46
- package/lib/tag/index.css +1 -1
- package/lib/tag/index.d.ts +22 -22
- package/lib/tag/index.js +31 -15
- package/lib/tag/index.less +0 -1
- package/lib/tag/style/index.js +4 -9
- package/lib/tag/style/less.js +4 -9
- package/lib/toast/Toast.d.ts +32 -39
- package/lib/toast/Toast.js +78 -82
- package/lib/toast/function-call.d.ts +2 -2
- package/lib/toast/function-call.js +90 -105
- package/lib/toast/index.css +1 -1
- package/lib/toast/index.js +29 -10
- package/lib/toast/lock-click.js +14 -11
- package/lib/toast/style/index.js +7 -15
- package/lib/toast/style/less.js +7 -15
- package/lib/toast/types.js +3 -3
- package/lib/tree-select/TreeSelect.d.ts +27 -16
- package/lib/tree-select/TreeSelect.js +72 -75
- package/lib/tree-select/index.css +1 -1
- package/lib/tree-select/index.d.ts +31 -15
- package/lib/tree-select/index.js +31 -15
- package/lib/tree-select/index.less +1 -1
- package/lib/tree-select/style/index.js +6 -13
- package/lib/tree-select/style/less.js +6 -13
- package/lib/uploader/Uploader.d.ts +63 -52
- package/lib/uploader/Uploader.js +133 -173
- package/lib/uploader/UploaderPreviewItem.d.ts +14 -21
- package/lib/uploader/UploaderPreviewItem.js +86 -87
- package/lib/uploader/index.css +1 -1
- package/lib/uploader/index.d.ts +66 -50
- package/lib/uploader/index.js +31 -15
- package/lib/uploader/style/index.js +11 -23
- package/lib/uploader/style/less.js +11 -23
- package/lib/uploader/types.js +3 -3
- package/lib/uploader/utils.js +55 -62
- package/lib/utils/basic.js +25 -27
- package/lib/utils/constant.js +27 -22
- package/lib/utils/create.js +53 -56
- package/lib/utils/deep-assign.js +33 -20
- package/lib/utils/deep-clone.js +33 -16
- package/lib/utils/dom.js +52 -60
- package/lib/utils/format.js +79 -113
- package/lib/utils/index.js +28 -75
- package/lib/utils/interceptor.js +38 -23
- package/lib/utils/mount-component.js +39 -34
- package/lib/utils/props.js +25 -35
- package/lib/utils/validate.js +42 -39
- package/lib/utils/with-install.js +31 -14
- package/lib/vant.cjs.js +5034 -5049
- package/lib/vant.cjs.min.js +1 -1
- package/lib/vant.es.js +5034 -5049
- package/lib/vant.es.min.js +5034 -5049
- package/lib/vant.js +5060 -5074
- package/lib/vant.min.js +1 -1
- package/package.json +4 -5
- package/vetur/attributes.json +1022 -991
- package/vetur/tags.json +60 -53
- package/vetur/web-types.json +1726 -1638
package/es/list/List.js
CHANGED
@@ -1,131 +1,108 @@
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
2
|
-
import { ref, watch, nextTick, onUpdated, onMounted, defineComponent } from
|
3
|
-
|
4
|
-
import {
|
5
|
-
|
6
|
-
import {
|
7
|
-
import {
|
8
|
-
|
9
|
-
|
10
|
-
import { Loading } from '../loading'; // Types
|
11
|
-
|
12
|
-
var [name, bem, t] = createNamespace('list');
|
13
|
-
var listProps = {
|
2
|
+
import { ref, watch, nextTick, onUpdated, onMounted, defineComponent } from "vue";
|
3
|
+
import { isHidden, truthProp, makeStringProp, makeNumericProp, createNamespace } from "../utils";
|
4
|
+
import { useRect, useScrollParent, useEventListener } from "@vant/use";
|
5
|
+
import { useExpose } from "../composables/use-expose";
|
6
|
+
import { useTabStatus } from "../composables/use-tab-status";
|
7
|
+
import { Loading } from "../loading";
|
8
|
+
const [name, bem, t] = createNamespace("list");
|
9
|
+
const listProps = {
|
14
10
|
error: Boolean,
|
15
11
|
offset: makeNumericProp(300),
|
16
12
|
loading: Boolean,
|
17
13
|
finished: Boolean,
|
18
14
|
errorText: String,
|
19
|
-
direction: makeStringProp(
|
15
|
+
direction: makeStringProp("down"),
|
20
16
|
loadingText: String,
|
21
17
|
finishedText: String,
|
22
18
|
immediateCheck: truthProp
|
23
19
|
};
|
24
|
-
|
20
|
+
var stdin_default = defineComponent({
|
25
21
|
name,
|
26
22
|
props: listProps,
|
27
|
-
emits: [
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
var tabStatus = useTabStatus();
|
39
|
-
var scrollParent = useScrollParent(root);
|
40
|
-
|
41
|
-
var check = () => {
|
23
|
+
emits: ["load", "update:error", "update:loading"],
|
24
|
+
setup(props, {
|
25
|
+
emit,
|
26
|
+
slots
|
27
|
+
}) {
|
28
|
+
const loading = ref(false);
|
29
|
+
const root = ref();
|
30
|
+
const placeholder = ref();
|
31
|
+
const tabStatus = useTabStatus();
|
32
|
+
const scrollParent = useScrollParent(root);
|
33
|
+
const check = () => {
|
42
34
|
nextTick(() => {
|
43
|
-
if (loading.value || props.finished || props.error ||
|
44
|
-
(tabStatus == null ? void 0 : tabStatus.value) === false) {
|
35
|
+
if (loading.value || props.finished || props.error || (tabStatus == null ? void 0 : tabStatus.value) === false) {
|
45
36
|
return;
|
46
37
|
}
|
47
|
-
|
48
|
-
var {
|
38
|
+
const {
|
49
39
|
offset,
|
50
40
|
direction
|
51
41
|
} = props;
|
52
|
-
|
53
|
-
|
42
|
+
const scrollParentRect = useRect(scrollParent);
|
54
43
|
if (!scrollParentRect.height || isHidden(root)) {
|
55
44
|
return;
|
56
45
|
}
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
if (direction === 'up') {
|
46
|
+
let isReachEdge = false;
|
47
|
+
const placeholderRect = useRect(placeholder);
|
48
|
+
if (direction === "up") {
|
62
49
|
isReachEdge = scrollParentRect.top - placeholderRect.top <= offset;
|
63
50
|
} else {
|
64
51
|
isReachEdge = placeholderRect.bottom - scrollParentRect.bottom <= offset;
|
65
52
|
}
|
66
|
-
|
67
53
|
if (isReachEdge) {
|
68
54
|
loading.value = true;
|
69
|
-
emit(
|
70
|
-
emit(
|
55
|
+
emit("update:loading", true);
|
56
|
+
emit("load");
|
71
57
|
}
|
72
58
|
});
|
73
59
|
};
|
74
|
-
|
75
|
-
var renderFinishedText = () => {
|
60
|
+
const renderFinishedText = () => {
|
76
61
|
if (props.finished) {
|
77
|
-
|
78
|
-
|
62
|
+
const text = slots.finished ? slots.finished() : props.finishedText;
|
79
63
|
if (text) {
|
80
64
|
return _createVNode("div", {
|
81
|
-
"class": bem(
|
65
|
+
"class": bem("finished-text")
|
82
66
|
}, [text]);
|
83
67
|
}
|
84
68
|
}
|
85
69
|
};
|
86
|
-
|
87
|
-
|
88
|
-
emit('update:error', false);
|
70
|
+
const clickErrorText = () => {
|
71
|
+
emit("update:error", false);
|
89
72
|
check();
|
90
73
|
};
|
91
|
-
|
92
|
-
var renderErrorText = () => {
|
74
|
+
const renderErrorText = () => {
|
93
75
|
if (props.error) {
|
94
|
-
|
95
|
-
|
76
|
+
const text = slots.error ? slots.error() : props.errorText;
|
96
77
|
if (text) {
|
97
78
|
return _createVNode("div", {
|
98
79
|
"role": "button",
|
99
|
-
"class": bem(
|
80
|
+
"class": bem("error-text"),
|
100
81
|
"tabindex": 0,
|
101
82
|
"onClick": clickErrorText
|
102
83
|
}, [text]);
|
103
84
|
}
|
104
85
|
}
|
105
86
|
};
|
106
|
-
|
107
|
-
var renderLoading = () => {
|
87
|
+
const renderLoading = () => {
|
108
88
|
if (loading.value && !props.finished) {
|
109
89
|
return _createVNode("div", {
|
110
|
-
"class": bem(
|
90
|
+
"class": bem("loading")
|
111
91
|
}, [slots.loading ? slots.loading() : _createVNode(Loading, {
|
112
|
-
"class": bem(
|
92
|
+
"class": bem("loading-icon")
|
113
93
|
}, {
|
114
|
-
default: () => [props.loadingText || t(
|
94
|
+
default: () => [props.loadingText || t("loading")]
|
115
95
|
})]);
|
116
96
|
}
|
117
97
|
};
|
118
|
-
|
119
98
|
watch(() => [props.loading, props.finished, props.error], check);
|
120
|
-
|
121
99
|
if (tabStatus) {
|
122
|
-
watch(tabStatus, tabActive => {
|
100
|
+
watch(tabStatus, (tabActive) => {
|
123
101
|
if (tabActive) {
|
124
102
|
check();
|
125
103
|
}
|
126
104
|
});
|
127
105
|
}
|
128
|
-
|
129
106
|
onUpdated(() => {
|
130
107
|
loading.value = props.loading;
|
131
108
|
});
|
@@ -137,24 +114,25 @@ export default defineComponent({
|
|
137
114
|
useExpose({
|
138
115
|
check
|
139
116
|
});
|
140
|
-
useEventListener(
|
117
|
+
useEventListener("scroll", check, {
|
141
118
|
target: scrollParent
|
142
119
|
});
|
143
120
|
return () => {
|
144
|
-
var
|
145
|
-
|
146
|
-
|
121
|
+
var _a;
|
122
|
+
const Content = (_a = slots.default) == null ? void 0 : _a.call(slots);
|
123
|
+
const Placeholder = _createVNode("div", {
|
147
124
|
"ref": placeholder,
|
148
|
-
"class": bem(
|
125
|
+
"class": bem("placeholder")
|
149
126
|
}, null);
|
150
|
-
|
151
127
|
return _createVNode("div", {
|
152
128
|
"ref": root,
|
153
129
|
"role": "feed",
|
154
130
|
"class": bem(),
|
155
131
|
"aria-busy": loading.value
|
156
|
-
}, [props.direction ===
|
132
|
+
}, [props.direction === "down" ? Content : Placeholder, renderLoading(), renderFinishedText(), renderErrorText(), props.direction === "up" ? Content : Placeholder]);
|
157
133
|
};
|
158
134
|
}
|
159
|
-
|
160
|
-
|
135
|
+
});
|
136
|
+
export {
|
137
|
+
stdin_default as default
|
138
|
+
};
|
package/es/list/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
:root{--van-list-text-color:var(--van-text-color-2);--van-list-text-font-size:var(--van-font-size-md);--van-list-text-line-height:50px;--van-list-loading-icon-size:16px}.van-
|
1
|
+
:root{--van-list-text-color: var(--van-text-color-2);--van-list-text-font-size: var(--van-font-size-md);--van-list-text-line-height: 50px;--van-list-loading-icon-size: 16px}.van-list__loading,.van-list__finished-text,.van-list__error-text{color:var(--van-list-text-color);font-size:var(--van-list-text-font-size);line-height:var(--van-list-text-line-height);text-align:center}.van-list__placeholder{height:0;pointer-events:none}.van-list__loading-icon .van-loading__spinner{width:var(--van-list-loading-icon-size);height:var(--van-list-loading-icon-size)}
|
package/es/list/index.d.ts
CHANGED
@@ -18,28 +18,26 @@ export declare const List: import("../utils").WithInstall<import("vue").DefineCo
|
|
18
18
|
type: BooleanConstructor;
|
19
19
|
default: true;
|
20
20
|
};
|
21
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("load" | "update:error" | "update:loading")[], "load" | "update:error" | "update:loading", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
22
|
-
error
|
23
|
-
offset
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
finishedText?: string | undefined;
|
42
|
-
}> & {
|
21
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("load" | "update:error" | "update:loading")[], "load" | "update:error" | "update:loading", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
22
|
+
error: BooleanConstructor;
|
23
|
+
offset: {
|
24
|
+
type: (NumberConstructor | StringConstructor)[];
|
25
|
+
default: number;
|
26
|
+
};
|
27
|
+
loading: BooleanConstructor;
|
28
|
+
finished: BooleanConstructor;
|
29
|
+
errorText: StringConstructor;
|
30
|
+
direction: {
|
31
|
+
type: import("vue").PropType<import("./types").ListDirection>;
|
32
|
+
default: import("./types").ListDirection;
|
33
|
+
};
|
34
|
+
loadingText: StringConstructor;
|
35
|
+
finishedText: StringConstructor;
|
36
|
+
immediateCheck: {
|
37
|
+
type: BooleanConstructor;
|
38
|
+
default: true;
|
39
|
+
};
|
40
|
+
}>> & {
|
43
41
|
onLoad?: ((...args: any[]) => any) | undefined;
|
44
42
|
"onUpdate:error"?: ((...args: any[]) => any) | undefined;
|
45
43
|
"onUpdate:loading"?: ((...args: any[]) => any) | undefined;
|
@@ -54,3 +52,8 @@ export declare const List: import("../utils").WithInstall<import("vue").DefineCo
|
|
54
52
|
export default List;
|
55
53
|
export type { ListProps };
|
56
54
|
export type { ListInstance, ListDirection } from './types';
|
55
|
+
declare module 'vue' {
|
56
|
+
interface GlobalComponents {
|
57
|
+
VanList: typeof List;
|
58
|
+
}
|
59
|
+
}
|
package/es/list/index.js
CHANGED
@@ -1,4 +1,8 @@
|
|
1
|
-
import { withInstall } from
|
2
|
-
import _List from
|
3
|
-
|
4
|
-
|
1
|
+
import { withInstall } from "../utils";
|
2
|
+
import _List from "./List";
|
3
|
+
const List = withInstall(_List);
|
4
|
+
var stdin_default = List;
|
5
|
+
export {
|
6
|
+
List,
|
7
|
+
stdin_default as default
|
8
|
+
};
|
package/es/list/style/index.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
import
|
2
|
-
import
|
3
|
-
import
|
1
|
+
import "../../style/base.css";
|
2
|
+
import "../../loading/index.css";
|
3
|
+
import "../index.css";
|
package/es/list/style/less.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
import
|
2
|
-
import
|
3
|
-
import
|
1
|
+
import "../../style/base.less";
|
2
|
+
import "../../loading/index.less";
|
3
|
+
import "../index.less";
|
package/es/list/types.js
CHANGED
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|
package/es/loading/Loading.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ExtractPropTypes } from 'vue';
|
1
|
+
import { type ExtractPropTypes } from 'vue';
|
2
2
|
export declare type LoadingType = 'circular' | 'spinner';
|
3
3
|
declare const loadingProps: {
|
4
4
|
size: (NumberConstructor | StringConstructor)[];
|
@@ -22,22 +22,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
22
22
|
vertical: BooleanConstructor;
|
23
23
|
textSize: (NumberConstructor | StringConstructor)[];
|
24
24
|
textColor: StringConstructor;
|
25
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
26
|
-
size
|
27
|
-
type
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
}
|
36
|
-
color?: string | undefined;
|
37
|
-
size?: string | number | undefined;
|
38
|
-
textSize?: string | number | undefined;
|
39
|
-
textColor?: string | undefined;
|
40
|
-
}>, {
|
25
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
26
|
+
size: (NumberConstructor | StringConstructor)[];
|
27
|
+
type: {
|
28
|
+
type: import("vue").PropType<LoadingType>;
|
29
|
+
default: LoadingType;
|
30
|
+
};
|
31
|
+
color: StringConstructor;
|
32
|
+
vertical: BooleanConstructor;
|
33
|
+
textSize: (NumberConstructor | StringConstructor)[];
|
34
|
+
textColor: StringConstructor;
|
35
|
+
}>>, {
|
41
36
|
type: LoadingType;
|
42
37
|
vertical: boolean;
|
43
38
|
}>;
|
package/es/loading/Loading.js
CHANGED
@@ -1,13 +1,12 @@
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
2
|
-
import { computed, defineComponent } from
|
3
|
-
import { extend, addUnit, numericProp, getSizeStyle, makeStringProp, createNamespace } from
|
4
|
-
|
5
|
-
|
6
|
-
"class": bem(
|
2
|
+
import { computed, defineComponent } from "vue";
|
3
|
+
import { extend, addUnit, numericProp, getSizeStyle, makeStringProp, createNamespace } from "../utils";
|
4
|
+
const [name, bem] = createNamespace("loading");
|
5
|
+
const SpinIcon = Array(12).fill(null).map((_, index) => _createVNode("i", {
|
6
|
+
"class": bem("line", String(index + 1))
|
7
7
|
}, null));
|
8
|
-
|
9
|
-
|
10
|
-
"class": bem('circular'),
|
8
|
+
const CircularIcon = _createVNode("svg", {
|
9
|
+
"class": bem("circular"),
|
11
10
|
"viewBox": "25 25 50 50"
|
12
11
|
}, [_createVNode("circle", {
|
13
12
|
"cx": "50",
|
@@ -15,43 +14,37 @@ var CircularIcon = _createVNode("svg", {
|
|
15
14
|
"r": "20",
|
16
15
|
"fill": "none"
|
17
16
|
}, null)]);
|
18
|
-
|
19
|
-
var loadingProps = {
|
17
|
+
const loadingProps = {
|
20
18
|
size: numericProp,
|
21
|
-
type: makeStringProp(
|
19
|
+
type: makeStringProp("circular"),
|
22
20
|
color: String,
|
23
21
|
vertical: Boolean,
|
24
22
|
textSize: numericProp,
|
25
23
|
textColor: String
|
26
24
|
};
|
27
|
-
|
25
|
+
var stdin_default = defineComponent({
|
28
26
|
name,
|
29
27
|
props: loadingProps,
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
} = _ref;
|
35
|
-
var spinnerStyle = computed(() => extend({
|
28
|
+
setup(props, {
|
29
|
+
slots
|
30
|
+
}) {
|
31
|
+
const spinnerStyle = computed(() => extend({
|
36
32
|
color: props.color
|
37
33
|
}, getSizeStyle(props.size)));
|
38
|
-
|
39
|
-
|
34
|
+
const renderText = () => {
|
35
|
+
var _a;
|
40
36
|
if (slots.default) {
|
41
|
-
var _props$textColor;
|
42
|
-
|
43
37
|
return _createVNode("span", {
|
44
|
-
"class": bem(
|
38
|
+
"class": bem("text"),
|
45
39
|
"style": {
|
46
40
|
fontSize: addUnit(props.textSize),
|
47
|
-
color: (
|
41
|
+
color: (_a = props.textColor) != null ? _a : props.color
|
48
42
|
}
|
49
43
|
}, [slots.default()]);
|
50
44
|
}
|
51
45
|
};
|
52
|
-
|
53
46
|
return () => {
|
54
|
-
|
47
|
+
const {
|
55
48
|
type,
|
56
49
|
vertical
|
57
50
|
} = props;
|
@@ -60,10 +53,12 @@ export default defineComponent({
|
|
60
53
|
vertical
|
61
54
|
}])
|
62
55
|
}, [_createVNode("span", {
|
63
|
-
"class": bem(
|
56
|
+
"class": bem("spinner", type),
|
64
57
|
"style": spinnerStyle.value
|
65
|
-
}, [type ===
|
58
|
+
}, [type === "spinner" ? SpinIcon : CircularIcon]), renderText()]);
|
66
59
|
};
|
67
60
|
}
|
68
|
-
|
69
|
-
|
61
|
+
});
|
62
|
+
export {
|
63
|
+
stdin_default as default
|
64
|
+
};
|
package/es/loading/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
:root{--van-loading-text-color:var(--van-text-color-2);--van-loading-text-font-size:var(--van-font-size-md);--van-loading-spinner-color:var(--van-gray-5);--van-loading-spinner-size:30px;--van-loading-spinner-animation-duration:
|
1
|
+
:root{--van-loading-text-color: var(--van-text-color-2);--van-loading-text-font-size: var(--van-font-size-md);--van-loading-spinner-color: var(--van-gray-5);--van-loading-spinner-size: 30px;--van-loading-spinner-animation-duration: .8s}.van-loading{position:relative;color:var(--van-loading-spinner-color);font-size:0;vertical-align:middle}.van-loading__spinner{position:relative;display:inline-block;width:var(--van-loading-spinner-size);max-width:100%;height:var(--van-loading-spinner-size);max-height:100%;vertical-align:middle;animation:van-rotate var(--van-loading-spinner-animation-duration) linear infinite}.van-loading__spinner--spinner{animation-timing-function:steps(12)}.van-loading__spinner--circular{animation-duration:2s}.van-loading__line{position:absolute;top:0;left:0;width:100%;height:100%}.van-loading__line:before{display:block;width:2px;height:25%;margin:0 auto;background-color:currentColor;border-radius:40%;content:" "}.van-loading__circular{display:block;width:100%;height:100%}.van-loading__circular circle{animation:van-circular 1.5s ease-in-out infinite;stroke:currentColor;stroke-width:3;stroke-linecap:round}.van-loading__text{display:inline-block;margin-left:var(--van-padding-xs);color:var(--van-loading-text-color);font-size:var(--van-loading-text-font-size);vertical-align:middle}.van-loading--vertical{display:flex;flex-direction:column;align-items:center}.van-loading--vertical .van-loading__text{margin:var(--van-padding-xs) 0 0}@keyframes van-circular{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-40}to{stroke-dasharray:90,150;stroke-dashoffset:-120}}.van-loading__line--1{transform:rotate(30deg);opacity:1}.van-loading__line--2{transform:rotate(60deg);opacity:.9375}.van-loading__line--3{transform:rotate(90deg);opacity:.875}.van-loading__line--4{transform:rotate(120deg);opacity:.8125}.van-loading__line--5{transform:rotate(150deg);opacity:.75}.van-loading__line--6{transform:rotate(180deg);opacity:.6875}.van-loading__line--7{transform:rotate(210deg);opacity:.625}.van-loading__line--8{transform:rotate(240deg);opacity:.5625}.van-loading__line--9{transform:rotate(270deg);opacity:.5}.van-loading__line--10{transform:rotate(300deg);opacity:.4375}.van-loading__line--11{transform:rotate(330deg);opacity:.375}.van-loading__line--12{transform:rotate(360deg);opacity:.3125}
|
package/es/loading/index.d.ts
CHANGED
@@ -8,24 +8,24 @@ export declare const Loading: import("../utils").WithInstall<import("vue").Defin
|
|
8
8
|
vertical: BooleanConstructor;
|
9
9
|
textSize: (NumberConstructor | StringConstructor)[];
|
10
10
|
textColor: StringConstructor;
|
11
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
12
|
-
size
|
13
|
-
type
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
}
|
22
|
-
color?: string | undefined;
|
23
|
-
size?: string | number | undefined;
|
24
|
-
textSize?: string | number | undefined;
|
25
|
-
textColor?: string | undefined;
|
26
|
-
}>, {
|
11
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
12
|
+
size: (NumberConstructor | StringConstructor)[];
|
13
|
+
type: {
|
14
|
+
type: import("vue").PropType<import("./Loading").LoadingType>;
|
15
|
+
default: import("./Loading").LoadingType;
|
16
|
+
};
|
17
|
+
color: StringConstructor;
|
18
|
+
vertical: BooleanConstructor;
|
19
|
+
textSize: (NumberConstructor | StringConstructor)[];
|
20
|
+
textColor: StringConstructor;
|
21
|
+
}>>, {
|
27
22
|
type: import("./Loading").LoadingType;
|
28
23
|
vertical: boolean;
|
29
24
|
}>>;
|
30
25
|
export default Loading;
|
31
26
|
export type { LoadingType, LoadingProps } from './Loading';
|
27
|
+
declare module 'vue' {
|
28
|
+
interface GlobalComponents {
|
29
|
+
VanLoading: typeof Loading;
|
30
|
+
}
|
31
|
+
}
|
package/es/loading/index.js
CHANGED
@@ -1,4 +1,8 @@
|
|
1
|
-
import { withInstall } from
|
2
|
-
import _Loading from
|
3
|
-
|
4
|
-
|
1
|
+
import { withInstall } from "../utils";
|
2
|
+
import _Loading from "./Loading";
|
3
|
+
const Loading = withInstall(_Loading);
|
4
|
+
var stdin_default = Loading;
|
5
|
+
export {
|
6
|
+
Loading,
|
7
|
+
stdin_default as default
|
8
|
+
};
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import
|
2
|
-
import
|
1
|
+
import "../../style/base.css";
|
2
|
+
import "../index.css";
|
package/es/loading/style/less.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
import
|
2
|
-
import
|
1
|
+
import "../../style/base.less";
|
2
|
+
import "../index.less";
|
package/es/locale/index.js
CHANGED
@@ -1,29 +1,24 @@
|
|
1
|
-
import { ref, reactive } from
|
2
|
-
import { deepAssign } from
|
3
|
-
import defaultMessages from
|
4
|
-
|
5
|
-
|
6
|
-
|
1
|
+
import { ref, reactive } from "vue";
|
2
|
+
import { deepAssign } from "../utils/deep-assign";
|
3
|
+
import defaultMessages from "./lang/zh-CN";
|
4
|
+
const lang = ref("zh-CN");
|
5
|
+
const messages = reactive({
|
6
|
+
"zh-CN": defaultMessages
|
7
7
|
});
|
8
|
-
|
8
|
+
const Locale = {
|
9
9
|
messages() {
|
10
10
|
return messages[lang.value];
|
11
11
|
},
|
12
|
-
|
13
12
|
use(newLang, newMessages) {
|
14
13
|
lang.value = newLang;
|
15
|
-
this.add({
|
16
|
-
[newLang]: newMessages
|
17
|
-
});
|
14
|
+
this.add({ [newLang]: newMessages });
|
18
15
|
},
|
19
|
-
|
20
|
-
add(newMessages) {
|
21
|
-
if (newMessages === void 0) {
|
22
|
-
newMessages = {};
|
23
|
-
}
|
24
|
-
|
16
|
+
add(newMessages = {}) {
|
25
17
|
deepAssign(messages, newMessages);
|
26
18
|
}
|
27
|
-
|
28
19
|
};
|
29
|
-
|
20
|
+
var stdin_default = Locale;
|
21
|
+
export {
|
22
|
+
Locale,
|
23
|
+
stdin_default as default
|
24
|
+
};
|
@@ -8,12 +8,12 @@ declare const _default: {
|
|
8
8
|
loading: string;
|
9
9
|
noCoupon: string;
|
10
10
|
nameEmpty: string;
|
11
|
+
addContact: string;
|
11
12
|
telInvalid: string;
|
12
13
|
vanCalendar: {
|
13
14
|
end: string;
|
14
15
|
start: string;
|
15
16
|
title: string;
|
16
|
-
startEnd: string;
|
17
17
|
weekdays: string[];
|
18
18
|
monthTitle: (year: number, month: number) => string;
|
19
19
|
rangePrompt: (maxRange: number) => string;
|
@@ -21,12 +21,6 @@ declare const _default: {
|
|
21
21
|
vanCascader: {
|
22
22
|
select: string;
|
23
23
|
};
|
24
|
-
vanContactCard: {
|
25
|
-
addText: string;
|
26
|
-
};
|
27
|
-
vanContactList: {
|
28
|
-
addText: string;
|
29
|
-
};
|
30
24
|
vanPagination: {
|
31
25
|
prev: string;
|
32
26
|
next: string;
|
@@ -60,12 +54,9 @@ declare const _default: {
|
|
60
54
|
areaEmpty: string;
|
61
55
|
addressEmpty: string;
|
62
56
|
postalEmpty: string;
|
57
|
+
addressDetail: string;
|
63
58
|
defaultAddress: string;
|
64
59
|
};
|
65
|
-
vanAddressEditDetail: {
|
66
|
-
label: string;
|
67
|
-
placeholder: string;
|
68
|
-
};
|
69
60
|
vanAddressList: {
|
70
61
|
add: string;
|
71
62
|
};
|