vant 4.0.5 → 4.0.7
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/icon/index.css +1 -1
- package/es/image-preview/ImagePreview.d.ts +3 -0
- package/es/image-preview/ImagePreview.mjs +3 -2
- package/es/image-preview/index.d.ts +2 -0
- package/es/index.d.ts +1 -1
- package/es/index.mjs +1 -1
- package/es/locale/lang/ru-RU.mjs +1 -1
- package/es/swipe/Swipe.mjs +3 -0
- 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 +191 -0
- package/lib/image-preview/ImagePreview.js +193 -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 +142 -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 +383 -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 +7 -3
- package/lib/vant.es.js +7 -3
- package/lib/vant.js +7 -3
- 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 +2 -2
@@ -0,0 +1,193 @@
|
|
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 name2 in all)
|
9
|
+
__defProp(target, name2, { get: all[name2], 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
|
+
default: () => stdin_default,
|
27
|
+
imagePreviewProps: () => imagePreviewProps
|
28
|
+
});
|
29
|
+
module.exports = __toCommonJS(stdin_exports);
|
30
|
+
var import_vue = require("vue");
|
31
|
+
var import_vue2 = require("vue");
|
32
|
+
var import_utils = require("../utils");
|
33
|
+
var import_use = require("@vant/use");
|
34
|
+
var import_use_expose = require("../composables/use-expose");
|
35
|
+
var import_icon = require("../icon");
|
36
|
+
var import_swipe = require("../swipe");
|
37
|
+
var import_popup = require("../popup");
|
38
|
+
var import_ImagePreviewItem = __toESM(require("./ImagePreviewItem"));
|
39
|
+
const [name, bem] = (0, import_utils.createNamespace)("image-preview");
|
40
|
+
const popupProps = ["show", "transition", "overlayStyle", "closeOnPopstate", "teleport"];
|
41
|
+
const imagePreviewProps = {
|
42
|
+
show: Boolean,
|
43
|
+
loop: import_utils.truthProp,
|
44
|
+
images: (0, import_utils.makeArrayProp)(),
|
45
|
+
minZoom: (0, import_utils.makeNumericProp)(1 / 3),
|
46
|
+
maxZoom: (0, import_utils.makeNumericProp)(3),
|
47
|
+
overlay: import_utils.truthProp,
|
48
|
+
closeable: Boolean,
|
49
|
+
showIndex: import_utils.truthProp,
|
50
|
+
className: import_utils.unknownProp,
|
51
|
+
closeIcon: (0, import_utils.makeStringProp)("clear"),
|
52
|
+
transition: String,
|
53
|
+
beforeClose: Function,
|
54
|
+
overlayClass: import_utils.unknownProp,
|
55
|
+
overlayStyle: Object,
|
56
|
+
swipeDuration: (0, import_utils.makeNumericProp)(300),
|
57
|
+
startPosition: (0, import_utils.makeNumericProp)(0),
|
58
|
+
showIndicators: Boolean,
|
59
|
+
closeOnPopstate: import_utils.truthProp,
|
60
|
+
closeIconPosition: (0, import_utils.makeStringProp)("top-right"),
|
61
|
+
teleport: [String, Object]
|
62
|
+
};
|
63
|
+
var stdin_default = (0, import_vue2.defineComponent)({
|
64
|
+
name,
|
65
|
+
props: imagePreviewProps,
|
66
|
+
emits: ["scale", "close", "closed", "change", "longPress", "update:show"],
|
67
|
+
setup(props, {
|
68
|
+
emit,
|
69
|
+
slots
|
70
|
+
}) {
|
71
|
+
const swipeRef = (0, import_vue2.ref)();
|
72
|
+
const state = (0, import_vue2.reactive)({
|
73
|
+
active: 0,
|
74
|
+
rootWidth: 0,
|
75
|
+
rootHeight: 0
|
76
|
+
});
|
77
|
+
const resize = () => {
|
78
|
+
if (swipeRef.value) {
|
79
|
+
const rect = (0, import_use.useRect)(swipeRef.value.$el);
|
80
|
+
state.rootWidth = rect.width;
|
81
|
+
state.rootHeight = rect.height;
|
82
|
+
swipeRef.value.resize();
|
83
|
+
}
|
84
|
+
};
|
85
|
+
const emitScale = (args) => emit("scale", args);
|
86
|
+
const updateShow = (show) => emit("update:show", show);
|
87
|
+
const emitClose = () => {
|
88
|
+
(0, import_utils.callInterceptor)(props.beforeClose, {
|
89
|
+
args: [state.active],
|
90
|
+
done: () => updateShow(false)
|
91
|
+
});
|
92
|
+
};
|
93
|
+
const setActive = (active) => {
|
94
|
+
if (active !== state.active) {
|
95
|
+
state.active = active;
|
96
|
+
emit("change", active);
|
97
|
+
}
|
98
|
+
};
|
99
|
+
const renderIndex = () => {
|
100
|
+
if (props.showIndex) {
|
101
|
+
return (0, import_vue.createVNode)("div", {
|
102
|
+
"class": bem("index")
|
103
|
+
}, [slots.index ? slots.index({
|
104
|
+
index: state.active
|
105
|
+
}) : `${state.active + 1} / ${props.images.length}`]);
|
106
|
+
}
|
107
|
+
};
|
108
|
+
const renderCover = () => {
|
109
|
+
if (slots.cover) {
|
110
|
+
return (0, import_vue.createVNode)("div", {
|
111
|
+
"class": bem("cover")
|
112
|
+
}, [slots.cover()]);
|
113
|
+
}
|
114
|
+
};
|
115
|
+
const renderImages = () => (0, import_vue.createVNode)(import_swipe.Swipe, {
|
116
|
+
"ref": swipeRef,
|
117
|
+
"lazyRender": true,
|
118
|
+
"loop": props.loop,
|
119
|
+
"class": bem("swipe"),
|
120
|
+
"duration": props.swipeDuration,
|
121
|
+
"initialSwipe": props.startPosition,
|
122
|
+
"showIndicators": props.showIndicators,
|
123
|
+
"indicatorColor": "white",
|
124
|
+
"onChange": setActive
|
125
|
+
}, {
|
126
|
+
default: () => [props.images.map((image, index) => (0, import_vue.createVNode)(import_ImagePreviewItem.default, {
|
127
|
+
"src": image,
|
128
|
+
"show": props.show,
|
129
|
+
"active": state.active,
|
130
|
+
"maxZoom": props.maxZoom,
|
131
|
+
"minZoom": props.minZoom,
|
132
|
+
"rootWidth": state.rootWidth,
|
133
|
+
"rootHeight": state.rootHeight,
|
134
|
+
"onScale": emitScale,
|
135
|
+
"onClose": emitClose,
|
136
|
+
"onLongPress": () => emit("longPress", {
|
137
|
+
index
|
138
|
+
})
|
139
|
+
}, {
|
140
|
+
image: slots.image
|
141
|
+
}))]
|
142
|
+
});
|
143
|
+
const renderClose = () => {
|
144
|
+
if (props.closeable) {
|
145
|
+
return (0, import_vue.createVNode)(import_icon.Icon, {
|
146
|
+
"role": "button",
|
147
|
+
"name": props.closeIcon,
|
148
|
+
"class": [bem("close-icon", props.closeIconPosition), import_utils.HAPTICS_FEEDBACK],
|
149
|
+
"onClick": emitClose
|
150
|
+
}, null);
|
151
|
+
}
|
152
|
+
};
|
153
|
+
const onClosed = () => emit("closed");
|
154
|
+
const swipeTo = (index, options) => {
|
155
|
+
var _a;
|
156
|
+
return (_a = swipeRef.value) == null ? void 0 : _a.swipeTo(index, options);
|
157
|
+
};
|
158
|
+
(0, import_use_expose.useExpose)({
|
159
|
+
swipeTo
|
160
|
+
});
|
161
|
+
(0, import_vue2.onMounted)(resize);
|
162
|
+
(0, import_vue2.watch)([import_utils.windowWidth, import_utils.windowHeight], resize);
|
163
|
+
(0, import_vue2.watch)(() => props.startPosition, (value) => setActive(+value));
|
164
|
+
(0, import_vue2.watch)(() => props.show, (value) => {
|
165
|
+
const {
|
166
|
+
images,
|
167
|
+
startPosition
|
168
|
+
} = props;
|
169
|
+
if (value) {
|
170
|
+
setActive(+startPosition);
|
171
|
+
(0, import_vue2.nextTick)(() => {
|
172
|
+
resize();
|
173
|
+
swipeTo(+startPosition, {
|
174
|
+
immediate: true
|
175
|
+
});
|
176
|
+
});
|
177
|
+
} else {
|
178
|
+
emit("close", {
|
179
|
+
index: state.active,
|
180
|
+
url: images[state.active]
|
181
|
+
});
|
182
|
+
}
|
183
|
+
});
|
184
|
+
return () => (0, import_vue.createVNode)(import_popup.Popup, (0, import_vue.mergeProps)({
|
185
|
+
"class": [bem(), props.className],
|
186
|
+
"overlayClass": [bem("overlay"), props.overlayClass],
|
187
|
+
"onClosed": onClosed,
|
188
|
+
"onUpdate:show": updateShow
|
189
|
+
}, (0, import_utils.pick)(props, popupProps)), {
|
190
|
+
default: () => [renderClose(), renderImages(), renderIndex(), renderCover()]
|
191
|
+
});
|
192
|
+
}
|
193
|
+
});
|
@@ -0,0 +1,48 @@
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
2
|
+
src: StringConstructor;
|
3
|
+
show: BooleanConstructor;
|
4
|
+
active: NumberConstructor;
|
5
|
+
minZoom: {
|
6
|
+
type: (NumberConstructor | StringConstructor)[];
|
7
|
+
required: true;
|
8
|
+
};
|
9
|
+
maxZoom: {
|
10
|
+
type: (NumberConstructor | StringConstructor)[];
|
11
|
+
required: true;
|
12
|
+
};
|
13
|
+
rootWidth: {
|
14
|
+
type: NumberConstructor;
|
15
|
+
required: true;
|
16
|
+
};
|
17
|
+
rootHeight: {
|
18
|
+
type: NumberConstructor;
|
19
|
+
required: true;
|
20
|
+
};
|
21
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "scale" | "longPress")[], "close" | "scale" | "longPress", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
22
|
+
src: StringConstructor;
|
23
|
+
show: BooleanConstructor;
|
24
|
+
active: NumberConstructor;
|
25
|
+
minZoom: {
|
26
|
+
type: (NumberConstructor | StringConstructor)[];
|
27
|
+
required: true;
|
28
|
+
};
|
29
|
+
maxZoom: {
|
30
|
+
type: (NumberConstructor | StringConstructor)[];
|
31
|
+
required: true;
|
32
|
+
};
|
33
|
+
rootWidth: {
|
34
|
+
type: NumberConstructor;
|
35
|
+
required: true;
|
36
|
+
};
|
37
|
+
rootHeight: {
|
38
|
+
type: NumberConstructor;
|
39
|
+
required: true;
|
40
|
+
};
|
41
|
+
}>> & {
|
42
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
43
|
+
onScale?: ((...args: any[]) => any) | undefined;
|
44
|
+
onLongPress?: ((...args: any[]) => any) | undefined;
|
45
|
+
}, {
|
46
|
+
show: boolean;
|
47
|
+
}>;
|
48
|
+
export default _default;
|
@@ -0,0 +1,284 @@
|
|
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
|
+
default: () => stdin_default
|
21
|
+
});
|
22
|
+
module.exports = __toCommonJS(stdin_exports);
|
23
|
+
var import_vue = require("vue");
|
24
|
+
var import_vue2 = require("vue");
|
25
|
+
var import_utils = require("../utils");
|
26
|
+
var import_use_touch = require("../composables/use-touch");
|
27
|
+
var import_use = require("@vant/use");
|
28
|
+
var import_image = require("../image");
|
29
|
+
var import_loading = require("../loading");
|
30
|
+
var import_swipe_item = require("../swipe-item");
|
31
|
+
const getDistance = (touches) => Math.sqrt((touches[0].clientX - touches[1].clientX) ** 2 + (touches[0].clientY - touches[1].clientY) ** 2);
|
32
|
+
const bem = (0, import_utils.createNamespace)("image-preview")[1];
|
33
|
+
var stdin_default = (0, import_vue2.defineComponent)({
|
34
|
+
props: {
|
35
|
+
src: String,
|
36
|
+
show: Boolean,
|
37
|
+
active: Number,
|
38
|
+
minZoom: (0, import_utils.makeRequiredProp)(import_utils.numericProp),
|
39
|
+
maxZoom: (0, import_utils.makeRequiredProp)(import_utils.numericProp),
|
40
|
+
rootWidth: (0, import_utils.makeRequiredProp)(Number),
|
41
|
+
rootHeight: (0, import_utils.makeRequiredProp)(Number)
|
42
|
+
},
|
43
|
+
emits: ["scale", "close", "longPress"],
|
44
|
+
setup(props, {
|
45
|
+
emit,
|
46
|
+
slots
|
47
|
+
}) {
|
48
|
+
const state = (0, import_vue2.reactive)({
|
49
|
+
scale: 1,
|
50
|
+
moveX: 0,
|
51
|
+
moveY: 0,
|
52
|
+
moving: false,
|
53
|
+
zooming: false,
|
54
|
+
imageRatio: 0,
|
55
|
+
displayWidth: 0,
|
56
|
+
displayHeight: 0
|
57
|
+
});
|
58
|
+
const touch = (0, import_use_touch.useTouch)();
|
59
|
+
const swipeItem = (0, import_vue2.ref)();
|
60
|
+
const vertical = (0, import_vue2.computed)(() => {
|
61
|
+
const {
|
62
|
+
rootWidth,
|
63
|
+
rootHeight
|
64
|
+
} = props;
|
65
|
+
const rootRatio = rootHeight / rootWidth;
|
66
|
+
return state.imageRatio > rootRatio;
|
67
|
+
});
|
68
|
+
const imageStyle = (0, import_vue2.computed)(() => {
|
69
|
+
const {
|
70
|
+
scale,
|
71
|
+
moveX,
|
72
|
+
moveY,
|
73
|
+
moving,
|
74
|
+
zooming
|
75
|
+
} = state;
|
76
|
+
const style = {
|
77
|
+
transitionDuration: zooming || moving ? "0s" : ".3s"
|
78
|
+
};
|
79
|
+
if (scale !== 1) {
|
80
|
+
const offsetX = moveX / scale;
|
81
|
+
const offsetY = moveY / scale;
|
82
|
+
style.transform = `scale(${scale}, ${scale}) translate(${offsetX}px, ${offsetY}px)`;
|
83
|
+
}
|
84
|
+
return style;
|
85
|
+
});
|
86
|
+
const maxMoveX = (0, import_vue2.computed)(() => {
|
87
|
+
if (state.imageRatio) {
|
88
|
+
const {
|
89
|
+
rootWidth,
|
90
|
+
rootHeight
|
91
|
+
} = props;
|
92
|
+
const displayWidth = vertical.value ? rootHeight / state.imageRatio : rootWidth;
|
93
|
+
return Math.max(0, (state.scale * displayWidth - rootWidth) / 2);
|
94
|
+
}
|
95
|
+
return 0;
|
96
|
+
});
|
97
|
+
const maxMoveY = (0, import_vue2.computed)(() => {
|
98
|
+
if (state.imageRatio) {
|
99
|
+
const {
|
100
|
+
rootWidth,
|
101
|
+
rootHeight
|
102
|
+
} = props;
|
103
|
+
const displayHeight = vertical.value ? rootHeight : rootWidth * state.imageRatio;
|
104
|
+
return Math.max(0, (state.scale * displayHeight - rootHeight) / 2);
|
105
|
+
}
|
106
|
+
return 0;
|
107
|
+
});
|
108
|
+
const setScale = (scale) => {
|
109
|
+
scale = (0, import_utils.clamp)(scale, +props.minZoom, +props.maxZoom + 1);
|
110
|
+
if (scale !== state.scale) {
|
111
|
+
state.scale = scale;
|
112
|
+
emit("scale", {
|
113
|
+
scale,
|
114
|
+
index: props.active
|
115
|
+
});
|
116
|
+
}
|
117
|
+
};
|
118
|
+
const resetScale = () => {
|
119
|
+
setScale(1);
|
120
|
+
state.moveX = 0;
|
121
|
+
state.moveY = 0;
|
122
|
+
};
|
123
|
+
const toggleScale = () => {
|
124
|
+
const scale = state.scale > 1 ? 1 : 2;
|
125
|
+
setScale(scale);
|
126
|
+
state.moveX = 0;
|
127
|
+
state.moveY = 0;
|
128
|
+
};
|
129
|
+
let fingerNum;
|
130
|
+
let startMoveX;
|
131
|
+
let startMoveY;
|
132
|
+
let startScale;
|
133
|
+
let startDistance;
|
134
|
+
let doubleTapTimer;
|
135
|
+
let touchStartTime;
|
136
|
+
const onTouchStart = (event) => {
|
137
|
+
const {
|
138
|
+
touches
|
139
|
+
} = event;
|
140
|
+
const {
|
141
|
+
offsetX
|
142
|
+
} = touch;
|
143
|
+
touch.start(event);
|
144
|
+
fingerNum = touches.length;
|
145
|
+
startMoveX = state.moveX;
|
146
|
+
startMoveY = state.moveY;
|
147
|
+
touchStartTime = Date.now();
|
148
|
+
state.moving = fingerNum === 1 && state.scale !== 1;
|
149
|
+
state.zooming = fingerNum === 2 && !offsetX.value;
|
150
|
+
if (state.zooming) {
|
151
|
+
startScale = state.scale;
|
152
|
+
startDistance = getDistance(event.touches);
|
153
|
+
}
|
154
|
+
};
|
155
|
+
const onTouchMove = (event) => {
|
156
|
+
const {
|
157
|
+
touches
|
158
|
+
} = event;
|
159
|
+
touch.move(event);
|
160
|
+
if (state.moving || state.zooming) {
|
161
|
+
(0, import_utils.preventDefault)(event, true);
|
162
|
+
}
|
163
|
+
if (state.moving) {
|
164
|
+
const {
|
165
|
+
deltaX,
|
166
|
+
deltaY
|
167
|
+
} = touch;
|
168
|
+
const moveX = deltaX.value + startMoveX;
|
169
|
+
const moveY = deltaY.value + startMoveY;
|
170
|
+
state.moveX = (0, import_utils.clamp)(moveX, -maxMoveX.value, maxMoveX.value);
|
171
|
+
state.moveY = (0, import_utils.clamp)(moveY, -maxMoveY.value, maxMoveY.value);
|
172
|
+
}
|
173
|
+
if (state.zooming && touches.length === 2) {
|
174
|
+
const distance = getDistance(touches);
|
175
|
+
const scale = startScale * distance / startDistance;
|
176
|
+
setScale(scale);
|
177
|
+
}
|
178
|
+
};
|
179
|
+
const checkTap = () => {
|
180
|
+
if (fingerNum > 1) {
|
181
|
+
return;
|
182
|
+
}
|
183
|
+
const {
|
184
|
+
offsetX,
|
185
|
+
offsetY
|
186
|
+
} = touch;
|
187
|
+
const deltaTime = Date.now() - touchStartTime;
|
188
|
+
const TAP_TIME = 250;
|
189
|
+
const TAP_OFFSET = 5;
|
190
|
+
if (offsetX.value < TAP_OFFSET && offsetY.value < TAP_OFFSET) {
|
191
|
+
if (deltaTime < TAP_TIME) {
|
192
|
+
if (doubleTapTimer) {
|
193
|
+
clearTimeout(doubleTapTimer);
|
194
|
+
doubleTapTimer = null;
|
195
|
+
toggleScale();
|
196
|
+
} else {
|
197
|
+
doubleTapTimer = setTimeout(() => {
|
198
|
+
emit("close");
|
199
|
+
doubleTapTimer = null;
|
200
|
+
}, TAP_TIME);
|
201
|
+
}
|
202
|
+
} else if (deltaTime > import_utils.LONG_PRESS_START_TIME) {
|
203
|
+
emit("longPress");
|
204
|
+
}
|
205
|
+
}
|
206
|
+
};
|
207
|
+
const onTouchEnd = (event) => {
|
208
|
+
let stopPropagation = false;
|
209
|
+
if (state.moving || state.zooming) {
|
210
|
+
stopPropagation = true;
|
211
|
+
if (state.moving && startMoveX === state.moveX && startMoveY === state.moveY) {
|
212
|
+
stopPropagation = false;
|
213
|
+
}
|
214
|
+
if (!event.touches.length) {
|
215
|
+
if (state.zooming) {
|
216
|
+
state.moveX = (0, import_utils.clamp)(state.moveX, -maxMoveX.value, maxMoveX.value);
|
217
|
+
state.moveY = (0, import_utils.clamp)(state.moveY, -maxMoveY.value, maxMoveY.value);
|
218
|
+
state.zooming = false;
|
219
|
+
}
|
220
|
+
state.moving = false;
|
221
|
+
startMoveX = 0;
|
222
|
+
startMoveY = 0;
|
223
|
+
startScale = 1;
|
224
|
+
if (state.scale < 1) {
|
225
|
+
resetScale();
|
226
|
+
}
|
227
|
+
if (state.scale > props.maxZoom) {
|
228
|
+
state.scale = +props.maxZoom;
|
229
|
+
}
|
230
|
+
}
|
231
|
+
}
|
232
|
+
(0, import_utils.preventDefault)(event, stopPropagation);
|
233
|
+
checkTap();
|
234
|
+
touch.reset();
|
235
|
+
};
|
236
|
+
const onLoad = (event) => {
|
237
|
+
const {
|
238
|
+
naturalWidth,
|
239
|
+
naturalHeight
|
240
|
+
} = event.target;
|
241
|
+
state.imageRatio = naturalHeight / naturalWidth;
|
242
|
+
};
|
243
|
+
(0, import_vue2.watch)(() => props.active, resetScale);
|
244
|
+
(0, import_vue2.watch)(() => props.show, (value) => {
|
245
|
+
if (!value) {
|
246
|
+
resetScale();
|
247
|
+
}
|
248
|
+
});
|
249
|
+
(0, import_use.useEventListener)("touchmove", onTouchMove, {
|
250
|
+
target: (0, import_vue2.computed)(() => {
|
251
|
+
var _a;
|
252
|
+
return (_a = swipeItem.value) == null ? void 0 : _a.$el;
|
253
|
+
})
|
254
|
+
});
|
255
|
+
return () => {
|
256
|
+
const imageSlots = {
|
257
|
+
loading: () => (0, import_vue.createVNode)(import_loading.Loading, {
|
258
|
+
"type": "spinner"
|
259
|
+
}, null)
|
260
|
+
};
|
261
|
+
return (0, import_vue.createVNode)(import_swipe_item.SwipeItem, {
|
262
|
+
"ref": swipeItem,
|
263
|
+
"class": bem("swipe-item"),
|
264
|
+
"onTouchstartPassive": onTouchStart,
|
265
|
+
"onTouchend": onTouchEnd,
|
266
|
+
"onTouchcancel": onTouchEnd
|
267
|
+
}, {
|
268
|
+
default: () => [slots.image ? (0, import_vue.createVNode)("div", {
|
269
|
+
"class": bem("image-wrap")
|
270
|
+
}, [slots.image({
|
271
|
+
src: props.src
|
272
|
+
})]) : (0, import_vue.createVNode)(import_image.Image, {
|
273
|
+
"src": props.src,
|
274
|
+
"fit": "contain",
|
275
|
+
"class": bem("image", {
|
276
|
+
vertical: vertical.value
|
277
|
+
}),
|
278
|
+
"style": imageStyle.value,
|
279
|
+
"onLoad": onLoad
|
280
|
+
}, imageSlots)]
|
281
|
+
});
|
282
|
+
};
|
283
|
+
}
|
284
|
+
});
|
@@ -0,0 +1,89 @@
|
|
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
|
+
showImagePreview: () => showImagePreview
|
27
|
+
});
|
28
|
+
module.exports = __toCommonJS(stdin_exports);
|
29
|
+
var import_vue = require("vue");
|
30
|
+
var import_utils = require("../utils");
|
31
|
+
var import_mount_component = require("../utils/mount-component");
|
32
|
+
var import_ImagePreview = __toESM(require("./ImagePreview"));
|
33
|
+
let instance;
|
34
|
+
const defaultConfig = {
|
35
|
+
loop: true,
|
36
|
+
images: [],
|
37
|
+
maxZoom: 3,
|
38
|
+
minZoom: 1 / 3,
|
39
|
+
onScale: void 0,
|
40
|
+
onClose: void 0,
|
41
|
+
onChange: void 0,
|
42
|
+
teleport: "body",
|
43
|
+
className: "",
|
44
|
+
showIndex: true,
|
45
|
+
closeable: false,
|
46
|
+
closeIcon: "clear",
|
47
|
+
transition: void 0,
|
48
|
+
beforeClose: void 0,
|
49
|
+
overlayStyle: void 0,
|
50
|
+
overlayClass: void 0,
|
51
|
+
startPosition: 0,
|
52
|
+
swipeDuration: 300,
|
53
|
+
showIndicators: false,
|
54
|
+
closeOnPopstate: true,
|
55
|
+
closeIconPosition: "top-right"
|
56
|
+
};
|
57
|
+
function initInstance() {
|
58
|
+
({
|
59
|
+
instance
|
60
|
+
} = (0, import_mount_component.mountComponent)({
|
61
|
+
setup() {
|
62
|
+
const {
|
63
|
+
state,
|
64
|
+
toggle
|
65
|
+
} = (0, import_mount_component.usePopupState)();
|
66
|
+
const onClosed = () => {
|
67
|
+
state.images = [];
|
68
|
+
};
|
69
|
+
return () => (0, import_vue.createVNode)(import_ImagePreview.default, (0, import_vue.mergeProps)(state, {
|
70
|
+
"onClosed": onClosed,
|
71
|
+
"onUpdate:show": toggle
|
72
|
+
}), null);
|
73
|
+
}
|
74
|
+
}));
|
75
|
+
}
|
76
|
+
const showImagePreview = (options, startPosition = 0) => {
|
77
|
+
if (!import_utils.inBrowser) {
|
78
|
+
return;
|
79
|
+
}
|
80
|
+
if (!instance) {
|
81
|
+
initInstance();
|
82
|
+
}
|
83
|
+
options = Array.isArray(options) ? {
|
84
|
+
images: options,
|
85
|
+
startPosition
|
86
|
+
} : options;
|
87
|
+
instance.open((0, import_utils.extend)({}, defaultConfig, options));
|
88
|
+
return instance;
|
89
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
:root{--van-image-preview-index-text-color: var(--van-white);--van-image-preview-index-font-size: var(--van-font-size-md);--van-image-preview-index-line-height: var(--van-line-height-md);--van-image-preview-index-text-shadow: 0 1px 1px var(--van-gray-8);--van-image-preview-overlay-background: rgba(0, 0, 0, .9);--van-image-preview-close-icon-size: 22px;--van-image-preview-close-icon-color: var(--van-gray-5);--van-image-preview-close-icon-margin: var(--van-padding-md);--van-image-preview-close-icon-z-index: 1}.van-image-preview{position:fixed;top:0;left:0;width:100%;height:100%;max-width:none;background-color:transparent;transform:none}.van-image-preview__swipe{height:100%}.van-image-preview__swipe-item{display:flex;align-items:center;justify-content:center;overflow:hidden}.van-image-preview__cover{position:absolute;top:0;left:0}.van-image-preview__image,.van-image-preview__image-wrap{width:100%;transition-property:transform}.van-image-preview__image--vertical,.van-image-preview__image-wrap--vertical{width:auto;height:100%}.van-image-preview__image img,.van-image-preview__image-wrap img,.van-image-preview__image video,.van-image-preview__image-wrap video{-webkit-user-drag:none}.van-image-preview__image .van-image__error,.van-image-preview__image-wrap .van-image__error{top:30%;height:40%}.van-image-preview__image .van-image__error-icon,.van-image-preview__image-wrap .van-image__error-icon{font-size:36px}.van-image-preview__image .van-image__loading,.van-image-preview__image-wrap .van-image__loading{background-color:transparent}.van-image-preview__index{position:absolute;top:var(--van-padding-md);left:50%;color:var(--van-image-preview-index-text-color);font-size:var(--van-image-preview-index-font-size);line-height:var(--van-image-preview-index-line-height);text-shadow:var(--van-image-preview-index-text-shadow);transform:translate(-50%)}.van-image-preview__overlay{background:var(--van-image-preview-overlay-background)}.van-image-preview__close-icon{position:absolute;z-index:var(--van-image-preview-close-icon-z-index);color:var(--van-image-preview-close-icon-color);font-size:var(--van-image-preview-close-icon-size)}.van-image-preview__close-icon--top-left{top:var(--van-image-preview-close-icon-margin);left:var(--van-image-preview-close-icon-margin)}.van-image-preview__close-icon--top-right{top:var(--van-image-preview-close-icon-margin);right:var(--van-image-preview-close-icon-margin)}.van-image-preview__close-icon--bottom-left{bottom:var(--van-image-preview-close-icon-margin);left:var(--van-image-preview-close-icon-margin)}.van-image-preview__close-icon--bottom-right{right:var(--van-image-preview-close-icon-margin);bottom:var(--van-image-preview-close-icon-margin)}
|