vant 3.4.0 → 3.4.4
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 +6 -5
- package/es/action-bar/ActionBar.js +24 -20
- package/es/action-bar/index.css +1 -1
- package/es/action-bar/index.d.ts +6 -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 +11 -21
- 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 +11 -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 +16 -84
- package/es/action-bar-icon/ActionBarIcon.js +23 -29
- package/es/action-bar-icon/index.css +1 -1
- package/es/action-bar-icon/index.d.ts +14 -64
- 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 +54 -47
- package/es/action-sheet/ActionSheet.js +47 -61
- package/es/action-sheet/index.css +1 -1
- package/es/action-sheet/index.d.ts +54 -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 +48 -48
- package/es/address-edit/AddressEdit.js +186 -219
- package/es/address-edit/AddressEditDetail.d.ts +10 -20
- package/es/address-edit/AddressEditDetail.js +32 -43
- package/es/address-edit/index.css +1 -1
- package/es/address-edit/index.d.ts +48 -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 +18 -18
- package/es/address-list/AddressList.js +38 -49
- package/es/address-list/AddressListItem.d.ts +9 -12
- package/es/address-list/AddressListItem.js +39 -49
- package/es/address-list/index.css +1 -1
- package/es/address-list/index.d.ts +18 -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 +41 -33
- package/es/area/Area.js +102 -162
- package/es/area/index.d.ts +41 -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 +19 -20
- package/es/badge/Badge.js +33 -47
- package/es/badge/index.css +1 -1
- package/es/badge/index.d.ts +19 -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 +39 -47
- package/es/button/Button.js +43 -63
- package/es/button/index.css +1 -1
- package/es/button/index.d.ts +39 -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 +85 -62
- package/es/calendar/Calendar.js +129 -222
- package/es/calendar/CalendarDay.d.ts +13 -14
- 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 +25 -32
- package/es/calendar/CalendarMonth.js +97 -140
- package/es/calendar/index.css +1 -1
- package/es/calendar/index.d.ts +85 -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 +16 -26
- package/es/card/Card.js +53 -72
- package/es/card/index.css +1 -1
- package/es/card/index.d.ts +16 -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 +36 -22
- package/es/cascader/Cascader.js +86 -119
- package/es/cascader/index.css +1 -1
- package/es/cascader/index.d.ts +32 -22
- package/es/cascader/index.js +8 -4
- 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 +27 -41
- package/es/cell/Cell.js +42 -59
- package/es/cell/index.css +1 -1
- package/es/cell/index.d.ts +27 -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 +8 -10
- package/es/cell-group/CellGroup.js +25 -26
- package/es/cell-group/index.css +1 -1
- package/es/cell-group/index.d.ts +8 -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 +17 -21
- package/es/checkbox/Checkbox.js +35 -53
- package/es/checkbox/Checker.d.ts +24 -29
- package/es/checkbox/Checker.js +37 -45
- package/es/checkbox/index.css +1 -1
- package/es/checkbox/index.d.ts +17 -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 +11 -16
- package/es/checkbox-group/CheckboxGroup.js +32 -41
- package/es/checkbox-group/index.css +1 -1
- package/es/checkbox-group/index.d.ts +11 -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 +35 -28
- package/es/circle/Circle.js +60 -76
- package/es/circle/index.css +1 -1
- package/es/circle/index.d.ts +35 -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 +11 -10
- package/es/col/Col.js +27 -26
- package/es/col/index.css +1 -1
- package/es/col/index.d.ts +11 -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 +11 -9
- package/es/collapse/Collapse.js +39 -46
- package/es/collapse/index.d.ts +11 -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 +31 -41
- package/es/collapse-item/CollapseItem.js +57 -81
- package/es/collapse-item/index.css +1 -1
- package/es/collapse-item/index.d.ts +31 -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 +10 -10
- package/es/composables/use-route.js +19 -17
- package/es/composables/use-tab-status.js +7 -4
- package/es/composables/use-touch.js +25 -35
- package/es/composables/use-visibility-change.js +12 -18
- package/es/config-provider/ConfigProvider.d.ts +8 -10
- package/es/config-provider/ConfigProvider.js +23 -21
- package/es/config-provider/index.d.ts +8 -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 +13 -14
- package/es/contact-card/ContactCard.js +24 -28
- package/es/contact-card/index.css +1 -1
- package/es/contact-card/index.d.ts +13 -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 +15 -18
- package/es/contact-edit/ContactEdit.js +48 -56
- package/es/contact-edit/index.css +1 -1
- package/es/contact-edit/index.d.ts +15 -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 +6 -11
- package/es/contact-list/ContactList.js +41 -51
- package/es/contact-list/index.css +1 -1
- package/es/contact-list/index.d.ts +6 -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 +15 -11
- package/es/count-down/CountDown.js +23 -28
- package/es/count-down/index.css +1 -1
- package/es/count-down/index.d.ts +15 -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 +12 -11
- package/es/coupon/Coupon.js +35 -38
- package/es/coupon/index.css +1 -1
- package/es/coupon/index.d.ts +12 -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 +23 -16
- package/es/coupon-cell/CouponCell.js +23 -32
- package/es/coupon-cell/index.css +1 -1
- package/es/coupon-cell/index.d.ts +23 -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 +53 -40
- package/es/coupon-list/CouponList.js +101 -112
- package/es/coupon-list/index.css +1 -1
- package/es/coupon-list/index.d.ts +53 -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.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.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.js +30 -20
- package/es/dialog/Dialog.d.ts +52 -59
- 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.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 +11 -9
- package/es/divider/Divider.js +24 -21
- package/es/divider/index.css +1 -1
- package/es/divider/index.d.ts +11 -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 +15 -18
- package/es/dropdown-item/DropdownItem.js +62 -94
- package/es/dropdown-item/index.css +1 -1
- package/es/dropdown-item/index.d.ts +15 -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 +24 -18
- package/es/dropdown-menu/DropdownMenu.js +55 -61
- package/es/dropdown-menu/index.css +1 -1
- package/es/dropdown-menu/index.d.ts +24 -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 +8 -10
- 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 +8 -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 +80 -90
- package/es/field/Field.js +154 -243
- package/es/field/index.css +1 -1
- package/es/field/index.d.ts +80 -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.js +0 -1
- package/es/field/utils.js +52 -70
- package/es/form/Form.d.ts +24 -30
- package/es/form/Form.js +55 -74
- package/es/form/index.d.ts +24 -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 +20 -22
- package/es/grid/Grid.js +28 -24
- package/es/grid/index.css +1 -1
- package/es/grid/index.d.ts +20 -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 +15 -82
- package/es/grid-item/GridItem.js +40 -57
- package/es/grid-item/index.css +1 -1
- package/es/grid-item/index.d.ts +13 -62
- 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 +16 -79
- package/es/icon/Icon.js +29 -28
- package/es/icon/index.css +1 -1
- package/es/icon/index.d.ts +14 -59
- 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 +32 -32
- package/es/image/Image.js +71 -81
- package/es/image/index.css +1 -1
- package/es/image/index.d.ts +30 -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 +54 -42
- package/es/image-preview/ImagePreview.js +51 -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 +54 -42
- package/es/image-preview/function-call.js +23 -36
- package/es/image-preview/index.css +1 -1
- 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.js +0 -1
- package/es/index-anchor/IndexAnchor.d.ts +3 -5
- package/es/index-anchor/IndexAnchor.js +31 -42
- package/es/index-anchor/index.css +1 -1
- package/es/index-anchor/index.d.ts +3 -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 +17 -16
- package/es/index-bar/IndexBar.js +75 -98
- package/es/index-bar/index.css +1 -1
- package/es/index-bar/index.d.ts +17 -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 +20 -22
- package/es/list/List.js +52 -74
- package/es/list/index.css +1 -1
- package/es/list/index.d.ts +20 -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 +11 -16
- package/es/loading/Loading.js +25 -30
- package/es/loading/index.css +1 -1
- package/es/loading/index.d.ts +11 -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 +14 -22
- package/es/nav-bar/NavBar.js +35 -47
- package/es/nav-bar/index.css +1 -1
- package/es/nav-bar/index.d.ts +14 -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 +20 -22
- package/es/notice-bar/NoticeBar.js +62 -85
- package/es/notice-bar/index.css +1 -1
- package/es/notice-bar/index.d.ts +20 -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 +39 -39
- package/es/notify/Notify.js +19 -21
- package/es/notify/function-call.d.ts +39 -39
- package/es/notify/function-call.js +23 -37
- package/es/notify/index.css +1 -1
- 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.js +0 -1
- package/es/number-keyboard/NumberKeyboard.d.ts +46 -38
- package/es/number-keyboard/NumberKeyboard.js +81 -114
- package/es/number-keyboard/NumberKeyboardKey.d.ts +8 -16
- package/es/number-keyboard/NumberKeyboardKey.js +32 -48
- package/es/number-keyboard/index.css +1 -1
- package/es/number-keyboard/index.d.ts +46 -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 +24 -16
- package/es/overlay/Overlay.js +22 -24
- package/es/overlay/index.css +1 -1
- package/es/overlay/index.d.ts +20 -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 +29 -22
- package/es/pagination/Pagination.js +62 -84
- package/es/pagination/index.css +1 -1
- package/es/pagination/index.d.ts +29 -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 +18 -18
- package/es/password-input/PasswordInput.js +30 -37
- package/es/password-input/index.css +1 -1
- package/es/password-input/index.d.ts +18 -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 +38 -33
- package/es/picker/Picker.js +126 -196
- 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 +38 -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 +48 -36
- package/es/popover/Popover.js +71 -87
- package/es/popover/index.css +1 -1
- package/es/popover/index.d.ts +48 -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 +44 -45
- package/es/popup/Popup.js +67 -88
- package/es/popup/index.css +1 -1
- package/es/popup/index.d.ts +44 -45
- package/es/popup/index.js +8 -4
- package/es/popup/index.less +0 -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.js +0 -1
- package/es/progress/Progress.d.ts +18 -22
- package/es/progress/Progress.js +23 -25
- package/es/progress/index.css +1 -1
- package/es/progress/index.d.ts +18 -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 +21 -24
- package/es/pull-refresh/PullRefresh.js +66 -96
- package/es/pull-refresh/index.css +1 -1
- package/es/pull-refresh/index.d.ts +21 -24
- package/es/pull-refresh/index.js +8 -4
- package/es/pull-refresh/style/index.js +3 -3
- package/es/pull-refresh/style/less.js +3 -3
- package/es/radio/Radio.d.ts +13 -20
- package/es/radio/Radio.js +23 -29
- package/es/radio/index.css +1 -1
- package/es/radio/index.d.ts +13 -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 +7 -14
- package/es/radio-group/RadioGroup.js +27 -25
- package/es/radio-group/index.css +1 -1
- package/es/radio-group/index.d.ts +7 -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 +31 -32
- package/es/rate/Rate.js +53 -77
- package/es/rate/index.css +1 -1
- package/es/rate/index.d.ts +31 -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 +16 -14
- package/es/row/Row.js +41 -40
- package/es/row/index.css +1 -1
- package/es/row/index.d.ts +16 -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 +58 -51
- package/es/search/Search.js +67 -89
- package/es/search/index.css +1 -1
- package/es/search/index.d.ts +58 -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 +45 -41
- package/es/share-sheet/ShareSheet.js +46 -65
- package/es/share-sheet/index.css +1 -1
- package/es/share-sheet/index.d.ts +45 -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 +6 -5
- package/es/sidebar/Sidebar.js +29 -28
- package/es/sidebar/index.css +1 -1
- package/es/sidebar/index.d.ts +6 -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 +13 -78
- package/es/sidebar-item/SidebarItem.js +28 -36
- package/es/sidebar-item/index.css +1 -1
- package/es/sidebar-item/index.d.ts +11 -58
- 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 +27 -24
- package/es/skeleton/Skeleton.js +26 -34
- package/es/skeleton/index.css +1 -1
- package/es/skeleton/index.d.ts +27 -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 +27 -30
- package/es/slider/Slider.js +99 -158
- package/es/slider/index.css +1 -1
- package/es/slider/index.d.ts +27 -30
- 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 +1 -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 +51 -48
- package/es/stepper/Stepper.js +82 -123
- package/es/stepper/index.css +1 -1
- package/es/stepper/index.d.ts +51 -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 +19 -20
- package/es/steps/Steps.js +29 -27
- package/es/steps/index.css +1 -1
- package/es/steps/index.d.ts +19 -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 +16 -14
- package/es/sticky/Sticky.js +58 -73
- package/es/sticky/index.css +1 -1
- package/es/sticky/index.d.ts +16 -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 +28 -32
- package/es/submit-bar/SubmitBar.js +48 -53
- package/es/submit-bar/index.css +1 -1
- package/es/submit-bar/index.d.ts +28 -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 +35 -28
- package/es/swipe/Swipe.js +117 -184
- package/es/swipe/index.css +1 -1
- package/es/swipe/index.d.ts +35 -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 +11 -16
- package/es/swipe-cell/SwipeCell.js +60 -89
- package/es/swipe-cell/index.css +1 -1
- package/es/swipe-cell/index.d.ts +11 -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 +1 -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 +16 -20
- package/es/switch/Switch.js +28 -32
- package/es/switch/index.css +1 -1
- package/es/switch/index.d.ts +16 -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 +16 -25
- package/es/tab/Tab.js +44 -56
- package/es/tab/index.css +1 -1
- package/es/tab/index.d.ts +16 -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 +24 -24
- package/es/tabbar/Tabbar.js +32 -40
- package/es/tabbar/index.css +1 -1
- package/es/tabbar/index.d.ts +24 -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 +14 -80
- package/es/tabbar-item/TabbarItem.js +49 -63
- package/es/tabbar-item/index.css +1 -1
- package/es/tabbar-item/index.d.ts +12 -60
- 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 +43 -44
- package/es/tabs/Tabs.js +137 -197
- package/es/tabs/TabsContent.d.ts +18 -17
- package/es/tabs/TabsContent.js +24 -30
- package/es/tabs/TabsTitle.d.ts +19 -32
- package/es/tabs/TabsTitle.js +28 -37
- package/es/tabs/index.css +1 -1
- package/es/tabs/index.d.ts +43 -44
- package/es/tabs/index.js +8 -4
- 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 +17 -22
- package/es/tag/Tag.js +27 -34
- package/es/tag/index.css +1 -1
- package/es/tag/index.d.ts +17 -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 +31 -38
- package/es/toast/Toast.js +41 -56
- 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 +26 -15
- package/es/tree-select/TreeSelect.js +39 -53
- package/es/tree-select/index.css +1 -1
- package/es/tree-select/index.d.ts +26 -15
- package/es/tree-select/index.js +8 -4
- package/es/tree-select/style/index.js +6 -6
- package/es/tree-select/style/less.js +6 -6
- package/es/uploader/Uploader.d.ts +61 -50
- package/es/uploader/Uploader.js +87 -134
- package/es/uploader/UploaderPreviewItem.d.ts +13 -20
- package/es/uploader/UploaderPreviewItem.js +47 -60
- package/es/uploader/index.css +1 -1
- package/es/uploader/index.d.ts +61 -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 +6 -5
- package/lib/action-bar/ActionBar.js +49 -33
- package/lib/action-bar/index.css +1 -1
- package/lib/action-bar/index.d.ts +6 -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 +11 -21
- 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 +11 -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 +16 -84
- package/lib/action-bar-icon/ActionBarIcon.js +51 -48
- package/lib/action-bar-icon/index.css +1 -1
- package/lib/action-bar-icon/index.d.ts +14 -64
- 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 +54 -47
- package/lib/action-sheet/ActionSheet.js +86 -90
- package/lib/action-sheet/index.css +1 -1
- package/lib/action-sheet/index.d.ts +54 -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 +48 -48
- package/lib/address-edit/AddressEdit.js +223 -253
- package/lib/address-edit/AddressEditDetail.d.ts +10 -20
- package/lib/address-edit/AddressEditDetail.js +58 -56
- package/lib/address-edit/index.css +1 -1
- package/lib/address-edit/index.d.ts +48 -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 +18 -18
- package/lib/address-list/AddressList.js +67 -67
- package/lib/address-list/AddressListItem.d.ts +9 -12
- package/lib/address-list/AddressListItem.js +66 -66
- package/lib/address-list/index.css +1 -1
- package/lib/address-list/index.d.ts +18 -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 +41 -33
- package/lib/area/Area.js +132 -181
- package/lib/area/index.d.ts +41 -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 +19 -20
- package/lib/badge/Badge.js +62 -62
- package/lib/badge/index.css +1 -1
- package/lib/badge/index.d.ts +19 -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 +39 -47
- package/lib/button/Button.js +75 -83
- package/lib/button/index.css +1 -1
- package/lib/button/index.d.ts +39 -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 +85 -62
- package/lib/calendar/Calendar.js +188 -277
- package/lib/calendar/CalendarDay.d.ts +13 -14
- 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 +25 -32
- package/lib/calendar/CalendarMonth.js +130 -166
- package/lib/calendar/index.css +1 -1
- package/lib/calendar/index.d.ts +85 -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 +16 -26
- package/lib/card/Card.js +91 -92
- package/lib/card/index.css +1 -1
- package/lib/card/index.d.ts +16 -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 +36 -22
- package/lib/cascader/Cascader.js +124 -145
- package/lib/cascader/index.css +1 -1
- package/lib/cascader/index.d.ts +32 -22
- package/lib/cascader/index.js +31 -15
- 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 +27 -41
- package/lib/cell/Cell.js +81 -87
- package/lib/cell/index.css +1 -1
- package/lib/cell/index.d.ts +27 -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 +8 -10
- package/lib/cell-group/CellGroup.js +50 -37
- package/lib/cell-group/index.css +1 -1
- package/lib/cell-group/index.d.ts +8 -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 +17 -21
- package/lib/checkbox/Checkbox.js +62 -73
- package/lib/checkbox/Checker.d.ts +24 -29
- package/lib/checkbox/Checker.js +71 -67
- package/lib/checkbox/index.css +1 -1
- package/lib/checkbox/index.d.ts +17 -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 +11 -16
- package/lib/checkbox-group/CheckboxGroup.js +61 -58
- package/lib/checkbox-group/index.css +1 -1
- package/lib/checkbox-group/index.d.ts +11 -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 +35 -28
- package/lib/circle/Circle.js +100 -103
- package/lib/circle/index.css +1 -1
- package/lib/circle/index.d.ts +35 -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 +11 -10
- package/lib/col/Col.js +54 -41
- package/lib/col/index.css +1 -1
- package/lib/col/index.d.ts +11 -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 +11 -9
- package/lib/collapse/Collapse.js +64 -58
- package/lib/collapse/index.d.ts +11 -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 +31 -41
- package/lib/collapse-item/CollapseItem.js +88 -104
- package/lib/collapse-item/index.css +1 -1
- package/lib/collapse-item/index.d.ts +31 -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 +33 -16
- package/lib/composables/use-route.js +39 -27
- package/lib/composables/use-tab-status.js +30 -14
- package/lib/composables/use-touch.js +47 -39
- package/lib/composables/use-visibility-change.js +38 -29
- package/lib/config-provider/ConfigProvider.d.ts +8 -10
- package/lib/config-provider/ConfigProvider.js +48 -32
- package/lib/config-provider/index.d.ts +8 -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 +13 -14
- package/lib/contact-card/ContactCard.js +48 -39
- package/lib/contact-card/index.css +1 -1
- package/lib/contact-card/index.d.ts +13 -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 +15 -18
- package/lib/contact-edit/ContactEdit.js +79 -78
- package/lib/contact-edit/index.css +1 -1
- package/lib/contact-edit/index.d.ts +15 -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 +6 -11
- package/lib/contact-list/ContactList.js +70 -72
- package/lib/contact-list/index.css +1 -1
- package/lib/contact-list/index.d.ts +6 -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 +15 -11
- package/lib/count-down/CountDown.js +52 -46
- package/lib/count-down/index.css +1 -1
- package/lib/count-down/index.d.ts +15 -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 +12 -11
- package/lib/coupon/Coupon.js +69 -60
- package/lib/coupon/index.css +1 -1
- package/lib/coupon/index.d.ts +12 -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 +23 -16
- package/lib/coupon-cell/CouponCell.js +53 -47
- package/lib/coupon-cell/index.css +1 -1
- package/lib/coupon-cell/index.d.ts +23 -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 +53 -40
- package/lib/coupon-list/CouponList.js +149 -153
- package/lib/coupon-list/index.css +1 -1
- package/lib/coupon-list/index.d.ts +53 -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.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.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.js +50 -37
- package/lib/dialog/Dialog.d.ts +52 -59
- 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.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 +11 -9
- package/lib/divider/Divider.js +48 -31
- package/lib/divider/index.css +1 -1
- package/lib/divider/index.d.ts +11 -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 +15 -18
- package/lib/dropdown-item/DropdownItem.js +96 -119
- package/lib/dropdown-item/index.css +1 -1
- package/lib/dropdown-item/index.d.ts +15 -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 +24 -18
- package/lib/dropdown-menu/DropdownMenu.js +91 -85
- package/lib/dropdown-menu/index.css +1 -1
- package/lib/dropdown-menu/index.d.ts +24 -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 +8 -10
- 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 +8 -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 +80 -90
- package/lib/field/Field.js +220 -302
- package/lib/field/index.css +1 -1
- package/lib/field/index.d.ts +80 -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.js +3 -3
- package/lib/field/utils.js +66 -88
- package/lib/form/Form.d.ts +24 -30
- package/lib/form/Form.js +84 -90
- package/lib/form/index.d.ts +24 -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 +20 -22
- package/lib/grid/Grid.js +57 -42
- package/lib/grid/index.css +1 -1
- package/lib/grid/index.d.ts +20 -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 +15 -82
- package/lib/grid-item/GridItem.js +70 -78
- package/lib/grid-item/index.css +1 -1
- package/lib/grid-item/index.d.ts +13 -62
- 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 +16 -79
- package/lib/icon/Icon.js +56 -43
- package/lib/icon/index.css +1 -1
- package/lib/icon/index.d.ts +14 -59
- 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 +32 -32
- package/lib/image/Image.js +113 -110
- package/lib/image/index.css +1 -1
- package/lib/image/index.d.ts +30 -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 +54 -42
- package/lib/image-preview/ImagePreview.js +95 -106
- 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 +54 -42
- package/lib/image-preview/function-call.js +54 -54
- package/lib/image-preview/index.css +1 -1
- 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.js +3 -3
- package/lib/index-anchor/IndexAnchor.d.ts +3 -5
- package/lib/index-anchor/IndexAnchor.js +63 -64
- package/lib/index-anchor/index.css +1 -1
- package/lib/index-anchor/index.d.ts +3 -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 +17 -16
- package/lib/index-bar/IndexBar.js +110 -122
- package/lib/index-bar/index.css +1 -1
- package/lib/index-bar/index.d.ts +17 -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 +20 -22
- package/lib/list/List.js +88 -97
- package/lib/list/index.css +1 -1
- package/lib/list/index.d.ts +20 -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 +11 -16
- package/lib/loading/Loading.js +56 -45
- package/lib/loading/index.css +1 -1
- package/lib/loading/index.d.ts +11 -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 +14 -22
- package/lib/nav-bar/NavBar.js +69 -69
- package/lib/nav-bar/index.css +1 -1
- package/lib/nav-bar/index.d.ts +14 -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 +20 -22
- package/lib/notice-bar/NoticeBar.js +99 -111
- package/lib/notice-bar/index.css +1 -1
- package/lib/notice-bar/index.d.ts +20 -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 +39 -39
- package/lib/notify/Notify.js +45 -35
- package/lib/notify/function-call.d.ts +39 -39
- package/lib/notify/function-call.js +55 -55
- package/lib/notify/index.css +1 -1
- 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.js +3 -3
- package/lib/number-keyboard/NumberKeyboard.d.ts +46 -38
- package/lib/number-keyboard/NumberKeyboard.js +126 -148
- package/lib/number-keyboard/NumberKeyboardKey.d.ts +8 -16
- package/lib/number-keyboard/NumberKeyboardKey.js +62 -63
- package/lib/number-keyboard/index.css +1 -1
- package/lib/number-keyboard/index.d.ts +46 -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 +24 -16
- package/lib/overlay/Overlay.js +53 -42
- package/lib/overlay/index.css +1 -1
- package/lib/overlay/index.d.ts +20 -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 +29 -22
- package/lib/pagination/Pagination.js +102 -110
- package/lib/pagination/index.css +1 -1
- package/lib/pagination/index.d.ts +29 -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 +18 -18
- package/lib/password-input/PasswordInput.js +65 -58
- package/lib/password-input/index.css +1 -1
- package/lib/password-input/index.d.ts +18 -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 +38 -33
- package/lib/picker/Picker.js +167 -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 +38 -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 +48 -36
- package/lib/popover/Popover.js +111 -116
- package/lib/popover/index.css +1 -1
- package/lib/popover/index.d.ts +48 -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 +44 -45
- package/lib/popup/Popup.js +103 -117
- package/lib/popup/index.css +1 -1
- package/lib/popup/index.d.ts +44 -45
- package/lib/popup/index.js +31 -15
- package/lib/popup/index.less +0 -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.js +3 -3
- package/lib/progress/Progress.d.ts +18 -22
- package/lib/progress/Progress.js +53 -41
- package/lib/progress/index.css +1 -1
- package/lib/progress/index.d.ts +18 -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 +21 -24
- package/lib/pull-refresh/PullRefresh.js +99 -118
- package/lib/pull-refresh/index.css +1 -1
- package/lib/pull-refresh/index.d.ts +21 -24
- package/lib/pull-refresh/index.js +31 -15
- package/lib/pull-refresh/style/index.js +3 -7
- package/lib/pull-refresh/style/less.js +3 -7
- package/lib/radio/Radio.d.ts +13 -20
- package/lib/radio/Radio.js +48 -47
- package/lib/radio/index.css +1 -1
- package/lib/radio/index.d.ts +13 -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 +7 -14
- package/lib/radio-group/RadioGroup.js +54 -40
- package/lib/radio-group/index.css +1 -1
- package/lib/radio-group/index.d.ts +7 -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 +31 -32
- package/lib/rate/Rate.js +88 -102
- package/lib/rate/index.css +1 -1
- package/lib/rate/index.d.ts +31 -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 +16 -14
- package/lib/row/Row.js +68 -55
- package/lib/row/index.css +1 -1
- package/lib/row/index.d.ts +16 -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 +58 -51
- package/lib/search/Search.js +95 -106
- package/lib/search/index.css +1 -1
- package/lib/search/index.d.ts +58 -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 +45 -41
- package/lib/share-sheet/ShareSheet.js +81 -88
- package/lib/share-sheet/index.css +1 -1
- package/lib/share-sheet/index.d.ts +45 -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 +6 -5
- package/lib/sidebar/Sidebar.js +54 -41
- package/lib/sidebar/index.css +1 -1
- package/lib/sidebar/index.d.ts +6 -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 +13 -78
- package/lib/sidebar-item/SidebarItem.js +55 -53
- package/lib/sidebar-item/index.css +1 -1
- package/lib/sidebar-item/index.d.ts +11 -58
- 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 +27 -24
- package/lib/skeleton/Skeleton.js +61 -55
- package/lib/skeleton/index.css +1 -1
- package/lib/skeleton/index.d.ts +27 -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 +27 -30
- package/lib/slider/Slider.js +138 -185
- package/lib/slider/index.css +1 -1
- package/lib/slider/index.d.ts +27 -30
- 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 +1 -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 +51 -48
- package/lib/stepper/Stepper.js +134 -162
- package/lib/stepper/index.css +1 -1
- package/lib/stepper/index.d.ts +51 -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 +19 -20
- package/lib/steps/Steps.js +54 -40
- package/lib/steps/index.css +1 -1
- package/lib/steps/index.d.ts +19 -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 +16 -14
- package/lib/sticky/Sticky.js +86 -89
- package/lib/sticky/index.css +1 -1
- package/lib/sticky/index.d.ts +16 -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 +28 -32
- package/lib/submit-bar/SubmitBar.js +80 -73
- package/lib/submit-bar/index.css +1 -1
- package/lib/submit-bar/index.d.ts +28 -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 +35 -28
- package/lib/swipe/Swipe.js +172 -229
- package/lib/swipe/index.css +1 -1
- package/lib/swipe/index.d.ts +35 -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 +11 -16
- package/lib/swipe-cell/SwipeCell.js +92 -109
- package/lib/swipe-cell/index.css +1 -1
- package/lib/swipe-cell/index.d.ts +11 -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 +1 -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 +16 -20
- package/lib/switch/Switch.js +60 -52
- package/lib/switch/index.css +1 -1
- package/lib/switch/index.d.ts +16 -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 +16 -25
- package/lib/tab/Tab.js +79 -84
- package/lib/tab/index.css +1 -1
- package/lib/tab/index.d.ts +16 -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 +24 -24
- package/lib/tabbar/Tabbar.js +64 -61
- package/lib/tabbar/index.css +1 -1
- package/lib/tabbar/index.d.ts +24 -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 +14 -80
- package/lib/tabbar-item/TabbarItem.js +78 -83
- package/lib/tabbar-item/index.css +1 -1
- package/lib/tabbar-item/index.d.ts +12 -60
- 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 +43 -44
- package/lib/tabs/Tabs.js +194 -252
- package/lib/tabs/TabsContent.d.ts +18 -17
- package/lib/tabs/TabsContent.js +54 -47
- package/lib/tabs/TabsTitle.d.ts +19 -32
- package/lib/tabs/TabsTitle.js +55 -51
- package/lib/tabs/index.css +1 -1
- package/lib/tabs/index.d.ts +43 -44
- package/lib/tabs/index.js +31 -15
- 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 +17 -22
- package/lib/tag/Tag.js +53 -46
- package/lib/tag/index.css +1 -1
- package/lib/tag/index.d.ts +17 -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 +31 -38
- package/lib/toast/Toast.js +78 -82
- 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 +26 -15
- package/lib/tree-select/TreeSelect.js +72 -75
- package/lib/tree-select/index.css +1 -1
- package/lib/tree-select/index.d.ts +26 -15
- package/lib/tree-select/index.js +31 -15
- package/lib/tree-select/style/index.js +6 -13
- package/lib/tree-select/style/less.js +6 -13
- package/lib/uploader/Uploader.d.ts +61 -50
- package/lib/uploader/Uploader.js +133 -173
- package/lib/uploader/UploaderPreviewItem.d.ts +13 -20
- package/lib/uploader/UploaderPreviewItem.js +86 -87
- package/lib/uploader/index.css +1 -1
- package/lib/uploader/index.d.ts +61 -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 +5694 -5777
- package/lib/vant.cjs.min.js +1 -1
- package/lib/vant.es.js +5694 -5777
- package/lib/vant.es.min.js +5694 -5777
- package/lib/vant.js +5145 -5227
- package/lib/vant.min.js +1 -1
- package/package.json +6 -10
- package/vetur/attributes.json +1038 -1038
- package/vetur/tags.json +83 -83
- package/vetur/web-types.json +1885 -1885
package/es/popup/Popup.js
CHANGED
@@ -1,95 +1,80 @@
|
|
1
|
-
import { Fragment as _Fragment, withDirectives as _withDirectives, mergeProps as _mergeProps, vShow as _vShow, createVNode as _createVNode
|
2
|
-
import { ref, watch, provide, Teleport, computed, onMounted, Transition, onActivated, onDeactivated, defineComponent } from
|
3
|
-
|
4
|
-
import {
|
5
|
-
import {
|
6
|
-
|
7
|
-
import {
|
8
|
-
import {
|
9
|
-
import {
|
10
|
-
import {
|
11
|
-
import {
|
12
|
-
|
13
|
-
import { Icon } from '../icon';
|
14
|
-
import { Overlay } from '../overlay'; // Types
|
15
|
-
|
16
|
-
var popupProps = extend({}, popupSharedProps, {
|
1
|
+
import { Fragment as _Fragment, withDirectives as _withDirectives, mergeProps as _mergeProps, vShow as _vShow, createVNode as _createVNode } from "vue";
|
2
|
+
import { ref, watch, provide, Teleport, computed, onMounted, Transition, onActivated, onDeactivated, defineComponent } from "vue";
|
3
|
+
import { popupSharedProps } from "./shared";
|
4
|
+
import { isDef, extend, makeStringProp, callInterceptor, createNamespace, HAPTICS_FEEDBACK } from "../utils";
|
5
|
+
import { useEventListener } from "@vant/use";
|
6
|
+
import { useExpose } from "../composables/use-expose";
|
7
|
+
import { useLockScroll } from "../composables/use-lock-scroll";
|
8
|
+
import { useLazyRender } from "../composables/use-lazy-render";
|
9
|
+
import { POPUP_TOGGLE_KEY } from "../composables/on-popup-reopen";
|
10
|
+
import { Icon } from "../icon";
|
11
|
+
import { Overlay } from "../overlay";
|
12
|
+
const popupProps = extend({}, popupSharedProps, {
|
17
13
|
round: Boolean,
|
18
|
-
position: makeStringProp(
|
19
|
-
closeIcon: makeStringProp(
|
14
|
+
position: makeStringProp("center"),
|
15
|
+
closeIcon: makeStringProp("cross"),
|
20
16
|
closeable: Boolean,
|
21
17
|
transition: String,
|
22
18
|
iconPrefix: String,
|
23
19
|
closeOnPopstate: Boolean,
|
24
|
-
closeIconPosition: makeStringProp(
|
20
|
+
closeIconPosition: makeStringProp("top-right"),
|
25
21
|
safeAreaInsetBottom: Boolean
|
26
22
|
});
|
27
|
-
|
28
|
-
|
29
|
-
|
23
|
+
const [name, bem] = createNamespace("popup");
|
24
|
+
let globalZIndex = 2e3;
|
25
|
+
var stdin_default = defineComponent({
|
30
26
|
name,
|
31
27
|
inheritAttrs: false,
|
32
28
|
props: popupProps,
|
33
|
-
emits: [
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
var style = computed(() => {
|
47
|
-
var style = {
|
29
|
+
emits: ["open", "close", "opened", "closed", "update:show", "click-overlay", "click-close-icon"],
|
30
|
+
setup(props, {
|
31
|
+
emit,
|
32
|
+
attrs,
|
33
|
+
slots
|
34
|
+
}) {
|
35
|
+
let opened;
|
36
|
+
let shouldReopen;
|
37
|
+
const zIndex = ref();
|
38
|
+
const popupRef = ref();
|
39
|
+
const lazyRender = useLazyRender(() => props.show || !props.lazyRender);
|
40
|
+
const style = computed(() => {
|
41
|
+
const style2 = {
|
48
42
|
zIndex: zIndex.value
|
49
43
|
};
|
50
|
-
|
51
44
|
if (isDef(props.duration)) {
|
52
|
-
|
53
|
-
|
45
|
+
const key = props.position === "center" ? "animationDuration" : "transitionDuration";
|
46
|
+
style2[key] = `${props.duration}s`;
|
54
47
|
}
|
55
|
-
|
56
|
-
return style;
|
48
|
+
return style2;
|
57
49
|
});
|
58
|
-
|
59
|
-
var open = () => {
|
50
|
+
const open = () => {
|
60
51
|
if (!opened) {
|
61
|
-
if (props.zIndex !==
|
52
|
+
if (props.zIndex !== void 0) {
|
62
53
|
globalZIndex = +props.zIndex;
|
63
54
|
}
|
64
|
-
|
65
55
|
opened = true;
|
66
56
|
zIndex.value = ++globalZIndex;
|
67
|
-
emit(
|
57
|
+
emit("open");
|
68
58
|
}
|
69
59
|
};
|
70
|
-
|
71
|
-
var close = () => {
|
60
|
+
const close = () => {
|
72
61
|
if (opened) {
|
73
62
|
callInterceptor(props.beforeClose, {
|
74
63
|
done() {
|
75
64
|
opened = false;
|
76
|
-
emit(
|
77
|
-
emit(
|
65
|
+
emit("close");
|
66
|
+
emit("update:show", false);
|
78
67
|
}
|
79
|
-
|
80
68
|
});
|
81
69
|
}
|
82
70
|
};
|
83
|
-
|
84
|
-
|
85
|
-
emit('click-overlay', event);
|
86
|
-
|
71
|
+
const onClickOverlay = (event) => {
|
72
|
+
emit("click-overlay", event);
|
87
73
|
if (props.closeOnClickOverlay) {
|
88
74
|
close();
|
89
75
|
}
|
90
76
|
};
|
91
|
-
|
92
|
-
var renderOverlay = () => {
|
77
|
+
const renderOverlay = () => {
|
93
78
|
if (props.overlay) {
|
94
79
|
return _createVNode(Overlay, {
|
95
80
|
"show": props.show,
|
@@ -99,35 +84,31 @@ export default defineComponent({
|
|
99
84
|
"customStyle": props.overlayStyle,
|
100
85
|
"onClick": onClickOverlay
|
101
86
|
}, {
|
102
|
-
default: slots[
|
87
|
+
default: slots["overlay-content"]
|
103
88
|
});
|
104
89
|
}
|
105
90
|
};
|
106
|
-
|
107
|
-
|
108
|
-
emit('click-close-icon', event);
|
91
|
+
const onClickCloseIcon = (event) => {
|
92
|
+
emit("click-close-icon", event);
|
109
93
|
close();
|
110
94
|
};
|
111
|
-
|
112
|
-
var renderCloseIcon = () => {
|
95
|
+
const renderCloseIcon = () => {
|
113
96
|
if (props.closeable) {
|
114
97
|
return _createVNode(Icon, {
|
115
98
|
"role": "button",
|
116
99
|
"tabindex": 0,
|
117
100
|
"name": props.closeIcon,
|
118
|
-
"class": [bem(
|
101
|
+
"class": [bem("close-icon", props.closeIconPosition), HAPTICS_FEEDBACK],
|
119
102
|
"classPrefix": props.iconPrefix,
|
120
103
|
"onClick": onClickCloseIcon
|
121
104
|
}, null);
|
122
105
|
}
|
123
106
|
};
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
var renderPopup = lazyRender(() => {
|
130
|
-
var {
|
107
|
+
const onOpened = () => emit("opened");
|
108
|
+
const onClosed = () => emit("closed");
|
109
|
+
const renderPopup = lazyRender(() => {
|
110
|
+
var _a;
|
111
|
+
const {
|
131
112
|
round,
|
132
113
|
position,
|
133
114
|
safeAreaInsetBottom
|
@@ -139,20 +120,19 @@ export default defineComponent({
|
|
139
120
|
round,
|
140
121
|
[position]: position
|
141
122
|
}), {
|
142
|
-
|
123
|
+
"van-safe-area-bottom": safeAreaInsetBottom
|
143
124
|
}]
|
144
|
-
}, attrs), [slots.default == null ? void 0 :
|
125
|
+
}, attrs), [(_a = slots.default) == null ? void 0 : _a.call(slots), renderCloseIcon()]), [[_vShow, props.show]]);
|
145
126
|
});
|
146
|
-
|
147
|
-
|
148
|
-
var {
|
127
|
+
const renderTransition = () => {
|
128
|
+
const {
|
149
129
|
position,
|
150
130
|
transition,
|
151
131
|
transitionAppear
|
152
132
|
} = props;
|
153
|
-
|
133
|
+
const name2 = position === "center" ? "van-fade" : `van-popup-slide-${position}`;
|
154
134
|
return _createVNode(Transition, {
|
155
|
-
"name": transition ||
|
135
|
+
"name": transition || name2,
|
156
136
|
"appear": transitionAppear,
|
157
137
|
"onAfterEnter": onOpened,
|
158
138
|
"onAfterLeave": onClosed
|
@@ -160,22 +140,20 @@ export default defineComponent({
|
|
160
140
|
default: renderPopup
|
161
141
|
});
|
162
142
|
};
|
163
|
-
|
164
|
-
watch(() => props.show, show => {
|
143
|
+
watch(() => props.show, (show) => {
|
165
144
|
if (show && !opened) {
|
166
145
|
open();
|
167
146
|
}
|
168
|
-
|
169
147
|
if (!show && opened) {
|
170
148
|
opened = false;
|
171
|
-
emit(
|
149
|
+
emit("close");
|
172
150
|
}
|
173
151
|
});
|
174
152
|
useExpose({
|
175
153
|
popupRef
|
176
154
|
});
|
177
155
|
useLockScroll(popupRef, () => props.show && props.lockScroll);
|
178
|
-
useEventListener(
|
156
|
+
useEventListener("popstate", () => {
|
179
157
|
if (props.closeOnPopstate) {
|
180
158
|
close();
|
181
159
|
shouldReopen = false;
|
@@ -188,7 +166,7 @@ export default defineComponent({
|
|
188
166
|
});
|
189
167
|
onActivated(() => {
|
190
168
|
if (shouldReopen) {
|
191
|
-
emit(
|
169
|
+
emit("update:show", true);
|
192
170
|
shouldReopen = false;
|
193
171
|
}
|
194
172
|
});
|
@@ -207,9 +185,10 @@ export default defineComponent({
|
|
207
185
|
default: () => [renderOverlay(), renderTransition()]
|
208
186
|
});
|
209
187
|
}
|
210
|
-
|
211
188
|
return _createVNode(_Fragment, null, [renderOverlay(), renderTransition()]);
|
212
189
|
};
|
213
190
|
}
|
214
|
-
|
215
|
-
|
191
|
+
});
|
192
|
+
export {
|
193
|
+
stdin_default as default
|
194
|
+
};
|
package/es/popup/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
:root{--van-popup-background-color:var(--van-background-color-light);--van-popup-transition:transform var(--van-animation-duration-base);--van-popup-round-border-radius:16px;--van-popup-close-icon-size:22px;--van-popup-close-icon-color:var(--van-gray-5);--van-popup-close-icon-margin:16px;--van-popup-close-icon-z-index:1}.van-overflow-hidden{overflow:hidden!important}.van-popup{position:fixed;max-height:100%;overflow-y:auto;background:var(--van-popup-background-color);transition:var(--van-popup-transition);-webkit-overflow-scrolling:touch}.van-popup--center{top:50%;left:50%;transform:
|
1
|
+
:root{--van-popup-background-color: var(--van-background-color-light);--van-popup-transition: transform var(--van-animation-duration-base);--van-popup-round-border-radius: 16px;--van-popup-close-icon-size: 22px;--van-popup-close-icon-color: var(--van-gray-5);--van-popup-close-icon-margin: 16px;--van-popup-close-icon-z-index: 1}.van-overflow-hidden{overflow:hidden!important}.van-popup{position:fixed;max-height:100%;overflow-y:auto;background:var(--van-popup-background-color);transition:var(--van-popup-transition);-webkit-overflow-scrolling:touch}.van-popup--center{top:50%;left:50%;transform:translate(-50%,-50%)}.van-popup--center.van-popup--round{border-radius:var(--van-popup-round-border-radius)}.van-popup--top{top:0;left:0;width:100%}.van-popup--top.van-popup--round{border-radius:0 0 var(--van-popup-round-border-radius) var(--van-popup-round-border-radius)}.van-popup--right{top:50%;right:0;transform:translateY(-50%)}.van-popup--right.van-popup--round{border-radius:var(--van-popup-round-border-radius) 0 0 var(--van-popup-round-border-radius)}.van-popup--bottom{bottom:0;left:0;width:100%}.van-popup--bottom.van-popup--round{border-radius:var(--van-popup-round-border-radius) var(--van-popup-round-border-radius) 0 0}.van-popup--left{top:50%;left:0;transform:translateY(-50%)}.van-popup--left.van-popup--round{border-radius:0 var(--van-popup-round-border-radius) var(--van-popup-round-border-radius) 0}.van-popup-slide-top-enter-active,.van-popup-slide-left-enter-active,.van-popup-slide-right-enter-active,.van-popup-slide-bottom-enter-active{transition-timing-function:var(--van-animation-timing-function-enter)}.van-popup-slide-top-leave-active,.van-popup-slide-left-leave-active,.van-popup-slide-right-leave-active,.van-popup-slide-bottom-leave-active{transition-timing-function:var(--van-animation-timing-function-leave)}.van-popup-slide-top-enter-from,.van-popup-slide-top-leave-active{transform:translateY(-100%)}.van-popup-slide-right-enter-from,.van-popup-slide-right-leave-active{transform:translate(100%,-50%)}.van-popup-slide-bottom-enter-from,.van-popup-slide-bottom-leave-active{transform:translateY(100%)}.van-popup-slide-left-enter-from,.van-popup-slide-left-leave-active{transform:translate(-100%,-50%)}.van-popup__close-icon{position:absolute;z-index:var(--van-popup-close-icon-z-index);color:var(--van-popup-close-icon-color);font-size:var(--van-popup-close-icon-size)}.van-popup__close-icon--top-left{top:var(--van-popup-close-icon-margin);left:var(--van-popup-close-icon-margin)}.van-popup__close-icon--top-right{top:var(--van-popup-close-icon-margin);right:var(--van-popup-close-icon-margin)}.van-popup__close-icon--bottom-left{bottom:var(--van-popup-close-icon-margin);left:var(--van-popup-close-icon-margin)}.van-popup__close-icon--bottom-right{right:var(--van-popup-close-icon-margin);bottom:var(--van-popup-close-icon-margin)}
|
package/es/popup/index.d.ts
CHANGED
@@ -42,52 +42,51 @@ export declare const Popup: import("../utils").WithInstall<import("vue").DefineC
|
|
42
42
|
default: import("./types").PopupCloseIconPosition;
|
43
43
|
};
|
44
44
|
safeAreaInsetBottom: BooleanConstructor;
|
45
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("open" | "close" | "opened" | "closed" | "update:show" | "click-overlay" | "click-close-icon")[], "open" | "close" | "opened" | "closed" | "update:show" | "click-overlay" | "click-close-icon", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
46
|
-
show
|
47
|
-
zIndex
|
48
|
-
overlay
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
safeAreaInsetBottom: boolean;
|
71
|
-
overlay: boolean;
|
72
|
-
show: boolean;
|
73
|
-
lockScroll: boolean;
|
74
|
-
lazyRender: boolean;
|
75
|
-
transitionAppear: boolean;
|
76
|
-
closeOnClickOverlay: boolean;
|
77
|
-
closeIcon: string;
|
78
|
-
closeable: boolean;
|
79
|
-
closeOnPopstate: boolean;
|
80
|
-
closeIconPosition: import("./types").PopupCloseIconPosition;
|
45
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("open" | "close" | "opened" | "closed" | "update:show" | "click-overlay" | "click-close-icon")[], "open" | "close" | "opened" | "closed" | "update:show" | "click-overlay" | "click-close-icon", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
46
|
+
show: BooleanConstructor;
|
47
|
+
zIndex: (NumberConstructor | StringConstructor)[];
|
48
|
+
overlay: {
|
49
|
+
type: BooleanConstructor;
|
50
|
+
default: true;
|
51
|
+
};
|
52
|
+
duration: (NumberConstructor | StringConstructor)[];
|
53
|
+
teleport: import("vue").PropType<string | import("vue").RendererElement | null | undefined>;
|
54
|
+
lockScroll: {
|
55
|
+
type: BooleanConstructor;
|
56
|
+
default: true;
|
57
|
+
};
|
58
|
+
lazyRender: {
|
59
|
+
type: BooleanConstructor;
|
60
|
+
default: true;
|
61
|
+
};
|
62
|
+
beforeClose: import("vue").PropType<import("../utils").Interceptor>;
|
63
|
+
overlayStyle: import("vue").PropType<import("vue").CSSProperties>;
|
64
|
+
overlayClass: import("vue").PropType<unknown>;
|
65
|
+
transitionAppear: BooleanConstructor;
|
66
|
+
closeOnClickOverlay: {
|
67
|
+
type: BooleanConstructor;
|
68
|
+
default: true;
|
69
|
+
};
|
81
70
|
} & {
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
}
|
71
|
+
round: BooleanConstructor;
|
72
|
+
position: {
|
73
|
+
type: import("vue").PropType<import("./types").PopupPosition>;
|
74
|
+
default: import("./types").PopupPosition;
|
75
|
+
};
|
76
|
+
closeIcon: {
|
77
|
+
type: import("vue").PropType<string>;
|
78
|
+
default: string;
|
79
|
+
};
|
80
|
+
closeable: BooleanConstructor;
|
81
|
+
transition: StringConstructor;
|
82
|
+
iconPrefix: StringConstructor;
|
83
|
+
closeOnPopstate: BooleanConstructor;
|
84
|
+
closeIconPosition: {
|
85
|
+
type: import("vue").PropType<import("./types").PopupCloseIconPosition>;
|
86
|
+
default: import("./types").PopupCloseIconPosition;
|
87
|
+
};
|
88
|
+
safeAreaInsetBottom: BooleanConstructor;
|
89
|
+
}>> & {
|
91
90
|
onOpen?: ((...args: any[]) => any) | undefined;
|
92
91
|
onClose?: ((...args: any[]) => any) | undefined;
|
93
92
|
onOpened?: ((...args: any[]) => any) | undefined;
|
package/es/popup/index.js
CHANGED
@@ -1,4 +1,8 @@
|
|
1
|
-
import { withInstall } from
|
2
|
-
import _Popup from
|
3
|
-
|
4
|
-
|
1
|
+
import { withInstall } from "../utils";
|
2
|
+
import _Popup from "./Popup";
|
3
|
+
const Popup = withInstall(_Popup);
|
4
|
+
var stdin_default = Popup;
|
5
|
+
export {
|
6
|
+
Popup,
|
7
|
+
stdin_default as default
|
8
|
+
};
|
package/es/popup/index.less
CHANGED
package/es/popup/shared.js
CHANGED
@@ -1,28 +1,20 @@
|
|
1
|
-
import { truthProp, unknownProp, numericProp } from
|
2
|
-
|
3
|
-
// whether to show popup
|
1
|
+
import { truthProp, unknownProp, numericProp } from "../utils";
|
2
|
+
const popupSharedProps = {
|
4
3
|
show: Boolean,
|
5
|
-
// z-index
|
6
4
|
zIndex: numericProp,
|
7
|
-
// whether to show overlay
|
8
5
|
overlay: truthProp,
|
9
|
-
// transition duration
|
10
6
|
duration: numericProp,
|
11
|
-
// teleport
|
12
7
|
teleport: [String, Object],
|
13
|
-
// prevent body scroll
|
14
8
|
lockScroll: truthProp,
|
15
|
-
// whether to lazy render
|
16
9
|
lazyRender: truthProp,
|
17
|
-
// callback function before close
|
18
10
|
beforeClose: Function,
|
19
|
-
// overlay custom style
|
20
11
|
overlayStyle: Object,
|
21
|
-
// overlay custom class name
|
22
12
|
overlayClass: unknownProp,
|
23
|
-
// Initial rendering animation
|
24
13
|
transitionAppear: Boolean,
|
25
|
-
// whether to close popup when overlay is clicked
|
26
14
|
closeOnClickOverlay: truthProp
|
27
15
|
};
|
28
|
-
|
16
|
+
const popupSharedPropKeys = Object.keys(popupSharedProps);
|
17
|
+
export {
|
18
|
+
popupSharedPropKeys,
|
19
|
+
popupSharedProps
|
20
|
+
};
|
package/es/popup/style/index.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import
|
2
|
-
import
|
3
|
-
import
|
4
|
-
import
|
5
|
-
import
|
1
|
+
import "../../style/base.css";
|
2
|
+
import "../../badge/index.css";
|
3
|
+
import "../../icon/index.css";
|
4
|
+
import "../../overlay/index.css";
|
5
|
+
import "../index.css";
|
package/es/popup/style/less.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import
|
2
|
-
import
|
3
|
-
import
|
4
|
-
import
|
5
|
-
import
|
1
|
+
import "../../style/base.less";
|
2
|
+
import "../../badge/index.less";
|
3
|
+
import "../../icon/index.less";
|
4
|
+
import "../../overlay/index.less";
|
5
|
+
import "../index.less";
|
package/es/popup/types.js
CHANGED
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|
@@ -35,28 +35,24 @@ declare const _default: import("vue").DefineComponent<{
|
|
35
35
|
default: number;
|
36
36
|
validator: (value: string | number) => boolean;
|
37
37
|
};
|
38
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
39
|
-
color
|
40
|
-
inactive
|
41
|
-
pivotText
|
42
|
-
textColor
|
43
|
-
showPivot
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
pivotText?: string | undefined;
|
57
|
-
pivotColor?: string | undefined;
|
58
|
-
trackColor?: string | undefined;
|
59
|
-
}>, {
|
38
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
39
|
+
color: StringConstructor;
|
40
|
+
inactive: BooleanConstructor;
|
41
|
+
pivotText: StringConstructor;
|
42
|
+
textColor: StringConstructor;
|
43
|
+
showPivot: {
|
44
|
+
type: BooleanConstructor;
|
45
|
+
default: true;
|
46
|
+
};
|
47
|
+
pivotColor: StringConstructor;
|
48
|
+
trackColor: StringConstructor;
|
49
|
+
strokeWidth: (NumberConstructor | StringConstructor)[];
|
50
|
+
percentage: {
|
51
|
+
type: (NumberConstructor | StringConstructor)[];
|
52
|
+
default: number;
|
53
|
+
validator: (value: string | number) => boolean;
|
54
|
+
};
|
55
|
+
}>>, {
|
60
56
|
inactive: boolean;
|
61
57
|
showPivot: boolean;
|
62
58
|
percentage: string | number;
|
package/es/progress/Progress.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
2
|
-
import { computed, defineComponent } from
|
3
|
-
import { addUnit, truthProp, numericProp, createNamespace } from
|
4
|
-
|
5
|
-
|
2
|
+
import { computed, defineComponent } from "vue";
|
3
|
+
import { addUnit, truthProp, numericProp, createNamespace } from "../utils";
|
4
|
+
const [name, bem] = createNamespace("progress");
|
5
|
+
const progressProps = {
|
6
6
|
color: String,
|
7
7
|
inactive: Boolean,
|
8
8
|
pivotText: String,
|
@@ -14,65 +14,63 @@ var progressProps = {
|
|
14
14
|
percentage: {
|
15
15
|
type: numericProp,
|
16
16
|
default: 0,
|
17
|
-
validator: value => value >= 0 && value <= 100
|
17
|
+
validator: (value) => value >= 0 && value <= 100
|
18
18
|
}
|
19
19
|
};
|
20
|
-
|
20
|
+
var stdin_default = defineComponent({
|
21
21
|
name,
|
22
22
|
props: progressProps,
|
23
|
-
|
24
23
|
setup(props) {
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
var {
|
24
|
+
const background = computed(() => props.inactive ? void 0 : props.color);
|
25
|
+
const renderPivot = () => {
|
26
|
+
const {
|
29
27
|
textColor,
|
30
28
|
pivotText,
|
31
29
|
pivotColor,
|
32
30
|
percentage
|
33
31
|
} = props;
|
34
|
-
|
35
|
-
|
32
|
+
const text = pivotText != null ? pivotText : `${percentage}%`;
|
36
33
|
if (props.showPivot && text) {
|
37
|
-
|
34
|
+
const style = {
|
38
35
|
color: textColor,
|
39
|
-
left: +percentage
|
40
|
-
transform:
|
36
|
+
left: `${+percentage}%`,
|
37
|
+
transform: `translate(-${+percentage}%,-50%)`,
|
41
38
|
background: pivotColor || background.value
|
42
39
|
};
|
43
40
|
return _createVNode("span", {
|
44
41
|
"style": style,
|
45
|
-
"class": bem(
|
42
|
+
"class": bem("pivot", {
|
46
43
|
inactive: props.inactive
|
47
44
|
})
|
48
45
|
}, [text]);
|
49
46
|
}
|
50
47
|
};
|
51
|
-
|
52
48
|
return () => {
|
53
|
-
|
49
|
+
const {
|
54
50
|
trackColor,
|
55
51
|
percentage,
|
56
52
|
strokeWidth
|
57
53
|
} = props;
|
58
|
-
|
54
|
+
const rootStyle = {
|
59
55
|
background: trackColor,
|
60
56
|
height: addUnit(strokeWidth)
|
61
57
|
};
|
62
|
-
|
63
|
-
width: percentage
|
58
|
+
const portionStyle = {
|
59
|
+
width: `${percentage}%`,
|
64
60
|
background: background.value
|
65
61
|
};
|
66
62
|
return _createVNode("div", {
|
67
63
|
"class": bem(),
|
68
64
|
"style": rootStyle
|
69
65
|
}, [_createVNode("span", {
|
70
|
-
"class": bem(
|
66
|
+
"class": bem("portion", {
|
71
67
|
inactive: props.inactive
|
72
68
|
}),
|
73
69
|
"style": portionStyle
|
74
70
|
}, null), renderPivot()]);
|
75
71
|
};
|
76
72
|
}
|
77
|
-
|
78
|
-
|
73
|
+
});
|
74
|
+
export {
|
75
|
+
stdin_default as default
|
76
|
+
};
|
package/es/progress/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
:root{--van-progress-height:4px;--van-progress-color:var(--van-primary-color);--van-progress-inactive-color:var(--van-gray-5);--van-progress-background-color:var(--van-gray-3);--van-progress-pivot-padding:0 5px;--van-progress-pivot-text-color:var(--van-white);--van-progress-pivot-font-size:var(--van-font-size-xs);--van-progress-pivot-line-height:1.6;--van-progress-pivot-background-color:var(--van-primary-color)}.van-progress{position:relative;height:var(--van-progress-height);background:var(--van-progress-background-color);border-radius:var(--van-progress-height)}.van-progress__portion{position:absolute;left:0;width:100%;height:100%;background:var(--van-progress-color);border-radius:inherit;transform-origin:0;transition:all var(--van-animation-duration-base) var(--van-animation-timing-function-enter)}.van-progress__portion--inactive{background:var(--van-progress-inactive-color)}.van-progress__pivot{position:absolute;top:50%;box-sizing:border-box;min-width:3.6em;padding:var(--van-progress-pivot-padding);color:var(--van-progress-pivot-text-color);font-size:var(--van-progress-pivot-font-size);line-height:var(--van-progress-pivot-line-height);text-align:center;word-break:keep-all;background:var(--van-progress-pivot-background-color);border-radius:1em;transition:all var(--van-animation-duration-base) var(--van-animation-timing-function-enter)}.van-progress__pivot--inactive{background:var(--van-progress-inactive-color)}
|
1
|
+
:root{--van-progress-height: 4px;--van-progress-color: var(--van-primary-color);--van-progress-inactive-color: var(--van-gray-5);--van-progress-background-color: var(--van-gray-3);--van-progress-pivot-padding: 0 5px;--van-progress-pivot-text-color: var(--van-white);--van-progress-pivot-font-size: var(--van-font-size-xs);--van-progress-pivot-line-height: 1.6;--van-progress-pivot-background-color: var(--van-primary-color)}.van-progress{position:relative;height:var(--van-progress-height);background:var(--van-progress-background-color);border-radius:var(--van-progress-height)}.van-progress__portion{position:absolute;left:0;width:100%;height:100%;background:var(--van-progress-color);border-radius:inherit;transform-origin:0;transition:all var(--van-animation-duration-base) var(--van-animation-timing-function-enter)}.van-progress__portion--inactive{background:var(--van-progress-inactive-color)}.van-progress__pivot{position:absolute;top:50%;box-sizing:border-box;min-width:3.6em;padding:var(--van-progress-pivot-padding);color:var(--van-progress-pivot-text-color);font-size:var(--van-progress-pivot-font-size);line-height:var(--van-progress-pivot-line-height);text-align:center;word-break:keep-all;background:var(--van-progress-pivot-background-color);border-radius:1em;transition:all var(--van-animation-duration-base) var(--van-animation-timing-function-enter)}.van-progress__pivot--inactive{background:var(--van-progress-inactive-color)}
|