vant 3.4.7 → 3.5.0-beta.0
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/README.md +141 -0
- package/es/action-bar/{ActionBar.js → ActionBar.mjs} +0 -0
- package/es/action-bar/{index.js → index.mjs} +0 -0
- package/es/action-bar/style/{index.js → index.mjs} +0 -0
- package/es/action-bar/style/{less.js → less.mjs} +0 -0
- package/es/action-bar-button/{ActionBarButton.js → ActionBarButton.mjs} +0 -0
- package/es/action-bar-button/{index.js → index.mjs} +0 -0
- package/es/action-bar-button/style/{index.js → index.mjs} +0 -0
- package/es/action-bar-button/style/{less.js → less.mjs} +0 -0
- package/es/action-bar-icon/{ActionBarIcon.js → ActionBarIcon.mjs} +0 -0
- package/es/action-bar-icon/{index.js → index.mjs} +0 -0
- package/es/action-bar-icon/style/{index.js → index.mjs} +0 -0
- package/es/action-bar-icon/style/{less.js → less.mjs} +0 -0
- package/es/action-sheet/{ActionSheet.js → ActionSheet.mjs} +0 -0
- package/es/action-sheet/{index.js → index.mjs} +0 -0
- package/es/action-sheet/style/{index.js → index.mjs} +0 -0
- package/es/action-sheet/style/{less.js → less.mjs} +0 -0
- package/es/address-edit/{AddressEdit.js → AddressEdit.mjs} +0 -0
- package/es/address-edit/{AddressEditDetail.js → AddressEditDetail.mjs} +0 -0
- package/es/address-edit/{index.js → index.mjs} +0 -0
- package/es/address-edit/style/{index.js → index.mjs} +0 -0
- package/es/address-edit/style/{less.js → less.mjs} +0 -0
- package/es/address-edit/{types.js → types.mjs} +0 -0
- package/es/address-list/{AddressList.js → AddressList.mjs} +0 -0
- package/es/address-list/{AddressListItem.js → AddressListItem.mjs} +0 -0
- package/es/address-list/{index.js → index.mjs} +0 -0
- package/es/address-list/style/{index.js → index.mjs} +0 -0
- package/es/address-list/style/{less.js → less.mjs} +0 -0
- package/es/area/{Area.js → Area.mjs} +0 -0
- package/es/area/{index.js → index.mjs} +0 -0
- package/es/area/style/{index.js → index.mjs} +0 -0
- package/es/area/style/{less.js → less.mjs} +0 -0
- package/es/area/{types.js → types.mjs} +0 -0
- package/es/badge/{Badge.js → Badge.mjs} +0 -0
- package/es/badge/{index.js → index.mjs} +0 -0
- package/es/badge/style/{index.js → index.mjs} +0 -0
- package/es/badge/style/{less.js → less.mjs} +0 -0
- package/es/button/{Button.js → Button.mjs} +0 -0
- package/es/button/{index.js → index.mjs} +0 -0
- package/es/button/style/{index.js → index.mjs} +0 -0
- package/es/button/style/{less.js → less.mjs} +0 -0
- package/es/button/{types.js → types.mjs} +0 -0
- package/es/calendar/{Calendar.js → Calendar.mjs} +0 -0
- package/es/calendar/{CalendarDay.js → CalendarDay.mjs} +4 -0
- package/es/calendar/{CalendarHeader.js → CalendarHeader.mjs} +0 -0
- package/es/calendar/{CalendarMonth.js → CalendarMonth.mjs} +0 -0
- package/es/calendar/index.css +1 -1
- package/es/calendar/index.less +2 -0
- package/es/calendar/{index.js → index.mjs} +0 -0
- package/es/calendar/style/{index.js → index.mjs} +0 -0
- package/es/calendar/style/{less.js → less.mjs} +0 -0
- package/es/calendar/{types.js → types.mjs} +0 -0
- package/es/calendar/{utils.js → utils.mjs} +0 -0
- package/es/calendar/var.less +1 -0
- package/es/card/{Card.js → Card.mjs} +0 -0
- package/es/card/{index.js → index.mjs} +0 -0
- package/es/card/style/{index.js → index.mjs} +0 -0
- package/es/card/style/{less.js → less.mjs} +0 -0
- package/es/cascader/{Cascader.js → Cascader.mjs} +0 -0
- package/es/cascader/{index.js → index.mjs} +0 -0
- package/es/cascader/style/{index.js → index.mjs} +0 -0
- package/es/cascader/style/{less.js → less.mjs} +0 -0
- package/es/cascader/{types.js → types.mjs} +0 -0
- package/es/cell/{Cell.js → Cell.mjs} +0 -0
- package/es/cell/{index.js → index.mjs} +0 -0
- package/es/cell/style/{index.js → index.mjs} +0 -0
- package/es/cell/style/{less.js → less.mjs} +0 -0
- package/es/cell-group/{CellGroup.js → CellGroup.mjs} +0 -0
- package/es/cell-group/{index.js → index.mjs} +0 -0
- package/es/cell-group/style/{index.js → index.mjs} +0 -0
- package/es/cell-group/style/{less.js → less.mjs} +0 -0
- package/es/checkbox/{Checkbox.js → Checkbox.mjs} +0 -0
- package/es/checkbox/{Checker.js → Checker.mjs} +0 -0
- package/es/checkbox/{index.js → index.mjs} +0 -0
- package/es/checkbox/style/{index.js → index.mjs} +0 -0
- package/es/checkbox/style/{less.js → less.mjs} +0 -0
- package/es/checkbox/{types.js → types.mjs} +0 -0
- package/es/checkbox-group/{CheckboxGroup.js → CheckboxGroup.mjs} +0 -0
- package/es/checkbox-group/{index.js → index.mjs} +0 -0
- package/es/checkbox-group/style/{index.js → index.mjs} +0 -0
- package/es/checkbox-group/style/{less.js → less.mjs} +0 -0
- package/es/checkbox-group/{types.js → types.mjs} +0 -0
- package/es/circle/{Circle.js → Circle.mjs} +0 -0
- package/es/circle/{index.js → index.mjs} +0 -0
- package/es/circle/style/{index.js → index.mjs} +0 -0
- package/es/circle/style/{less.js → less.mjs} +0 -0
- package/es/col/{Col.js → Col.mjs} +0 -0
- package/es/col/{index.js → index.mjs} +0 -0
- package/es/col/style/{index.js → index.mjs} +0 -0
- package/es/col/style/{less.js → less.mjs} +0 -0
- package/es/collapse/{Collapse.js → Collapse.mjs} +0 -0
- package/es/collapse/{index.js → index.mjs} +0 -0
- package/es/collapse/style/{index.js → index.mjs} +0 -0
- package/es/collapse/style/{less.js → less.mjs} +0 -0
- package/es/collapse-item/{CollapseItem.js → CollapseItem.mjs} +0 -0
- package/es/collapse-item/{index.js → index.mjs} +0 -0
- package/es/collapse-item/style/{index.js → index.mjs} +0 -0
- package/es/collapse-item/style/{less.js → less.mjs} +0 -0
- package/es/collapse-item/{types.js → types.mjs} +0 -0
- package/es/composables/{on-popup-reopen.js → on-popup-reopen.mjs} +0 -0
- package/es/composables/{use-expose.js → use-expose.mjs} +0 -0
- package/es/composables/{use-height.js → use-height.mjs} +0 -0
- package/es/composables/{use-id.js → use-id.mjs} +0 -0
- package/es/composables/{use-lazy-render.js → use-lazy-render.mjs} +0 -0
- package/es/composables/{use-lock-scroll.js → use-lock-scroll.mjs} +0 -0
- package/es/composables/{use-placeholder.js → use-placeholder.mjs} +0 -0
- package/es/composables/{use-refs.js → use-refs.mjs} +0 -0
- package/es/composables/{use-route.js → use-route.mjs} +0 -0
- package/es/composables/{use-tab-status.js → use-tab-status.mjs} +0 -0
- package/es/composables/{use-touch.js → use-touch.mjs} +0 -0
- package/es/composables/{use-visibility-change.js → use-visibility-change.mjs} +0 -0
- package/es/config-provider/{ConfigProvider.js → ConfigProvider.mjs} +0 -0
- package/es/config-provider/{index.js → index.mjs} +0 -0
- package/es/config-provider/style/{index.js → index.mjs} +0 -0
- package/es/config-provider/style/{less.js → less.mjs} +0 -0
- package/es/contact-card/{ContactCard.js → ContactCard.mjs} +0 -0
- package/es/contact-card/{index.js → index.mjs} +0 -0
- package/es/contact-card/style/{index.js → index.mjs} +0 -0
- package/es/contact-card/style/{less.js → less.mjs} +0 -0
- package/es/contact-edit/{ContactEdit.js → ContactEdit.mjs} +0 -0
- package/es/contact-edit/{index.js → index.mjs} +0 -0
- package/es/contact-edit/style/{index.js → index.mjs} +0 -0
- package/es/contact-edit/style/{less.js → less.mjs} +0 -0
- package/es/contact-list/{ContactList.js → ContactList.mjs} +0 -0
- package/es/contact-list/{index.js → index.mjs} +0 -0
- package/es/contact-list/style/{index.js → index.mjs} +0 -0
- package/es/contact-list/style/{less.js → less.mjs} +0 -0
- package/es/count-down/{CountDown.js → CountDown.mjs} +0 -0
- package/es/count-down/{index.js → index.mjs} +0 -0
- package/es/count-down/style/{index.js → index.mjs} +0 -0
- package/es/count-down/style/{less.js → less.mjs} +0 -0
- package/es/count-down/{types.js → types.mjs} +0 -0
- package/es/count-down/{utils.js → utils.mjs} +0 -0
- package/es/coupon/{Coupon.js → Coupon.mjs} +0 -0
- package/es/coupon/{index.js → index.mjs} +0 -0
- package/es/coupon/style/{index.js → index.mjs} +0 -0
- package/es/coupon/style/{less.js → less.mjs} +0 -0
- package/es/coupon/{utils.js → utils.mjs} +0 -0
- package/es/coupon-cell/{CouponCell.js → CouponCell.mjs} +0 -0
- package/es/coupon-cell/{index.js → index.mjs} +0 -0
- package/es/coupon-cell/style/{index.js → index.mjs} +0 -0
- package/es/coupon-cell/style/{less.js → less.mjs} +0 -0
- package/es/coupon-list/{CouponList.js → CouponList.mjs} +0 -0
- package/es/coupon-list/{index.js → index.mjs} +0 -0
- package/es/coupon-list/style/{index.js → index.mjs} +0 -0
- package/es/coupon-list/style/{less.js → less.mjs} +0 -0
- package/es/datetime-picker/{DatePicker.js → DatePicker.mjs} +1 -0
- package/es/datetime-picker/{DatetimePicker.js → DatetimePicker.mjs} +0 -0
- package/es/datetime-picker/{TimePicker.js → TimePicker.mjs} +0 -0
- package/es/datetime-picker/{index.js → index.mjs} +0 -0
- package/es/datetime-picker/style/{index.js → index.mjs} +0 -0
- package/es/datetime-picker/style/{less.js → less.mjs} +0 -0
- package/es/datetime-picker/{types.js → types.mjs} +0 -0
- package/es/datetime-picker/{utils.js → utils.mjs} +0 -0
- package/es/dialog/{Dialog.js → Dialog.mjs} +0 -0
- package/es/dialog/{function-call.js → function-call.mjs} +0 -0
- package/es/dialog/index.css +1 -1
- package/es/dialog/{index.js → index.mjs} +0 -0
- package/es/dialog/style/{index.js → index.mjs} +0 -0
- package/es/dialog/style/{less.js → less.mjs} +0 -0
- package/es/dialog/{types.js → types.mjs} +0 -0
- package/es/divider/{Divider.js → Divider.mjs} +0 -0
- package/es/divider/{index.js → index.mjs} +0 -0
- package/es/divider/style/{index.js → index.mjs} +0 -0
- package/es/divider/style/{less.js → less.mjs} +0 -0
- package/es/dropdown-item/{DropdownItem.js → DropdownItem.mjs} +0 -0
- package/es/dropdown-item/{index.js → index.mjs} +0 -0
- package/es/dropdown-item/style/{index.js → index.mjs} +0 -0
- package/es/dropdown-item/style/{less.js → less.mjs} +0 -0
- package/es/dropdown-item/{types.js → types.mjs} +0 -0
- package/es/dropdown-menu/{DropdownMenu.js → DropdownMenu.mjs} +0 -0
- package/es/dropdown-menu/{index.js → index.mjs} +0 -0
- package/es/dropdown-menu/style/{index.js → index.mjs} +0 -0
- package/es/dropdown-menu/style/{less.js → less.mjs} +0 -0
- package/es/dropdown-menu/{types.js → types.mjs} +0 -0
- package/es/empty/Empty.d.ts +8 -7
- package/es/empty/{Empty.js → Empty.mjs} +12 -15
- package/es/empty/Images.d.ts +4 -0
- package/es/empty/Images.mjs +271 -0
- package/es/empty/index.d.ts +2 -2
- package/es/empty/{index.js → index.mjs} +0 -0
- package/es/empty/style/{index.js → index.mjs} +0 -0
- package/es/empty/style/{less.js → less.mjs} +0 -0
- package/es/field/Field.d.ts +4 -0
- package/es/field/{Field.js → Field.mjs} +21 -16
- package/es/field/index.d.ts +3 -1
- package/es/field/{index.js → index.mjs} +0 -0
- package/es/field/style/{index.js → index.mjs} +0 -0
- package/es/field/style/{less.js → less.mjs} +0 -0
- package/es/field/types.d.ts +3 -1
- package/es/field/{types.js → types.mjs} +0 -0
- package/es/field/{utils.js → utils.mjs} +0 -0
- package/es/form/Form.d.ts +13 -13
- package/es/form/{Form.js → Form.mjs} +13 -4
- package/es/form/index.d.ts +9 -9
- package/es/form/{index.js → index.mjs} +0 -0
- package/es/form/style/{index.js → index.mjs} +0 -0
- package/es/form/style/{less.js → less.mjs} +0 -0
- package/es/form/types.d.ts +3 -0
- package/es/form/{types.js → types.mjs} +0 -0
- package/es/grid/{Grid.js → Grid.mjs} +0 -0
- package/es/grid/{index.js → index.mjs} +0 -0
- package/es/grid/style/{index.js → index.mjs} +0 -0
- package/es/grid/style/{less.js → less.mjs} +0 -0
- package/es/grid-item/{GridItem.js → GridItem.mjs} +0 -0
- package/es/grid-item/{index.js → index.mjs} +0 -0
- package/es/grid-item/style/{index.js → index.mjs} +0 -0
- package/es/grid-item/style/{less.js → less.mjs} +0 -0
- package/es/icon/{Icon.js → Icon.mjs} +0 -0
- package/es/icon/index.css +1 -1
- package/es/icon/{index.js → index.mjs} +0 -0
- package/es/icon/style/{index.js → index.mjs} +0 -0
- package/es/icon/style/{less.js → less.mjs} +0 -0
- package/es/image/{Image.js → Image.mjs} +0 -0
- package/es/image/{index.js → index.mjs} +0 -0
- package/es/image/style/{index.js → index.mjs} +0 -0
- package/es/image/style/{less.js → less.mjs} +0 -0
- package/es/image-preview/{ImagePreview.js → ImagePreview.mjs} +0 -0
- package/es/image-preview/{ImagePreviewItem.js → ImagePreviewItem.mjs} +0 -0
- package/es/image-preview/{function-call.js → function-call.mjs} +0 -0
- package/es/image-preview/{index.js → index.mjs} +0 -0
- package/es/image-preview/style/{index.js → index.mjs} +0 -0
- package/es/image-preview/style/{less.js → less.mjs} +0 -0
- package/es/image-preview/{types.js → types.mjs} +0 -0
- package/es/index-anchor/{IndexAnchor.js → IndexAnchor.mjs} +0 -0
- package/es/index-anchor/{index.js → index.mjs} +0 -0
- package/es/index-anchor/style/{index.js → index.mjs} +0 -0
- package/es/index-anchor/style/{less.js → less.mjs} +0 -0
- package/es/index-bar/{IndexBar.js → IndexBar.mjs} +0 -0
- package/es/index-bar/{index.js → index.mjs} +0 -0
- package/es/index-bar/style/{index.js → index.mjs} +0 -0
- package/es/index-bar/style/{less.js → less.mjs} +0 -0
- package/es/index-bar/{types.js → types.mjs} +0 -0
- package/es/index.d.ts +1 -1
- package/es/{index.js → index.mjs} +1 -1
- package/es/lazyload/{index.js → index.mjs} +0 -0
- package/es/lazyload/style/{index.js → index.mjs} +0 -0
- package/es/lazyload/style/{less.js → less.mjs} +0 -0
- package/es/lazyload/vue-lazyload/{index.js → index.mjs} +0 -0
- package/es/lazyload/vue-lazyload/{lazy-component.js → lazy-component.mjs} +0 -0
- package/es/lazyload/vue-lazyload/{lazy-container.js → lazy-container.mjs} +0 -0
- package/es/lazyload/vue-lazyload/{lazy-image.js → lazy-image.mjs} +0 -0
- package/es/lazyload/vue-lazyload/{lazy.js → lazy.mjs} +0 -0
- package/es/lazyload/vue-lazyload/{listener.js → listener.mjs} +0 -0
- package/es/lazyload/vue-lazyload/{util.js → util.mjs} +0 -0
- package/es/list/{List.js → List.mjs} +0 -0
- package/es/list/{index.js → index.mjs} +0 -0
- package/es/list/style/{index.js → index.mjs} +0 -0
- package/es/list/style/{less.js → less.mjs} +0 -0
- package/es/list/{types.js → types.mjs} +0 -0
- package/es/loading/{Loading.js → Loading.mjs} +3 -1
- package/es/loading/{index.js → index.mjs} +0 -0
- package/es/loading/style/{index.js → index.mjs} +0 -0
- package/es/loading/style/{less.js → less.mjs} +0 -0
- package/es/locale/{index.js → index.mjs} +0 -0
- package/es/locale/lang/bg-BG.d.ts +64 -0
- package/es/locale/lang/bg-BG.mjs +74 -0
- package/es/locale/lang/{bn-BD.js → bn-BD.mjs} +0 -0
- package/es/locale/lang/da-DK.d.ts +64 -0
- package/es/locale/lang/da-DK.mjs +66 -0
- package/es/locale/lang/{de-DE-formal.js → de-DE-formal.mjs} +0 -0
- package/es/locale/lang/{de-DE.js → de-DE.mjs} +0 -0
- package/es/locale/lang/el-GR.d.ts +64 -0
- package/es/locale/lang/el-GR.mjs +74 -0
- package/es/locale/lang/{en-US.js → en-US.mjs} +0 -0
- package/es/locale/lang/{es-ES.js → es-ES.mjs} +0 -0
- package/es/locale/lang/fa-IR.d.ts +64 -0
- package/es/locale/lang/fa-IR.mjs +66 -0
- package/es/locale/lang/{fr-FR.js → fr-FR.mjs} +0 -0
- package/es/locale/lang/he-IL.d.ts +64 -0
- package/es/locale/lang/he-IL.mjs +66 -0
- package/es/locale/lang/{hi-IN.js → hi-IN.mjs} +0 -0
- package/es/locale/lang/{id-ID.js → id-ID.mjs} +0 -0
- package/es/locale/lang/{is-IS.js → is-IS.mjs} +0 -0
- package/es/locale/lang/{it-IT.js → it-IT.mjs} +0 -0
- package/es/locale/lang/{ja-JP.js → ja-JP.mjs} +0 -0
- package/es/locale/lang/{ko-KR.js → ko-KR.mjs} +0 -0
- package/es/locale/lang/{la-LA.js → la-LA.mjs} +0 -0
- package/es/locale/lang/{nb-NO.js → nb-NO.mjs} +0 -0
- package/es/locale/lang/{pt-BR.js → pt-BR.mjs} +0 -0
- package/es/locale/lang/{ro-RO.js → ro-RO.mjs} +0 -0
- package/es/locale/lang/{ru-RU.js → ru-RU.mjs} +0 -0
- package/es/locale/lang/{sv-SE.js → sv-SE.mjs} +0 -0
- package/es/locale/lang/{th-TH.js → th-TH.mjs} +0 -0
- package/es/locale/lang/{tr-TR.js → tr-TR.mjs} +0 -0
- package/es/locale/lang/{uk-UA.js → uk-UA.mjs} +0 -0
- package/es/locale/lang/{vi-VN.js → vi-VN.mjs} +0 -0
- package/es/locale/lang/{zh-CN.js → zh-CN.mjs} +0 -0
- package/es/locale/lang/{zh-HK.js → zh-HK.mjs} +0 -0
- package/es/locale/lang/{zh-TW.js → zh-TW.mjs} +0 -0
- package/es/locale/style/{index.js → index.mjs} +0 -0
- package/es/locale/style/{less.js → less.mjs} +0 -0
- package/es/nav-bar/{NavBar.js → NavBar.mjs} +0 -0
- package/es/nav-bar/{index.js → index.mjs} +0 -0
- package/es/nav-bar/style/{index.js → index.mjs} +0 -0
- package/es/nav-bar/style/{less.js → less.mjs} +0 -0
- package/es/notice-bar/{NoticeBar.js → NoticeBar.mjs} +0 -0
- package/es/notice-bar/{index.js → index.mjs} +0 -0
- package/es/notice-bar/style/{index.js → index.mjs} +0 -0
- package/es/notice-bar/style/{less.js → less.mjs} +0 -0
- package/es/notice-bar/{types.js → types.mjs} +0 -0
- package/es/notify/{Notify.js → Notify.mjs} +0 -0
- package/es/notify/{function-call.js → function-call.mjs} +0 -0
- package/es/notify/{index.js → index.mjs} +0 -0
- package/es/notify/style/{index.js → index.mjs} +0 -0
- package/es/notify/style/{less.js → less.mjs} +0 -0
- package/es/notify/{types.js → types.mjs} +0 -0
- package/es/number-keyboard/{NumberKeyboard.js → NumberKeyboard.mjs} +0 -0
- package/es/number-keyboard/{NumberKeyboardKey.js → NumberKeyboardKey.mjs} +0 -0
- package/es/number-keyboard/{index.js → index.mjs} +0 -0
- package/es/number-keyboard/style/{index.js → index.mjs} +0 -0
- package/es/number-keyboard/style/{less.js → less.mjs} +0 -0
- package/es/overlay/{Overlay.js → Overlay.mjs} +0 -0
- package/es/overlay/{index.js → index.mjs} +0 -0
- package/es/overlay/style/{index.js → index.mjs} +0 -0
- package/es/overlay/style/{less.js → less.mjs} +0 -0
- package/es/pagination/{Pagination.js → Pagination.mjs} +0 -0
- package/es/pagination/{index.js → index.mjs} +0 -0
- package/es/pagination/style/{index.js → index.mjs} +0 -0
- package/es/pagination/style/{less.js → less.mjs} +0 -0
- package/es/password-input/{PasswordInput.js → PasswordInput.mjs} +0 -0
- package/es/password-input/{index.js → index.mjs} +0 -0
- package/es/password-input/style/{index.js → index.mjs} +0 -0
- package/es/password-input/style/{less.js → less.mjs} +0 -0
- package/es/picker/{Picker.js → Picker.mjs} +25 -24
- package/es/picker/{PickerColumn.js → PickerColumn.mjs} +0 -0
- package/es/picker/{index.js → index.mjs} +0 -0
- package/es/picker/style/{index.js → index.mjs} +0 -0
- package/es/picker/style/{less.js → less.mjs} +0 -0
- package/es/picker/{types.js → types.mjs} +0 -0
- package/es/popover/{Popover.js → Popover.mjs} +0 -0
- package/es/popover/{index.js → index.mjs} +0 -0
- package/es/popover/style/{index.js → index.mjs} +0 -0
- package/es/popover/style/{less.js → less.mjs} +0 -0
- package/es/popover/{types.js → types.mjs} +0 -0
- package/es/popup/{Popup.js → Popup.mjs} +0 -0
- package/es/popup/index.css +1 -1
- package/es/popup/{index.js → index.mjs} +0 -0
- package/es/popup/{shared.js → shared.mjs} +0 -0
- package/es/popup/style/{index.js → index.mjs} +0 -0
- package/es/popup/style/{less.js → less.mjs} +0 -0
- package/es/popup/{types.js → types.mjs} +0 -0
- package/es/progress/{Progress.js → Progress.mjs} +0 -0
- package/es/progress/{index.js → index.mjs} +0 -0
- package/es/progress/style/{index.js → index.mjs} +0 -0
- package/es/progress/style/{less.js → less.mjs} +0 -0
- package/es/progress/{types.js → types.mjs} +0 -0
- package/es/pull-refresh/{PullRefresh.js → PullRefresh.mjs} +0 -0
- package/es/pull-refresh/{index.js → index.mjs} +0 -0
- package/es/pull-refresh/style/{index.js → index.mjs} +0 -0
- package/es/pull-refresh/style/{less.js → less.mjs} +0 -0
- package/es/radio/{Radio.js → Radio.mjs} +0 -0
- package/es/radio/{index.js → index.mjs} +0 -0
- package/es/radio/style/{index.js → index.mjs} +0 -0
- package/es/radio/style/{less.js → less.mjs} +0 -0
- package/es/radio-group/{RadioGroup.js → RadioGroup.mjs} +0 -0
- package/es/radio-group/{index.js → index.mjs} +0 -0
- package/es/radio-group/style/{index.js → index.mjs} +0 -0
- package/es/radio-group/style/{less.js → less.mjs} +0 -0
- package/es/rate/{Rate.js → Rate.mjs} +32 -10
- package/es/rate/{index.js → index.mjs} +0 -0
- package/es/rate/style/{index.js → index.mjs} +0 -0
- package/es/rate/style/{less.js → less.mjs} +0 -0
- package/es/row/{Row.js → Row.mjs} +0 -0
- package/es/row/{index.js → index.mjs} +0 -0
- package/es/row/style/{index.js → index.mjs} +0 -0
- package/es/row/style/{less.js → less.mjs} +0 -0
- package/es/search/Search.d.ts +3 -0
- package/es/search/{Search.js → Search.mjs} +0 -0
- package/es/search/index.d.ts +2 -0
- package/es/search/{index.js → index.mjs} +0 -0
- package/es/search/style/{index.js → index.mjs} +0 -0
- package/es/search/style/{less.js → less.mjs} +0 -0
- package/es/search/{types.js → types.mjs} +0 -0
- package/es/share-sheet/{ShareSheet.js → ShareSheet.mjs} +25 -11
- package/es/share-sheet/index.css +1 -1
- package/es/share-sheet/index.less +45 -1
- package/es/share-sheet/{index.js → index.mjs} +0 -0
- package/es/share-sheet/style/{index.js → index.mjs} +0 -0
- package/es/share-sheet/style/{less.js → less.mjs} +0 -0
- package/es/sidebar/{Sidebar.js → Sidebar.mjs} +0 -0
- package/es/sidebar/{index.js → index.mjs} +0 -0
- package/es/sidebar/style/{index.js → index.mjs} +0 -0
- package/es/sidebar/style/{less.js → less.mjs} +0 -0
- package/es/sidebar-item/{SidebarItem.js → SidebarItem.mjs} +0 -0
- package/es/sidebar-item/{index.js → index.mjs} +0 -0
- package/es/sidebar-item/style/{index.js → index.mjs} +0 -0
- package/es/sidebar-item/style/{less.js → less.mjs} +0 -0
- package/es/skeleton/{Skeleton.js → Skeleton.mjs} +0 -0
- package/es/skeleton/{index.js → index.mjs} +0 -0
- package/es/skeleton/style/{index.js → index.mjs} +0 -0
- package/es/skeleton/style/{less.js → less.mjs} +0 -0
- package/es/slider/{Slider.js → Slider.mjs} +0 -0
- package/es/slider/index.css +1 -1
- package/es/slider/{index.js → index.mjs} +0 -0
- package/es/slider/style/{index.js → index.mjs} +0 -0
- package/es/slider/style/{less.js → less.mjs} +0 -0
- package/es/step/{Step.js → Step.mjs} +0 -0
- package/es/step/{index.js → index.mjs} +0 -0
- package/es/step/style/{index.js → index.mjs} +0 -0
- package/es/step/style/{less.js → less.mjs} +0 -0
- package/es/stepper/{Stepper.js → Stepper.mjs} +0 -0
- package/es/stepper/{index.js → index.mjs} +0 -0
- package/es/stepper/style/{index.js → index.mjs} +0 -0
- package/es/stepper/style/{less.js → less.mjs} +0 -0
- package/es/steps/{Steps.js → Steps.mjs} +0 -0
- package/es/steps/{index.js → index.mjs} +0 -0
- package/es/steps/style/{index.js → index.mjs} +0 -0
- package/es/steps/style/{less.js → less.mjs} +0 -0
- package/es/sticky/{Sticky.js → Sticky.mjs} +0 -0
- package/es/sticky/{index.js → index.mjs} +0 -0
- package/es/sticky/style/{index.js → index.mjs} +0 -0
- package/es/sticky/style/{less.js → less.mjs} +0 -0
- package/es/style/animation.css +1 -1
- package/es/style/base.css +1 -1
- package/es/submit-bar/{SubmitBar.js → SubmitBar.mjs} +0 -0
- package/es/submit-bar/{index.js → index.mjs} +0 -0
- package/es/submit-bar/style/{index.js → index.mjs} +0 -0
- package/es/submit-bar/style/{less.js → less.mjs} +0 -0
- package/es/swipe/{Swipe.js → Swipe.mjs} +0 -0
- package/es/swipe/{index.js → index.mjs} +0 -0
- package/es/swipe/style/{index.js → index.mjs} +0 -0
- package/es/swipe/style/{less.js → less.mjs} +0 -0
- package/es/swipe/{types.js → types.mjs} +0 -0
- package/es/swipe-cell/{SwipeCell.js → SwipeCell.mjs} +0 -0
- package/es/swipe-cell/index.css +1 -1
- package/es/swipe-cell/{index.js → index.mjs} +0 -0
- package/es/swipe-cell/style/{index.js → index.mjs} +0 -0
- package/es/swipe-cell/style/{less.js → less.mjs} +0 -0
- package/es/swipe-cell/{types.js → types.mjs} +0 -0
- package/es/swipe-item/{SwipeItem.js → SwipeItem.mjs} +0 -0
- package/es/swipe-item/{index.js → index.mjs} +0 -0
- package/es/swipe-item/style/{index.js → index.mjs} +0 -0
- package/es/swipe-item/style/{less.js → less.mjs} +0 -0
- package/es/switch/{Switch.js → Switch.mjs} +5 -1
- package/es/switch/{index.js → index.mjs} +0 -0
- package/es/switch/style/{index.js → index.mjs} +0 -0
- package/es/switch/style/{less.js → less.mjs} +0 -0
- package/es/tab/{Tab.js → Tab.mjs} +0 -0
- package/es/tab/{index.js → index.mjs} +0 -0
- package/es/tab/style/{index.js → index.mjs} +0 -0
- package/es/tab/style/{less.js → less.mjs} +0 -0
- package/es/tabbar/{Tabbar.js → Tabbar.mjs} +0 -0
- package/es/tabbar/{index.js → index.mjs} +0 -0
- package/es/tabbar/style/{index.js → index.mjs} +0 -0
- package/es/tabbar/style/{less.js → less.mjs} +0 -0
- package/es/tabbar-item/{TabbarItem.js → TabbarItem.mjs} +0 -0
- package/es/tabbar-item/{index.js → index.mjs} +0 -0
- package/es/tabbar-item/style/{index.js → index.mjs} +0 -0
- package/es/tabbar-item/style/{less.js → less.mjs} +0 -0
- package/es/tabs/{Tabs.js → Tabs.mjs} +0 -0
- package/es/tabs/{TabsContent.js → TabsContent.mjs} +0 -0
- package/es/tabs/{TabsTitle.js → TabsTitle.mjs} +0 -0
- package/es/tabs/{index.js → index.mjs} +0 -0
- package/es/tabs/style/{index.js → index.mjs} +0 -0
- package/es/tabs/style/{less.js → less.mjs} +0 -0
- package/es/tabs/{types.js → types.mjs} +0 -0
- package/es/tabs/{utils.js → utils.mjs} +0 -0
- package/es/tag/{Tag.js → Tag.mjs} +0 -0
- package/es/tag/{index.js → index.mjs} +0 -0
- package/es/tag/style/{index.js → index.mjs} +0 -0
- package/es/tag/style/{less.js → less.mjs} +0 -0
- package/es/toast/{Toast.js → Toast.mjs} +0 -0
- package/es/toast/{function-call.js → function-call.mjs} +0 -0
- package/es/toast/{index.js → index.mjs} +0 -0
- package/es/toast/{lock-click.js → lock-click.mjs} +0 -0
- package/es/toast/style/{index.js → index.mjs} +0 -0
- package/es/toast/style/{less.js → less.mjs} +0 -0
- package/es/toast/{types.js → types.mjs} +0 -0
- package/es/tree-select/{TreeSelect.js → TreeSelect.mjs} +0 -0
- package/es/tree-select/{index.js → index.mjs} +0 -0
- package/es/tree-select/style/{index.js → index.mjs} +0 -0
- package/es/tree-select/style/{less.js → less.mjs} +0 -0
- package/es/uploader/{Uploader.js → Uploader.mjs} +3 -5
- package/es/uploader/{UploaderPreviewItem.js → UploaderPreviewItem.mjs} +5 -2
- package/es/uploader/index.css +1 -1
- package/es/uploader/index.less +7 -4
- package/es/uploader/{index.js → index.mjs} +0 -0
- package/es/uploader/style/{index.js → index.mjs} +0 -0
- package/es/uploader/style/{less.js → less.mjs} +0 -0
- package/es/uploader/{types.js → types.mjs} +0 -0
- package/es/uploader/utils.d.ts +0 -1
- package/es/uploader/{utils.js → utils.mjs} +2 -4
- package/es/utils/basic.d.ts +1 -0
- package/es/utils/{basic.js → basic.mjs} +3 -1
- package/es/utils/{constant.js → constant.mjs} +0 -0
- package/es/utils/{create.js → create.mjs} +0 -0
- package/es/utils/{deep-assign.js → deep-assign.mjs} +0 -0
- package/es/utils/{deep-clone.js → deep-clone.mjs} +0 -0
- package/es/utils/{dom.js → dom.mjs} +0 -0
- package/es/utils/{format.js → format.mjs} +0 -0
- package/es/utils/{index.js → index.mjs} +0 -0
- package/es/utils/{interceptor.js → interceptor.mjs} +0 -0
- package/es/utils/{mount-component.js → mount-component.mjs} +0 -0
- package/es/utils/{props.js → props.mjs} +0 -0
- package/es/utils/{validate.js → validate.mjs} +0 -0
- package/es/utils/{with-install.js → with-install.mjs} +0 -0
- package/lib/action-bar/ActionBar.js +8 -13
- package/lib/action-bar/index.js +9 -16
- package/lib/action-bar-button/ActionBarButton.js +8 -13
- package/lib/action-bar-button/index.js +9 -16
- package/lib/action-bar-icon/ActionBarIcon.js +8 -13
- package/lib/action-bar-icon/index.js +9 -16
- package/lib/action-sheet/ActionSheet.js +8 -13
- package/lib/action-sheet/index.js +9 -16
- package/lib/address-edit/AddressEdit.js +9 -16
- package/lib/address-edit/AddressEditDetail.js +8 -13
- package/lib/address-edit/index.js +9 -16
- package/lib/address-edit/types.js +7 -12
- package/lib/address-list/AddressList.js +9 -16
- package/lib/address-list/AddressListItem.js +8 -13
- package/lib/address-list/index.js +9 -16
- package/lib/area/Area.js +8 -13
- package/lib/area/index.js +9 -16
- package/lib/area/types.js +7 -12
- package/lib/badge/Badge.js +8 -13
- package/lib/badge/index.js +9 -16
- package/lib/button/Button.js +8 -13
- package/lib/button/index.js +9 -16
- package/lib/button/types.js +7 -12
- package/lib/calendar/Calendar.js +9 -16
- package/lib/calendar/CalendarDay.js +12 -13
- package/lib/calendar/CalendarHeader.js +8 -13
- package/lib/calendar/CalendarMonth.js +9 -16
- package/lib/calendar/index.css +1 -1
- package/lib/calendar/index.js +9 -16
- package/lib/calendar/index.less +2 -0
- package/lib/calendar/types.js +7 -12
- package/lib/calendar/utils.js +8 -13
- package/lib/calendar/var.less +1 -0
- package/lib/card/Card.js +8 -13
- package/lib/card/index.js +9 -16
- package/lib/cascader/Cascader.js +8 -13
- package/lib/cascader/index.js +9 -16
- package/lib/cascader/types.js +7 -12
- package/lib/cell/Cell.js +8 -13
- package/lib/cell/index.js +9 -16
- package/lib/cell-group/CellGroup.js +8 -13
- package/lib/cell-group/index.js +9 -16
- package/lib/checkbox/Checkbox.js +9 -16
- package/lib/checkbox/Checker.js +8 -13
- package/lib/checkbox/index.js +9 -16
- package/lib/checkbox/types.js +7 -12
- package/lib/checkbox-group/CheckboxGroup.js +8 -13
- package/lib/checkbox-group/index.js +9 -16
- package/lib/checkbox-group/types.js +7 -12
- package/lib/circle/Circle.js +8 -13
- package/lib/circle/index.js +9 -16
- package/lib/col/Col.js +8 -13
- package/lib/col/index.js +9 -16
- package/lib/collapse/Collapse.js +8 -13
- package/lib/collapse/index.js +9 -16
- package/lib/collapse-item/CollapseItem.js +8 -13
- package/lib/collapse-item/index.js +9 -16
- package/lib/collapse-item/types.js +7 -12
- package/lib/composables/on-popup-reopen.js +8 -13
- package/lib/composables/use-expose.js +8 -13
- package/lib/composables/use-height.js +8 -13
- package/lib/composables/use-id.js +8 -13
- package/lib/composables/use-lazy-render.js +8 -13
- package/lib/composables/use-lock-scroll.js +8 -13
- package/lib/composables/use-placeholder.js +8 -13
- package/lib/composables/use-refs.js +8 -13
- package/lib/composables/use-route.js +8 -13
- package/lib/composables/use-tab-status.js +8 -13
- package/lib/composables/use-touch.js +8 -13
- package/lib/composables/use-visibility-change.js +8 -13
- package/lib/config-provider/ConfigProvider.js +8 -13
- package/lib/config-provider/index.js +9 -16
- package/lib/contact-card/ContactCard.js +8 -13
- package/lib/contact-card/index.js +9 -16
- package/lib/contact-edit/ContactEdit.js +8 -13
- package/lib/contact-edit/index.js +9 -16
- package/lib/contact-list/ContactList.js +8 -13
- package/lib/contact-list/index.js +9 -16
- package/lib/count-down/CountDown.js +8 -13
- package/lib/count-down/index.js +9 -16
- package/lib/count-down/types.js +7 -12
- package/lib/count-down/utils.js +8 -13
- package/lib/coupon/Coupon.js +8 -13
- package/lib/coupon/index.js +9 -16
- package/lib/coupon/utils.js +8 -13
- package/lib/coupon-cell/CouponCell.js +8 -13
- package/lib/coupon-cell/index.js +9 -16
- package/lib/coupon-list/CouponList.js +8 -13
- package/lib/coupon-list/index.js +9 -16
- package/lib/datetime-picker/DatePicker.js +9 -13
- package/lib/datetime-picker/DatetimePicker.js +9 -16
- package/lib/datetime-picker/TimePicker.js +8 -13
- package/lib/datetime-picker/index.js +9 -16
- package/lib/datetime-picker/types.js +7 -12
- package/lib/datetime-picker/utils.js +8 -13
- package/lib/dialog/Dialog.js +8 -13
- package/lib/dialog/function-call.js +9 -16
- package/lib/dialog/index.css +1 -1
- package/lib/dialog/index.js +8 -13
- package/lib/dialog/types.js +7 -12
- package/lib/divider/Divider.js +8 -13
- package/lib/divider/index.js +9 -16
- package/lib/dropdown-item/DropdownItem.js +8 -13
- package/lib/dropdown-item/index.js +9 -16
- package/lib/dropdown-item/types.js +7 -12
- package/lib/dropdown-menu/DropdownMenu.js +8 -13
- package/lib/dropdown-menu/index.js +9 -16
- package/lib/dropdown-menu/types.js +7 -12
- package/lib/empty/Empty.d.ts +8 -7
- package/lib/empty/Empty.js +19 -27
- package/lib/empty/Images.d.ts +4 -0
- package/lib/empty/Images.js +290 -0
- package/lib/empty/index.d.ts +2 -2
- package/lib/empty/index.js +9 -16
- package/lib/field/Field.d.ts +4 -0
- package/lib/field/Field.js +28 -28
- package/lib/field/index.d.ts +3 -1
- package/lib/field/index.js +9 -16
- package/lib/field/types.d.ts +3 -1
- package/lib/field/types.js +7 -12
- package/lib/field/utils.js +8 -13
- package/lib/form/Form.d.ts +13 -13
- package/lib/form/Form.js +20 -16
- package/lib/form/index.d.ts +9 -9
- package/lib/form/index.js +9 -16
- package/lib/form/types.d.ts +3 -0
- package/lib/form/types.js +7 -12
- package/lib/grid/Grid.js +8 -13
- package/lib/grid/index.js +9 -16
- package/lib/grid-item/GridItem.js +8 -13
- package/lib/grid-item/index.js +9 -16
- package/lib/icon/Icon.js +8 -13
- package/lib/icon/index.css +1 -1
- package/lib/icon/index.js +9 -16
- package/lib/image/Image.js +8 -13
- package/lib/image/index.js +9 -16
- package/lib/image-preview/ImagePreview.js +9 -16
- package/lib/image-preview/ImagePreviewItem.js +8 -13
- package/lib/image-preview/function-call.js +9 -16
- package/lib/image-preview/index.js +8 -13
- package/lib/image-preview/types.js +7 -12
- package/lib/index-anchor/IndexAnchor.js +8 -13
- package/lib/index-anchor/index.js +9 -16
- package/lib/index-bar/IndexBar.js +8 -13
- package/lib/index-bar/index.js +9 -16
- package/lib/index-bar/types.js +7 -12
- package/lib/index.css +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +96 -100
- package/lib/lazyload/index.js +8 -13
- package/lib/lazyload/vue-lazyload/index.js +9 -16
- package/lib/lazyload/vue-lazyload/lazy-component.js +8 -13
- package/lib/lazyload/vue-lazyload/lazy-container.js +8 -13
- package/lib/lazyload/vue-lazyload/lazy-image.js +8 -13
- package/lib/lazyload/vue-lazyload/lazy.js +9 -16
- package/lib/lazyload/vue-lazyload/listener.js +8 -13
- package/lib/lazyload/vue-lazyload/util.js +8 -13
- package/lib/list/List.js +8 -13
- package/lib/list/index.js +9 -16
- package/lib/list/types.js +7 -12
- package/lib/loading/Loading.js +11 -14
- package/lib/loading/index.js +9 -16
- package/lib/locale/index.js +9 -16
- 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.js +8 -13
- 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.js +8 -13
- package/lib/locale/lang/de-DE.js +8 -13
- 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.js +8 -13
- package/lib/locale/lang/es-ES.js +8 -13
- package/lib/locale/lang/fa-IR.d.ts +64 -0
- package/lib/locale/lang/fa-IR.js +85 -0
- package/lib/locale/lang/fr-FR.js +8 -13
- 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.js +8 -13
- package/lib/locale/lang/id-ID.js +8 -13
- package/lib/locale/lang/is-IS.js +8 -13
- package/lib/locale/lang/it-IT.js +8 -13
- package/lib/locale/lang/ja-JP.js +8 -13
- package/lib/locale/lang/ko-KR.js +8 -13
- package/lib/locale/lang/la-LA.js +8 -13
- package/lib/locale/lang/nb-NO.js +8 -13
- package/lib/locale/lang/pt-BR.js +8 -13
- package/lib/locale/lang/ro-RO.js +8 -13
- package/lib/locale/lang/ru-RU.js +8 -13
- package/lib/locale/lang/sv-SE.js +8 -13
- package/lib/locale/lang/th-TH.js +8 -13
- package/lib/locale/lang/tr-TR.js +8 -13
- package/lib/locale/lang/uk-UA.js +8 -13
- package/lib/locale/lang/vi-VN.js +8 -13
- package/lib/locale/lang/zh-CN.js +8 -13
- package/lib/locale/lang/zh-HK.js +8 -13
- package/lib/locale/lang/zh-TW.js +8 -13
- package/lib/nav-bar/NavBar.js +8 -13
- package/lib/nav-bar/index.js +9 -16
- package/lib/notice-bar/NoticeBar.js +8 -13
- package/lib/notice-bar/index.js +9 -16
- package/lib/notice-bar/types.js +7 -12
- package/lib/notify/Notify.js +8 -13
- package/lib/notify/function-call.js +9 -16
- package/lib/notify/index.js +8 -13
- package/lib/notify/types.js +7 -12
- package/lib/number-keyboard/NumberKeyboard.js +9 -16
- package/lib/number-keyboard/NumberKeyboardKey.js +8 -13
- package/lib/number-keyboard/index.js +9 -16
- package/lib/overlay/Overlay.js +8 -13
- package/lib/overlay/index.js +9 -16
- package/lib/pagination/Pagination.js +8 -13
- package/lib/pagination/index.js +9 -16
- package/lib/password-input/PasswordInput.js +8 -13
- package/lib/password-input/index.js +9 -16
- package/lib/picker/Picker.js +34 -40
- package/lib/picker/PickerColumn.js +8 -13
- package/lib/picker/index.js +9 -16
- package/lib/picker/types.js +7 -12
- package/lib/popover/Popover.js +8 -13
- package/lib/popover/index.js +9 -16
- package/lib/popover/types.js +7 -12
- package/lib/popup/Popup.js +8 -13
- package/lib/popup/index.css +1 -1
- package/lib/popup/index.js +9 -16
- package/lib/popup/shared.js +8 -13
- package/lib/popup/types.js +7 -12
- package/lib/progress/Progress.js +8 -13
- package/lib/progress/index.js +9 -16
- package/lib/progress/types.js +7 -12
- package/lib/pull-refresh/PullRefresh.js +8 -13
- package/lib/pull-refresh/index.js +9 -16
- package/lib/radio/Radio.js +9 -16
- package/lib/radio/index.js +9 -16
- package/lib/radio-group/RadioGroup.js +8 -13
- package/lib/radio-group/index.js +9 -16
- package/lib/rate/Rate.js +39 -22
- package/lib/rate/index.js +9 -16
- package/lib/row/Row.js +8 -13
- package/lib/row/index.js +9 -16
- package/lib/search/Search.d.ts +3 -0
- package/lib/search/Search.js +8 -13
- package/lib/search/index.d.ts +2 -0
- package/lib/search/index.js +9 -16
- package/lib/search/types.js +7 -12
- package/lib/share-sheet/ShareSheet.js +33 -24
- package/lib/share-sheet/index.css +1 -1
- package/lib/share-sheet/index.js +9 -16
- package/lib/share-sheet/index.less +45 -1
- package/lib/sidebar/Sidebar.js +8 -13
- package/lib/sidebar/index.js +9 -16
- package/lib/sidebar-item/SidebarItem.js +8 -13
- package/lib/sidebar-item/index.js +9 -16
- package/lib/skeleton/Skeleton.js +8 -13
- package/lib/skeleton/index.js +9 -16
- package/lib/slider/Slider.js +8 -13
- package/lib/slider/index.css +1 -1
- package/lib/slider/index.js +9 -16
- package/lib/step/Step.js +8 -13
- package/lib/step/index.js +9 -16
- package/lib/stepper/Stepper.js +8 -13
- package/lib/stepper/index.js +9 -16
- package/lib/steps/Steps.js +8 -13
- package/lib/steps/index.js +9 -16
- package/lib/sticky/Sticky.js +8 -13
- package/lib/sticky/index.js +9 -16
- package/lib/style/animation.css +1 -1
- package/lib/style/base.css +1 -1
- package/lib/submit-bar/SubmitBar.js +8 -13
- package/lib/submit-bar/index.js +9 -16
- package/lib/swipe/Swipe.js +8 -13
- package/lib/swipe/index.js +9 -16
- package/lib/swipe/types.js +7 -12
- package/lib/swipe-cell/SwipeCell.js +8 -13
- package/lib/swipe-cell/index.css +1 -1
- package/lib/swipe-cell/index.js +9 -16
- package/lib/swipe-cell/types.js +7 -12
- package/lib/swipe-item/SwipeItem.js +8 -13
- package/lib/swipe-item/index.js +9 -16
- package/lib/switch/Switch.js +13 -14
- package/lib/switch/index.js +9 -16
- package/lib/tab/Tab.js +8 -13
- package/lib/tab/index.js +9 -16
- package/lib/tabbar/Tabbar.js +8 -13
- package/lib/tabbar/index.js +9 -16
- package/lib/tabbar-item/TabbarItem.js +8 -13
- package/lib/tabbar-item/index.js +9 -16
- package/lib/tabs/Tabs.js +9 -16
- package/lib/tabs/TabsContent.js +8 -13
- package/lib/tabs/TabsTitle.js +8 -13
- package/lib/tabs/index.js +9 -16
- package/lib/tabs/types.js +7 -12
- package/lib/tabs/utils.js +8 -13
- package/lib/tag/Tag.js +8 -13
- package/lib/tag/index.js +9 -16
- package/lib/toast/Toast.js +8 -13
- package/lib/toast/function-call.js +9 -16
- package/lib/toast/index.js +8 -13
- package/lib/toast/lock-click.js +8 -13
- package/lib/toast/types.js +7 -12
- package/lib/tree-select/TreeSelect.js +8 -13
- package/lib/tree-select/index.js +9 -16
- package/lib/uploader/Uploader.js +11 -20
- package/lib/uploader/UploaderPreviewItem.js +13 -15
- package/lib/uploader/index.css +1 -1
- package/lib/uploader/index.js +9 -16
- package/lib/uploader/index.less +7 -4
- package/lib/uploader/types.js +7 -12
- package/lib/uploader/utils.d.ts +0 -1
- package/lib/uploader/utils.js +10 -17
- package/lib/utils/basic.d.ts +1 -0
- package/lib/utils/basic.js +11 -14
- package/lib/utils/constant.js +8 -13
- package/lib/utils/create.js +9 -16
- package/lib/utils/deep-assign.js +8 -13
- package/lib/utils/deep-clone.js +8 -13
- package/lib/utils/dom.js +8 -13
- package/lib/utils/format.js +8 -13
- package/lib/utils/index.js +17 -21
- package/lib/utils/interceptor.js +8 -13
- package/lib/utils/mount-component.js +8 -13
- package/lib/utils/props.js +8 -13
- package/lib/utils/validate.js +8 -13
- package/lib/utils/with-install.js +8 -13
- package/lib/vant.cjs.js +353 -116
- package/lib/vant.cjs.min.js +1 -1
- package/lib/vant.es.js +352 -114
- package/lib/vant.es.min.js +352 -114
- package/lib/vant.js +429 -155
- package/lib/vant.min.js +1 -1
- package/package.json +8 -23
- package/vetur/attributes.json +696 -763
- package/vetur/tags.json +230 -228
- package/vetur/web-types.json +3925 -3063
- package/changelog.generated.md +0 -81
- package/es/empty/Network.d.ts +0 -1
- package/es/empty/Network.js +0 -89
- package/lib/empty/Network.d.ts +0 -1
- package/lib/empty/Network.js +0 -113
@@ -65,12 +65,56 @@
|
|
65
65
|
user-select: none;
|
66
66
|
}
|
67
67
|
|
68
|
-
&__icon
|
68
|
+
&__icon,
|
69
|
+
&__image-icon {
|
69
70
|
width: var(--van-share-sheet-icon-size);
|
70
71
|
height: var(--van-share-sheet-icon-size);
|
71
72
|
margin: 0 var(--van-padding-md);
|
72
73
|
}
|
73
74
|
|
75
|
+
&__icon {
|
76
|
+
display: flex;
|
77
|
+
align-items: center;
|
78
|
+
justify-content: center;
|
79
|
+
color: var(--van-gray-7);
|
80
|
+
border-radius: 100%;
|
81
|
+
background-color: var(--van-gray-2);
|
82
|
+
|
83
|
+
&--link,
|
84
|
+
&--poster,
|
85
|
+
&--qrcode {
|
86
|
+
font-size: 26px;
|
87
|
+
}
|
88
|
+
|
89
|
+
&--weapp-qrcode {
|
90
|
+
font-size: 28px;
|
91
|
+
}
|
92
|
+
|
93
|
+
&--qq,
|
94
|
+
&--weibo,
|
95
|
+
&--wechat,
|
96
|
+
&--wechat-moments {
|
97
|
+
font-size: 30px;
|
98
|
+
color: var(--van-white);
|
99
|
+
}
|
100
|
+
|
101
|
+
&--qq {
|
102
|
+
background-color: #38b9fa;
|
103
|
+
}
|
104
|
+
|
105
|
+
&--wechat {
|
106
|
+
background-color: #0bc15f;
|
107
|
+
}
|
108
|
+
|
109
|
+
&--weibo {
|
110
|
+
background-color: #ee575e;
|
111
|
+
}
|
112
|
+
|
113
|
+
&--wechat-moments {
|
114
|
+
background-color: #7bc845;
|
115
|
+
}
|
116
|
+
}
|
117
|
+
|
74
118
|
&__name {
|
75
119
|
margin-top: var(--van-padding-xs);
|
76
120
|
padding: 0 var(--van-padding-base);
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
package/es/slider/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
:root{--van-slider-active-background-color: var(--van-primary-color);--van-slider-inactive-background-color: var(--van-gray-3);--van-slider-disabled-opacity: var(--van-disabled-opacity);--van-slider-bar-height: 2px;--van-slider-button-width: 24px;--van-slider-button-height: 24px;--van-slider-button-border-radius: 50%;--van-slider-button-background-color: var(--van-white);--van-slider-button-box-shadow: 0 1px 2px rgba(0, 0, 0, .5)}.van-slider{position:relative;width:100%;height:var(--van-slider-bar-height);background:var(--van-slider-inactive-background-color);border-radius:var(--van-border-radius-max);cursor:pointer}.van-slider:before{position:absolute;top:calc(var(--van-padding-xs) * -1);right:0;bottom:calc(var(--van-padding-xs) * -1);left:0;content:""}.van-slider__bar{position:absolute;width:100%;height:100%;background:var(--van-slider-active-background-color);border-radius:inherit;transition:all var(--van-animation-duration-fast)}.van-slider__button{width:var(--van-slider-button-width);height:var(--van-slider-button-height);background:var(--van-slider-button-background-color);border-radius:var(--van-slider-button-border-radius);box-shadow:var(--van-slider-button-box-shadow)}.van-slider__button-wrapper{position:absolute;cursor:-webkit-grab;cursor:grab;top:50%}.van-slider__button-wrapper--right{right:0;transform:
|
1
|
+
:root{--van-slider-active-background-color: var(--van-primary-color);--van-slider-inactive-background-color: var(--van-gray-3);--van-slider-disabled-opacity: var(--van-disabled-opacity);--van-slider-bar-height: 2px;--van-slider-button-width: 24px;--van-slider-button-height: 24px;--van-slider-button-border-radius: 50%;--van-slider-button-background-color: var(--van-white);--van-slider-button-box-shadow: 0 1px 2px rgba(0, 0, 0, .5)}.van-slider{position:relative;width:100%;height:var(--van-slider-bar-height);background:var(--van-slider-inactive-background-color);border-radius:var(--van-border-radius-max);cursor:pointer}.van-slider:before{position:absolute;top:calc(var(--van-padding-xs) * -1);right:0;bottom:calc(var(--van-padding-xs) * -1);left:0;content:""}.van-slider__bar{position:absolute;width:100%;height:100%;background:var(--van-slider-active-background-color);border-radius:inherit;transition:all var(--van-animation-duration-fast)}.van-slider__button{width:var(--van-slider-button-width);height:var(--van-slider-button-height);background:var(--van-slider-button-background-color);border-radius:var(--van-slider-button-border-radius);box-shadow:var(--van-slider-button-box-shadow)}.van-slider__button-wrapper{position:absolute;cursor:-webkit-grab;cursor:grab;top:50%}.van-slider__button-wrapper--right{right:0;transform:translate3d(50%,-50%,0)}.van-slider__button-wrapper--left{left:0;transform:translate3d(-50%,-50%,0)}.van-slider--disabled{cursor:not-allowed;opacity:var(--van-slider-disabled-opacity)}.van-slider--disabled .van-slider__button-wrapper{cursor:not-allowed}.van-slider--vertical{display:inline-block;width:var(--van-slider-bar-height);height:100%}.van-slider--vertical .van-slider__button-wrapper--right{top:auto;right:50%;bottom:0;transform:translate3d(50%,50%,0)}.van-slider--vertical .van-slider__button-wrapper--left{top:0;right:50%;left:auto;transform:translate3d(50%,-50%,0)}.van-slider--vertical:before{top:0;right:calc(var(--van-padding-xs) * -1);bottom:0;left:calc(var(--van-padding-xs) * -1)}
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
package/es/style/animation.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
@keyframes van-slide-up-enter{0%{transform:
|
1
|
+
@keyframes van-slide-up-enter{0%{transform:translate3d(0,100%,0)}}@keyframes van-slide-up-leave{to{transform:translate3d(0,100%,0)}}@keyframes van-slide-down-enter{0%{transform:translate3d(0,-100%,0)}}@keyframes van-slide-down-leave{to{transform:translate3d(0,-100%,0)}}@keyframes van-slide-left-enter{0%{transform:translate3d(-100%,0,0)}}@keyframes van-slide-left-leave{to{transform:translate3d(-100%,0,0)}}@keyframes van-slide-right-enter{0%{transform:translate3d(100%,0,0)}}@keyframes van-slide-right-leave{to{transform:translate3d(100%,0,0)}}@keyframes van-fade-in{0%{opacity:0}to{opacity:1}}@keyframes van-fade-out{0%{opacity:1}to{opacity:0}}@keyframes van-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.van-fade-enter-active{animation:var(--van-animation-duration-base) van-fade-in both var(--van-animation-timing-function-enter)}.van-fade-leave-active{animation:var(--van-animation-duration-base) van-fade-out both var(--van-animation-timing-function-leave)}.van-slide-up-enter-active{animation:van-slide-up-enter var(--van-animation-duration-base) both var(--van-animation-timing-function-enter)}.van-slide-up-leave-active{animation:van-slide-up-leave var(--van-animation-duration-base) both var(--van-animation-timing-function-leave)}.van-slide-down-enter-active{animation:van-slide-down-enter var(--van-animation-duration-base) both var(--van-animation-timing-function-enter)}.van-slide-down-leave-active{animation:van-slide-down-leave var(--van-animation-duration-base) both var(--van-animation-timing-function-leave)}.van-slide-left-enter-active{animation:van-slide-left-enter var(--van-animation-duration-base) both var(--van-animation-timing-function-enter)}.van-slide-left-leave-active{animation:van-slide-left-leave var(--van-animation-duration-base) both var(--van-animation-timing-function-leave)}.van-slide-right-enter-active{animation:van-slide-right-enter var(--van-animation-duration-base) both var(--van-animation-timing-function-enter)}.van-slide-right-leave-active{animation:van-slide-right-leave var(--van-animation-duration-base) both var(--van-animation-timing-function-leave)}
|
package/es/style/base.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
:root{--van-black: #000;--van-white: #fff;--van-gray-1: #f7f8fa;--van-gray-2: #f2f3f5;--van-gray-3: #ebedf0;--van-gray-4: #dcdee0;--van-gray-5: #c8c9cc;--van-gray-6: #969799;--van-gray-7: #646566;--van-gray-8: #323233;--van-red: #ee0a24;--van-blue: #1989fa;--van-orange: #ff976a;--van-orange-dark: #ed6a0c;--van-orange-light: #fffbe8;--van-green: #07c160;--van-gradient-red: linear-gradient(to right, #ff6034, #ee0a24);--van-gradient-orange: linear-gradient(to right, #ffd01e, #ff8917);--van-primary-color: var(--van-blue);--van-success-color: var(--van-green);--van-danger-color: var(--van-red);--van-warning-color: var(--van-orange);--van-text-color: var(--van-gray-8);--van-text-color-2: var(--van-gray-6);--van-text-color-3: var(--van-gray-5);--van-text-link-color: #576b95;--van-active-color: var(--van-gray-2);--van-active-opacity: .6;--van-disabled-opacity: .5;--van-background-color: var(--van-gray-1);--van-background-color-light: var(--van-white);--van-padding-base: 4px;--van-padding-xs: 8px;--van-padding-sm: 12px;--van-padding-md: 16px;--van-padding-lg: 24px;--van-padding-xl: 32px;--van-font-size-xs: 10px;--van-font-size-sm: 12px;--van-font-size-md: 14px;--van-font-size-lg: 16px;--van-font-weight-bold: 500;--van-line-height-xs: 14px;--van-line-height-sm: 18px;--van-line-height-md: 20px;--van-line-height-lg: 22px;--van-base-font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Segoe UI, Arial, Roboto, "PingFang SC", "miui", "Hiragino Sans GB", "Microsoft Yahei", sans-serif;--van-price-integer-font-family: Avenir-Heavy, PingFang SC, Helvetica Neue, Arial, sans-serif;--van-animation-duration-base: .3s;--van-animation-duration-fast: .2s;--van-animation-timing-function-enter: ease-out;--van-animation-timing-function-leave: ease-in;--van-border-color: var(--van-gray-3);--van-border-width-base: 1px;--van-border-radius-sm: 2px;--van-border-radius-md: 4px;--van-border-radius-lg: 8px;--van-border-radius-max: 999px}html{-webkit-tap-highlight-color:transparent}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,Helvetica Neue,Helvetica,Segoe UI,Arial,Roboto,PingFang SC,miui,Hiragino Sans GB,Microsoft Yahei,sans-serif}a{text-decoration:none}input,button,textarea{color:inherit;font:inherit}a:focus,input:focus,button:focus,textarea:focus,[class*=van-]:focus{outline:none}ol,ul{margin:0;padding:0;list-style:none}@keyframes van-slide-up-enter{0%{transform:
|
1
|
+
:root{--van-black: #000;--van-white: #fff;--van-gray-1: #f7f8fa;--van-gray-2: #f2f3f5;--van-gray-3: #ebedf0;--van-gray-4: #dcdee0;--van-gray-5: #c8c9cc;--van-gray-6: #969799;--van-gray-7: #646566;--van-gray-8: #323233;--van-red: #ee0a24;--van-blue: #1989fa;--van-orange: #ff976a;--van-orange-dark: #ed6a0c;--van-orange-light: #fffbe8;--van-green: #07c160;--van-gradient-red: linear-gradient(to right, #ff6034, #ee0a24);--van-gradient-orange: linear-gradient(to right, #ffd01e, #ff8917);--van-primary-color: var(--van-blue);--van-success-color: var(--van-green);--van-danger-color: var(--van-red);--van-warning-color: var(--van-orange);--van-text-color: var(--van-gray-8);--van-text-color-2: var(--van-gray-6);--van-text-color-3: var(--van-gray-5);--van-text-link-color: #576b95;--van-active-color: var(--van-gray-2);--van-active-opacity: .6;--van-disabled-opacity: .5;--van-background-color: var(--van-gray-1);--van-background-color-light: var(--van-white);--van-padding-base: 4px;--van-padding-xs: 8px;--van-padding-sm: 12px;--van-padding-md: 16px;--van-padding-lg: 24px;--van-padding-xl: 32px;--van-font-size-xs: 10px;--van-font-size-sm: 12px;--van-font-size-md: 14px;--van-font-size-lg: 16px;--van-font-weight-bold: 500;--van-line-height-xs: 14px;--van-line-height-sm: 18px;--van-line-height-md: 20px;--van-line-height-lg: 22px;--van-base-font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Segoe UI, Arial, Roboto, "PingFang SC", "miui", "Hiragino Sans GB", "Microsoft Yahei", sans-serif;--van-price-integer-font-family: Avenir-Heavy, PingFang SC, Helvetica Neue, Arial, sans-serif;--van-animation-duration-base: .3s;--van-animation-duration-fast: .2s;--van-animation-timing-function-enter: ease-out;--van-animation-timing-function-leave: ease-in;--van-border-color: var(--van-gray-3);--van-border-width-base: 1px;--van-border-radius-sm: 2px;--van-border-radius-md: 4px;--van-border-radius-lg: 8px;--van-border-radius-max: 999px}html{-webkit-tap-highlight-color:transparent}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,Helvetica Neue,Helvetica,Segoe UI,Arial,Roboto,PingFang SC,miui,Hiragino Sans GB,Microsoft Yahei,sans-serif}a{text-decoration:none}input,button,textarea{color:inherit;font:inherit}a:focus,input:focus,button:focus,textarea:focus,[class*=van-]:focus{outline:none}ol,ul{margin:0;padding:0;list-style:none}@keyframes van-slide-up-enter{0%{transform:translate3d(0,100%,0)}}@keyframes van-slide-up-leave{to{transform:translate3d(0,100%,0)}}@keyframes van-slide-down-enter{0%{transform:translate3d(0,-100%,0)}}@keyframes van-slide-down-leave{to{transform:translate3d(0,-100%,0)}}@keyframes van-slide-left-enter{0%{transform:translate3d(-100%,0,0)}}@keyframes van-slide-left-leave{to{transform:translate3d(-100%,0,0)}}@keyframes van-slide-right-enter{0%{transform:translate3d(100%,0,0)}}@keyframes van-slide-right-leave{to{transform:translate3d(100%,0,0)}}@keyframes van-fade-in{0%{opacity:0}to{opacity:1}}@keyframes van-fade-out{0%{opacity:1}to{opacity:0}}@keyframes van-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.van-fade-enter-active{animation:var(--van-animation-duration-base) van-fade-in both var(--van-animation-timing-function-enter)}.van-fade-leave-active{animation:var(--van-animation-duration-base) van-fade-out both var(--van-animation-timing-function-leave)}.van-slide-up-enter-active{animation:van-slide-up-enter var(--van-animation-duration-base) both var(--van-animation-timing-function-enter)}.van-slide-up-leave-active{animation:van-slide-up-leave var(--van-animation-duration-base) both var(--van-animation-timing-function-leave)}.van-slide-down-enter-active{animation:van-slide-down-enter var(--van-animation-duration-base) both var(--van-animation-timing-function-enter)}.van-slide-down-leave-active{animation:van-slide-down-leave var(--van-animation-duration-base) both var(--van-animation-timing-function-leave)}.van-slide-left-enter-active{animation:van-slide-left-enter var(--van-animation-duration-base) both var(--van-animation-timing-function-enter)}.van-slide-left-leave-active{animation:van-slide-left-leave var(--van-animation-duration-base) both var(--van-animation-timing-function-leave)}.van-slide-right-enter-active{animation:van-slide-right-enter var(--van-animation-duration-base) both var(--van-animation-timing-function-enter)}.van-slide-right-leave-active{animation:van-slide-right-leave var(--van-animation-duration-base) both var(--van-animation-timing-function-leave)}.van-clearfix:after{display:table;clear:both;content:""}.van-ellipsis{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.van-multi-ellipsis--l2{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:2;-webkit-box-orient:vertical}.van-multi-ellipsis--l3{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:3;-webkit-box-orient:vertical}.van-safe-area-top{padding-top:constant(safe-area-inset-top);padding-top:env(safe-area-inset-top)}.van-safe-area-bottom{padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.van-haptics-feedback{cursor:pointer}.van-haptics-feedback:active{opacity:var(--van-active-opacity)}[class*=van-hairline]:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;top:-50%;right:-50%;bottom:-50%;left:-50%;border:0 solid var(--van-border-color);transform:scale(.5)}.van-hairline,.van-hairline--top,.van-hairline--left,.van-hairline--right,.van-hairline--bottom,.van-hairline--surround,.van-hairline--top-bottom{position:relative}.van-hairline--top:after{border-top-width:1px}.van-hairline--left:after{border-left-width:1px}.van-hairline--right:after{border-right-width:1px}.van-hairline--bottom:after{border-bottom-width:1px}.van-hairline--top-bottom:after,.van-hairline-unset--top-bottom:after{border-width:1px 0}.van-hairline--surround:after{border-width:1px}
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
package/es/swipe-cell/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
.van-swipe-cell{position:relative;overflow:hidden;cursor:-webkit-grab;cursor:grab}.van-swipe-cell__wrapper{transition-timing-function:cubic-bezier(.18,.89,.32,1);transition-property:transform}.van-swipe-cell__left,.van-swipe-cell__right{position:absolute;top:0;height:100%}.van-swipe-cell__left{left:0;transform:
|
1
|
+
.van-swipe-cell{position:relative;overflow:hidden;cursor:-webkit-grab;cursor:grab}.van-swipe-cell__wrapper{transition-timing-function:cubic-bezier(.18,.89,.32,1);transition-property:transform}.van-swipe-cell__left,.van-swipe-cell__right{position:absolute;top:0;height:100%}.van-swipe-cell__left{left:0;transform:translate3d(-100%,0,0)}.van-swipe-cell__right{right:0;transform:translate3d(100%,0,0)}
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -25,7 +25,8 @@ var stdin_default = defineComponent({
|
|
25
25
|
props: switchProps,
|
26
26
|
emits: ["change", "update:modelValue"],
|
27
27
|
setup(props, {
|
28
|
-
emit
|
28
|
+
emit,
|
29
|
+
slots
|
29
30
|
}) {
|
30
31
|
const isChecked = () => props.modelValue === props.activeValue;
|
31
32
|
const onClick = () => {
|
@@ -43,6 +44,9 @@ var stdin_default = defineComponent({
|
|
43
44
|
"color": color
|
44
45
|
}, null);
|
45
46
|
}
|
47
|
+
if (slots.node) {
|
48
|
+
return slots.node();
|
49
|
+
}
|
46
50
|
};
|
47
51
|
useCustomFieldValue(() => props.modelValue);
|
48
52
|
return () => {
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { createVNode as _createVNode, mergeProps as _mergeProps } from "vue";
|
2
2
|
import { ref, reactive, defineComponent, onBeforeUnmount } from "vue";
|
3
|
-
import { pick, extend, isPromise, truthProp, getSizeStyle, makeArrayProp, makeStringProp, makeNumericProp } from "../utils";
|
4
|
-
import { bem, name,
|
3
|
+
import { pick, extend, toArray, isPromise, truthProp, getSizeStyle, makeArrayProp, makeStringProp, makeNumericProp } from "../utils";
|
4
|
+
import { bem, name, isOversize, filterFiles, isImageFile, readFileContent } from "./utils";
|
5
5
|
import { useCustomFieldValue } from "@vant/use";
|
6
6
|
import { useExpose } from "../composables/use-expose";
|
7
7
|
import { Icon } from "../icon";
|
@@ -180,9 +180,7 @@ var stdin_default = defineComponent({
|
|
180
180
|
"onClick": () => emit("click-preview", item, getDetail(index)),
|
181
181
|
"onDelete": () => deleteFile(item, index),
|
182
182
|
"onPreview": () => previewImage(item)
|
183
|
-
}, pick(props, ["name", "lazyLoad"]), previewData),
|
184
|
-
"preview-cover": slots["preview-cover"]
|
185
|
-
});
|
183
|
+
}, pick(props, ["name", "lazyLoad"]), previewData), pick(slots, ["preview-cover", "preview-delete"]));
|
186
184
|
};
|
187
185
|
const renderPreviewList = () => {
|
188
186
|
if (props.previewImage) {
|
@@ -60,13 +60,16 @@ var stdin_default = defineComponent({
|
|
60
60
|
const onPreview = () => emit("preview");
|
61
61
|
const renderDeleteIcon = () => {
|
62
62
|
if (props.deletable && props.item.status !== "uploading") {
|
63
|
+
const slot = slots["preview-delete"];
|
63
64
|
return _createVNode("div", {
|
64
65
|
"role": "button",
|
65
|
-
"class": bem("preview-delete"
|
66
|
+
"class": bem("preview-delete", {
|
67
|
+
shadow: !slot
|
68
|
+
}),
|
66
69
|
"tabindex": 0,
|
67
70
|
"aria-label": t("delete"),
|
68
71
|
"onClick": onDelete
|
69
|
-
}, [_createVNode(Icon, {
|
72
|
+
}, [slot ? slot() : _createVNode(Icon, {
|
70
73
|
"name": "cross",
|
71
74
|
"class": bem("preview-delete-icon")
|
72
75
|
}, null)]);
|
package/es/uploader/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
:root{--van-uploader-size: 80px;--van-uploader-icon-size: 24px;--van-uploader-icon-color: var(--van-gray-4);--van-uploader-text-color: var(--van-text-color-2);--van-uploader-text-font-size: var(--van-font-size-sm);--van-uploader-upload-background-color: var(--van-gray-1);--van-uploader-upload-active-color: var(--van-active-color);--van-uploader-delete-color: var(--van-white);--van-uploader-delete-icon-size: 14px;--van-uploader-delete-background-color: rgba(0, 0, 0, .7);--van-uploader-file-background-color: var(--van-background-color);--van-uploader-file-icon-size: 20px;--van-uploader-file-icon-color: var(--van-gray-7);--van-uploader-file-name-padding: 0 var(--van-padding-base);--van-uploader-file-name-margin-top: var(--van-padding-xs);--van-uploader-file-name-font-size: var(--van-font-size-sm);--van-uploader-file-name-text-color: var(--van-gray-7);--van-uploader-mask-text-color: var(--van-white);--van-uploader-mask-background-color: rgba(50, 50, 51, .88);--van-uploader-mask-icon-size: 22px;--van-uploader-mask-message-font-size: var(--van-font-size-sm);--van-uploader-mask-message-line-height: var(--van-line-height-xs);--van-uploader-loading-icon-size: 22px;--van-uploader-loading-icon-color: var(--van-white);--van-uploader-disabled-opacity: var(--van-disabled-opacity)}.van-uploader{position:relative;display:inline-block}.van-uploader__wrapper{display:flex;flex-wrap:wrap}.van-uploader__wrapper--disabled{opacity:var(--van-uploader-disabled-opacity)}.van-uploader__input{position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden;cursor:pointer;opacity:0}.van-uploader__input-wrapper{position:relative}.van-uploader__input:disabled{cursor:not-allowed}.van-uploader__upload{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:border-box;width:var(--van-uploader-size);height:var(--van-uploader-size);margin:0 var(--van-padding-xs) var(--van-padding-xs) 0;background:var(--van-uploader-upload-background-color)}.van-uploader__upload:active{background-color:var(--van-uploader-upload-active-color)}.van-uploader__upload--readonly:active{background-color:var(--van-uploader-upload-background-color)}.van-uploader__upload-icon{color:var(--van-uploader-icon-color);font-size:var(--van-uploader-icon-size)}.van-uploader__upload-text{margin-top:var(--van-padding-xs);color:var(--van-uploader-text-color);font-size:var(--van-uploader-text-font-size)}.van-uploader__preview{position:relative;margin:0 var(--van-padding-xs) var(--van-padding-xs) 0;cursor:pointer}.van-uploader__preview-image{display:block;width:var(--van-uploader-size);height:var(--van-uploader-size);overflow:hidden}.van-uploader__preview-delete{position:absolute;top:0;right:0
|
1
|
+
:root{--van-uploader-size: 80px;--van-uploader-icon-size: 24px;--van-uploader-icon-color: var(--van-gray-4);--van-uploader-text-color: var(--van-text-color-2);--van-uploader-text-font-size: var(--van-font-size-sm);--van-uploader-upload-background-color: var(--van-gray-1);--van-uploader-upload-active-color: var(--van-active-color);--van-uploader-delete-color: var(--van-white);--van-uploader-delete-icon-size: 14px;--van-uploader-delete-background-color: rgba(0, 0, 0, .7);--van-uploader-file-background-color: var(--van-background-color);--van-uploader-file-icon-size: 20px;--van-uploader-file-icon-color: var(--van-gray-7);--van-uploader-file-name-padding: 0 var(--van-padding-base);--van-uploader-file-name-margin-top: var(--van-padding-xs);--van-uploader-file-name-font-size: var(--van-font-size-sm);--van-uploader-file-name-text-color: var(--van-gray-7);--van-uploader-mask-text-color: var(--van-white);--van-uploader-mask-background-color: rgba(50, 50, 51, .88);--van-uploader-mask-icon-size: 22px;--van-uploader-mask-message-font-size: var(--van-font-size-sm);--van-uploader-mask-message-line-height: var(--van-line-height-xs);--van-uploader-loading-icon-size: 22px;--van-uploader-loading-icon-color: var(--van-white);--van-uploader-disabled-opacity: var(--van-disabled-opacity)}.van-uploader{position:relative;display:inline-block}.van-uploader__wrapper{display:flex;flex-wrap:wrap}.van-uploader__wrapper--disabled{opacity:var(--van-uploader-disabled-opacity)}.van-uploader__input{position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden;cursor:pointer;opacity:0}.van-uploader__input-wrapper{position:relative}.van-uploader__input:disabled{cursor:not-allowed}.van-uploader__upload{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:border-box;width:var(--van-uploader-size);height:var(--van-uploader-size);margin:0 var(--van-padding-xs) var(--van-padding-xs) 0;background:var(--van-uploader-upload-background-color)}.van-uploader__upload:active{background-color:var(--van-uploader-upload-active-color)}.van-uploader__upload--readonly:active{background-color:var(--van-uploader-upload-background-color)}.van-uploader__upload-icon{color:var(--van-uploader-icon-color);font-size:var(--van-uploader-icon-size)}.van-uploader__upload-text{margin-top:var(--van-padding-xs);color:var(--van-uploader-text-color);font-size:var(--van-uploader-text-font-size)}.van-uploader__preview{position:relative;margin:0 var(--van-padding-xs) var(--van-padding-xs) 0;cursor:pointer}.van-uploader__preview-image{display:block;width:var(--van-uploader-size);height:var(--van-uploader-size);overflow:hidden}.van-uploader__preview-delete{position:absolute;top:0;right:0}.van-uploader__preview-delete--shadow{width:var(--van-uploader-delete-icon-size);height:var(--van-uploader-delete-icon-size);background:var(--van-uploader-delete-background-color);border-radius:0 0 0 12px}.van-uploader__preview-delete-icon{position:absolute;top:0;right:0;color:var(--van-uploader-delete-color);font-size:var(--van-uploader-delete-icon-size);transform:scale(.7) translate(10%,-10%)}.van-uploader__preview-cover{position:absolute;top:0;right:0;bottom:0;left:0}.van-uploader__mask{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--van-uploader-mask-text-color);background:var(--van-uploader-mask-background-color)}.van-uploader__mask-icon{font-size:var(--van-uploader-mask-icon-size)}.van-uploader__mask-message{margin-top:6px;padding:0 var(--van-padding-base);font-size:var(--van-uploader-mask-message-font-size);line-height:var(--van-uploader-mask-message-line-height)}.van-uploader__loading{width:var(--van-uploader-loading-icon-size);height:var(--van-uploader-loading-icon-size);color:var(--van-uploader-loading-icon-color)}.van-uploader__file{display:flex;flex-direction:column;align-items:center;justify-content:center;width:var(--van-uploader-size);height:var(--van-uploader-size);background:var(--van-uploader-file-background-color)}.van-uploader__file-icon{color:var(--van-uploader-file-icon-color);font-size:var(--van-uploader-file-icon-size)}.van-uploader__file-name{box-sizing:border-box;width:100%;margin-top:var(--van-uploader-file-name-margin-top);padding:var(--van-uploader-file-name-padding);color:var(--van-uploader-file-name-text-color);font-size:var(--van-uploader-file-name-font-size);text-align:center}
|
package/es/uploader/index.less
CHANGED
@@ -108,10 +108,13 @@
|
|
108
108
|
position: absolute;
|
109
109
|
top: 0;
|
110
110
|
right: 0;
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
111
|
+
|
112
|
+
&--shadow {
|
113
|
+
width: var(--van-uploader-delete-icon-size);
|
114
|
+
height: var(--van-uploader-delete-icon-size);
|
115
|
+
background: var(--van-uploader-delete-background-color);
|
116
|
+
border-radius: 0 0 0 12px;
|
117
|
+
}
|
115
118
|
|
116
119
|
&-icon {
|
117
120
|
position: absolute;
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
package/es/uploader/utils.d.ts
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
import type { UploaderMaxSize, UploaderResultType, UploaderFileListItem } from './types';
|
2
2
|
declare const name: string, bem: (el?: import("../utils").Mods | undefined, mods?: import("../utils").Mods | undefined) => import("../utils").Mods, t: (path: string, ...args: unknown[]) => any;
|
3
3
|
export { name, bem, t };
|
4
|
-
export declare const toArray: <T>(item: T | T[]) => T[];
|
5
4
|
export declare function readFileContent(file: File, resultType: UploaderResultType): Promise<string | void>;
|
6
5
|
export declare function isOversize(items: UploaderFileListItem | UploaderFileListItem[], maxSize: UploaderMaxSize): boolean;
|
7
6
|
export declare function filterFiles(items: UploaderFileListItem[], maxSize: UploaderMaxSize): {
|
@@ -1,6 +1,5 @@
|
|
1
|
-
import { createNamespace, isFunction } from "../utils";
|
1
|
+
import { toArray, createNamespace, isFunction } from "../utils";
|
2
2
|
const [name, bem, t] = createNamespace("uploader");
|
3
|
-
const toArray = (item) => Array.isArray(item) ? item : [item];
|
4
3
|
function readFileContent(file, resultType) {
|
5
4
|
return new Promise((resolve) => {
|
6
5
|
if (resultType === "file") {
|
@@ -66,6 +65,5 @@ export {
|
|
66
65
|
isOversize,
|
67
66
|
name,
|
68
67
|
readFileContent,
|
69
|
-
t
|
70
|
-
toArray
|
68
|
+
t
|
71
69
|
};
|
package/es/utils/basic.d.ts
CHANGED
@@ -14,3 +14,4 @@ export declare type Writeable<T> = {
|
|
14
14
|
-readonly [P in keyof T]: T[P];
|
15
15
|
};
|
16
16
|
export declare function pick<T, U extends keyof T>(obj: T, keys: ReadonlyArray<U>, ignoreUndefined?: boolean): Writeable<Pick<T, U>>;
|
17
|
+
export declare const toArray: <T>(item: T | T[]) => T[];
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -2,29 +2,25 @@ var __defProp = Object.defineProperty;
|
|
2
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
3
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
4
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
5
|
-
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
6
5
|
var __export = (target, all) => {
|
7
6
|
for (var name2 in all)
|
8
7
|
__defProp(target, name2, { get: all[name2], enumerable: true });
|
9
8
|
};
|
10
|
-
var
|
11
|
-
if (
|
12
|
-
for (let key of __getOwnPropNames(
|
13
|
-
if (!__hasOwnProp.call(
|
14
|
-
__defProp(
|
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 });
|
15
14
|
}
|
16
|
-
return
|
15
|
+
return to;
|
17
16
|
};
|
18
|
-
var __toCommonJS =
|
19
|
-
return (module2, temp) => {
|
20
|
-
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
21
|
-
};
|
22
|
-
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
23
18
|
var stdin_exports = {};
|
24
19
|
__export(stdin_exports, {
|
25
20
|
ACTION_BAR_KEY: () => ACTION_BAR_KEY,
|
26
21
|
default: () => stdin_default
|
27
22
|
});
|
23
|
+
module.exports = __toCommonJS(stdin_exports);
|
28
24
|
var import_vue = require("vue");
|
29
25
|
var import_vue2 = require("vue");
|
30
26
|
var import_utils = require("../utils");
|
@@ -54,4 +50,3 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
54
50
|
};
|
55
51
|
}
|
56
52
|
});
|
57
|
-
module.exports = __toCommonJS(stdin_exports);
|