vant 4.0.5 → 4.0.6
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/index.d.ts +1 -1
- package/es/index.mjs +1 -1
- package/lib/action-bar/ActionBar.d.ts +27 -0
- package/lib/action-bar/ActionBar.js +64 -0
- package/lib/action-bar/index.css +1 -0
- package/lib/action-bar/index.d.ts +25 -0
- package/lib/action-bar/index.js +35 -0
- package/lib/action-bar/style/index.d.ts +1 -0
- package/lib/action-bar/style/index.js +2 -0
- package/lib/action-bar/types.d.ts +4 -0
- package/lib/action-bar/types.js +15 -0
- package/lib/action-bar-button/ActionBarButton.d.ts +43 -0
- package/lib/action-bar-button/ActionBarButton.js +93 -0
- package/lib/action-bar-button/index.css +1 -0
- package/lib/action-bar-button/index.d.ts +36 -0
- package/lib/action-bar-button/index.js +35 -0
- package/lib/action-bar-button/style/index.d.ts +1 -0
- package/lib/action-bar-button/style/index.js +7 -0
- package/lib/action-bar-button/types.d.ts +5 -0
- package/lib/action-bar-button/types.js +15 -0
- package/lib/action-bar-icon/ActionBarIcon.d.ts +48 -0
- package/lib/action-bar-icon/ActionBarIcon.js +88 -0
- package/lib/action-bar-icon/index.css +1 -0
- package/lib/action-bar-icon/index.d.ts +39 -0
- package/lib/action-bar-icon/index.js +35 -0
- package/lib/action-bar-icon/style/index.d.ts +1 -0
- package/lib/action-bar-icon/style/index.js +5 -0
- package/lib/action-bar-icon/types.d.ts +10 -0
- package/lib/action-bar-icon/types.js +15 -0
- package/lib/action-sheet/ActionSheet.d.ts +194 -0
- package/lib/action-sheet/ActionSheet.js +151 -0
- package/lib/action-sheet/index.css +1 -0
- package/lib/action-sheet/index.d.ts +136 -0
- package/lib/action-sheet/index.js +35 -0
- package/lib/action-sheet/style/index.d.ts +1 -0
- package/lib/action-sheet/style/index.js +7 -0
- package/lib/action-sheet/types.d.ts +23 -0
- package/lib/action-sheet/types.js +15 -0
- package/lib/address-edit/AddressEdit.d.ts +157 -0
- package/lib/address-edit/AddressEdit.js +314 -0
- package/lib/address-edit/AddressEditDetail.d.ts +32 -0
- package/lib/address-edit/AddressEditDetail.js +95 -0
- package/lib/address-edit/index.css +1 -0
- package/lib/address-edit/index.d.ts +118 -0
- package/lib/address-edit/index.js +35 -0
- package/lib/address-edit/style/index.d.ts +1 -0
- package/lib/address-edit/style/index.js +19 -0
- package/lib/address-edit/types.d.ts +28 -0
- package/lib/address-edit/types.js +15 -0
- package/lib/address-list/AddressList.d.ts +69 -0
- package/lib/address-list/AddressList.js +108 -0
- package/lib/address-list/AddressListItem.d.ts +34 -0
- package/lib/address-list/AddressListItem.js +115 -0
- package/lib/address-list/index.css +1 -0
- package/lib/address-list/index.d.ts +57 -0
- package/lib/address-list/index.js +35 -0
- package/lib/address-list/style/index.d.ts +1 -0
- package/lib/address-list/style/index.js +11 -0
- package/lib/address-list/types.d.ts +15 -0
- package/lib/address-list/types.js +15 -0
- package/lib/area/Area.d.ts +136 -0
- package/lib/area/Area.js +96 -0
- package/lib/area/index.d.ts +102 -0
- package/lib/area/index.js +35 -0
- package/lib/area/style/index.d.ts +1 -0
- package/lib/area/style/index.js +10 -0
- package/lib/area/types.d.ts +9 -0
- package/lib/area/types.js +15 -0
- package/lib/area/utils.d.ts +6 -0
- package/lib/area/utils.js +111 -0
- package/lib/back-top/BackTop.d.ts +46 -0
- package/lib/back-top/BackTop.js +120 -0
- package/lib/back-top/index.css +1 -0
- package/lib/back-top/index.d.ts +39 -0
- package/lib/back-top/index.js +35 -0
- package/lib/back-top/style/index.d.ts +1 -0
- package/lib/back-top/style/index.js +4 -0
- package/lib/back-top/types.d.ts +6 -0
- package/lib/back-top/types.js +15 -0
- package/lib/badge/Badge.d.ts +66 -0
- package/lib/badge/Badge.js +124 -0
- package/lib/badge/index.css +1 -0
- package/lib/badge/index.d.ts +51 -0
- package/lib/badge/index.js +35 -0
- package/lib/badge/style/index.d.ts +1 -0
- package/lib/badge/style/index.js +2 -0
- package/lib/badge/types.d.ts +12 -0
- package/lib/badge/types.js +15 -0
- package/lib/button/Button.d.ts +140 -0
- package/lib/button/Button.js +168 -0
- package/lib/button/index.css +1 -0
- package/lib/button/index.d.ts +104 -0
- package/lib/button/index.js +35 -0
- package/lib/button/style/index.d.ts +1 -0
- package/lib/button/style/index.js +5 -0
- package/lib/button/types.d.ts +41 -0
- package/lib/button/types.js +15 -0
- package/lib/calendar/Calendar.d.ts +292 -0
- package/lib/calendar/Calendar.js +439 -0
- package/lib/calendar/CalendarDay.d.ts +32 -0
- package/lib/calendar/CalendarDay.js +148 -0
- package/lib/calendar/CalendarHeader.d.ts +21 -0
- package/lib/calendar/CalendarHeader.js +81 -0
- package/lib/calendar/CalendarMonth.d.ts +86 -0
- package/lib/calendar/CalendarMonth.js +233 -0
- package/lib/calendar/index.css +1 -0
- package/lib/calendar/index.d.ts +210 -0
- package/lib/calendar/index.js +35 -0
- package/lib/calendar/style/index.d.ts +1 -0
- package/lib/calendar/style/index.js +16 -0
- package/lib/calendar/types.d.ts +56 -0
- package/lib/calendar/types.js +15 -0
- package/lib/calendar/utils.d.ts +12 -0
- package/lib/calendar/utils.js +75 -0
- package/lib/card/Card.d.ts +56 -0
- package/lib/card/Card.js +146 -0
- package/lib/card/index.css +1 -0
- package/lib/card/index.d.ts +46 -0
- package/lib/card/index.js +35 -0
- package/lib/card/style/index.d.ts +1 -0
- package/lib/card/style/index.js +6 -0
- package/lib/card/types.d.ts +18 -0
- package/lib/card/types.js +15 -0
- package/lib/cascader/Cascader.d.ts +96 -0
- package/lib/cascader/Cascader.js +247 -0
- package/lib/cascader/index.css +1 -0
- package/lib/cascader/index.d.ts +74 -0
- package/lib/cascader/index.js +35 -0
- package/lib/cascader/style/index.d.ts +1 -0
- package/lib/cascader/style/index.js +9 -0
- package/lib/cascader/types.d.ts +34 -0
- package/lib/cascader/types.js +15 -0
- package/lib/cell/Cell.d.ts +136 -0
- package/lib/cell/Cell.js +148 -0
- package/lib/cell/index.css +1 -0
- package/lib/cell/index.d.ts +80 -0
- package/lib/cell/index.js +35 -0
- package/lib/cell/style/index.d.ts +1 -0
- package/lib/cell/style/index.js +4 -0
- package/lib/cell/types.d.ts +21 -0
- package/lib/cell/types.js +15 -0
- package/lib/cell-group/CellGroup.d.ts +29 -0
- package/lib/cell-group/CellGroup.js +63 -0
- package/lib/cell-group/index.css +1 -0
- package/lib/cell-group/index.d.ts +27 -0
- package/lib/cell-group/index.js +35 -0
- package/lib/cell-group/style/index.d.ts +1 -0
- package/lib/cell-group/style/index.js +2 -0
- package/lib/cell-group/types.d.ts +10 -0
- package/lib/cell-group/types.js +15 -0
- package/lib/checkbox/Checkbox.d.ts +64 -0
- package/lib/checkbox/Checkbox.js +107 -0
- package/lib/checkbox/Checker.d.ts +85 -0
- package/lib/checkbox/Checker.js +126 -0
- package/lib/checkbox/index.css +1 -0
- package/lib/checkbox/index.d.ts +52 -0
- package/lib/checkbox/index.js +35 -0
- package/lib/checkbox/style/index.d.ts +1 -0
- package/lib/checkbox/style/index.js +5 -0
- package/lib/checkbox/types.d.ts +24 -0
- package/lib/checkbox/types.js +15 -0
- package/lib/checkbox-group/CheckboxGroup.d.ts +44 -0
- package/lib/checkbox-group/CheckboxGroup.js +91 -0
- package/lib/checkbox-group/index.css +1 -0
- package/lib/checkbox-group/index.d.ts +36 -0
- package/lib/checkbox-group/index.js +35 -0
- package/lib/checkbox-group/style/index.d.ts +1 -0
- package/lib/checkbox-group/style/index.js +2 -0
- package/lib/checkbox-group/types.d.ts +16 -0
- package/lib/checkbox-group/types.js +15 -0
- package/lib/circle/Circle.d.ts +118 -0
- package/lib/circle/Circle.js +172 -0
- package/lib/circle/index.css +1 -0
- package/lib/circle/index.d.ts +88 -0
- package/lib/circle/index.js +35 -0
- package/lib/circle/style/index.d.ts +1 -0
- package/lib/circle/style/index.js +2 -0
- package/lib/circle/types.d.ts +9 -0
- package/lib/circle/types.js +15 -0
- package/lib/col/Col.d.ts +38 -0
- package/lib/col/Col.js +83 -0
- package/lib/col/index.css +1 -0
- package/lib/col/index.d.ts +32 -0
- package/lib/col/index.js +35 -0
- package/lib/col/style/index.d.ts +1 -0
- package/lib/col/style/index.js +3 -0
- package/lib/collapse/Collapse.d.ts +55 -0
- package/lib/collapse/Collapse.js +128 -0
- package/lib/collapse/index.d.ts +36 -0
- package/lib/collapse/index.js +35 -0
- package/lib/collapse/style/index.d.ts +1 -0
- package/lib/collapse/style/index.js +1 -0
- package/lib/collapse-item/CollapseItem.d.ts +132 -0
- package/lib/collapse-item/CollapseItem.js +156 -0
- package/lib/collapse-item/index.css +1 -0
- package/lib/collapse-item/index.d.ts +98 -0
- package/lib/collapse-item/index.js +35 -0
- package/lib/collapse-item/style/index.d.ts +1 -0
- package/lib/collapse-item/style/index.js +5 -0
- package/lib/collapse-item/types.d.ts +15 -0
- package/lib/collapse-item/types.js +15 -0
- package/lib/composables/on-popup-reopen.d.ts +3 -0
- package/lib/composables/on-popup-reopen.js +35 -0
- package/lib/composables/use-expose.d.ts +1 -0
- package/lib/composables/use-expose.js +30 -0
- package/lib/composables/use-global-z-index.d.ts +4 -0
- package/lib/composables/use-global-z-index.js +28 -0
- package/lib/composables/use-height.d.ts +2 -0
- package/lib/composables/use-height.js +43 -0
- package/lib/composables/use-id.d.ts +1 -0
- package/lib/composables/use-id.js +32 -0
- package/lib/composables/use-lazy-render.d.ts +2 -0
- package/lib/composables/use-lazy-render.js +36 -0
- package/lib/composables/use-lock-scroll.d.ts +2 -0
- package/lib/composables/use-lock-scroll.js +77 -0
- package/lib/composables/use-placeholder.d.ts +3 -0
- package/lib/composables/use-placeholder.js +33 -0
- package/lib/composables/use-refs.d.ts +2 -0
- package/lib/composables/use-refs.js +39 -0
- package/lib/composables/use-route.d.ts +13 -0
- package/lib/composables/use-route.js +46 -0
- package/lib/composables/use-sync-prop-ref.d.ts +2 -0
- package/lib/composables/use-sync-prop-ref.js +37 -0
- package/lib/composables/use-tab-status.d.ts +3 -0
- package/lib/composables/use-tab-status.js +26 -0
- package/lib/composables/use-touch.d.ts +16 -0
- package/lib/composables/use-touch.js +80 -0
- package/lib/composables/use-visibility-change.d.ts +2 -0
- package/lib/composables/use-visibility-change.js +49 -0
- package/lib/config-provider/ConfigProvider.d.ts +57 -0
- package/lib/config-provider/ConfigProvider.js +89 -0
- package/lib/config-provider/index.d.ts +41 -0
- package/lib/config-provider/index.js +35 -0
- package/lib/config-provider/style/index.d.ts +1 -0
- package/lib/config-provider/style/index.js +1 -0
- package/lib/config-provider/types.d.ts +1 -0
- package/lib/config-provider/types.js +15 -0
- package/lib/contact-card/ContactCard.d.ts +47 -0
- package/lib/contact-card/ContactCard.js +66 -0
- package/lib/contact-card/index.css +1 -0
- package/lib/contact-card/index.d.ts +39 -0
- package/lib/contact-card/index.js +35 -0
- package/lib/contact-card/style/index.d.ts +1 -0
- package/lib/contact-card/style/index.js +5 -0
- package/lib/contact-card/types.d.ts +6 -0
- package/lib/contact-card/types.js +15 -0
- package/lib/contact-edit/ContactEdit.d.ts +64 -0
- package/lib/contact-edit/ContactEdit.js +132 -0
- package/lib/contact-edit/index.css +1 -0
- package/lib/contact-edit/index.d.ts +49 -0
- package/lib/contact-edit/index.js +35 -0
- package/lib/contact-edit/style/index.d.ts +1 -0
- package/lib/contact-edit/style/index.js +9 -0
- package/lib/contact-edit/types.d.ts +8 -0
- package/lib/contact-edit/types.js +15 -0
- package/lib/contact-list/ContactList.d.ts +32 -0
- package/lib/contact-list/ContactList.js +109 -0
- package/lib/contact-list/index.css +1 -0
- package/lib/contact-list/index.d.ts +25 -0
- package/lib/contact-list/index.js +35 -0
- package/lib/contact-list/style/index.d.ts +1 -0
- package/lib/contact-list/style/index.js +11 -0
- package/lib/contact-list/types.d.ts +6 -0
- package/lib/contact-list/types.js +15 -0
- package/lib/count-down/CountDown.d.ts +55 -0
- package/lib/count-down/CountDown.js +76 -0
- package/lib/count-down/index.css +1 -0
- package/lib/count-down/index.d.ts +46 -0
- package/lib/count-down/index.js +35 -0
- package/lib/count-down/style/index.d.ts +1 -0
- package/lib/count-down/style/index.js +2 -0
- package/lib/count-down/types.d.ts +16 -0
- package/lib/count-down/types.js +15 -0
- package/lib/count-down/utils.d.ts +2 -0
- package/lib/count-down/utils.js +58 -0
- package/lib/coupon/Coupon.d.ts +45 -0
- package/lib/coupon/Coupon.js +99 -0
- package/lib/coupon/index.css +1 -0
- package/lib/coupon/index.d.ts +35 -0
- package/lib/coupon/index.js +33 -0
- package/lib/coupon/style/index.d.ts +1 -0
- package/lib/coupon/style/index.js +6 -0
- package/lib/coupon/types.d.ts +19 -0
- package/lib/coupon/types.js +15 -0
- package/lib/coupon/utils.d.ts +3 -0
- package/lib/coupon/utils.js +33 -0
- package/lib/coupon-cell/CouponCell.d.ts +78 -0
- package/lib/coupon-cell/CouponCell.js +74 -0
- package/lib/coupon-cell/index.css +1 -0
- package/lib/coupon-cell/index.d.ts +60 -0
- package/lib/coupon-cell/index.js +35 -0
- package/lib/coupon-cell/style/index.d.ts +1 -0
- package/lib/coupon-cell/style/index.js +5 -0
- package/lib/coupon-cell/types.d.ts +3 -0
- package/lib/coupon-cell/types.js +15 -0
- package/lib/coupon-list/CouponList.d.ts +170 -0
- package/lib/coupon-list/CouponList.js +206 -0
- package/lib/coupon-list/index.css +1 -0
- package/lib/coupon-list/index.d.ts +125 -0
- package/lib/coupon-list/index.js +35 -0
- package/lib/coupon-list/style/index.d.ts +1 -0
- package/lib/coupon-list/style/index.js +17 -0
- package/lib/coupon-list/types.d.ts +9 -0
- package/lib/coupon-list/types.js +15 -0
- package/lib/date-picker/DatePicker.d.ts +171 -0
- package/lib/date-picker/DatePicker.js +137 -0
- package/lib/date-picker/index.d.ts +127 -0
- package/lib/date-picker/index.js +35 -0
- package/lib/date-picker/style/index.d.ts +1 -0
- package/lib/date-picker/style/index.js +10 -0
- package/lib/date-picker/utils.d.ts +45 -0
- package/lib/date-picker/utils.js +70 -0
- package/lib/dialog/Dialog.d.ts +187 -0
- package/lib/dialog/Dialog.js +237 -0
- package/lib/dialog/function-call.d.ts +6 -0
- package/lib/dialog/function-call.js +110 -0
- package/lib/dialog/index.css +1 -0
- package/lib/dialog/index.d.ts +138 -0
- package/lib/dialog/index.js +41 -0
- package/lib/dialog/style/index.d.ts +1 -0
- package/lib/dialog/style/index.js +10 -0
- package/lib/dialog/types.d.ts +53 -0
- package/lib/dialog/types.js +15 -0
- package/lib/divider/Divider.d.ts +40 -0
- package/lib/divider/Divider.js +51 -0
- package/lib/divider/index.css +1 -0
- package/lib/divider/index.d.ts +34 -0
- package/lib/divider/index.js +35 -0
- package/lib/divider/style/index.d.ts +1 -0
- package/lib/divider/style/index.js +2 -0
- package/lib/divider/types.d.ts +10 -0
- package/lib/divider/types.js +15 -0
- package/lib/dropdown-item/DropdownItem.d.ts +59 -0
- package/lib/dropdown-item/DropdownItem.js +202 -0
- package/lib/dropdown-item/index.css +1 -0
- package/lib/dropdown-item/index.d.ts +50 -0
- package/lib/dropdown-item/index.js +35 -0
- package/lib/dropdown-item/style/index.d.ts +1 -0
- package/lib/dropdown-item/style/index.js +8 -0
- package/lib/dropdown-item/types.d.ts +25 -0
- package/lib/dropdown-item/types.js +15 -0
- package/lib/dropdown-menu/DropdownMenu.d.ts +82 -0
- package/lib/dropdown-menu/DropdownMenu.js +156 -0
- package/lib/dropdown-menu/index.css +1 -0
- package/lib/dropdown-menu/index.d.ts +63 -0
- package/lib/dropdown-menu/index.js +35 -0
- package/lib/dropdown-menu/style/index.d.ts +1 -0
- package/lib/dropdown-menu/style/index.js +2 -0
- package/lib/dropdown-menu/types.d.ts +21 -0
- package/lib/dropdown-menu/types.js +15 -0
- package/lib/empty/Empty.d.ts +29 -0
- package/lib/empty/Empty.js +342 -0
- package/lib/empty/index.css +1 -0
- package/lib/empty/index.d.ts +26 -0
- package/lib/empty/index.js +35 -0
- package/lib/empty/style/index.d.ts +1 -0
- package/lib/empty/style/index.js +2 -0
- package/lib/empty/types.d.ts +10 -0
- package/lib/empty/types.js +15 -0
- package/lib/field/Field.d.ts +337 -0
- package/lib/field/Field.js +529 -0
- package/lib/field/index.css +1 -0
- package/lib/field/index.d.ts +213 -0
- package/lib/field/index.js +35 -0
- package/lib/field/style/index.d.ts +1 -0
- package/lib/field/style/index.js +5 -0
- package/lib/field/types.d.ts +65 -0
- package/lib/field/types.js +15 -0
- package/lib/field/utils.d.ts +15 -0
- package/lib/field/utils.js +120 -0
- package/lib/form/Form.d.ts +88 -0
- package/lib/form/Form.js +180 -0
- package/lib/form/index.d.ts +70 -0
- package/lib/form/index.js +35 -0
- package/lib/form/style/index.d.ts +1 -0
- package/lib/form/style/index.js +1 -0
- package/lib/form/types.d.ts +15 -0
- package/lib/form/types.js +15 -0
- package/lib/grid/Grid.d.ts +74 -0
- package/lib/grid/Grid.js +67 -0
- package/lib/grid/index.css +1 -0
- package/lib/grid/index.d.ts +54 -0
- package/lib/grid/index.js +35 -0
- package/lib/grid/style/index.d.ts +1 -0
- package/lib/grid/style/index.js +2 -0
- package/lib/grid-item/GridItem.d.ts +45 -0
- package/lib/grid-item/GridItem.js +165 -0
- package/lib/grid-item/index.css +1 -0
- package/lib/grid-item/index.d.ts +37 -0
- package/lib/grid-item/index.js +35 -0
- package/lib/grid-item/style/index.d.ts +1 -0
- package/lib/grid-item/style/index.js +5 -0
- package/lib/grid-item/types.d.ts +8 -0
- package/lib/grid-item/types.js +15 -0
- package/lib/icon/Icon.d.ts +45 -0
- package/lib/icon/Icon.js +79 -0
- package/lib/icon/index.css +1 -0
- package/lib/icon/index.d.ts +36 -0
- package/lib/icon/index.js +35 -0
- package/lib/icon/style/index.d.ts +1 -0
- package/lib/icon/style/index.js +3 -0
- package/lib/image/Image.d.ts +105 -0
- package/lib/image/Image.js +190 -0
- package/lib/image/index.css +1 -0
- package/lib/image/index.d.ts +79 -0
- package/lib/image/index.js +35 -0
- package/lib/image/style/index.d.ts +1 -0
- package/lib/image/style/index.js +4 -0
- package/lib/image/types.d.ts +9 -0
- package/lib/image/types.js +15 -0
- package/lib/image-preview/ImagePreview.d.ts +188 -0
- package/lib/image-preview/ImagePreview.js +192 -0
- package/lib/image-preview/ImagePreviewItem.d.ts +48 -0
- package/lib/image-preview/ImagePreviewItem.js +284 -0
- package/lib/image-preview/function-call.d.ts +3 -0
- package/lib/image-preview/function-call.js +89 -0
- package/lib/image-preview/index.css +1 -0
- package/lib/image-preview/index.d.ts +140 -0
- package/lib/image-preview/index.js +37 -0
- package/lib/image-preview/style/index.d.ts +1 -0
- package/lib/image-preview/style/index.js +10 -0
- package/lib/image-preview/types.d.ts +50 -0
- package/lib/image-preview/types.js +15 -0
- package/lib/index-anchor/IndexAnchor.d.ts +11 -0
- package/lib/index-anchor/IndexAnchor.js +107 -0
- package/lib/index-anchor/index.css +1 -0
- package/lib/index-anchor/index.d.ts +14 -0
- package/lib/index-anchor/index.js +35 -0
- package/lib/index-anchor/style/index.d.ts +1 -0
- package/lib/index-anchor/style/index.js +3 -0
- package/lib/index-anchor/types.d.ts +11 -0
- package/lib/index-anchor/types.js +15 -0
- package/lib/index-bar/IndexBar.d.ts +64 -0
- package/lib/index-bar/IndexBar.js +246 -0
- package/lib/index-bar/index.css +1 -0
- package/lib/index-bar/index.d.ts +50 -0
- package/lib/index-bar/index.js +35 -0
- package/lib/index-bar/style/index.d.ts +1 -0
- package/lib/index-bar/style/index.js +2 -0
- package/lib/index-bar/types.d.ts +16 -0
- package/lib/index-bar/types.js +15 -0
- package/lib/index.css +1 -0
- package/lib/index.d.ts +97 -0
- package/lib/index.js +309 -0
- package/lib/lazyload/index.d.ts +3 -0
- package/lib/lazyload/index.js +25 -0
- package/lib/lazyload/style/index.d.ts +1 -0
- package/lib/lazyload/style/index.js +1 -0
- package/lib/lazyload/vue-lazyload/index.d.ts +55 -0
- package/lib/lazyload/vue-lazyload/index.js +56 -0
- package/lib/lazyload/vue-lazyload/lazy-component.js +70 -0
- package/lib/lazyload/vue-lazyload/lazy-container.js +93 -0
- package/lib/lazyload/vue-lazyload/lazy-image.js +119 -0
- package/lib/lazyload/vue-lazyload/lazy.js +378 -0
- package/lib/lazyload/vue-lazyload/listener.js +192 -0
- package/lib/lazyload/vue-lazyload/util.d.ts +25 -0
- package/lib/lazyload/vue-lazyload/util.js +185 -0
- package/lib/list/List.d.ts +78 -0
- package/lib/list/List.js +160 -0
- package/lib/list/index.css +1 -0
- package/lib/list/index.d.ts +63 -0
- package/lib/list/index.js +35 -0
- package/lib/list/style/index.d.ts +1 -0
- package/lib/list/style/index.js +3 -0
- package/lib/list/types.d.ts +13 -0
- package/lib/list/types.js +15 -0
- package/lib/loading/Loading.d.ts +39 -0
- package/lib/loading/Loading.js +90 -0
- package/lib/loading/index.css +1 -0
- package/lib/loading/index.d.ts +33 -0
- package/lib/loading/index.js +35 -0
- package/lib/loading/style/index.d.ts +1 -0
- package/lib/loading/style/index.js +2 -0
- package/lib/loading/types.d.ts +7 -0
- package/lib/loading/types.js +15 -0
- package/lib/locale/index.d.ts +7 -0
- package/lib/locale/index.js +49 -0
- package/lib/locale/lang/bg-BG.d.ts +64 -0
- package/lib/locale/lang/bg-BG.js +93 -0
- package/lib/locale/lang/bn-BD.d.ts +62 -0
- package/lib/locale/lang/bn-BD.js +91 -0
- package/lib/locale/lang/da-DK.d.ts +64 -0
- package/lib/locale/lang/da-DK.js +85 -0
- package/lib/locale/lang/de-DE-formal.d.ts +62 -0
- package/lib/locale/lang/de-DE-formal.js +83 -0
- package/lib/locale/lang/de-DE.d.ts +62 -0
- package/lib/locale/lang/de-DE.js +83 -0
- package/lib/locale/lang/el-GR.d.ts +64 -0
- package/lib/locale/lang/el-GR.js +93 -0
- package/lib/locale/lang/en-US.d.ts +62 -0
- package/lib/locale/lang/en-US.js +83 -0
- package/lib/locale/lang/es-ES.d.ts +62 -0
- package/lib/locale/lang/es-ES.js +83 -0
- package/lib/locale/lang/fa-IR.d.ts +64 -0
- package/lib/locale/lang/fa-IR.js +93 -0
- package/lib/locale/lang/fr-FR.d.ts +62 -0
- package/lib/locale/lang/fr-FR.js +83 -0
- package/lib/locale/lang/he-IL.d.ts +64 -0
- package/lib/locale/lang/he-IL.js +85 -0
- package/lib/locale/lang/hi-IN.d.ts +62 -0
- package/lib/locale/lang/hi-IN.js +91 -0
- package/lib/locale/lang/id-ID.d.ts +62 -0
- package/lib/locale/lang/id-ID.js +83 -0
- package/lib/locale/lang/is-IS.d.ts +62 -0
- package/lib/locale/lang/is-IS.js +91 -0
- package/lib/locale/lang/it-IT.d.ts +62 -0
- package/lib/locale/lang/it-IT.js +91 -0
- package/lib/locale/lang/ja-JP.d.ts +62 -0
- package/lib/locale/lang/ja-JP.js +83 -0
- package/lib/locale/lang/ko-KR.d.ts +62 -0
- package/lib/locale/lang/ko-KR.js +91 -0
- package/lib/locale/lang/la-LA.d.ts +62 -0
- package/lib/locale/lang/la-LA.js +83 -0
- package/lib/locale/lang/mm-MN.d.ts +62 -0
- package/lib/locale/lang/mm-MN.js +83 -0
- package/lib/locale/lang/nb-NO.d.ts +62 -0
- package/lib/locale/lang/nb-NO.js +83 -0
- package/lib/locale/lang/nl-NL.d.ts +62 -0
- package/lib/locale/lang/nl-NL.js +83 -0
- package/lib/locale/lang/pt-BR.d.ts +62 -0
- package/lib/locale/lang/pt-BR.js +83 -0
- package/lib/locale/lang/ro-RO.d.ts +62 -0
- package/lib/locale/lang/ro-RO.js +83 -0
- package/lib/locale/lang/ru-RU.d.ts +62 -0
- package/lib/locale/lang/ru-RU.js +83 -0
- package/lib/locale/lang/sv-SE.d.ts +62 -0
- package/lib/locale/lang/sv-SE.js +83 -0
- package/lib/locale/lang/th-TH.d.ts +62 -0
- package/lib/locale/lang/th-TH.js +83 -0
- package/lib/locale/lang/tr-TR.d.ts +62 -0
- package/lib/locale/lang/tr-TR.js +83 -0
- package/lib/locale/lang/uk-UA.d.ts +62 -0
- package/lib/locale/lang/uk-UA.js +91 -0
- package/lib/locale/lang/vi-VN.d.ts +62 -0
- package/lib/locale/lang/vi-VN.js +91 -0
- package/lib/locale/lang/zh-CN.d.ts +62 -0
- package/lib/locale/lang/zh-CN.js +83 -0
- package/lib/locale/lang/zh-HK.d.ts +62 -0
- package/lib/locale/lang/zh-HK.js +83 -0
- package/lib/locale/lang/zh-TW.d.ts +62 -0
- package/lib/locale/lang/zh-TW.js +83 -0
- package/lib/locale/style/index.d.ts +1 -0
- package/lib/locale/style/index.js +1 -0
- package/lib/nav-bar/NavBar.d.ts +66 -0
- package/lib/nav-bar/NavBar.js +111 -0
- package/lib/nav-bar/index.css +1 -0
- package/lib/nav-bar/index.d.ts +54 -0
- package/lib/nav-bar/index.js +35 -0
- package/lib/nav-bar/style/index.d.ts +1 -0
- package/lib/nav-bar/style/index.js +4 -0
- package/lib/nav-bar/types.d.ts +10 -0
- package/lib/nav-bar/types.js +15 -0
- package/lib/notice-bar/NoticeBar.d.ts +71 -0
- package/lib/notice-bar/NoticeBar.js +185 -0
- package/lib/notice-bar/index.css +1 -0
- package/lib/notice-bar/index.d.ts +57 -0
- package/lib/notice-bar/index.js +35 -0
- package/lib/notice-bar/style/index.d.ts +1 -0
- package/lib/notice-bar/style/index.js +4 -0
- package/lib/notice-bar/types.d.ts +18 -0
- package/lib/notice-bar/types.js +15 -0
- package/lib/notify/Notify.d.ts +134 -0
- package/lib/notify/Notify.js +65 -0
- package/lib/notify/function-call.d.ts +6 -0
- package/lib/notify/function-call.js +93 -0
- package/lib/notify/index.css +1 -0
- package/lib/notify/index.d.ts +100 -0
- package/lib/notify/index.js +40 -0
- package/lib/notify/style/index.d.ts +1 -0
- package/lib/notify/style/index.js +6 -0
- package/lib/notify/types.d.ts +27 -0
- package/lib/notify/types.js +15 -0
- package/lib/number-keyboard/NumberKeyboard.d.ts +162 -0
- package/lib/number-keyboard/NumberKeyboard.js +256 -0
- package/lib/number-keyboard/NumberKeyboardKey.d.ts +24 -0
- package/lib/number-keyboard/NumberKeyboardKey.js +113 -0
- package/lib/number-keyboard/index.css +1 -0
- package/lib/number-keyboard/index.d.ts +121 -0
- package/lib/number-keyboard/index.js +35 -0
- package/lib/number-keyboard/style/index.d.ts +1 -0
- package/lib/number-keyboard/style/index.js +3 -0
- package/lib/number-keyboard/types.d.ts +17 -0
- package/lib/number-keyboard/types.js +15 -0
- package/lib/overlay/Overlay.d.ts +51 -0
- package/lib/overlay/Overlay.js +74 -0
- package/lib/overlay/index.css +1 -0
- package/lib/overlay/index.d.ts +42 -0
- package/lib/overlay/index.js +35 -0
- package/lib/overlay/style/index.d.ts +1 -0
- package/lib/overlay/style/index.js +2 -0
- package/lib/overlay/types.d.ts +4 -0
- package/lib/overlay/types.js +15 -0
- package/lib/pagination/Pagination.d.ts +101 -0
- package/lib/pagination/Pagination.js +164 -0
- package/lib/pagination/index.css +1 -0
- package/lib/pagination/index.d.ts +77 -0
- package/lib/pagination/index.js +35 -0
- package/lib/pagination/style/index.d.ts +1 -0
- package/lib/pagination/style/index.js +2 -0
- package/lib/pagination/types.d.ts +11 -0
- package/lib/pagination/types.js +15 -0
- package/lib/password-input/PasswordInput.d.ts +63 -0
- package/lib/password-input/PasswordInput.js +98 -0
- package/lib/password-input/index.css +1 -0
- package/lib/password-input/index.d.ts +51 -0
- package/lib/password-input/index.js +35 -0
- package/lib/password-input/style/index.d.ts +1 -0
- package/lib/password-input/style/index.js +2 -0
- package/lib/password-input/types.d.ts +17 -0
- package/lib/password-input/types.js +15 -0
- package/lib/picker/Picker.d.ts +163 -0
- package/lib/picker/Picker.js +224 -0
- package/lib/picker/PickerColumn.d.ts +60 -0
- package/lib/picker/PickerColumn.js +213 -0
- package/lib/picker/PickerToolbar.d.ts +21 -0
- package/lib/picker/PickerToolbar.js +78 -0
- package/lib/picker/index.css +1 -0
- package/lib/picker/index.d.ts +104 -0
- package/lib/picker/index.js +35 -0
- package/lib/picker/style/index.d.ts +1 -0
- package/lib/picker/style/index.js +10 -0
- package/lib/picker/types.d.ts +62 -0
- package/lib/picker/types.js +15 -0
- package/lib/picker/utils.d.ts +13 -0
- package/lib/picker/utils.js +99 -0
- package/lib/picker-group/PickerGroup.d.ts +39 -0
- package/lib/picker-group/PickerGroup.js +82 -0
- package/lib/picker-group/index.css +1 -0
- package/lib/picker-group/index.d.ts +34 -0
- package/lib/picker-group/index.js +35 -0
- package/lib/picker-group/style/index.d.ts +1 -0
- package/lib/picker-group/style/index.js +9 -0
- package/lib/picker-group/types.d.ts +3 -0
- package/lib/picker-group/types.js +15 -0
- package/lib/popover/Popover.d.ts +164 -0
- package/lib/popover/Popover.js +203 -0
- package/lib/popover/index.css +1 -0
- package/lib/popover/index.d.ts +121 -0
- package/lib/popover/index.js +35 -0
- package/lib/popover/style/index.d.ts +1 -0
- package/lib/popover/style/index.js +6 -0
- package/lib/popover/types.d.ts +26 -0
- package/lib/popover/types.js +15 -0
- package/lib/popup/Popup.d.ts +165 -0
- package/lib/popup/Popup.js +226 -0
- package/lib/popup/index.css +1 -0
- package/lib/popup/index.d.ts +124 -0
- package/lib/popup/index.js +35 -0
- package/lib/popup/shared.d.ts +30 -0
- package/lib/popup/shared.js +41 -0
- package/lib/popup/style/index.d.ts +1 -0
- package/lib/popup/style/index.js +5 -0
- package/lib/popup/types.d.ts +17 -0
- package/lib/popup/types.js +15 -0
- package/lib/progress/Progress.d.ts +61 -0
- package/lib/progress/Progress.js +96 -0
- package/lib/progress/index.css +1 -0
- package/lib/progress/index.d.ts +49 -0
- package/lib/progress/index.js +35 -0
- package/lib/progress/style/index.d.ts +1 -0
- package/lib/progress/style/index.js +2 -0
- package/lib/progress/types.d.ts +17 -0
- package/lib/progress/types.js +15 -0
- package/lib/pull-refresh/PullRefresh.d.ts +75 -0
- package/lib/pull-refresh/PullRefresh.js +213 -0
- package/lib/pull-refresh/index.css +1 -0
- package/lib/pull-refresh/index.d.ts +60 -0
- package/lib/pull-refresh/index.js +35 -0
- package/lib/pull-refresh/style/index.d.ts +1 -0
- package/lib/pull-refresh/style/index.js +3 -0
- package/lib/pull-refresh/types.d.ts +6 -0
- package/lib/pull-refresh/types.js +15 -0
- package/lib/radio/Radio.d.ts +50 -0
- package/lib/radio/Radio.js +68 -0
- package/lib/radio/index.css +1 -0
- package/lib/radio/index.d.ts +40 -0
- package/lib/radio/index.js +35 -0
- package/lib/radio/style/index.d.ts +1 -0
- package/lib/radio/style/index.js +6 -0
- package/lib/radio/types.d.ts +11 -0
- package/lib/radio/types.js +15 -0
- package/lib/radio-group/RadioGroup.d.ts +35 -0
- package/lib/radio-group/RadioGroup.js +64 -0
- package/lib/radio-group/index.css +1 -0
- package/lib/radio-group/index.d.ts +26 -0
- package/lib/radio-group/index.js +35 -0
- package/lib/radio-group/style/index.d.ts +1 -0
- package/lib/radio-group/style/index.js +2 -0
- package/lib/rate/Rate.d.ts +107 -0
- package/lib/rate/Rate.js +239 -0
- package/lib/rate/index.css +1 -0
- package/lib/rate/index.d.ts +82 -0
- package/lib/rate/index.js +35 -0
- package/lib/rate/style/index.d.ts +1 -0
- package/lib/rate/style/index.js +4 -0
- package/lib/rate/types.d.ts +7 -0
- package/lib/rate/types.js +15 -0
- package/lib/row/Row.d.ts +64 -0
- package/lib/row/Row.js +111 -0
- package/lib/row/index.css +1 -0
- package/lib/row/index.d.ts +43 -0
- package/lib/row/index.js +35 -0
- package/lib/row/style/index.d.ts +1 -0
- package/lib/row/style/index.js +2 -0
- package/lib/search/Search.d.ts +206 -0
- package/lib/search/Search.js +138 -0
- package/lib/search/index.css +1 -0
- package/lib/search/index.d.ts +152 -0
- package/lib/search/index.js +35 -0
- package/lib/search/style/index.d.ts +1 -0
- package/lib/search/style/index.js +6 -0
- package/lib/search/types.d.ts +21 -0
- package/lib/search/types.js +15 -0
- package/lib/share-sheet/ShareSheet.d.ts +162 -0
- package/lib/share-sheet/ShareSheet.js +142 -0
- package/lib/share-sheet/index.css +1 -0
- package/lib/share-sheet/index.d.ts +115 -0
- package/lib/share-sheet/index.js +35 -0
- package/lib/share-sheet/style/index.d.ts +1 -0
- package/lib/share-sheet/style/index.js +6 -0
- package/lib/share-sheet/types.d.ts +17 -0
- package/lib/share-sheet/types.js +15 -0
- package/lib/sidebar/Sidebar.d.ts +30 -0
- package/lib/sidebar/Sidebar.js +64 -0
- package/lib/sidebar/index.css +1 -0
- package/lib/sidebar/index.d.ts +25 -0
- package/lib/sidebar/index.js +35 -0
- package/lib/sidebar/style/index.d.ts +1 -0
- package/lib/sidebar/style/index.js +2 -0
- package/lib/sidebar/types.d.ts +3 -0
- package/lib/sidebar/types.js +15 -0
- package/lib/sidebar-item/SidebarItem.d.ts +42 -0
- package/lib/sidebar-item/SidebarItem.js +92 -0
- package/lib/sidebar-item/index.css +1 -0
- package/lib/sidebar-item/index.d.ts +36 -0
- package/lib/sidebar-item/index.js +35 -0
- package/lib/sidebar-item/style/index.d.ts +1 -0
- package/lib/sidebar-item/style/index.js +4 -0
- package/lib/sidebar-item/types.d.ts +15 -0
- package/lib/sidebar-item/types.js +15 -0
- package/lib/skeleton/Skeleton.d.ts +96 -0
- package/lib/skeleton/Skeleton.js +115 -0
- package/lib/skeleton/SkeletonAvatar.d.ts +26 -0
- package/lib/skeleton/SkeletonAvatar.js +41 -0
- package/lib/skeleton/SkeletonImage.d.ts +26 -0
- package/lib/skeleton/SkeletonImage.js +45 -0
- package/lib/skeleton/SkeletonParagraph.d.ts +27 -0
- package/lib/skeleton/SkeletonParagraph.js +50 -0
- package/lib/skeleton/SkeletonTitle.d.ts +16 -0
- package/lib/skeleton/SkeletonTitle.js +45 -0
- package/lib/skeleton/index.css +1 -0
- package/lib/skeleton/index.d.ts +140 -0
- package/lib/skeleton/index.js +55 -0
- package/lib/skeleton/style/index.d.ts +1 -0
- package/lib/skeleton/style/index.js +4 -0
- package/lib/skeleton/types.d.ts +13 -0
- package/lib/skeleton/types.js +15 -0
- package/lib/slider/Slider.d.ts +100 -0
- package/lib/slider/Slider.js +291 -0
- package/lib/slider/index.css +1 -0
- package/lib/slider/index.d.ts +77 -0
- package/lib/slider/index.js +35 -0
- package/lib/slider/style/index.d.ts +1 -0
- package/lib/slider/style/index.js +2 -0
- package/lib/slider/types.d.ts +11 -0
- package/lib/slider/types.js +15 -0
- package/lib/space/Space.d.ts +48 -0
- package/lib/space/Space.js +107 -0
- package/lib/space/index.css +1 -0
- package/lib/space/index.d.ts +38 -0
- package/lib/space/index.js +35 -0
- package/lib/space/style/index.d.ts +1 -0
- package/lib/space/style/index.js +2 -0
- package/lib/step/Step.d.ts +2 -0
- package/lib/step/Step.js +137 -0
- package/lib/step/index.css +1 -0
- package/lib/step/index.d.ts +8 -0
- package/lib/step/index.js +33 -0
- package/lib/step/style/index.d.ts +1 -0
- package/lib/step/style/index.js +5 -0
- package/lib/step/types.d.ts +13 -0
- package/lib/step/types.js +15 -0
- package/lib/stepper/Stepper.d.ts +194 -0
- package/lib/stepper/Stepper.js +267 -0
- package/lib/stepper/index.css +1 -0
- package/lib/stepper/index.d.ts +143 -0
- package/lib/stepper/index.js +35 -0
- package/lib/stepper/style/index.d.ts +1 -0
- package/lib/stepper/style/index.js +2 -0
- package/lib/stepper/types.d.ts +15 -0
- package/lib/stepper/types.js +15 -0
- package/lib/steps/Steps.d.ts +71 -0
- package/lib/steps/Steps.js +66 -0
- package/lib/steps/index.css +1 -0
- package/lib/steps/index.d.ts +52 -0
- package/lib/steps/index.js +35 -0
- package/lib/steps/style/index.d.ts +1 -0
- package/lib/steps/style/index.js +2 -0
- package/lib/steps/types.d.ts +3 -0
- package/lib/steps/types.js +15 -0
- package/lib/sticky/Sticky.d.ts +58 -0
- package/lib/sticky/Sticky.js +140 -0
- package/lib/sticky/index.css +1 -0
- package/lib/sticky/index.d.ts +47 -0
- package/lib/sticky/index.js +35 -0
- package/lib/sticky/style/index.d.ts +1 -0
- package/lib/sticky/style/index.js +2 -0
- package/lib/sticky/types.d.ts +3 -0
- package/lib/sticky/types.js +15 -0
- package/lib/style/animation.css +1 -0
- package/lib/style/base.css +1 -0
- package/lib/style/css-variables.css +1 -0
- package/lib/style/mixins/clearfix.css +0 -0
- package/lib/style/mixins/ellipsis.css +0 -0
- package/lib/style/mixins/hairline.css +0 -0
- package/lib/style/normalize.css +1 -0
- package/lib/submit-bar/SubmitBar.d.ts +101 -0
- package/lib/submit-bar/SubmitBar.js +135 -0
- package/lib/submit-bar/index.css +1 -0
- package/lib/submit-bar/index.d.ts +76 -0
- package/lib/submit-bar/index.js +35 -0
- package/lib/submit-bar/style/index.d.ts +1 -0
- package/lib/submit-bar/style/index.js +6 -0
- package/lib/submit-bar/types.d.ts +21 -0
- package/lib/submit-bar/types.js +15 -0
- package/lib/swipe/Swipe.d.ts +121 -0
- package/lib/swipe/Swipe.js +380 -0
- package/lib/swipe/index.css +1 -0
- package/lib/swipe/index.d.ts +91 -0
- package/lib/swipe/index.js +35 -0
- package/lib/swipe/style/index.d.ts +1 -0
- package/lib/swipe/style/index.js +2 -0
- package/lib/swipe/types.d.ts +39 -0
- package/lib/swipe/types.js +15 -0
- package/lib/swipe-cell/SwipeCell.d.ts +44 -0
- package/lib/swipe-cell/SwipeCell.js +182 -0
- package/lib/swipe-cell/index.css +1 -0
- package/lib/swipe-cell/index.d.ts +39 -0
- package/lib/swipe-cell/index.js +35 -0
- package/lib/swipe-cell/style/index.d.ts +1 -0
- package/lib/swipe-cell/style/index.js +2 -0
- package/lib/swipe-cell/types.d.ts +9 -0
- package/lib/swipe-cell/types.js +15 -0
- package/lib/swipe-item/SwipeItem.d.ts +2 -0
- package/lib/swipe-item/SwipeItem.js +101 -0
- package/lib/swipe-item/index.css +1 -0
- package/lib/swipe-item/index.d.ts +7 -0
- package/lib/swipe-item/index.js +33 -0
- package/lib/swipe-item/style/index.d.ts +1 -0
- package/lib/swipe-item/style/index.js +3 -0
- package/lib/switch/Switch.d.ts +58 -0
- package/lib/switch/Switch.js +105 -0
- package/lib/switch/index.css +1 -0
- package/lib/switch/index.d.ts +48 -0
- package/lib/switch/index.js +35 -0
- package/lib/switch/style/index.d.ts +1 -0
- package/lib/switch/style/index.js +3 -0
- package/lib/switch/types.d.ts +12 -0
- package/lib/switch/types.js +15 -0
- package/lib/tab/Tab.d.ts +58 -0
- package/lib/tab/Tab.js +143 -0
- package/lib/tab/index.css +1 -0
- package/lib/tab/index.d.ts +46 -0
- package/lib/tab/index.js +35 -0
- package/lib/tab/style/index.d.ts +1 -0
- package/lib/tab/style/index.js +7 -0
- package/lib/tabbar/Tabbar.d.ts +90 -0
- package/lib/tabbar/Tabbar.js +104 -0
- package/lib/tabbar/index.css +1 -0
- package/lib/tabbar/index.d.ts +66 -0
- package/lib/tabbar/index.js +35 -0
- package/lib/tabbar/style/index.d.ts +1 -0
- package/lib/tabbar/style/index.js +2 -0
- package/lib/tabbar/types.d.ts +5 -0
- package/lib/tabbar/types.js +15 -0
- package/lib/tabbar-item/TabbarItem.d.ts +44 -0
- package/lib/tabbar-item/TabbarItem.js +140 -0
- package/lib/tabbar-item/index.css +1 -0
- package/lib/tabbar-item/index.d.ts +37 -0
- package/lib/tabbar-item/index.js +35 -0
- package/lib/tabbar-item/style/index.d.ts +1 -0
- package/lib/tabbar-item/style/index.js +5 -0
- package/lib/tabbar-item/types.d.ts +9 -0
- package/lib/tabbar-item/types.js +15 -0
- package/lib/tabs/Tabs.d.ts +154 -0
- package/lib/tabs/Tabs.js +391 -0
- package/lib/tabs/TabsContent.d.ts +43 -0
- package/lib/tabs/TabsContent.js +87 -0
- package/lib/tabs/TabsTitle.d.ts +45 -0
- package/lib/tabs/TabsTitle.js +109 -0
- package/lib/tabs/index.css +1 -0
- package/lib/tabs/index.d.ts +115 -0
- package/lib/tabs/index.js +35 -0
- package/lib/tabs/style/index.d.ts +1 -0
- package/lib/tabs/style/index.js +5 -0
- package/lib/tabs/types.d.ts +37 -0
- package/lib/tabs/types.js +15 -0
- package/lib/tabs/utils.d.ts +3 -0
- package/lib/tabs/utils.js +56 -0
- package/lib/tag/Tag.d.ts +63 -0
- package/lib/tag/Tag.js +98 -0
- package/lib/tag/index.css +1 -0
- package/lib/tag/index.d.ts +51 -0
- package/lib/tag/index.js +35 -0
- package/lib/tag/style/index.d.ts +1 -0
- package/lib/tag/style/index.js +4 -0
- package/lib/tag/types.d.ts +20 -0
- package/lib/tag/types.js +15 -0
- package/lib/time-picker/TimePicker.d.ts +217 -0
- package/lib/time-picker/TimePicker.js +95 -0
- package/lib/time-picker/index.d.ts +159 -0
- package/lib/time-picker/index.js +35 -0
- package/lib/time-picker/style/index.d.ts +1 -0
- package/lib/time-picker/style/index.js +10 -0
- package/lib/toast/Toast.d.ts +115 -0
- package/lib/toast/Toast.js +146 -0
- package/lib/toast/function-call.d.ts +10 -0
- package/lib/toast/function-call.js +167 -0
- package/lib/toast/index.css +1 -0
- package/lib/toast/index.d.ts +87 -0
- package/lib/toast/index.js +44 -0
- package/lib/toast/lock-click.d.ts +1 -0
- package/lib/toast/lock-click.js +36 -0
- package/lib/toast/style/index.d.ts +1 -0
- package/lib/toast/style/index.js +7 -0
- package/lib/toast/types.d.ts +55 -0
- package/lib/toast/types.js +15 -0
- package/lib/tree-select/TreeSelect.d.ts +106 -0
- package/lib/tree-select/TreeSelect.js +122 -0
- package/lib/tree-select/index.css +1 -0
- package/lib/tree-select/index.d.ts +72 -0
- package/lib/tree-select/index.js +35 -0
- package/lib/tree-select/style/index.d.ts +1 -0
- package/lib/tree-select/style/index.js +6 -0
- package/lib/tree-select/types.d.ts +10 -0
- package/lib/tree-select/types.js +15 -0
- package/lib/uploader/Uploader.d.ts +213 -0
- package/lib/uploader/Uploader.js +274 -0
- package/lib/uploader/UploaderPreviewItem.d.ts +36 -0
- package/lib/uploader/UploaderPreviewItem.js +147 -0
- package/lib/uploader/index.css +1 -0
- package/lib/uploader/index.d.ts +155 -0
- package/lib/uploader/index.js +35 -0
- package/lib/uploader/style/index.d.ts +1 -0
- package/lib/uploader/style/index.js +11 -0
- package/lib/uploader/types.d.ts +58 -0
- package/lib/uploader/types.js +15 -0
- package/lib/uploader/utils.d.ts +11 -0
- package/lib/uploader/utils.js +88 -0
- package/lib/utils/basic.d.ts +18 -0
- package/lib/utils/basic.js +52 -0
- package/lib/utils/constant.d.ts +12 -0
- package/lib/utils/constant.js +41 -0
- package/lib/utils/create.d.ts +17 -0
- package/lib/utils/create.js +78 -0
- package/lib/utils/deep-assign.d.ts +3 -0
- package/lib/utils/deep-assign.js +41 -0
- package/lib/utils/deep-clone.d.ts +1 -0
- package/lib/utils/deep-clone.js +39 -0
- package/lib/utils/dom.d.ts +12 -0
- package/lib/utils/dom.js +86 -0
- package/lib/utils/format.d.ts +13 -0
- package/lib/utils/format.js +139 -0
- package/lib/utils/index.d.ts +9 -0
- package/lib/utils/index.js +25 -0
- package/lib/utils/interceptor.d.ts +6 -0
- package/lib/utils/interceptor.js +48 -0
- package/lib/utils/mount-component.d.ts +14 -0
- package/lib/utils/mount-component.js +58 -0
- package/lib/utils/props.d.ts +31 -0
- package/lib/utils/props.js +55 -0
- package/lib/utils/validate.d.ts +9 -0
- package/lib/utils/validate.js +41 -0
- package/lib/utils/with-install.d.ts +13 -0
- package/lib/utils/with-install.js +33 -0
- package/lib/vant.cjs.js +1 -1
- package/lib/vant.es.js +1 -1
- package/lib/vant.js +1 -1
- package/lib/vant.min.js +1 -1
- package/lib/vue-sfc-shim.d.ts +6 -0
- package/lib/vue-tsx-shim.d.ts +23 -0
- package/lib/web-types.json +1 -1
- package/package.json +1 -1
@@ -0,0 +1,115 @@
|
|
1
|
+
import { type PropType, type CSSProperties, type ExtractPropTypes } from 'vue';
|
2
|
+
import { LoadingType } from '../loading';
|
3
|
+
import type { ToastType, ToastPosition, ToastWordBreak } from './types';
|
4
|
+
export declare const toastProps: {
|
5
|
+
icon: StringConstructor;
|
6
|
+
show: BooleanConstructor;
|
7
|
+
type: {
|
8
|
+
type: PropType<ToastType>;
|
9
|
+
default: ToastType;
|
10
|
+
};
|
11
|
+
overlay: BooleanConstructor;
|
12
|
+
message: (NumberConstructor | StringConstructor)[];
|
13
|
+
iconSize: (NumberConstructor | StringConstructor)[];
|
14
|
+
duration: {
|
15
|
+
type: NumberConstructor;
|
16
|
+
default: number;
|
17
|
+
};
|
18
|
+
position: {
|
19
|
+
type: PropType<ToastPosition>;
|
20
|
+
default: ToastPosition;
|
21
|
+
};
|
22
|
+
teleport: PropType<string | import("vue").RendererElement | null | undefined>;
|
23
|
+
wordBreak: PropType<ToastWordBreak>;
|
24
|
+
className: PropType<unknown>;
|
25
|
+
iconPrefix: StringConstructor;
|
26
|
+
transition: {
|
27
|
+
type: PropType<string>;
|
28
|
+
default: string;
|
29
|
+
};
|
30
|
+
loadingType: PropType<LoadingType>;
|
31
|
+
forbidClick: BooleanConstructor;
|
32
|
+
overlayClass: PropType<unknown>;
|
33
|
+
overlayStyle: PropType<CSSProperties>;
|
34
|
+
closeOnClick: BooleanConstructor;
|
35
|
+
closeOnClickOverlay: BooleanConstructor;
|
36
|
+
};
|
37
|
+
export type ToastProps = ExtractPropTypes<typeof toastProps>;
|
38
|
+
declare const _default: import("vue").DefineComponent<{
|
39
|
+
icon: StringConstructor;
|
40
|
+
show: BooleanConstructor;
|
41
|
+
type: {
|
42
|
+
type: PropType<ToastType>;
|
43
|
+
default: ToastType;
|
44
|
+
};
|
45
|
+
overlay: BooleanConstructor;
|
46
|
+
message: (NumberConstructor | StringConstructor)[];
|
47
|
+
iconSize: (NumberConstructor | StringConstructor)[];
|
48
|
+
duration: {
|
49
|
+
type: NumberConstructor;
|
50
|
+
default: number;
|
51
|
+
};
|
52
|
+
position: {
|
53
|
+
type: PropType<ToastPosition>;
|
54
|
+
default: ToastPosition;
|
55
|
+
};
|
56
|
+
teleport: PropType<string | import("vue").RendererElement | null | undefined>;
|
57
|
+
wordBreak: PropType<ToastWordBreak>;
|
58
|
+
className: PropType<unknown>;
|
59
|
+
iconPrefix: StringConstructor;
|
60
|
+
transition: {
|
61
|
+
type: PropType<string>;
|
62
|
+
default: string;
|
63
|
+
};
|
64
|
+
loadingType: PropType<LoadingType>;
|
65
|
+
forbidClick: BooleanConstructor;
|
66
|
+
overlayClass: PropType<unknown>;
|
67
|
+
overlayStyle: PropType<CSSProperties>;
|
68
|
+
closeOnClick: BooleanConstructor;
|
69
|
+
closeOnClickOverlay: BooleanConstructor;
|
70
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:show"[], "update:show", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
71
|
+
icon: StringConstructor;
|
72
|
+
show: BooleanConstructor;
|
73
|
+
type: {
|
74
|
+
type: PropType<ToastType>;
|
75
|
+
default: ToastType;
|
76
|
+
};
|
77
|
+
overlay: BooleanConstructor;
|
78
|
+
message: (NumberConstructor | StringConstructor)[];
|
79
|
+
iconSize: (NumberConstructor | StringConstructor)[];
|
80
|
+
duration: {
|
81
|
+
type: NumberConstructor;
|
82
|
+
default: number;
|
83
|
+
};
|
84
|
+
position: {
|
85
|
+
type: PropType<ToastPosition>;
|
86
|
+
default: ToastPosition;
|
87
|
+
};
|
88
|
+
teleport: PropType<string | import("vue").RendererElement | null | undefined>;
|
89
|
+
wordBreak: PropType<ToastWordBreak>;
|
90
|
+
className: PropType<unknown>;
|
91
|
+
iconPrefix: StringConstructor;
|
92
|
+
transition: {
|
93
|
+
type: PropType<string>;
|
94
|
+
default: string;
|
95
|
+
};
|
96
|
+
loadingType: PropType<LoadingType>;
|
97
|
+
forbidClick: BooleanConstructor;
|
98
|
+
overlayClass: PropType<unknown>;
|
99
|
+
overlayStyle: PropType<CSSProperties>;
|
100
|
+
closeOnClick: BooleanConstructor;
|
101
|
+
closeOnClickOverlay: BooleanConstructor;
|
102
|
+
}>> & {
|
103
|
+
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
104
|
+
}, {
|
105
|
+
type: ToastType;
|
106
|
+
position: ToastPosition;
|
107
|
+
overlay: boolean;
|
108
|
+
show: boolean;
|
109
|
+
duration: number;
|
110
|
+
closeOnClickOverlay: boolean;
|
111
|
+
transition: string;
|
112
|
+
forbidClick: boolean;
|
113
|
+
closeOnClick: boolean;
|
114
|
+
}>;
|
115
|
+
export default _default;
|
@@ -0,0 +1,146 @@
|
|
1
|
+
var __defProp = Object.defineProperty;
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
5
|
+
var __export = (target, all) => {
|
6
|
+
for (var name2 in all)
|
7
|
+
__defProp(target, name2, { get: all[name2], enumerable: true });
|
8
|
+
};
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
11
|
+
for (let key of __getOwnPropNames(from))
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
14
|
+
}
|
15
|
+
return to;
|
16
|
+
};
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
18
|
+
var stdin_exports = {};
|
19
|
+
__export(stdin_exports, {
|
20
|
+
default: () => stdin_default,
|
21
|
+
toastProps: () => toastProps
|
22
|
+
});
|
23
|
+
module.exports = __toCommonJS(stdin_exports);
|
24
|
+
var import_vue = require("vue");
|
25
|
+
var import_vue2 = require("vue");
|
26
|
+
var import_utils = require("../utils");
|
27
|
+
var import_lock_click = require("./lock-click");
|
28
|
+
var import_icon = require("../icon");
|
29
|
+
var import_popup = require("../popup");
|
30
|
+
var import_loading = require("../loading");
|
31
|
+
const [name, bem] = (0, import_utils.createNamespace)("toast");
|
32
|
+
const popupInheritProps = ["show", "overlay", "teleport", "transition", "overlayClass", "overlayStyle", "closeOnClickOverlay"];
|
33
|
+
const toastProps = {
|
34
|
+
icon: String,
|
35
|
+
show: Boolean,
|
36
|
+
type: (0, import_utils.makeStringProp)("text"),
|
37
|
+
overlay: Boolean,
|
38
|
+
message: import_utils.numericProp,
|
39
|
+
iconSize: import_utils.numericProp,
|
40
|
+
duration: (0, import_utils.makeNumberProp)(2e3),
|
41
|
+
position: (0, import_utils.makeStringProp)("middle"),
|
42
|
+
teleport: [String, Object],
|
43
|
+
wordBreak: String,
|
44
|
+
className: import_utils.unknownProp,
|
45
|
+
iconPrefix: String,
|
46
|
+
transition: (0, import_utils.makeStringProp)("van-fade"),
|
47
|
+
loadingType: String,
|
48
|
+
forbidClick: Boolean,
|
49
|
+
overlayClass: import_utils.unknownProp,
|
50
|
+
overlayStyle: Object,
|
51
|
+
closeOnClick: Boolean,
|
52
|
+
closeOnClickOverlay: Boolean
|
53
|
+
};
|
54
|
+
var stdin_default = (0, import_vue2.defineComponent)({
|
55
|
+
name,
|
56
|
+
props: toastProps,
|
57
|
+
emits: ["update:show"],
|
58
|
+
setup(props, {
|
59
|
+
emit,
|
60
|
+
slots
|
61
|
+
}) {
|
62
|
+
let timer;
|
63
|
+
let clickable = false;
|
64
|
+
const toggleClickable = () => {
|
65
|
+
const newValue = props.show && props.forbidClick;
|
66
|
+
if (clickable !== newValue) {
|
67
|
+
clickable = newValue;
|
68
|
+
(0, import_lock_click.lockClick)(clickable);
|
69
|
+
}
|
70
|
+
};
|
71
|
+
const updateShow = (show) => emit("update:show", show);
|
72
|
+
const onClick = () => {
|
73
|
+
if (props.closeOnClick) {
|
74
|
+
updateShow(false);
|
75
|
+
}
|
76
|
+
};
|
77
|
+
const clearTimer = () => clearTimeout(timer);
|
78
|
+
const renderIcon = () => {
|
79
|
+
const {
|
80
|
+
icon,
|
81
|
+
type,
|
82
|
+
iconSize,
|
83
|
+
iconPrefix,
|
84
|
+
loadingType
|
85
|
+
} = props;
|
86
|
+
const hasIcon = icon || type === "success" || type === "fail";
|
87
|
+
if (hasIcon) {
|
88
|
+
return (0, import_vue.createVNode)(import_icon.Icon, {
|
89
|
+
"name": icon || type,
|
90
|
+
"size": iconSize,
|
91
|
+
"class": bem("icon"),
|
92
|
+
"classPrefix": iconPrefix
|
93
|
+
}, null);
|
94
|
+
}
|
95
|
+
if (type === "loading") {
|
96
|
+
return (0, import_vue.createVNode)(import_loading.Loading, {
|
97
|
+
"class": bem("loading"),
|
98
|
+
"size": iconSize,
|
99
|
+
"type": loadingType
|
100
|
+
}, null);
|
101
|
+
}
|
102
|
+
};
|
103
|
+
const renderMessage = () => {
|
104
|
+
const {
|
105
|
+
type,
|
106
|
+
message
|
107
|
+
} = props;
|
108
|
+
if (slots.message) {
|
109
|
+
return (0, import_vue.createVNode)("div", {
|
110
|
+
"class": bem("text")
|
111
|
+
}, [slots.message()]);
|
112
|
+
}
|
113
|
+
if ((0, import_utils.isDef)(message) && message !== "") {
|
114
|
+
return type === "html" ? (0, import_vue.createVNode)("div", {
|
115
|
+
"key": 0,
|
116
|
+
"class": bem("text"),
|
117
|
+
"innerHTML": String(message)
|
118
|
+
}, null) : (0, import_vue.createVNode)("div", {
|
119
|
+
"class": bem("text")
|
120
|
+
}, [message]);
|
121
|
+
}
|
122
|
+
};
|
123
|
+
(0, import_vue2.watch)(() => [props.show, props.forbidClick], toggleClickable);
|
124
|
+
(0, import_vue2.watch)(() => [props.show, props.type, props.message, props.duration], () => {
|
125
|
+
clearTimer();
|
126
|
+
if (props.show && props.duration > 0) {
|
127
|
+
timer = setTimeout(() => {
|
128
|
+
updateShow(false);
|
129
|
+
}, props.duration);
|
130
|
+
}
|
131
|
+
});
|
132
|
+
(0, import_vue2.onMounted)(toggleClickable);
|
133
|
+
(0, import_vue2.onUnmounted)(toggleClickable);
|
134
|
+
return () => (0, import_vue.createVNode)(import_popup.Popup, (0, import_vue.mergeProps)({
|
135
|
+
"class": [bem([props.position, props.wordBreak === "normal" ? "break-normal" : props.wordBreak, {
|
136
|
+
[props.type]: !props.icon
|
137
|
+
}]), props.className],
|
138
|
+
"lockScroll": false,
|
139
|
+
"onClick": onClick,
|
140
|
+
"onClosed": clearTimer,
|
141
|
+
"onUpdate:show": updateShow
|
142
|
+
}, (0, import_utils.pick)(props, popupInheritProps)), {
|
143
|
+
default: () => [renderIcon(), renderMessage()]
|
144
|
+
});
|
145
|
+
}
|
146
|
+
});
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import type { ToastType, ToastOptions, ToastWrapperInstance } from './types';
|
2
|
+
export declare function showToast(options?: string | ToastOptions): ToastWrapperInstance;
|
3
|
+
export declare const showLoadingToast: (options: string | ToastOptions) => ToastWrapperInstance;
|
4
|
+
export declare const showSuccessToast: (options: string | ToastOptions) => ToastWrapperInstance;
|
5
|
+
export declare const showFailToast: (options: string | ToastOptions) => ToastWrapperInstance;
|
6
|
+
export declare const closeToast: (all?: boolean) => void;
|
7
|
+
export declare function setToastDefaultOptions(options: ToastOptions): void;
|
8
|
+
export declare function setToastDefaultOptions(type: ToastType, options: ToastOptions): void;
|
9
|
+
export declare const resetToastDefaultOptions: (type?: ToastType) => void;
|
10
|
+
export declare const allowMultipleToast: (value?: boolean) => void;
|
@@ -0,0 +1,167 @@
|
|
1
|
+
var __create = Object.create;
|
2
|
+
var __defProp = Object.defineProperty;
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
7
|
+
var __export = (target, all) => {
|
8
|
+
for (var name in all)
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
10
|
+
};
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
13
|
+
for (let key of __getOwnPropNames(from))
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
16
|
+
}
|
17
|
+
return to;
|
18
|
+
};
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
20
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
21
|
+
mod
|
22
|
+
));
|
23
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
24
|
+
var stdin_exports = {};
|
25
|
+
__export(stdin_exports, {
|
26
|
+
allowMultipleToast: () => allowMultipleToast,
|
27
|
+
closeToast: () => closeToast,
|
28
|
+
resetToastDefaultOptions: () => resetToastDefaultOptions,
|
29
|
+
setToastDefaultOptions: () => setToastDefaultOptions,
|
30
|
+
showFailToast: () => showFailToast,
|
31
|
+
showLoadingToast: () => showLoadingToast,
|
32
|
+
showSuccessToast: () => showSuccessToast,
|
33
|
+
showToast: () => showToast
|
34
|
+
});
|
35
|
+
module.exports = __toCommonJS(stdin_exports);
|
36
|
+
var import_vue = require("vue");
|
37
|
+
var import_vue2 = require("vue");
|
38
|
+
var import_utils = require("../utils");
|
39
|
+
var import_mount_component = require("../utils/mount-component");
|
40
|
+
var import_Toast = __toESM(require("./Toast"));
|
41
|
+
const defaultOptions = {
|
42
|
+
icon: "",
|
43
|
+
type: "text",
|
44
|
+
message: "",
|
45
|
+
className: "",
|
46
|
+
overlay: false,
|
47
|
+
onClose: void 0,
|
48
|
+
onOpened: void 0,
|
49
|
+
duration: 2e3,
|
50
|
+
teleport: "body",
|
51
|
+
iconSize: void 0,
|
52
|
+
iconPrefix: void 0,
|
53
|
+
position: "middle",
|
54
|
+
transition: "van-fade",
|
55
|
+
forbidClick: false,
|
56
|
+
loadingType: void 0,
|
57
|
+
overlayClass: "",
|
58
|
+
overlayStyle: void 0,
|
59
|
+
closeOnClick: false,
|
60
|
+
closeOnClickOverlay: false
|
61
|
+
};
|
62
|
+
let queue = [];
|
63
|
+
let allowMultiple = false;
|
64
|
+
let currentOptions = (0, import_utils.extend)({}, defaultOptions);
|
65
|
+
const defaultOptionsMap = /* @__PURE__ */ new Map();
|
66
|
+
function parseOptions(message) {
|
67
|
+
if ((0, import_utils.isObject)(message)) {
|
68
|
+
return message;
|
69
|
+
}
|
70
|
+
return {
|
71
|
+
message
|
72
|
+
};
|
73
|
+
}
|
74
|
+
function createInstance() {
|
75
|
+
const {
|
76
|
+
instance,
|
77
|
+
unmount
|
78
|
+
} = (0, import_mount_component.mountComponent)({
|
79
|
+
setup() {
|
80
|
+
const message = (0, import_vue2.ref)("");
|
81
|
+
const {
|
82
|
+
open,
|
83
|
+
state,
|
84
|
+
close,
|
85
|
+
toggle
|
86
|
+
} = (0, import_mount_component.usePopupState)();
|
87
|
+
const onClosed = () => {
|
88
|
+
if (allowMultiple) {
|
89
|
+
queue = queue.filter((item) => item !== instance);
|
90
|
+
unmount();
|
91
|
+
}
|
92
|
+
};
|
93
|
+
const render = () => {
|
94
|
+
const attrs = {
|
95
|
+
onClosed,
|
96
|
+
"onUpdate:show": toggle
|
97
|
+
};
|
98
|
+
return (0, import_vue.createVNode)(import_Toast.default, (0, import_vue.mergeProps)(state, attrs), null);
|
99
|
+
};
|
100
|
+
(0, import_vue2.watch)(message, (val) => {
|
101
|
+
state.message = val;
|
102
|
+
});
|
103
|
+
(0, import_vue2.getCurrentInstance)().render = render;
|
104
|
+
return {
|
105
|
+
open,
|
106
|
+
close,
|
107
|
+
message
|
108
|
+
};
|
109
|
+
}
|
110
|
+
});
|
111
|
+
return instance;
|
112
|
+
}
|
113
|
+
function getInstance() {
|
114
|
+
if (!queue.length || allowMultiple) {
|
115
|
+
const instance = createInstance();
|
116
|
+
queue.push(instance);
|
117
|
+
}
|
118
|
+
return queue[queue.length - 1];
|
119
|
+
}
|
120
|
+
function showToast(options = {}) {
|
121
|
+
if (!import_utils.inBrowser) {
|
122
|
+
return {};
|
123
|
+
}
|
124
|
+
const toast = getInstance();
|
125
|
+
const parsedOptions = parseOptions(options);
|
126
|
+
toast.open((0, import_utils.extend)({}, currentOptions, defaultOptionsMap.get(parsedOptions.type || currentOptions.type), parsedOptions));
|
127
|
+
return toast;
|
128
|
+
}
|
129
|
+
const createMethod = (type) => (options) => showToast((0, import_utils.extend)({
|
130
|
+
type
|
131
|
+
}, parseOptions(options)));
|
132
|
+
const showLoadingToast = createMethod("loading");
|
133
|
+
const showSuccessToast = createMethod("success");
|
134
|
+
const showFailToast = createMethod("fail");
|
135
|
+
const closeToast = (all) => {
|
136
|
+
var _a;
|
137
|
+
if (queue.length) {
|
138
|
+
if (all) {
|
139
|
+
queue.forEach((toast) => {
|
140
|
+
toast.close();
|
141
|
+
});
|
142
|
+
queue = [];
|
143
|
+
} else if (!allowMultiple) {
|
144
|
+
queue[0].close();
|
145
|
+
} else {
|
146
|
+
(_a = queue.shift()) == null ? void 0 : _a.close();
|
147
|
+
}
|
148
|
+
}
|
149
|
+
};
|
150
|
+
function setToastDefaultOptions(type, options) {
|
151
|
+
if (typeof type === "string") {
|
152
|
+
defaultOptionsMap.set(type, options);
|
153
|
+
} else {
|
154
|
+
(0, import_utils.extend)(currentOptions, type);
|
155
|
+
}
|
156
|
+
}
|
157
|
+
const resetToastDefaultOptions = (type) => {
|
158
|
+
if (typeof type === "string") {
|
159
|
+
defaultOptionsMap.delete(type);
|
160
|
+
} else {
|
161
|
+
currentOptions = (0, import_utils.extend)({}, defaultOptions);
|
162
|
+
defaultOptionsMap.clear();
|
163
|
+
}
|
164
|
+
};
|
165
|
+
const allowMultipleToast = (value = true) => {
|
166
|
+
allowMultiple = value;
|
167
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
:root{--van-toast-max-width: 70%;--van-toast-font-size: var(--van-font-size-md);--van-toast-text-color: var(--van-white);--van-toast-loading-icon-color: var(--van-white);--van-toast-line-height: var(--van-line-height-md);--van-toast-radius: var(--van-radius-lg);--van-toast-background: rgba(0, 0, 0, .7);--van-toast-icon-size: 36px;--van-toast-text-min-width: 96px;--van-toast-text-padding: var(--van-padding-xs) var(--van-padding-sm);--van-toast-default-padding: var(--van-padding-md);--van-toast-default-width: 88px;--van-toast-default-min-height: 88px;--van-toast-position-top-distance: 20%;--van-toast-position-bottom-distance: 20%}.van-toast{display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:content-box;transition:all var(--van-duration-fast);width:var(--van-toast-default-width);max-width:var(--van-toast-max-width);min-height:var(--van-toast-default-min-height);padding:var(--van-toast-default-padding);color:var(--van-toast-text-color);font-size:var(--van-toast-font-size);line-height:var(--van-toast-line-height);white-space:pre-wrap;word-break:break-all;text-align:center;background:var(--van-toast-background);border-radius:var(--van-toast-radius)}.van-toast--break-normal{word-break:normal;word-wrap:normal}.van-toast--break-word{word-break:normal;word-wrap:break-word}.van-toast--unclickable{overflow:hidden;cursor:not-allowed}.van-toast--unclickable *{pointer-events:none}.van-toast--text,.van-toast--html{width:-webkit-fit-content;width:fit-content;min-width:var(--van-toast-text-min-width);min-height:0;padding:var(--van-toast-text-padding)}.van-toast--text .van-toast__text,.van-toast--html .van-toast__text{margin-top:0}.van-toast--top{top:var(--van-toast-position-top-distance)}.van-toast--bottom{top:auto;bottom:var(--van-toast-position-bottom-distance)}.van-toast__icon{font-size:var(--van-toast-icon-size)}.van-toast__loading{padding:var(--van-padding-base);color:var(--van-toast-loading-icon-color)}.van-toast__text{margin-top:var(--van-padding-xs)}
|
@@ -0,0 +1,87 @@
|
|
1
|
+
export declare const Toast: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
|
+
icon: StringConstructor;
|
3
|
+
show: BooleanConstructor;
|
4
|
+
type: {
|
5
|
+
type: import("vue").PropType<import("./types").ToastType>;
|
6
|
+
default: import("./types").ToastType;
|
7
|
+
};
|
8
|
+
overlay: BooleanConstructor;
|
9
|
+
message: (NumberConstructor | StringConstructor)[];
|
10
|
+
iconSize: (NumberConstructor | StringConstructor)[];
|
11
|
+
duration: {
|
12
|
+
type: NumberConstructor;
|
13
|
+
default: number;
|
14
|
+
};
|
15
|
+
position: {
|
16
|
+
type: import("vue").PropType<import("./types").ToastPosition>;
|
17
|
+
default: import("./types").ToastPosition;
|
18
|
+
};
|
19
|
+
teleport: import("vue").PropType<string | import("vue").RendererElement | null | undefined>;
|
20
|
+
wordBreak: import("vue").PropType<import("./types").ToastWordBreak>;
|
21
|
+
className: import("vue").PropType<unknown>;
|
22
|
+
iconPrefix: StringConstructor;
|
23
|
+
transition: {
|
24
|
+
type: import("vue").PropType<string>;
|
25
|
+
default: string;
|
26
|
+
};
|
27
|
+
loadingType: import("vue").PropType<import("..").LoadingType>;
|
28
|
+
forbidClick: BooleanConstructor;
|
29
|
+
overlayClass: import("vue").PropType<unknown>;
|
30
|
+
overlayStyle: import("vue").PropType<import("vue").CSSProperties>;
|
31
|
+
closeOnClick: BooleanConstructor;
|
32
|
+
closeOnClickOverlay: BooleanConstructor;
|
33
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:show"[], "update:show", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
34
|
+
icon: StringConstructor;
|
35
|
+
show: BooleanConstructor;
|
36
|
+
type: {
|
37
|
+
type: import("vue").PropType<import("./types").ToastType>;
|
38
|
+
default: import("./types").ToastType;
|
39
|
+
};
|
40
|
+
overlay: BooleanConstructor;
|
41
|
+
message: (NumberConstructor | StringConstructor)[];
|
42
|
+
iconSize: (NumberConstructor | StringConstructor)[];
|
43
|
+
duration: {
|
44
|
+
type: NumberConstructor;
|
45
|
+
default: number;
|
46
|
+
};
|
47
|
+
position: {
|
48
|
+
type: import("vue").PropType<import("./types").ToastPosition>;
|
49
|
+
default: import("./types").ToastPosition;
|
50
|
+
};
|
51
|
+
teleport: import("vue").PropType<string | import("vue").RendererElement | null | undefined>;
|
52
|
+
wordBreak: import("vue").PropType<import("./types").ToastWordBreak>;
|
53
|
+
className: import("vue").PropType<unknown>;
|
54
|
+
iconPrefix: StringConstructor;
|
55
|
+
transition: {
|
56
|
+
type: import("vue").PropType<string>;
|
57
|
+
default: string;
|
58
|
+
};
|
59
|
+
loadingType: import("vue").PropType<import("..").LoadingType>;
|
60
|
+
forbidClick: BooleanConstructor;
|
61
|
+
overlayClass: import("vue").PropType<unknown>;
|
62
|
+
overlayStyle: import("vue").PropType<import("vue").CSSProperties>;
|
63
|
+
closeOnClick: BooleanConstructor;
|
64
|
+
closeOnClickOverlay: BooleanConstructor;
|
65
|
+
}>> & {
|
66
|
+
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
67
|
+
}, {
|
68
|
+
type: import("./types").ToastType;
|
69
|
+
position: import("./types").ToastPosition;
|
70
|
+
overlay: boolean;
|
71
|
+
show: boolean;
|
72
|
+
duration: number;
|
73
|
+
closeOnClickOverlay: boolean;
|
74
|
+
transition: string;
|
75
|
+
forbidClick: boolean;
|
76
|
+
closeOnClick: boolean;
|
77
|
+
}>>;
|
78
|
+
export default Toast;
|
79
|
+
export { toastProps } from './Toast';
|
80
|
+
export { showToast, closeToast, showFailToast, showLoadingToast, showSuccessToast, allowMultipleToast, setToastDefaultOptions, resetToastDefaultOptions, } from './function-call';
|
81
|
+
export type { ToastProps } from './Toast';
|
82
|
+
export type { ToastType, ToastOptions, ToastPosition, ToastThemeVars, ToastWordBreak, } from './types';
|
83
|
+
declare module 'vue' {
|
84
|
+
interface GlobalComponents {
|
85
|
+
VanToast: typeof Toast;
|
86
|
+
}
|
87
|
+
}
|
@@ -0,0 +1,44 @@
|
|
1
|
+
var __create = Object.create;
|
2
|
+
var __defProp = Object.defineProperty;
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
7
|
+
var __export = (target, all) => {
|
8
|
+
for (var name in all)
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
10
|
+
};
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
13
|
+
for (let key of __getOwnPropNames(from))
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
16
|
+
}
|
17
|
+
return to;
|
18
|
+
};
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
20
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
21
|
+
mod
|
22
|
+
));
|
23
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
24
|
+
var stdin_exports = {};
|
25
|
+
__export(stdin_exports, {
|
26
|
+
Toast: () => Toast,
|
27
|
+
allowMultipleToast: () => import_function_call.allowMultipleToast,
|
28
|
+
closeToast: () => import_function_call.closeToast,
|
29
|
+
default: () => stdin_default,
|
30
|
+
resetToastDefaultOptions: () => import_function_call.resetToastDefaultOptions,
|
31
|
+
setToastDefaultOptions: () => import_function_call.setToastDefaultOptions,
|
32
|
+
showFailToast: () => import_function_call.showFailToast,
|
33
|
+
showLoadingToast: () => import_function_call.showLoadingToast,
|
34
|
+
showSuccessToast: () => import_function_call.showSuccessToast,
|
35
|
+
showToast: () => import_function_call.showToast,
|
36
|
+
toastProps: () => import_Toast2.toastProps
|
37
|
+
});
|
38
|
+
module.exports = __toCommonJS(stdin_exports);
|
39
|
+
var import_utils = require("../utils");
|
40
|
+
var import_Toast = __toESM(require("./Toast"));
|
41
|
+
var import_Toast2 = require("./Toast");
|
42
|
+
var import_function_call = require("./function-call");
|
43
|
+
const Toast = (0, import_utils.withInstall)(import_Toast.default);
|
44
|
+
var stdin_default = Toast;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function lockClick(lock: boolean): void;
|
@@ -0,0 +1,36 @@
|
|
1
|
+
var __defProp = Object.defineProperty;
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
5
|
+
var __export = (target, all) => {
|
6
|
+
for (var name in all)
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
8
|
+
};
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
11
|
+
for (let key of __getOwnPropNames(from))
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
14
|
+
}
|
15
|
+
return to;
|
16
|
+
};
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
18
|
+
var stdin_exports = {};
|
19
|
+
__export(stdin_exports, {
|
20
|
+
lockClick: () => lockClick
|
21
|
+
});
|
22
|
+
module.exports = __toCommonJS(stdin_exports);
|
23
|
+
let lockCount = 0;
|
24
|
+
function lockClick(lock) {
|
25
|
+
if (lock) {
|
26
|
+
if (!lockCount) {
|
27
|
+
document.body.classList.add("van-toast--unclickable");
|
28
|
+
}
|
29
|
+
lockCount++;
|
30
|
+
} else if (lockCount) {
|
31
|
+
lockCount--;
|
32
|
+
if (!lockCount) {
|
33
|
+
document.body.classList.remove("van-toast--unclickable");
|
34
|
+
}
|
35
|
+
}
|
36
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1,55 @@
|
|
1
|
+
import type { ComponentPublicInstance, TeleportProps } from 'vue';
|
2
|
+
import type { LoadingType } from '../loading';
|
3
|
+
import type { Numeric } from '../utils';
|
4
|
+
export type ToastType = 'text' | 'loading' | 'success' | 'fail' | 'html';
|
5
|
+
export type ToastPosition = 'top' | 'middle' | 'bottom';
|
6
|
+
export type ToastWordBreak = 'break-all' | 'break-word' | 'normal';
|
7
|
+
export type ToastOptions = {
|
8
|
+
icon?: string;
|
9
|
+
type?: ToastType;
|
10
|
+
mask?: boolean;
|
11
|
+
message?: Numeric;
|
12
|
+
onClose?: () => void;
|
13
|
+
onOpened?: () => void;
|
14
|
+
overlay?: boolean;
|
15
|
+
duration?: number;
|
16
|
+
teleport?: TeleportProps['to'];
|
17
|
+
iconSize?: Numeric;
|
18
|
+
position?: ToastPosition;
|
19
|
+
className?: unknown;
|
20
|
+
transition?: string;
|
21
|
+
iconPrefix?: string;
|
22
|
+
wordBreak?: ToastWordBreak;
|
23
|
+
loadingType?: LoadingType;
|
24
|
+
forbidClick?: boolean;
|
25
|
+
closeOnClick?: boolean;
|
26
|
+
overlayClass?: unknown;
|
27
|
+
overlayStyle?: Record<string, any>;
|
28
|
+
closeOnClickOverlay?: boolean;
|
29
|
+
};
|
30
|
+
export type ToastWrapperInstance = ComponentPublicInstance<{
|
31
|
+
message: Numeric;
|
32
|
+
}, {
|
33
|
+
close: () => void;
|
34
|
+
/**
|
35
|
+
* @private
|
36
|
+
*/
|
37
|
+
open: (props: Record<string, any>) => void;
|
38
|
+
}>;
|
39
|
+
export type ToastThemeVars = {
|
40
|
+
toastMaxWidth?: string;
|
41
|
+
toastFontSize?: string;
|
42
|
+
toastTextColor?: string;
|
43
|
+
toastLoadingIconColor?: string;
|
44
|
+
toastLineHeight?: number | string;
|
45
|
+
toastRadius?: string;
|
46
|
+
toastBackground?: string;
|
47
|
+
toastIconSize?: string;
|
48
|
+
toastTextMinWidth?: string;
|
49
|
+
toastTextPadding?: string;
|
50
|
+
toastDefaultPadding?: string;
|
51
|
+
toastDefaultWidth?: string;
|
52
|
+
toastDefaultMinHeight?: string;
|
53
|
+
toastPositionTopDistance?: string;
|
54
|
+
toastPositionBottomDistance?: string;
|
55
|
+
};
|