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,213 @@
|
|
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
|
+
PICKER_KEY: () => PICKER_KEY,
|
21
|
+
default: () => stdin_default
|
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_utils2 = require("./utils");
|
28
|
+
var import_use = require("@vant/use");
|
29
|
+
var import_use_touch = require("../composables/use-touch");
|
30
|
+
var import_use_expose = require("../composables/use-expose");
|
31
|
+
const DEFAULT_DURATION = 200;
|
32
|
+
const MOMENTUM_TIME = 300;
|
33
|
+
const MOMENTUM_DISTANCE = 15;
|
34
|
+
const [name, bem] = (0, import_utils.createNamespace)("picker-column");
|
35
|
+
const PICKER_KEY = Symbol(name);
|
36
|
+
var stdin_default = (0, import_vue2.defineComponent)({
|
37
|
+
name,
|
38
|
+
props: {
|
39
|
+
value: import_utils.numericProp,
|
40
|
+
fields: (0, import_utils.makeRequiredProp)(Object),
|
41
|
+
options: (0, import_utils.makeArrayProp)(),
|
42
|
+
readonly: Boolean,
|
43
|
+
allowHtml: Boolean,
|
44
|
+
optionHeight: (0, import_utils.makeRequiredProp)(Number),
|
45
|
+
swipeDuration: (0, import_utils.makeRequiredProp)(import_utils.numericProp),
|
46
|
+
visibleOptionNum: (0, import_utils.makeRequiredProp)(import_utils.numericProp)
|
47
|
+
},
|
48
|
+
emits: ["change", "clickOption"],
|
49
|
+
setup(props, {
|
50
|
+
emit,
|
51
|
+
slots
|
52
|
+
}) {
|
53
|
+
let moving;
|
54
|
+
let startOffset;
|
55
|
+
let touchStartTime;
|
56
|
+
let momentumOffset;
|
57
|
+
let transitionEndTrigger;
|
58
|
+
const root = (0, import_vue2.ref)();
|
59
|
+
const wrapper = (0, import_vue2.ref)();
|
60
|
+
const currentOffset = (0, import_vue2.ref)(0);
|
61
|
+
const currentDuration = (0, import_vue2.ref)(0);
|
62
|
+
const touch = (0, import_use_touch.useTouch)();
|
63
|
+
const count = () => props.options.length;
|
64
|
+
const baseOffset = () => props.optionHeight * (+props.visibleOptionNum - 1) / 2;
|
65
|
+
const updateValueByIndex = (index) => {
|
66
|
+
const enabledIndex = (0, import_utils2.findIndexOfEnabledOption)(props.options, index);
|
67
|
+
const offset = -enabledIndex * props.optionHeight;
|
68
|
+
const trigger = () => {
|
69
|
+
const value = props.options[enabledIndex][props.fields.value];
|
70
|
+
if (value !== props.value) {
|
71
|
+
emit("change", value);
|
72
|
+
}
|
73
|
+
};
|
74
|
+
if (moving && offset !== currentOffset.value) {
|
75
|
+
transitionEndTrigger = trigger;
|
76
|
+
} else {
|
77
|
+
trigger();
|
78
|
+
}
|
79
|
+
currentOffset.value = offset;
|
80
|
+
};
|
81
|
+
const isReadonly = () => props.readonly || !props.options.length;
|
82
|
+
const onClickOption = (index) => {
|
83
|
+
if (moving || isReadonly()) {
|
84
|
+
return;
|
85
|
+
}
|
86
|
+
transitionEndTrigger = null;
|
87
|
+
currentDuration.value = DEFAULT_DURATION;
|
88
|
+
updateValueByIndex(index);
|
89
|
+
emit("clickOption", props.options[index]);
|
90
|
+
};
|
91
|
+
const getIndexByOffset = (offset) => (0, import_utils.clamp)(Math.round(-offset / props.optionHeight), 0, count() - 1);
|
92
|
+
const momentum = (distance, duration) => {
|
93
|
+
const speed = Math.abs(distance / duration);
|
94
|
+
distance = currentOffset.value + speed / 3e-3 * (distance < 0 ? -1 : 1);
|
95
|
+
const index = getIndexByOffset(distance);
|
96
|
+
currentDuration.value = +props.swipeDuration;
|
97
|
+
updateValueByIndex(index);
|
98
|
+
};
|
99
|
+
const stopMomentum = () => {
|
100
|
+
moving = false;
|
101
|
+
currentDuration.value = 0;
|
102
|
+
if (transitionEndTrigger) {
|
103
|
+
transitionEndTrigger();
|
104
|
+
transitionEndTrigger = null;
|
105
|
+
}
|
106
|
+
};
|
107
|
+
const onTouchStart = (event) => {
|
108
|
+
if (isReadonly()) {
|
109
|
+
return;
|
110
|
+
}
|
111
|
+
touch.start(event);
|
112
|
+
if (moving) {
|
113
|
+
const translateY = (0, import_utils2.getElementTranslateY)(wrapper.value);
|
114
|
+
currentOffset.value = Math.min(0, translateY - baseOffset());
|
115
|
+
}
|
116
|
+
currentDuration.value = 0;
|
117
|
+
startOffset = currentOffset.value;
|
118
|
+
touchStartTime = Date.now();
|
119
|
+
momentumOffset = startOffset;
|
120
|
+
transitionEndTrigger = null;
|
121
|
+
};
|
122
|
+
const onTouchMove = (event) => {
|
123
|
+
if (isReadonly()) {
|
124
|
+
return;
|
125
|
+
}
|
126
|
+
touch.move(event);
|
127
|
+
if (touch.isVertical()) {
|
128
|
+
moving = true;
|
129
|
+
(0, import_utils.preventDefault)(event, true);
|
130
|
+
}
|
131
|
+
currentOffset.value = (0, import_utils.clamp)(startOffset + touch.deltaY.value, -(count() * props.optionHeight), props.optionHeight);
|
132
|
+
const now = Date.now();
|
133
|
+
if (now - touchStartTime > MOMENTUM_TIME) {
|
134
|
+
touchStartTime = now;
|
135
|
+
momentumOffset = currentOffset.value;
|
136
|
+
}
|
137
|
+
};
|
138
|
+
const onTouchEnd = () => {
|
139
|
+
if (isReadonly()) {
|
140
|
+
return;
|
141
|
+
}
|
142
|
+
const distance = currentOffset.value - momentumOffset;
|
143
|
+
const duration = Date.now() - touchStartTime;
|
144
|
+
const startMomentum = duration < MOMENTUM_TIME && Math.abs(distance) > MOMENTUM_DISTANCE;
|
145
|
+
if (startMomentum) {
|
146
|
+
momentum(distance, duration);
|
147
|
+
return;
|
148
|
+
}
|
149
|
+
const index = getIndexByOffset(currentOffset.value);
|
150
|
+
currentDuration.value = DEFAULT_DURATION;
|
151
|
+
updateValueByIndex(index);
|
152
|
+
setTimeout(() => {
|
153
|
+
moving = false;
|
154
|
+
}, 0);
|
155
|
+
};
|
156
|
+
const renderOptions = () => {
|
157
|
+
const optionStyle = {
|
158
|
+
height: `${props.optionHeight}px`
|
159
|
+
};
|
160
|
+
return props.options.map((option, index) => {
|
161
|
+
const text = option[props.fields.text];
|
162
|
+
const {
|
163
|
+
disabled
|
164
|
+
} = option;
|
165
|
+
const value = option[props.fields.value];
|
166
|
+
const data = {
|
167
|
+
role: "button",
|
168
|
+
style: optionStyle,
|
169
|
+
tabindex: disabled ? -1 : 0,
|
170
|
+
class: [bem("item", {
|
171
|
+
disabled,
|
172
|
+
selected: value === props.value
|
173
|
+
}), option.className],
|
174
|
+
onClick: () => onClickOption(index)
|
175
|
+
};
|
176
|
+
const childData = {
|
177
|
+
class: "van-ellipsis",
|
178
|
+
[props.allowHtml ? "innerHTML" : "textContent"]: text
|
179
|
+
};
|
180
|
+
return (0, import_vue.createVNode)("li", data, [slots.option ? slots.option(option) : (0, import_vue.createVNode)("div", childData, null)]);
|
181
|
+
});
|
182
|
+
};
|
183
|
+
(0, import_use.useParent)(PICKER_KEY);
|
184
|
+
(0, import_use_expose.useExpose)({
|
185
|
+
stopMomentum
|
186
|
+
});
|
187
|
+
(0, import_vue2.watchEffect)(() => {
|
188
|
+
const index = props.options.findIndex((option) => option[props.fields.value] === props.value);
|
189
|
+
const enabledIndex = (0, import_utils2.findIndexOfEnabledOption)(props.options, index);
|
190
|
+
const offset = -enabledIndex * props.optionHeight;
|
191
|
+
currentOffset.value = offset;
|
192
|
+
});
|
193
|
+
(0, import_use.useEventListener)("touchmove", onTouchMove, {
|
194
|
+
target: root
|
195
|
+
});
|
196
|
+
return () => (0, import_vue.createVNode)("div", {
|
197
|
+
"ref": root,
|
198
|
+
"class": bem(),
|
199
|
+
"onTouchstartPassive": onTouchStart,
|
200
|
+
"onTouchend": onTouchEnd,
|
201
|
+
"onTouchcancel": onTouchEnd
|
202
|
+
}, [(0, import_vue.createVNode)("ul", {
|
203
|
+
"ref": wrapper,
|
204
|
+
"style": {
|
205
|
+
transform: `translate3d(0, ${currentOffset.value + baseOffset()}px, 0)`,
|
206
|
+
transitionDuration: `${currentDuration.value}ms`,
|
207
|
+
transitionProperty: currentDuration.value ? "all" : "none"
|
208
|
+
},
|
209
|
+
"class": bem("wrapper"),
|
210
|
+
"onTransitionend": stopMomentum
|
211
|
+
}, [renderOptions()])]);
|
212
|
+
}
|
213
|
+
});
|
@@ -0,0 +1,21 @@
|
|
1
|
+
export declare const pickerToolbarProps: {
|
2
|
+
title: StringConstructor;
|
3
|
+
cancelButtonText: StringConstructor;
|
4
|
+
confirmButtonText: StringConstructor;
|
5
|
+
};
|
6
|
+
export declare const pickerToolbarSlots: string[];
|
7
|
+
export type PickerToolbarPropKeys = Array<keyof typeof pickerToolbarProps>;
|
8
|
+
export declare const pickerToolbarPropKeys: PickerToolbarPropKeys;
|
9
|
+
declare const _default: import("vue").DefineComponent<{
|
10
|
+
title: StringConstructor;
|
11
|
+
cancelButtonText: StringConstructor;
|
12
|
+
confirmButtonText: StringConstructor;
|
13
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("cancel" | "confirm")[], "cancel" | "confirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
14
|
+
title: StringConstructor;
|
15
|
+
cancelButtonText: StringConstructor;
|
16
|
+
confirmButtonText: StringConstructor;
|
17
|
+
}>> & {
|
18
|
+
onCancel?: ((...args: any[]) => any) | undefined;
|
19
|
+
onConfirm?: ((...args: any[]) => any) | undefined;
|
20
|
+
}, {}>;
|
21
|
+
export default _default;
|
@@ -0,0 +1,78 @@
|
|
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
|
+
pickerToolbarPropKeys: () => pickerToolbarPropKeys,
|
22
|
+
pickerToolbarProps: () => pickerToolbarProps,
|
23
|
+
pickerToolbarSlots: () => pickerToolbarSlots
|
24
|
+
});
|
25
|
+
module.exports = __toCommonJS(stdin_exports);
|
26
|
+
var import_vue = require("vue");
|
27
|
+
var import_vue2 = require("vue");
|
28
|
+
var import_utils = require("./utils");
|
29
|
+
var import_utils2 = require("../utils");
|
30
|
+
const [name] = (0, import_utils2.createNamespace)("picker-toolbar");
|
31
|
+
const pickerToolbarProps = {
|
32
|
+
title: String,
|
33
|
+
cancelButtonText: String,
|
34
|
+
confirmButtonText: String
|
35
|
+
};
|
36
|
+
const pickerToolbarSlots = ["cancel", "confirm", "title", "toolbar"];
|
37
|
+
const pickerToolbarPropKeys = Object.keys(pickerToolbarProps);
|
38
|
+
var stdin_default = (0, import_vue2.defineComponent)({
|
39
|
+
name,
|
40
|
+
props: pickerToolbarProps,
|
41
|
+
emits: ["confirm", "cancel"],
|
42
|
+
setup(props, {
|
43
|
+
emit,
|
44
|
+
slots
|
45
|
+
}) {
|
46
|
+
const renderTitle = () => {
|
47
|
+
if (slots.title) {
|
48
|
+
return slots.title();
|
49
|
+
}
|
50
|
+
if (props.title) {
|
51
|
+
return (0, import_vue.createVNode)("div", {
|
52
|
+
"class": [(0, import_utils.bem)("title"), "van-ellipsis"]
|
53
|
+
}, [props.title]);
|
54
|
+
}
|
55
|
+
};
|
56
|
+
const onCancel = () => emit("cancel");
|
57
|
+
const onConfirm = () => emit("confirm");
|
58
|
+
const renderCancel = () => {
|
59
|
+
const text = props.cancelButtonText || (0, import_utils.t)("cancel");
|
60
|
+
return (0, import_vue.createVNode)("button", {
|
61
|
+
"type": "button",
|
62
|
+
"class": [(0, import_utils.bem)("cancel"), import_utils2.HAPTICS_FEEDBACK],
|
63
|
+
"onClick": onCancel
|
64
|
+
}, [slots.cancel ? slots.cancel() : text]);
|
65
|
+
};
|
66
|
+
const renderConfirm = () => {
|
67
|
+
const text = props.confirmButtonText || (0, import_utils.t)("confirm");
|
68
|
+
return (0, import_vue.createVNode)("button", {
|
69
|
+
"type": "button",
|
70
|
+
"class": [(0, import_utils.bem)("confirm"), import_utils2.HAPTICS_FEEDBACK],
|
71
|
+
"onClick": onConfirm
|
72
|
+
}, [slots.confirm ? slots.confirm() : text]);
|
73
|
+
};
|
74
|
+
return () => (0, import_vue.createVNode)("div", {
|
75
|
+
"class": (0, import_utils.bem)("toolbar")
|
76
|
+
}, [slots.toolbar ? slots.toolbar() : [renderCancel(), renderTitle(), renderConfirm()]]);
|
77
|
+
}
|
78
|
+
});
|
@@ -0,0 +1 @@
|
|
1
|
+
:root{--van-picker-background: var(--van-background-2);--van-picker-toolbar-height: 44px;--van-picker-title-font-size: var(--van-font-size-lg);--van-picker-title-line-height: var(--van-line-height-md);--van-picker-action-padding: 0 var(--van-padding-md);--van-picker-action-font-size: var(--van-font-size-md);--van-picker-confirm-action-color: var(--van-link-color);--van-picker-cancel-action-color: var(--van-text-color-2);--van-picker-option-font-size: var(--van-font-size-lg);--van-picker-option-padding: 0 var(--van-padding-base);--van-picker-option-text-color: var(--van-text-color);--van-picker-option-disabled-opacity: .3;--van-picker-loading-icon-color: var(--van-primary-color);--van-picker-loading-mask-color: rgba(255, 255, 255, .9);--van-picker-mask-color: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .4)), linear-gradient(0deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .4))}.van-theme-dark{--van-picker-loading-mask-color: rgba(0, 0, 0, .6);--van-picker-mask-color: linear-gradient(180deg, rgba(0, 0, 0, .6), rgba(0, 0, 0, .1)), linear-gradient(0deg, rgba(0, 0, 0, .6), rgba(0, 0, 0, .1))}.van-picker{position:relative;background:var(--van-picker-background);-webkit-user-select:none;user-select:none}.van-picker__toolbar{display:flex;align-items:center;justify-content:space-between;height:var(--van-picker-toolbar-height)}.van-picker__cancel,.van-picker__confirm{height:100%;padding:var(--van-picker-action-padding);font-size:var(--van-picker-action-font-size);background-color:transparent;border:none}.van-picker__confirm{color:var(--van-picker-confirm-action-color)}.van-picker__cancel{color:var(--van-picker-cancel-action-color)}.van-picker__title{color:var(--van-text-color);max-width:50%;font-weight:var(--van-font-bold);font-size:var(--van-picker-title-font-size);line-height:var(--van-picker-title-line-height);text-align:center}.van-picker__columns{position:relative;display:flex;cursor:-webkit-grab;cursor:grab}.van-picker__loading{position:absolute;top:0;right:0;bottom:0;left:0;z-index:3;display:flex;align-items:center;justify-content:center;color:var(--van-picker-loading-icon-color);background:var(--van-picker-loading-mask-color)}.van-picker__frame{position:absolute;top:50%;right:var(--van-padding-md);left:var(--van-padding-md);z-index:2;transform:translateY(-50%);pointer-events:none}.van-picker__mask{position:absolute;top:0;left:0;z-index:1;width:100%;height:100%;background-image:var(--van-picker-mask-color);background-repeat:no-repeat;background-position:top,bottom;transform:translateZ(0);pointer-events:none}.van-picker-column{flex:1;overflow:hidden;font-size:var(--van-picker-option-font-size)}.van-picker-column__wrapper{transition-timing-function:cubic-bezier(.23,1,.68,1)}.van-picker-column__item{display:flex;align-items:center;justify-content:center;padding:var(--van-picker-option-padding);color:var(--van-picker-option-text-color)}.van-picker-column__item--disabled{cursor:not-allowed;opacity:var(--van-picker-option-disabled-opacity)}
|
@@ -0,0 +1,104 @@
|
|
1
|
+
import { PickerProps } from './Picker';
|
2
|
+
export declare const Picker: import("../utils").WithInstall<import("vue").DefineComponent<{
|
3
|
+
loading: BooleanConstructor;
|
4
|
+
readonly: BooleanConstructor;
|
5
|
+
allowHtml: BooleanConstructor;
|
6
|
+
optionHeight: {
|
7
|
+
type: (NumberConstructor | StringConstructor)[];
|
8
|
+
default: number;
|
9
|
+
};
|
10
|
+
showToolbar: {
|
11
|
+
type: BooleanConstructor;
|
12
|
+
default: true;
|
13
|
+
};
|
14
|
+
swipeDuration: {
|
15
|
+
type: (NumberConstructor | StringConstructor)[];
|
16
|
+
default: number;
|
17
|
+
};
|
18
|
+
visibleOptionNum: {
|
19
|
+
type: (NumberConstructor | StringConstructor)[];
|
20
|
+
default: number;
|
21
|
+
};
|
22
|
+
} & {
|
23
|
+
title: StringConstructor;
|
24
|
+
cancelButtonText: StringConstructor;
|
25
|
+
confirmButtonText: StringConstructor;
|
26
|
+
} & {
|
27
|
+
columns: {
|
28
|
+
type: import("vue").PropType<(import("./types").PickerColumn | import("./types").PickerOption)[]>;
|
29
|
+
default: () => never[];
|
30
|
+
};
|
31
|
+
modelValue: {
|
32
|
+
type: import("vue").PropType<import("../utils").Numeric[]>;
|
33
|
+
default: () => never[];
|
34
|
+
};
|
35
|
+
toolbarPosition: {
|
36
|
+
type: import("vue").PropType<import("./types").PickerToolbarPosition>;
|
37
|
+
default: import("./types").PickerToolbarPosition;
|
38
|
+
};
|
39
|
+
columnsFieldNames: import("vue").PropType<import("./types").PickerFieldNames>;
|
40
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "cancel" | "change" | "clickOption" | "confirm")[], "update:modelValue" | "cancel" | "change" | "clickOption" | "confirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
41
|
+
loading: BooleanConstructor;
|
42
|
+
readonly: BooleanConstructor;
|
43
|
+
allowHtml: BooleanConstructor;
|
44
|
+
optionHeight: {
|
45
|
+
type: (NumberConstructor | StringConstructor)[];
|
46
|
+
default: number;
|
47
|
+
};
|
48
|
+
showToolbar: {
|
49
|
+
type: BooleanConstructor;
|
50
|
+
default: true;
|
51
|
+
};
|
52
|
+
swipeDuration: {
|
53
|
+
type: (NumberConstructor | StringConstructor)[];
|
54
|
+
default: number;
|
55
|
+
};
|
56
|
+
visibleOptionNum: {
|
57
|
+
type: (NumberConstructor | StringConstructor)[];
|
58
|
+
default: number;
|
59
|
+
};
|
60
|
+
} & {
|
61
|
+
title: StringConstructor;
|
62
|
+
cancelButtonText: StringConstructor;
|
63
|
+
confirmButtonText: StringConstructor;
|
64
|
+
} & {
|
65
|
+
columns: {
|
66
|
+
type: import("vue").PropType<(import("./types").PickerColumn | import("./types").PickerOption)[]>;
|
67
|
+
default: () => never[];
|
68
|
+
};
|
69
|
+
modelValue: {
|
70
|
+
type: import("vue").PropType<import("../utils").Numeric[]>;
|
71
|
+
default: () => never[];
|
72
|
+
};
|
73
|
+
toolbarPosition: {
|
74
|
+
type: import("vue").PropType<import("./types").PickerToolbarPosition>;
|
75
|
+
default: import("./types").PickerToolbarPosition;
|
76
|
+
};
|
77
|
+
columnsFieldNames: import("vue").PropType<import("./types").PickerFieldNames>;
|
78
|
+
}>> & {
|
79
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
80
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
81
|
+
onCancel?: ((...args: any[]) => any) | undefined;
|
82
|
+
onClickOption?: ((...args: any[]) => any) | undefined;
|
83
|
+
onConfirm?: ((...args: any[]) => any) | undefined;
|
84
|
+
}, {
|
85
|
+
modelValue: import("../utils").Numeric[];
|
86
|
+
readonly: boolean;
|
87
|
+
loading: boolean;
|
88
|
+
allowHtml: boolean;
|
89
|
+
optionHeight: string | number;
|
90
|
+
showToolbar: boolean;
|
91
|
+
swipeDuration: string | number;
|
92
|
+
visibleOptionNum: string | number;
|
93
|
+
columns: (import("./types").PickerColumn | import("./types").PickerOption)[];
|
94
|
+
toolbarPosition: import("./types").PickerToolbarPosition;
|
95
|
+
}>>;
|
96
|
+
export default Picker;
|
97
|
+
export { pickerProps } from './Picker';
|
98
|
+
export type { PickerProps };
|
99
|
+
export type { PickerColumn, PickerOption, PickerInstance, PickerThemeVars, PickerFieldNames, PickerToolbarPosition, PickerCancelEventParams, PickerChangeEventParams, PickerConfirmEventParams, } from './types';
|
100
|
+
declare module 'vue' {
|
101
|
+
interface GlobalComponents {
|
102
|
+
VanPicker: typeof Picker;
|
103
|
+
}
|
104
|
+
}
|
@@ -0,0 +1,35 @@
|
|
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
|
+
Picker: () => Picker,
|
27
|
+
default: () => stdin_default,
|
28
|
+
pickerProps: () => import_Picker2.pickerProps
|
29
|
+
});
|
30
|
+
module.exports = __toCommonJS(stdin_exports);
|
31
|
+
var import_utils = require("../utils");
|
32
|
+
var import_Picker = __toESM(require("./Picker"));
|
33
|
+
var import_Picker2 = require("./Picker");
|
34
|
+
const Picker = (0, import_utils.withInstall)(import_Picker.default);
|
35
|
+
var stdin_default = Picker;
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1,10 @@
|
|
1
|
+
require("../../style/base.css");
|
2
|
+
require("../../badge/index.css");
|
3
|
+
require("../../loading/index.css");
|
4
|
+
require("../../sticky/index.css");
|
5
|
+
require("../../swipe/index.css");
|
6
|
+
require("../../swipe-item/index.css");
|
7
|
+
require("../../tabs/index.css");
|
8
|
+
require("../../tab/index.css");
|
9
|
+
require("../../picker-group/index.css");
|
10
|
+
require("../index.css");
|
@@ -0,0 +1,62 @@
|
|
1
|
+
import type { ComponentPublicInstance } from 'vue';
|
2
|
+
import type { Numeric } from '../utils';
|
3
|
+
import type { PickerProps } from './Picker';
|
4
|
+
export type PickerToolbarPosition = 'top' | 'bottom';
|
5
|
+
export type PickerFieldNames = {
|
6
|
+
text?: string;
|
7
|
+
value?: string;
|
8
|
+
children?: string;
|
9
|
+
};
|
10
|
+
export type PickerOption = {
|
11
|
+
text?: Numeric;
|
12
|
+
value?: Numeric;
|
13
|
+
disabled?: boolean;
|
14
|
+
children?: PickerColumn;
|
15
|
+
className?: unknown;
|
16
|
+
[key: PropertyKey]: any;
|
17
|
+
};
|
18
|
+
export type PickerColumn = PickerOption[];
|
19
|
+
export type PickerExpose = {
|
20
|
+
confirm: () => void;
|
21
|
+
getSelectedOptions: () => Array<PickerOption | undefined>;
|
22
|
+
};
|
23
|
+
export type PickerColumnProvide = {
|
24
|
+
state: {
|
25
|
+
index: number;
|
26
|
+
offset: number;
|
27
|
+
duration: number;
|
28
|
+
options: PickerOption[];
|
29
|
+
};
|
30
|
+
setIndex: (index: number, emitChange?: boolean | undefined) => void;
|
31
|
+
getValue: () => PickerOption;
|
32
|
+
setValue: (value: string) => void;
|
33
|
+
setOptions: (options: PickerOption[]) => void;
|
34
|
+
stopMomentum: () => void;
|
35
|
+
};
|
36
|
+
export type PickerInstance = ComponentPublicInstance<PickerProps, PickerExpose>;
|
37
|
+
export type PickerConfirmEventParams = {
|
38
|
+
selectedValues: Numeric[];
|
39
|
+
selectedOptions: Array<PickerOption | undefined>;
|
40
|
+
selectedIndexes: number[];
|
41
|
+
};
|
42
|
+
export type PickerCancelEventParams = PickerConfirmEventParams;
|
43
|
+
export type PickerChangeEventParams = PickerConfirmEventParams & {
|
44
|
+
columnIndex: number;
|
45
|
+
};
|
46
|
+
export type PickerThemeVars = {
|
47
|
+
pickerBackground?: string;
|
48
|
+
pickerToolbarHeight?: string;
|
49
|
+
pickerTitleFontSize?: string;
|
50
|
+
pickerTitleLineHeight?: number | string;
|
51
|
+
pickerActionPadding?: string;
|
52
|
+
pickerActionFontSize?: string;
|
53
|
+
pickerConfirmActionColor?: string;
|
54
|
+
pickerCancelActionColor?: string;
|
55
|
+
pickerOptionFontSize?: string;
|
56
|
+
pickerOptionPadding?: string;
|
57
|
+
pickerOptionTextColor?: string;
|
58
|
+
pickerOptionDisabledOpacity?: number | string;
|
59
|
+
pickerLoadingIconColor?: string;
|
60
|
+
pickerLoadingMaskColor?: string;
|
61
|
+
pickerMaskColor?: string;
|
62
|
+
};
|
@@ -0,0 +1,15 @@
|
|
1
|
+
var __defProp = Object.defineProperty;
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
5
|
+
var __copyProps = (to, from, except, desc) => {
|
6
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
7
|
+
for (let key of __getOwnPropNames(from))
|
8
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
9
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
10
|
+
}
|
11
|
+
return to;
|
12
|
+
};
|
13
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
14
|
+
var stdin_exports = {};
|
15
|
+
module.exports = __toCommonJS(stdin_exports);
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { type Numeric } from '../utils';
|
2
|
+
import type { Ref } from 'vue';
|
3
|
+
import type { PickerOption, PickerColumn, PickerFieldNames } from './types';
|
4
|
+
declare const name: string, bem: (el?: import("../utils").Mods | undefined, mods?: import("../utils").Mods | undefined) => import("../utils").Mods, t: (path: string, ...args: unknown[]) => any;
|
5
|
+
export { name, bem, t };
|
6
|
+
export declare const getFirstEnabledOption: (options: PickerOption[]) => PickerOption | undefined;
|
7
|
+
export declare function getColumnsType(columns: PickerColumn | PickerColumn[], fields: Required<PickerFieldNames>): "default" | "multiple" | "cascade";
|
8
|
+
export declare function findIndexOfEnabledOption(options: PickerOption[], index: number): number;
|
9
|
+
export declare const isOptionExist: (options: PickerOption[], value: Numeric | undefined, fields: Required<PickerFieldNames>) => boolean;
|
10
|
+
export declare function findOptionByValue(options: PickerOption[], value: Numeric, fields: Required<PickerFieldNames>): PickerOption | undefined;
|
11
|
+
export declare function formatCascadeColumns(columns: PickerColumn | PickerColumn[], fields: Required<PickerFieldNames>, selectedValues: Ref<Numeric[]>): PickerColumn[];
|
12
|
+
export declare function getElementTranslateY(element: Element): number;
|
13
|
+
export declare function assignDefaultFields(fields: PickerFieldNames | undefined): Required<PickerFieldNames>;
|
@@ -0,0 +1,99 @@
|
|
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
|
+
assignDefaultFields: () => assignDefaultFields,
|
21
|
+
bem: () => bem,
|
22
|
+
findIndexOfEnabledOption: () => findIndexOfEnabledOption,
|
23
|
+
findOptionByValue: () => findOptionByValue,
|
24
|
+
formatCascadeColumns: () => formatCascadeColumns,
|
25
|
+
getColumnsType: () => getColumnsType,
|
26
|
+
getElementTranslateY: () => getElementTranslateY,
|
27
|
+
getFirstEnabledOption: () => getFirstEnabledOption,
|
28
|
+
isOptionExist: () => isOptionExist,
|
29
|
+
name: () => name,
|
30
|
+
t: () => t
|
31
|
+
});
|
32
|
+
module.exports = __toCommonJS(stdin_exports);
|
33
|
+
var import_utils = require("../utils");
|
34
|
+
const [name, bem, t] = (0, import_utils.createNamespace)("picker");
|
35
|
+
const getFirstEnabledOption = (options) => options.find((option) => !option.disabled) || options[0];
|
36
|
+
function getColumnsType(columns, fields) {
|
37
|
+
const firstColumn = columns[0];
|
38
|
+
if (firstColumn) {
|
39
|
+
if (Array.isArray(firstColumn)) {
|
40
|
+
return "multiple";
|
41
|
+
}
|
42
|
+
if (fields.children in firstColumn) {
|
43
|
+
return "cascade";
|
44
|
+
}
|
45
|
+
}
|
46
|
+
return "default";
|
47
|
+
}
|
48
|
+
function findIndexOfEnabledOption(options, index) {
|
49
|
+
index = (0, import_utils.clamp)(index, 0, options.length);
|
50
|
+
for (let i = index; i < options.length; i++) {
|
51
|
+
if (!options[i].disabled)
|
52
|
+
return i;
|
53
|
+
}
|
54
|
+
for (let i = index - 1; i >= 0; i--) {
|
55
|
+
if (!options[i].disabled)
|
56
|
+
return i;
|
57
|
+
}
|
58
|
+
return 0;
|
59
|
+
}
|
60
|
+
const isOptionExist = (options, value, fields) => value !== void 0 && !!options.find((option) => option[fields.value] === value);
|
61
|
+
function findOptionByValue(options, value, fields) {
|
62
|
+
const index = options.findIndex((option) => option[fields.value] === value);
|
63
|
+
const enabledIndex = findIndexOfEnabledOption(options, index);
|
64
|
+
return options[enabledIndex];
|
65
|
+
}
|
66
|
+
function formatCascadeColumns(columns, fields, selectedValues) {
|
67
|
+
const formatted = [];
|
68
|
+
let cursor = {
|
69
|
+
[fields.children]: columns
|
70
|
+
};
|
71
|
+
let columnIndex = 0;
|
72
|
+
while (cursor && cursor[fields.children]) {
|
73
|
+
const options = cursor[fields.children];
|
74
|
+
const value = selectedValues.value[columnIndex];
|
75
|
+
cursor = (0, import_utils.isDef)(value) ? findOptionByValue(options, value, fields) : void 0;
|
76
|
+
if (!cursor && options.length) {
|
77
|
+
const firstValue = getFirstEnabledOption(options)[fields.value];
|
78
|
+
cursor = findOptionByValue(options, firstValue, fields);
|
79
|
+
}
|
80
|
+
columnIndex++;
|
81
|
+
formatted.push(options);
|
82
|
+
}
|
83
|
+
return formatted;
|
84
|
+
}
|
85
|
+
function getElementTranslateY(element) {
|
86
|
+
const { transform } = window.getComputedStyle(element);
|
87
|
+
const translateY = transform.slice(7, transform.length - 1).split(", ")[5];
|
88
|
+
return Number(translateY);
|
89
|
+
}
|
90
|
+
function assignDefaultFields(fields) {
|
91
|
+
return (0, import_utils.extend)(
|
92
|
+
{
|
93
|
+
text: "text",
|
94
|
+
value: "value",
|
95
|
+
children: "children"
|
96
|
+
},
|
97
|
+
fields
|
98
|
+
);
|
99
|
+
}
|