vant 4.0.0-alpha.1 → 4.0.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +141 -0
- package/es/action-bar/{ActionBar.js → ActionBar.mjs} +1 -1
- package/es/action-bar/{index.js → index.mjs} +2 -2
- 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} +5 -5
- package/es/action-bar-button/{index.js → index.mjs} +2 -2
- 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} +5 -5
- package/es/action-bar-icon/{index.js → index.mjs} +2 -2
- 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} +5 -5
- package/es/action-sheet/{index.js → index.mjs} +2 -2
- 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.d.ts +0 -17
- package/es/address-edit/{AddressEdit.js → AddressEdit.mjs} +15 -36
- package/es/address-edit/{AddressEditDetail.js → AddressEditDetail.mjs} +3 -3
- package/es/address-edit/index.d.ts +0 -12
- package/es/address-edit/{index.js → index.mjs} +2 -2
- 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.d.ts +0 -1
- package/es/address-edit/{types.js → types.mjs} +0 -0
- package/es/address-list/{AddressList.js → AddressList.mjs} +4 -4
- package/es/address-list/AddressListItem.d.ts +3 -2
- package/es/address-list/{AddressListItem.js → AddressListItem.mjs} +5 -5
- package/es/address-list/{index.js → index.mjs} +2 -2
- 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} +5 -5
- package/es/area/{index.js → index.mjs} +2 -2
- 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/area/{utils.js → utils.mjs} +0 -0
- package/es/badge/Badge.d.ts +4 -3
- package/es/badge/{Badge.js → Badge.mjs} +1 -1
- package/es/badge/index.d.ts +2 -2
- package/es/badge/{index.js → index.mjs} +2 -2
- 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} +4 -4
- package/es/button/{index.js → index.mjs} +2 -2
- 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} +10 -10
- package/es/calendar/{CalendarDay.js → CalendarDay.mjs} +6 -2
- package/es/calendar/{CalendarHeader.js → CalendarHeader.mjs} +2 -2
- package/es/calendar/{CalendarMonth.js → CalendarMonth.mjs} +6 -6
- package/es/calendar/index.css +1 -1
- package/es/calendar/index.less +2 -0
- package/es/calendar/{index.js → index.mjs} +2 -2
- package/es/calendar/style/{index.js → index.mjs} +0 -0
- package/es/calendar/style/{less.js → less.mjs} +0 -0
- package/es/calendar/types.d.ts +2 -1
- package/es/calendar/{types.js → types.mjs} +0 -0
- package/es/calendar/{utils.js → utils.mjs} +1 -1
- package/es/card/{Card.js → Card.mjs} +3 -3
- package/es/card/{index.js → index.mjs} +2 -2
- 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} +4 -4
- package/es/cascader/{index.js → index.mjs} +2 -2
- package/es/cascader/style/{index.js → index.mjs} +0 -0
- package/es/cascader/style/{less.js → less.mjs} +0 -0
- package/es/cascader/types.d.ts +2 -1
- package/es/cascader/{types.js → types.mjs} +0 -0
- package/es/cell/{Cell.js → Cell.mjs} +3 -3
- package/es/cell/{index.js → index.mjs} +2 -2
- 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} +1 -1
- package/es/cell-group/{index.js → index.mjs} +2 -2
- 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} +4 -4
- package/es/checkbox/Checker.d.ts +2 -1
- package/es/checkbox/{Checker.js → Checker.mjs} +2 -2
- package/es/checkbox/{index.js → index.mjs} +2 -2
- 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} +2 -2
- package/es/checkbox-group/{index.js → index.mjs} +2 -2
- 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} +1 -1
- package/es/circle/{index.js → index.mjs} +2 -2
- 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} +2 -2
- package/es/col/{index.js → index.mjs} +2 -2
- package/es/col/style/{index.js → index.mjs} +0 -0
- package/es/col/style/{less.js → less.mjs} +0 -0
- package/es/collapse/Collapse.d.ts +7 -6
- package/es/collapse/{Collapse.js → Collapse.mjs} +1 -1
- package/es/collapse/index.d.ts +3 -3
- package/es/collapse/{index.js → index.mjs} +2 -2
- 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} +6 -6
- package/es/collapse-item/{index.js → index.mjs} +2 -2
- 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} +1 -1
- 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} +2 -2
- package/es/composables/{use-placeholder.js → use-placeholder.mjs} +1 -1
- 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} +1 -1
- package/es/composables/{use-visibility-change.js → use-visibility-change.mjs} +1 -1
- package/es/config-provider/ConfigProvider.d.ts +4 -3
- package/es/config-provider/{ConfigProvider.js → ConfigProvider.mjs} +1 -1
- package/es/config-provider/index.d.ts +2 -2
- package/es/config-provider/{index.js → index.mjs} +2 -2
- 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} +2 -2
- package/es/contact-card/{index.js → index.mjs} +2 -2
- 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} +6 -6
- package/es/contact-edit/{index.js → index.mjs} +2 -2
- 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.d.ts +3 -2
- package/es/contact-list/{ContactList.js → ContactList.mjs} +7 -7
- package/es/contact-list/{index.js → index.mjs} +2 -2
- 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} +3 -3
- package/es/count-down/{index.js → index.mjs} +2 -2
- 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} +1 -1
- package/es/coupon/Coupon.d.ts +2 -1
- package/es/coupon/{Coupon.js → Coupon.mjs} +3 -3
- package/es/coupon/{index.js → index.mjs} +2 -2
- 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} +1 -1
- package/es/coupon-cell/{CouponCell.js → CouponCell.mjs} +2 -2
- package/es/coupon-cell/{index.js → index.mjs} +2 -2
- 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.d.ts +3 -13
- package/es/coupon-list/{CouponList.js → CouponList.mjs} +16 -14
- package/es/coupon-list/index.css +1 -1
- package/es/coupon-list/index.d.ts +2 -9
- package/es/coupon-list/index.less +4 -16
- package/es/coupon-list/{index.js → index.mjs} +2 -2
- package/es/coupon-list/style/{index.js → index.mjs} +1 -0
- package/es/coupon-list/style/{less.js → less.mjs} +1 -0
- package/es/date-picker/{DatePicker.js → DatePicker.mjs} +3 -3
- package/es/date-picker/{index.js → index.mjs} +2 -2
- package/es/date-picker/style/{index.js → index.mjs} +0 -0
- package/es/date-picker/style/{less.js → less.mjs} +0 -0
- package/es/date-picker/{utils.js → utils.mjs} +2 -2
- package/es/dialog/{Dialog.js → Dialog.mjs} +6 -6
- package/es/dialog/{function-call.js → function-call.mjs} +3 -3
- package/es/dialog/index.css +1 -1
- package/es/dialog/{index.js → index.mjs} +1 -1
- package/es/dialog/style/{index.js → index.mjs} +0 -0
- package/es/dialog/style/{less.js → less.mjs} +0 -0
- package/es/dialog/types.d.ts +2 -2
- package/es/dialog/{types.js → types.mjs} +0 -0
- package/es/divider/{Divider.js → Divider.mjs} +1 -1
- package/es/divider/{index.js → index.mjs} +2 -2
- 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} +6 -6
- package/es/dropdown-item/{index.js → index.mjs} +2 -2
- 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.d.ts +2 -1
- package/es/dropdown-item/{types.js → types.mjs} +0 -0
- package/es/dropdown-menu/{DropdownMenu.js → DropdownMenu.mjs} +2 -2
- package/es/dropdown-menu/{index.js → index.mjs} +2 -2
- 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} +2 -2
- 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} +27 -22
- package/es/field/index.d.ts +3 -1
- package/es/field/{index.js → index.mjs} +2 -2
- 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} +1 -1
- package/es/form/Form.d.ts +13 -13
- package/es/form/{Form.js → Form.mjs} +14 -5
- package/es/form/index.d.ts +9 -9
- package/es/form/{index.js → index.mjs} +2 -2
- 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} +2 -2
- package/es/grid/{index.js → index.mjs} +2 -2
- 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} +5 -5
- package/es/grid-item/{index.js → index.mjs} +2 -2
- 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} +3 -3
- package/es/icon/index.css +1 -1
- package/es/icon/{index.js → index.mjs} +2 -2
- 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} +2 -2
- package/es/image/{index.js → index.mjs} +2 -2
- 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} +6 -6
- package/es/image-preview/{ImagePreviewItem.js → ImagePreviewItem.mjs} +5 -5
- package/es/image-preview/{function-call.js → function-call.mjs} +3 -3
- package/es/image-preview/{index.js → index.mjs} +1 -1
- 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} +4 -4
- package/es/index-anchor/{index.js → index.mjs} +2 -2
- 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.d.ts +5 -4
- package/es/index-bar/{IndexBar.js → IndexBar.mjs} +3 -3
- package/es/index-bar/index.d.ts +3 -3
- package/es/index-bar/{index.js → index.mjs} +2 -2
- 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.d.ts +2 -1
- package/es/index-bar/{types.js → types.mjs} +0 -0
- package/es/index.d.ts +1 -1
- package/es/index.mjs +280 -0
- package/es/lazyload/{index.js → index.mjs} +1 -1
- 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} +4 -4
- package/es/lazyload/vue-lazyload/{lazy-component.js → lazy-component.mjs} +0 -0
- package/es/lazyload/vue-lazyload/{lazy-container.js → lazy-container.mjs} +1 -1
- package/es/lazyload/vue-lazyload/{lazy-image.js → lazy-image.mjs} +2 -2
- package/es/lazyload/vue-lazyload/{lazy.js → lazy.mjs} +3 -3
- package/es/lazyload/vue-lazyload/{listener.js → listener.mjs} +2 -2
- package/es/lazyload/vue-lazyload/{util.js → util.mjs} +0 -0
- package/es/list/{List.js → List.mjs} +4 -4
- package/es/list/{index.js → index.mjs} +2 -2
- 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} +4 -2
- package/es/loading/{index.js → index.mjs} +2 -2
- 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} +2 -2
- 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.d.ts +0 -2
- package/es/locale/lang/{bn-BD.js → bn-BD.mjs} +0 -2
- 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.d.ts +0 -2
- package/es/locale/lang/{de-DE-formal.js → de-DE-formal.mjs} +0 -2
- package/es/locale/lang/de-DE.d.ts +0 -2
- package/es/locale/lang/{de-DE.js → de-DE.mjs} +0 -2
- 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.d.ts +0 -2
- package/es/locale/lang/{en-US.js → en-US.mjs} +0 -2
- package/es/locale/lang/es-ES.d.ts +0 -2
- package/es/locale/lang/{es-ES.js → es-ES.mjs} +0 -2
- package/es/locale/lang/fa-IR.d.ts +64 -0
- package/es/locale/lang/fa-IR.mjs +74 -0
- package/es/locale/lang/fr-FR.d.ts +0 -2
- package/es/locale/lang/{fr-FR.js → fr-FR.mjs} +0 -2
- 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.d.ts +0 -2
- package/es/locale/lang/{hi-IN.js → hi-IN.mjs} +0 -2
- package/es/locale/lang/id-ID.d.ts +0 -2
- package/es/locale/lang/{id-ID.js → id-ID.mjs} +0 -2
- package/es/locale/lang/is-IS.d.ts +62 -0
- package/es/locale/lang/is-IS.mjs +72 -0
- package/es/locale/lang/it-IT.d.ts +0 -2
- package/es/locale/lang/{it-IT.js → it-IT.mjs} +0 -2
- package/es/locale/lang/ja-JP.d.ts +0 -2
- package/es/locale/lang/{ja-JP.js → ja-JP.mjs} +0 -2
- package/es/locale/lang/ko-KR.d.ts +0 -2
- package/es/locale/lang/{ko-KR.js → ko-KR.mjs} +0 -2
- package/es/locale/lang/la-LA.d.ts +0 -2
- package/es/locale/lang/{la-LA.js → la-LA.mjs} +0 -2
- package/es/locale/lang/nb-NO.d.ts +0 -2
- package/es/locale/lang/{nb-NO.js → nb-NO.mjs} +0 -2
- package/es/locale/lang/pt-BR.d.ts +0 -2
- package/es/locale/lang/{pt-BR.js → pt-BR.mjs} +0 -2
- package/es/locale/lang/ro-RO.d.ts +0 -2
- package/es/locale/lang/{ro-RO.js → ro-RO.mjs} +0 -2
- package/es/locale/lang/ru-RU.d.ts +0 -2
- package/es/locale/lang/{ru-RU.js → ru-RU.mjs} +0 -2
- package/es/locale/lang/sv-SE.d.ts +62 -0
- package/es/locale/lang/sv-SE.mjs +64 -0
- package/es/locale/lang/th-TH.d.ts +0 -2
- package/es/locale/lang/{th-TH.js → th-TH.mjs} +0 -2
- package/es/locale/lang/tr-TR.d.ts +0 -2
- package/es/locale/lang/{tr-TR.js → tr-TR.mjs} +0 -2
- package/es/locale/lang/uk-UA.d.ts +0 -2
- package/es/locale/lang/{uk-UA.js → uk-UA.mjs} +0 -2
- package/es/locale/lang/vi-VN.d.ts +0 -2
- package/es/locale/lang/{vi-VN.js → vi-VN.mjs} +0 -2
- package/es/locale/lang/zh-CN.d.ts +0 -2
- package/es/locale/lang/{zh-CN.js → zh-CN.mjs} +0 -2
- package/es/locale/lang/zh-HK.d.ts +0 -2
- package/es/locale/lang/{zh-HK.js → zh-HK.mjs} +0 -2
- package/es/locale/lang/zh-TW.d.ts +0 -2
- package/es/locale/lang/{zh-TW.js → zh-TW.mjs} +0 -2
- 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} +3 -3
- package/es/nav-bar/{index.js → index.mjs} +2 -2
- 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} +4 -4
- package/es/notice-bar/{index.js → index.mjs} +2 -2
- 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} +3 -3
- package/es/notify/{function-call.js → function-call.mjs} +3 -3
- package/es/notify/{index.js → index.mjs} +1 -1
- package/es/notify/style/{index.js → index.mjs} +0 -0
- package/es/notify/style/{less.js → less.mjs} +0 -0
- package/es/notify/types.d.ts +2 -1
- package/es/notify/{types.js → types.mjs} +0 -0
- package/es/number-keyboard/{NumberKeyboard.js → NumberKeyboard.mjs} +12 -3
- package/es/number-keyboard/{NumberKeyboardKey.js → NumberKeyboardKey.mjs} +3 -3
- package/es/number-keyboard/{index.js → index.mjs} +2 -2
- 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} +2 -2
- package/es/overlay/{index.js → index.mjs} +2 -2
- 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} +1 -1
- package/es/pagination/{index.js → index.mjs} +2 -2
- 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} +1 -1
- package/es/password-input/{index.js → index.mjs} +2 -2
- 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.d.ts +5 -4
- package/es/picker/{Picker.js → Picker.mjs} +5 -5
- package/es/picker/{PickerColumn.js → PickerColumn.mjs} +4 -4
- package/es/picker/index.d.ts +3 -3
- package/es/picker/{index.js → index.mjs} +2 -2
- package/es/picker/style/{index.js → index.mjs} +0 -0
- package/es/picker/style/{less.js → less.mjs} +0 -0
- package/es/picker/types.d.ts +4 -3
- package/es/picker/{types.js → types.mjs} +0 -0
- package/es/picker/utils.d.ts +4 -3
- package/es/picker/{utils.js → utils.mjs} +1 -1
- package/es/popover/{Popover.js → Popover.mjs} +3 -3
- package/es/popover/{index.js → index.mjs} +2 -2
- 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} +8 -8
- package/es/popup/index.css +1 -1
- package/es/popup/{index.js → index.mjs} +2 -2
- package/es/popup/{shared.js → shared.mjs} +1 -1
- 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.d.ts +4 -3
- package/es/progress/{Progress.js → Progress.mjs} +1 -1
- package/es/progress/index.d.ts +2 -2
- package/es/progress/{index.js → index.mjs} +2 -2
- 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} +3 -3
- package/es/pull-refresh/{index.js → index.mjs} +2 -2
- 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} +3 -3
- package/es/radio/{index.js → index.mjs} +2 -2
- 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} +1 -1
- package/es/radio-group/{index.js → index.mjs} +2 -2
- 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} +36 -14
- package/es/rate/{index.js → index.mjs} +2 -2
- 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} +1 -1
- package/es/row/{index.js → index.mjs} +2 -2
- 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} +5 -5
- package/es/search/index.css +1 -1
- package/es/search/index.d.ts +2 -0
- package/es/search/index.less +1 -1
- package/es/search/{index.js → index.mjs} +2 -2
- 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} +28 -14
- package/es/share-sheet/index.css +1 -1
- package/es/share-sheet/index.less +45 -1
- package/es/share-sheet/{index.js → index.mjs} +2 -2
- 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} +1 -1
- package/es/sidebar/{index.js → index.mjs} +2 -2
- 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} +4 -4
- package/es/sidebar-item/{index.js → index.mjs} +2 -2
- 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.d.ts +5 -4
- package/es/skeleton/{Skeleton.js → Skeleton.mjs} +1 -1
- package/es/skeleton/index.d.ts +3 -3
- package/es/skeleton/{index.js → index.mjs} +2 -2
- 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} +2 -2
- package/es/slider/index.css +1 -1
- package/es/slider/{index.js → index.mjs} +2 -2
- 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} +3 -3
- package/es/step/{index.js → index.mjs} +2 -2
- 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} +1 -1
- package/es/stepper/{index.js → index.mjs} +2 -2
- 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} +1 -1
- package/es/steps/{index.js → index.mjs} +2 -2
- 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} +2 -2
- package/es/sticky/{index.js → index.mjs} +2 -2
- 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} +3 -3
- package/es/submit-bar/{index.js → index.mjs} +2 -2
- 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} +4 -4
- package/es/swipe/{index.js → index.mjs} +2 -2
- 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} +3 -3
- package/es/swipe-cell/index.css +1 -1
- package/es/swipe-cell/{index.js → index.mjs} +2 -2
- 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} +3 -3
- package/es/swipe-item/{index.js → index.mjs} +2 -2
- 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} +7 -3
- package/es/switch/{index.js → index.mjs} +2 -2
- 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} +7 -7
- package/es/tab/{index.js → index.mjs} +2 -2
- package/es/tab/style/{index.js → index.mjs} +0 -0
- package/es/tab/style/{less.js → less.mjs} +0 -0
- package/es/tabbar/Tabbar.d.ts +2 -2
- package/es/tabbar/{Tabbar.js → Tabbar.mjs} +2 -2
- package/es/tabbar/{index.js → index.mjs} +2 -2
- 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} +5 -5
- package/es/tabbar-item/{index.js → index.mjs} +2 -2
- 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.d.ts +1 -1
- package/es/tabs/{Tabs.js → Tabs.mjs} +11 -10
- package/es/tabs/{TabsContent.js → TabsContent.mjs} +2 -2
- package/es/tabs/{TabsTitle.js → TabsTitle.mjs} +2 -2
- package/es/tabs/{index.js → index.mjs} +2 -2
- package/es/tabs/style/{index.js → index.mjs} +0 -0
- package/es/tabs/style/{less.js → less.mjs} +0 -0
- package/es/tabs/types.d.ts +5 -4
- package/es/tabs/{types.js → types.mjs} +0 -0
- package/es/tabs/{utils.js → utils.mjs} +1 -1
- package/es/tag/{Tag.js → Tag.mjs} +2 -2
- package/es/tag/{index.js → index.mjs} +2 -2
- package/es/tag/style/{index.js → index.mjs} +0 -0
- package/es/tag/style/{less.js → less.mjs} +0 -0
- package/es/time-picker/{TimePicker.js → TimePicker.mjs} +3 -3
- package/es/time-picker/{index.js → index.mjs} +2 -2
- package/es/time-picker/style/{index.js → index.mjs} +0 -0
- package/es/time-picker/style/{less.js → less.mjs} +0 -0
- package/es/toast/{Toast.js → Toast.mjs} +5 -5
- package/es/toast/{function-call.js → function-call.mjs} +3 -3
- package/es/toast/{index.js → index.mjs} +1 -1
- 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.d.ts +3 -2
- package/es/toast/{types.js → types.mjs} +0 -0
- package/es/tree-select/TreeSelect.d.ts +7 -6
- package/es/tree-select/{TreeSelect.js → TreeSelect.mjs} +4 -4
- package/es/tree-select/index.d.ts +3 -3
- package/es/tree-select/{index.js → index.mjs} +2 -2
- 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.d.ts +4 -4
- package/es/uploader/{Uploader.js → Uploader.mjs} +8 -10
- package/es/uploader/UploaderPreviewItem.d.ts +3 -3
- package/es/uploader/{UploaderPreviewItem.js → UploaderPreviewItem.mjs} +19 -13
- package/es/uploader/index.css +1 -1
- package/es/uploader/index.d.ts +2 -2
- package/es/uploader/index.less +7 -4
- package/es/uploader/{index.js → index.mjs} +2 -2
- package/es/uploader/style/{index.js → index.mjs} +0 -0
- package/es/uploader/style/{less.js → less.mjs} +0 -0
- package/es/uploader/types.d.ts +5 -5
- 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 +2 -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} +4 -4
- package/es/utils/{deep-assign.js → deep-assign.mjs} +1 -1
- package/es/utils/{deep-clone.js → deep-clone.mjs} +1 -1
- package/es/utils/{dom.js → dom.mjs} +1 -1
- package/es/utils/format.d.ts +7 -6
- package/es/utils/{format.js → format.mjs} +9 -3
- package/es/utils/index.mjs +9 -0
- package/es/utils/{interceptor.js → interceptor.mjs} +2 -2
- package/es/utils/{mount-component.js → mount-component.mjs} +2 -2
- package/es/utils/{props.js → props.mjs} +0 -0
- package/es/utils/validate.d.ts +2 -1
- package/es/utils/{validate.js → validate.mjs} +1 -1
- package/es/utils/{with-install.js → with-install.mjs} +1 -1
- 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.d.ts +0 -17
- package/lib/address-edit/AddressEdit.js +12 -40
- package/lib/address-edit/AddressEditDetail.js +8 -13
- package/lib/address-edit/index.d.ts +0 -12
- package/lib/address-edit/index.js +9 -16
- package/lib/address-edit/types.d.ts +0 -1
- package/lib/address-edit/types.js +7 -12
- package/lib/address-list/AddressList.js +9 -16
- package/lib/address-list/AddressListItem.d.ts +3 -2
- 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/area/utils.js +8 -13
- package/lib/badge/Badge.d.ts +4 -3
- package/lib/badge/Badge.js +8 -13
- package/lib/badge/index.d.ts +2 -2
- 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 +10 -17
- 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.d.ts +2 -1
- package/lib/calendar/types.js +7 -12
- package/lib/calendar/utils.js +8 -13
- 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.d.ts +2 -1
- 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.d.ts +2 -1
- 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.d.ts +7 -6
- package/lib/collapse/Collapse.js +8 -13
- package/lib/collapse/index.d.ts +3 -3
- 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 +9 -14
- package/lib/composables/use-visibility-change.js +8 -13
- package/lib/config-provider/ConfigProvider.d.ts +4 -3
- package/lib/config-provider/ConfigProvider.js +8 -13
- package/lib/config-provider/index.d.ts +2 -2
- 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.d.ts +3 -2
- 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.d.ts +2 -1
- 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.d.ts +3 -13
- package/lib/coupon-list/CouponList.js +17 -20
- package/lib/coupon-list/index.css +1 -1
- package/lib/coupon-list/index.d.ts +2 -9
- package/lib/coupon-list/index.js +9 -16
- package/lib/coupon-list/index.less +4 -16
- package/lib/coupon-list/style/index.js +1 -0
- package/lib/coupon-list/style/less.js +1 -0
- package/lib/date-picker/DatePicker.js +8 -13
- package/lib/date-picker/index.js +9 -16
- package/lib/date-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.d.ts +2 -2
- 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.d.ts +2 -1
- 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.d.ts +5 -4
- package/lib/index-bar/IndexBar.js +8 -13
- package/lib/index-bar/index.d.ts +3 -3
- package/lib/index-bar/index.js +9 -16
- package/lib/index-bar/types.d.ts +2 -1
- 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 +97 -101
- package/lib/index.less +2 -2
- 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.d.ts +0 -2
- package/lib/locale/lang/bn-BD.js +8 -15
- 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 +0 -2
- package/lib/locale/lang/de-DE-formal.js +8 -15
- package/lib/locale/lang/de-DE.d.ts +0 -2
- package/lib/locale/lang/de-DE.js +8 -15
- 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 +0 -2
- package/lib/locale/lang/en-US.js +8 -15
- package/lib/locale/lang/es-ES.d.ts +0 -2
- package/lib/locale/lang/es-ES.js +8 -15
- 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 +0 -2
- package/lib/locale/lang/fr-FR.js +8 -15
- 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 +0 -2
- package/lib/locale/lang/hi-IN.js +8 -15
- package/lib/locale/lang/id-ID.d.ts +0 -2
- package/lib/locale/lang/id-ID.js +8 -15
- 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 +0 -2
- package/lib/locale/lang/it-IT.js +8 -15
- package/lib/locale/lang/ja-JP.d.ts +0 -2
- package/lib/locale/lang/ja-JP.js +8 -15
- package/lib/locale/lang/ko-KR.d.ts +0 -2
- package/lib/locale/lang/ko-KR.js +8 -15
- package/lib/locale/lang/la-LA.d.ts +0 -2
- package/lib/locale/lang/la-LA.js +8 -15
- package/lib/locale/lang/nb-NO.d.ts +0 -2
- package/lib/locale/lang/nb-NO.js +8 -15
- package/lib/locale/lang/pt-BR.d.ts +0 -2
- package/lib/locale/lang/pt-BR.js +8 -15
- package/lib/locale/lang/ro-RO.d.ts +0 -2
- package/lib/locale/lang/ro-RO.js +8 -15
- package/lib/locale/lang/ru-RU.d.ts +0 -2
- package/lib/locale/lang/ru-RU.js +8 -15
- 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 +0 -2
- package/lib/locale/lang/th-TH.js +8 -15
- package/lib/locale/lang/tr-TR.d.ts +0 -2
- package/lib/locale/lang/tr-TR.js +8 -15
- package/lib/locale/lang/uk-UA.d.ts +0 -2
- package/lib/locale/lang/uk-UA.js +8 -15
- package/lib/locale/lang/vi-VN.d.ts +0 -2
- package/lib/locale/lang/vi-VN.js +8 -15
- package/lib/locale/lang/zh-CN.d.ts +0 -2
- package/lib/locale/lang/zh-CN.js +8 -15
- package/lib/locale/lang/zh-HK.d.ts +0 -2
- package/lib/locale/lang/zh-HK.js +8 -15
- package/lib/locale/lang/zh-TW.d.ts +0 -2
- package/lib/locale/lang/zh-TW.js +8 -15
- 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.d.ts +2 -1
- package/lib/notify/types.js +7 -12
- package/lib/number-keyboard/NumberKeyboard.js +19 -17
- 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.d.ts +5 -4
- package/lib/picker/Picker.js +9 -16
- package/lib/picker/PickerColumn.js +8 -13
- package/lib/picker/index.d.ts +3 -3
- package/lib/picker/index.js +9 -16
- package/lib/picker/types.d.ts +4 -3
- package/lib/picker/types.js +7 -12
- package/lib/picker/utils.d.ts +4 -3
- package/lib/picker/utils.js +8 -13
- 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.d.ts +4 -3
- package/lib/progress/Progress.js +8 -13
- package/lib/progress/index.d.ts +2 -2
- 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.css +1 -1
- package/lib/search/index.d.ts +2 -0
- package/lib/search/index.js +9 -16
- package/lib/search/index.less +1 -1
- 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.d.ts +5 -4
- package/lib/skeleton/Skeleton.js +8 -13
- package/lib/skeleton/index.d.ts +3 -3
- 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.d.ts +2 -2
- 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.d.ts +1 -1
- package/lib/tabs/Tabs.js +10 -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.d.ts +5 -4
- 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/time-picker/TimePicker.js +8 -13
- package/lib/time-picker/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.d.ts +3 -2
- package/lib/toast/types.js +7 -12
- package/lib/tree-select/TreeSelect.d.ts +7 -6
- package/lib/tree-select/TreeSelect.js +8 -13
- package/lib/tree-select/index.d.ts +3 -3
- package/lib/tree-select/index.js +9 -16
- package/lib/uploader/Uploader.d.ts +4 -4
- package/lib/uploader/Uploader.js +12 -21
- package/lib/uploader/UploaderPreviewItem.d.ts +3 -3
- package/lib/uploader/UploaderPreviewItem.js +22 -21
- package/lib/uploader/index.css +1 -1
- package/lib/uploader/index.d.ts +2 -2
- package/lib/uploader/index.js +9 -16
- package/lib/uploader/index.less +7 -4
- package/lib/uploader/types.d.ts +5 -5
- 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 +2 -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.d.ts +7 -6
- package/lib/utils/format.js +14 -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.d.ts +2 -1
- package/lib/utils/validate.js +8 -13
- package/lib/utils/with-install.js +8 -13
- package/lib/vant.cjs.js +526 -294
- package/lib/vant.cjs.min.js +1 -1
- package/lib/vant.es.js +525 -292
- package/lib/vant.es.min.js +525 -292
- package/lib/vant.js +602 -333
- package/lib/vant.min.js +1 -1
- package/package.json +8 -23
- package/vetur/attributes.json +350 -422
- package/vetur/tags.json +101 -101
- package/vetur/web-types.json +1928 -1084
- package/changelog.generated.md +0 -197
- package/es/empty/Network.d.ts +0 -1
- package/es/empty/Network.js +0 -89
- package/es/index.js +0 -280
- package/es/utils/index.js +0 -9
- package/lib/empty/Network.d.ts +0 -1
- package/lib/empty/Network.js +0 -113
package/lib/vant.cjs.js
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
"use strict";
|
2
|
-
Object.
|
3
|
-
exports[Symbol.toStringTag] = "Module";
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
4
3
|
var use = require("@vant/use");
|
5
4
|
var vue = require("vue");
|
6
5
|
var popperjs = require("@vant/popperjs");
|
@@ -26,6 +25,7 @@ function pick(obj, keys, ignoreUndefined) {
|
|
26
25
|
}, {});
|
27
26
|
}
|
28
27
|
const isSameValue = (newValue, oldValue) => JSON.stringify(newValue) === JSON.stringify(oldValue);
|
28
|
+
const toArray = (item) => Array.isArray(item) ? item : [item];
|
29
29
|
const unknownProp = null;
|
30
30
|
const numericProp = [Number, String];
|
31
31
|
const truthProp = {
|
@@ -122,6 +122,12 @@ function addUnit(value) {
|
|
122
122
|
}
|
123
123
|
function getSizeStyle(originSize) {
|
124
124
|
if (isDef(originSize)) {
|
125
|
+
if (Array.isArray(originSize)) {
|
126
|
+
return {
|
127
|
+
width: addUnit(originSize[0]),
|
128
|
+
height: addUnit(originSize[1])
|
129
|
+
};
|
130
|
+
}
|
125
131
|
const size = addUnit(originSize);
|
126
132
|
return {
|
127
133
|
width: size,
|
@@ -283,10 +289,8 @@ var stdin_default$1C = {
|
|
283
289
|
},
|
284
290
|
vanAddressEdit: {
|
285
291
|
area: "\u5730\u533A",
|
286
|
-
postal: "\u90AE\u653F\u7F16\u7801",
|
287
292
|
areaEmpty: "\u8BF7\u9009\u62E9\u5730\u533A",
|
288
293
|
addressEmpty: "\u8BF7\u586B\u5199\u8BE6\u7EC6\u5730\u5740",
|
289
|
-
postalEmpty: "\u90AE\u653F\u7F16\u7801\u4E0D\u6B63\u786E",
|
290
294
|
addressDetail: "\u8BE6\u7EC6\u5730\u5740",
|
291
295
|
defaultAddress: "\u8BBE\u4E3A\u9ED8\u8BA4\u6536\u8D27\u5730\u5740"
|
292
296
|
},
|
@@ -312,10 +316,10 @@ const Locale = {
|
|
312
316
|
};
|
313
317
|
var stdin_default$1B = Locale;
|
314
318
|
function createTranslate(name2) {
|
315
|
-
const
|
319
|
+
const prefix = camelize(name2) + ".";
|
316
320
|
return (path, ...args) => {
|
317
321
|
const messages2 = stdin_default$1B.messages();
|
318
|
-
const message = get(messages2,
|
322
|
+
const message = get(messages2, prefix + path) || get(messages2, path);
|
319
323
|
return isFunction(message) ? message(...args) : message;
|
320
324
|
};
|
321
325
|
}
|
@@ -681,7 +685,9 @@ var stdin_default$1w = vue.defineComponent({
|
|
681
685
|
return vue.createVNode("div", {
|
682
686
|
"class": bem$1l([type, {
|
683
687
|
vertical
|
684
|
-
}])
|
688
|
+
}]),
|
689
|
+
"aria-live": "polite",
|
690
|
+
"aria-busy": true
|
685
691
|
}, [vue.createVNode("span", {
|
686
692
|
"class": bem$1l("spinner", type),
|
687
693
|
"style": spinnerStyle.value
|
@@ -999,7 +1005,7 @@ function useTouch() {
|
|
999
1005
|
};
|
1000
1006
|
const move = (event) => {
|
1001
1007
|
const touch = event.touches[0];
|
1002
|
-
deltaX.value = touch.clientX < 0 ? 0 : touch.clientX - startX.value;
|
1008
|
+
deltaX.value = (touch.clientX < 0 ? 0 : touch.clientX) - startX.value;
|
1003
1009
|
deltaY.value = touch.clientY - startY.value;
|
1004
1010
|
offsetX.value = Math.abs(deltaX.value);
|
1005
1011
|
offsetY.value = Math.abs(deltaY.value);
|
@@ -2147,9 +2153,12 @@ const formProps = {
|
|
2147
2153
|
scrollToError: Boolean,
|
2148
2154
|
validateFirst: Boolean,
|
2149
2155
|
submitOnEnter: truthProp,
|
2150
|
-
validateTrigger: makeStringProp("onBlur"),
|
2151
2156
|
showErrorMessage: truthProp,
|
2152
|
-
errorMessageAlign: String
|
2157
|
+
errorMessageAlign: String,
|
2158
|
+
validateTrigger: {
|
2159
|
+
type: [String, Array],
|
2160
|
+
default: "onBlur"
|
2161
|
+
}
|
2153
2162
|
};
|
2154
2163
|
var stdin_default$1l = vue.defineComponent({
|
2155
2164
|
name: name$1e,
|
@@ -2229,6 +2238,10 @@ var stdin_default$1l = vue.defineComponent({
|
|
2229
2238
|
item.resetValidation();
|
2230
2239
|
});
|
2231
2240
|
};
|
2241
|
+
const getValidationStatus = () => children.reduce((form, field) => {
|
2242
|
+
form[field.name] = field.getValidationStatus();
|
2243
|
+
return form;
|
2244
|
+
}, {});
|
2232
2245
|
const scrollToField = (name2, options) => {
|
2233
2246
|
children.some((item) => {
|
2234
2247
|
if (item.name === name2) {
|
@@ -2264,8 +2277,10 @@ var stdin_default$1l = vue.defineComponent({
|
|
2264
2277
|
useExpose({
|
2265
2278
|
submit,
|
2266
2279
|
validate,
|
2280
|
+
getValues,
|
2267
2281
|
scrollToField,
|
2268
|
-
resetValidation
|
2282
|
+
resetValidation,
|
2283
|
+
getValidationStatus
|
2269
2284
|
});
|
2270
2285
|
return () => {
|
2271
2286
|
var _a;
|
@@ -2361,7 +2376,7 @@ function cutString(str, maxlength) {
|
|
2361
2376
|
return [...str].slice(0, maxlength).join("");
|
2362
2377
|
}
|
2363
2378
|
let current = 0;
|
2364
|
-
function useId() {
|
2379
|
+
function useId$1() {
|
2365
2380
|
const vm = vue.getCurrentInstance();
|
2366
2381
|
const { name: name2 = "unknown" } = (vm == null ? void 0 : vm.type) || {};
|
2367
2382
|
return `${name2}-${++current}`;
|
@@ -2382,6 +2397,7 @@ const fieldSharedProps = {
|
|
2382
2397
|
placeholder: String,
|
2383
2398
|
autocomplete: String,
|
2384
2399
|
errorMessage: String,
|
2400
|
+
enterkeyhint: String,
|
2385
2401
|
clearTrigger: makeStringProp("focus"),
|
2386
2402
|
formatTrigger: makeStringProp("onChange"),
|
2387
2403
|
error: {
|
@@ -2420,10 +2436,10 @@ var stdin_default$1k = vue.defineComponent({
|
|
2420
2436
|
emit,
|
2421
2437
|
slots
|
2422
2438
|
}) {
|
2423
|
-
const id = useId();
|
2439
|
+
const id = useId$1();
|
2424
2440
|
const state = vue.reactive({
|
2441
|
+
status: "unvalidated",
|
2425
2442
|
focused: false,
|
2426
|
-
validateFailed: false,
|
2427
2443
|
validateMessage: ""
|
2428
2444
|
});
|
2429
2445
|
const inputRef = vue.ref();
|
@@ -2459,7 +2475,7 @@ var stdin_default$1k = vue.defineComponent({
|
|
2459
2475
|
return props.modelValue;
|
2460
2476
|
});
|
2461
2477
|
const runRules = (rules) => rules.reduce((promise, rule) => promise.then(() => {
|
2462
|
-
if (state.
|
2478
|
+
if (state.status === "failed") {
|
2463
2479
|
return;
|
2464
2480
|
}
|
2465
2481
|
let {
|
@@ -2469,38 +2485,37 @@ var stdin_default$1k = vue.defineComponent({
|
|
2469
2485
|
value = rule.formatter(value, rule);
|
2470
2486
|
}
|
2471
2487
|
if (!runSyncRule(value, rule)) {
|
2472
|
-
state.
|
2488
|
+
state.status = "failed";
|
2473
2489
|
state.validateMessage = getRuleMessage(value, rule);
|
2474
2490
|
return;
|
2475
2491
|
}
|
2476
2492
|
if (rule.validator) {
|
2477
2493
|
return runRuleValidator(value, rule).then((result) => {
|
2478
2494
|
if (result && typeof result === "string") {
|
2479
|
-
state.
|
2495
|
+
state.status = "failed";
|
2480
2496
|
state.validateMessage = result;
|
2481
2497
|
} else if (result === false) {
|
2482
|
-
state.
|
2498
|
+
state.status = "failed";
|
2483
2499
|
state.validateMessage = getRuleMessage(value, rule);
|
2484
2500
|
}
|
2485
2501
|
});
|
2486
2502
|
}
|
2487
2503
|
}), Promise.resolve());
|
2488
2504
|
const resetValidation = () => {
|
2489
|
-
|
2490
|
-
|
2491
|
-
state.validateMessage = "";
|
2492
|
-
}
|
2505
|
+
state.status = "unvalidated";
|
2506
|
+
state.validateMessage = "";
|
2493
2507
|
};
|
2494
2508
|
const validate = (rules = props.rules) => new Promise((resolve) => {
|
2495
2509
|
resetValidation();
|
2496
2510
|
if (rules) {
|
2497
2511
|
runRules(rules).then(() => {
|
2498
|
-
if (state.
|
2512
|
+
if (state.status === "failed") {
|
2499
2513
|
resolve({
|
2500
2514
|
name: props.name,
|
2501
2515
|
message: state.validateMessage
|
2502
2516
|
});
|
2503
2517
|
} else {
|
2518
|
+
state.status = "passed";
|
2504
2519
|
resolve();
|
2505
2520
|
}
|
2506
2521
|
});
|
@@ -2510,10 +2525,13 @@ var stdin_default$1k = vue.defineComponent({
|
|
2510
2525
|
});
|
2511
2526
|
const validateWithTrigger = (trigger) => {
|
2512
2527
|
if (form && props.rules) {
|
2513
|
-
const
|
2528
|
+
const {
|
2529
|
+
validateTrigger
|
2530
|
+
} = form.props;
|
2531
|
+
const defaultTrigger = toArray(validateTrigger).includes(trigger);
|
2514
2532
|
const rules = props.rules.filter((rule) => {
|
2515
2533
|
if (rule.trigger) {
|
2516
|
-
return rule.trigger
|
2534
|
+
return toArray(rule.trigger).includes(trigger);
|
2517
2535
|
}
|
2518
2536
|
return defaultTrigger;
|
2519
2537
|
});
|
@@ -2601,7 +2619,7 @@ var stdin_default$1k = vue.defineComponent({
|
|
2601
2619
|
if (typeof props.error === "boolean") {
|
2602
2620
|
return props.error;
|
2603
2621
|
}
|
2604
|
-
if (form && form.props.showError && state.
|
2622
|
+
if (form && form.props.showError && state.status === "failed") {
|
2605
2623
|
return true;
|
2606
2624
|
}
|
2607
2625
|
});
|
@@ -2627,6 +2645,7 @@ var stdin_default$1k = vue.defineComponent({
|
|
2627
2645
|
emit("keypress", event);
|
2628
2646
|
};
|
2629
2647
|
const getInputId = () => props.id || `${id}-input`;
|
2648
|
+
const getValidationStatus = () => state.status;
|
2630
2649
|
const renderInput = () => {
|
2631
2650
|
const controlClass = bem$19("control", [getProp("inputAlign"), {
|
2632
2651
|
error: showError.value,
|
@@ -2645,12 +2664,12 @@ var stdin_default$1k = vue.defineComponent({
|
|
2645
2664
|
name: props.name,
|
2646
2665
|
rows: props.rows !== void 0 ? +props.rows : void 0,
|
2647
2666
|
class: controlClass,
|
2648
|
-
value: props.modelValue,
|
2649
2667
|
disabled: getProp("disabled"),
|
2650
2668
|
readonly: getProp("readonly"),
|
2651
2669
|
autofocus: props.autofocus,
|
2652
2670
|
placeholder: props.placeholder,
|
2653
2671
|
autocomplete: props.autocomplete,
|
2672
|
+
enterkeyhint: props.enterkeyhint,
|
2654
2673
|
"aria-labelledby": props.label ? `${id}-label` : void 0,
|
2655
2674
|
onBlur,
|
2656
2675
|
onFocus,
|
@@ -2741,7 +2760,8 @@ var stdin_default$1k = vue.defineComponent({
|
|
2741
2760
|
focus,
|
2742
2761
|
validate,
|
2743
2762
|
formValue,
|
2744
|
-
resetValidation
|
2763
|
+
resetValidation,
|
2764
|
+
getValidationStatus
|
2745
2765
|
});
|
2746
2766
|
vue.provide(use.CUSTOM_FIELD_INJECTION_KEY, {
|
2747
2767
|
customValue,
|
@@ -3100,7 +3120,8 @@ var stdin_default$1i = vue.defineComponent({
|
|
3100
3120
|
props: switchProps,
|
3101
3121
|
emits: ["change", "update:modelValue"],
|
3102
3122
|
setup(props, {
|
3103
|
-
emit
|
3123
|
+
emit,
|
3124
|
+
slots
|
3104
3125
|
}) {
|
3105
3126
|
const isChecked = () => props.modelValue === props.activeValue;
|
3106
3127
|
const onClick = () => {
|
@@ -3118,6 +3139,9 @@ var stdin_default$1i = vue.defineComponent({
|
|
3118
3139
|
"color": color
|
3119
3140
|
}, null);
|
3120
3141
|
}
|
3142
|
+
if (slots.node) {
|
3143
|
+
return slots.node();
|
3144
|
+
}
|
3121
3145
|
};
|
3122
3146
|
use.useCustomFieldValue(() => props.modelValue);
|
3123
3147
|
return () => {
|
@@ -3229,10 +3253,8 @@ const DEFAULT_DATA = {
|
|
3229
3253
|
province: "",
|
3230
3254
|
areaCode: "",
|
3231
3255
|
isDefault: false,
|
3232
|
-
postalCode: "",
|
3233
3256
|
addressDetail: ""
|
3234
3257
|
};
|
3235
|
-
const isPostal = (value) => /^\d{6}$/.test(value);
|
3236
3258
|
const addressEditProps = {
|
3237
3259
|
areaList: Object,
|
3238
3260
|
isSaving: Boolean,
|
@@ -3241,7 +3263,6 @@ const addressEditProps = {
|
|
3241
3263
|
showArea: truthProp,
|
3242
3264
|
showDetail: truthProp,
|
3243
3265
|
showDelete: Boolean,
|
3244
|
-
showPostal: Boolean,
|
3245
3266
|
disableArea: Boolean,
|
3246
3267
|
searchResult: Array,
|
3247
3268
|
telMaxlength: numericProp,
|
@@ -3260,10 +3281,6 @@ const addressEditProps = {
|
|
3260
3281
|
telValidator: {
|
3261
3282
|
type: Function,
|
3262
3283
|
default: isMobile
|
3263
|
-
},
|
3264
|
-
postalValidator: {
|
3265
|
-
type: Function,
|
3266
|
-
default: isPostal
|
3267
3284
|
}
|
3268
3285
|
};
|
3269
3286
|
var stdin_default$1g = vue.defineComponent({
|
@@ -3306,8 +3323,7 @@ var stdin_default$1g = vue.defineComponent({
|
|
3306
3323
|
const rules = vue.computed(() => {
|
3307
3324
|
const {
|
3308
3325
|
validator,
|
3309
|
-
telValidator
|
3310
|
-
postalValidator
|
3326
|
+
telValidator
|
3311
3327
|
} = props;
|
3312
3328
|
const makeRule = (name2, emptyMessage) => ({
|
3313
3329
|
validator: (value) => {
|
@@ -3330,11 +3346,7 @@ var stdin_default$1g = vue.defineComponent({
|
|
3330
3346
|
message: t$h("telInvalid")
|
3331
3347
|
}],
|
3332
3348
|
areaCode: [makeRule("areaCode", t$h("areaEmpty"))],
|
3333
|
-
addressDetail: [makeRule("addressDetail", t$h("addressEmpty"))]
|
3334
|
-
postalCode: [makeRule("addressDetail", t$h("postalEmpty")), {
|
3335
|
-
validator: postalValidator,
|
3336
|
-
message: t$h("postalEmpty")
|
3337
|
-
}]
|
3349
|
+
addressDetail: [makeRule("addressDetail", t$h("addressEmpty"))]
|
3338
3350
|
};
|
3339
3351
|
});
|
3340
3352
|
const onSave = () => emit("save", data);
|
@@ -3459,16 +3471,7 @@ var stdin_default$1g = vue.defineComponent({
|
|
3459
3471
|
"onFocus": () => onFocus("addressDetail"),
|
3460
3472
|
"onInput": onChangeDetail,
|
3461
3473
|
"onSelectSearch": (event) => emit("selectSearch", event)
|
3462
|
-
}, null),
|
3463
|
-
"modelValue": data.postalCode,
|
3464
|
-
"onUpdate:modelValue": ($event) => data.postalCode = $event,
|
3465
|
-
"type": "tel",
|
3466
|
-
"rules": rules.value.postalCode,
|
3467
|
-
"label": t$h("postal"),
|
3468
|
-
"maxlength": "6",
|
3469
|
-
"placeholder": t$h("postal"),
|
3470
|
-
"onFocus": () => onFocus("postalCode")
|
3471
|
-
}, null), [[vue.vShow, !hideBottomFields.value]]), (_a = slots.default) == null ? void 0 : _a.call(slots)]), renderSetDefaultCell(), vue.withDirectives(vue.createVNode("div", {
|
3474
|
+
}, null), (_a = slots.default) == null ? void 0 : _a.call(slots)]), renderSetDefaultCell(), vue.withDirectives(vue.createVNode("div", {
|
3472
3475
|
"class": bem$15("buttons")
|
3473
3476
|
}, [vue.createVNode(Button, {
|
3474
3477
|
"block": true,
|
@@ -4027,6 +4030,7 @@ var stdin_default$19 = vue.defineComponent({
|
|
4027
4030
|
slots
|
4028
4031
|
}) {
|
4029
4032
|
const style = vue.computed(() => {
|
4033
|
+
var _a;
|
4030
4034
|
const {
|
4031
4035
|
item,
|
4032
4036
|
index,
|
@@ -4058,6 +4062,9 @@ var stdin_default$19 = vue.defineComponent({
|
|
4058
4062
|
break;
|
4059
4063
|
}
|
4060
4064
|
}
|
4065
|
+
if (offset + (((_a = item.date) == null ? void 0 : _a.getDate()) || 1) > 28) {
|
4066
|
+
style2.marginBottom = 0;
|
4067
|
+
}
|
4061
4068
|
return style2;
|
4062
4069
|
});
|
4063
4070
|
const onClick = () => {
|
@@ -4565,8 +4572,8 @@ var stdin_default$16 = vue.defineComponent({
|
|
4565
4572
|
}
|
4566
4573
|
use.raf(() => {
|
4567
4574
|
bodyHeight = Math.floor(use.useRect(bodyRef).height);
|
4568
|
-
scrollToCurrentDate();
|
4569
4575
|
});
|
4576
|
+
scrollToCurrentDate();
|
4570
4577
|
};
|
4571
4578
|
const reset = (date = getInitialDate()) => {
|
4572
4579
|
currentDate.value = date;
|
@@ -5710,7 +5717,7 @@ var stdin_default$$ = vue.defineComponent({
|
|
5710
5717
|
const root = vue.ref();
|
5711
5718
|
const navRef = vue.ref();
|
5712
5719
|
const wrapRef = vue.ref();
|
5713
|
-
const id = useId();
|
5720
|
+
const id = useId$1();
|
5714
5721
|
const scroller = use.useScrollParent(root);
|
5715
5722
|
const [titleRefs, setTitleRefs] = useRefs();
|
5716
5723
|
const {
|
@@ -5877,6 +5884,7 @@ var stdin_default$$ = vue.defineComponent({
|
|
5877
5884
|
}
|
5878
5885
|
};
|
5879
5886
|
const renderNav = () => children.map((item, index) => vue.createVNode(stdin_default$12, vue.mergeProps({
|
5887
|
+
"key": item.id,
|
5880
5888
|
"id": `${id}-${index}`,
|
5881
5889
|
"ref": setTitleRefs(index),
|
5882
5890
|
"type": props.type,
|
@@ -6096,7 +6104,7 @@ var stdin_default$Z = vue.defineComponent({
|
|
6096
6104
|
setup(props, {
|
6097
6105
|
slots
|
6098
6106
|
}) {
|
6099
|
-
const id = useId();
|
6107
|
+
const id = useId$1();
|
6100
6108
|
const inited = vue.ref(false);
|
6101
6109
|
const {
|
6102
6110
|
parent,
|
@@ -7466,14 +7474,328 @@ var stdin_default$K = vue.defineComponent({
|
|
7466
7474
|
}
|
7467
7475
|
});
|
7468
7476
|
const CouponCell = withInstall(stdin_default$K);
|
7469
|
-
const
|
7470
|
-
const
|
7477
|
+
const getId = (num) => `van-empty-${num}`;
|
7478
|
+
const useId = (num) => `url(#${getId(num)})`;
|
7479
|
+
const renderStop = (color, offset, opacity) => vue.createVNode("stop", {
|
7480
|
+
"stop-color": color,
|
7481
|
+
"offset": `${offset}%`,
|
7482
|
+
"stop-opacity": opacity
|
7483
|
+
}, null);
|
7484
|
+
const renderStops = (fromColor, toColor) => [renderStop(fromColor, 0), renderStop(toColor, 100)];
|
7485
|
+
const renderShadow = (id) => [vue.createVNode("defs", null, [vue.createVNode("radialGradient", {
|
7486
|
+
"id": getId(id),
|
7487
|
+
"cx": "50%",
|
7488
|
+
"cy": "54%",
|
7489
|
+
"fx": "50%",
|
7490
|
+
"fy": "54%",
|
7491
|
+
"r": "297%",
|
7492
|
+
"gradientTransform": "matrix(-.16 0 0 -.33 .58 .72)"
|
7493
|
+
}, [renderStop("#EBEDF0", 0), renderStop("#F2F3F5", 100, 0.3)])]), vue.createVNode("ellipse", {
|
7494
|
+
"fill": useId(id),
|
7495
|
+
"opacity": ".8",
|
7496
|
+
"cx": "80",
|
7497
|
+
"cy": "140",
|
7498
|
+
"rx": "46",
|
7499
|
+
"ry": "8"
|
7500
|
+
}, null)];
|
7501
|
+
const renderBuilding = () => [vue.createVNode("defs", null, [vue.createVNode("linearGradient", {
|
7502
|
+
"id": getId("a"),
|
7503
|
+
"x1": "64%",
|
7504
|
+
"y1": "100%",
|
7505
|
+
"x2": "64%"
|
7506
|
+
}, [renderStop("#FFF", 0, 0.5), renderStop("#F2F3F5", 100)])]), vue.createVNode("g", {
|
7507
|
+
"opacity": ".8"
|
7508
|
+
}, [vue.createVNode("path", {
|
7509
|
+
"d": "M36 131V53H16v20H2v58h34z",
|
7510
|
+
"fill": useId("a")
|
7511
|
+
}, null), vue.createVNode("path", {
|
7512
|
+
"d": "M123 15h22v14h9v77h-31V15z",
|
7513
|
+
"fill": useId("a")
|
7514
|
+
}, null)])];
|
7515
|
+
const renderCloud = () => [vue.createVNode("defs", null, [vue.createVNode("linearGradient", {
|
7516
|
+
"id": getId("b"),
|
7517
|
+
"x1": "64%",
|
7518
|
+
"y1": "97%",
|
7519
|
+
"x2": "64%",
|
7520
|
+
"y2": "0%"
|
7521
|
+
}, [renderStop("#F2F3F5", 0, 0.3), renderStop("#F2F3F5", 100)])]), vue.createVNode("g", {
|
7522
|
+
"opacity": ".8"
|
7523
|
+
}, [vue.createVNode("path", {
|
7524
|
+
"d": "M87 6c3 0 7 3 8 6a8 8 0 1 1-1 16H80a7 7 0 0 1-8-6c0-4 3-7 6-7 0-5 4-9 9-9Z",
|
7525
|
+
"fill": useId("b")
|
7526
|
+
}, null), vue.createVNode("path", {
|
7527
|
+
"d": "M19 23c2 0 3 1 4 3 2 0 4 2 4 4a4 4 0 0 1-4 3v1h-7v-1l-1 1c-2 0-3-2-3-4 0-1 1-3 3-3 0-2 2-4 4-4Z",
|
7528
|
+
"fill": useId("b")
|
7529
|
+
}, null)])];
|
7530
|
+
const renderNetwork = () => vue.createVNode("svg", {
|
7531
|
+
"viewBox": "0 0 160 160"
|
7532
|
+
}, [vue.createVNode("defs", null, [vue.createVNode("linearGradient", {
|
7533
|
+
"id": getId(1),
|
7534
|
+
"x1": "64%",
|
7535
|
+
"y1": "100%",
|
7536
|
+
"x2": "64%"
|
7537
|
+
}, [renderStop("#FFF", 0, 0.5), renderStop("#F2F3F5", 100)]), vue.createVNode("linearGradient", {
|
7538
|
+
"id": getId(2),
|
7539
|
+
"x1": "50%",
|
7540
|
+
"x2": "50%",
|
7541
|
+
"y2": "84%"
|
7542
|
+
}, [renderStop("#EBEDF0", 0), renderStop("#DCDEE0", 100, 0)]), vue.createVNode("linearGradient", {
|
7543
|
+
"id": getId(3),
|
7544
|
+
"x1": "100%",
|
7545
|
+
"x2": "100%",
|
7546
|
+
"y2": "100%"
|
7547
|
+
}, [renderStops("#EAEDF0", "#DCDEE0")]), vue.createVNode("radialGradient", {
|
7548
|
+
"id": getId(4),
|
7549
|
+
"cx": "50%",
|
7550
|
+
"cy": "0%",
|
7551
|
+
"fx": "50%",
|
7552
|
+
"fy": "0%",
|
7553
|
+
"r": "100%",
|
7554
|
+
"gradientTransform": "matrix(0 1 -.54 0 .5 -.5)"
|
7555
|
+
}, [renderStop("#EBEDF0", 0), renderStop("#FFF", 100, 0)])]), vue.createVNode("g", {
|
7556
|
+
"fill": "none"
|
7557
|
+
}, [renderBuilding(), vue.createVNode("path", {
|
7558
|
+
"fill": useId(4),
|
7559
|
+
"d": "M0 139h160v21H0z"
|
7560
|
+
}, null), vue.createVNode("path", {
|
7561
|
+
"d": "M80 54a7 7 0 0 1 3 13v27l-2 2h-2a2 2 0 0 1-2-2V67a7 7 0 0 1 3-13z",
|
7562
|
+
"fill": useId(2)
|
7563
|
+
}, null), vue.createVNode("g", {
|
7564
|
+
"opacity": ".6",
|
7565
|
+
"stroke-linecap": "round",
|
7566
|
+
"stroke-width": "7"
|
7567
|
+
}, [vue.createVNode("path", {
|
7568
|
+
"d": "M64 47a19 19 0 0 0-5 13c0 5 2 10 5 13",
|
7569
|
+
"stroke": useId(3)
|
7570
|
+
}, null), vue.createVNode("path", {
|
7571
|
+
"d": "M53 36a34 34 0 0 0 0 48",
|
7572
|
+
"stroke": useId(3)
|
7573
|
+
}, null), vue.createVNode("path", {
|
7574
|
+
"d": "M95 73a19 19 0 0 0 6-13c0-5-2-9-6-13",
|
7575
|
+
"stroke": useId(3)
|
7576
|
+
}, null), vue.createVNode("path", {
|
7577
|
+
"d": "M106 84a34 34 0 0 0 0-48",
|
7578
|
+
"stroke": useId(3)
|
7579
|
+
}, null)]), vue.createVNode("g", {
|
7580
|
+
"transform": "translate(31 105)"
|
7581
|
+
}, [vue.createVNode("rect", {
|
7582
|
+
"fill": "#EBEDF0",
|
7583
|
+
"width": "98",
|
7584
|
+
"height": "34",
|
7585
|
+
"rx": "2"
|
7586
|
+
}, null), vue.createVNode("rect", {
|
7587
|
+
"fill": "#FFF",
|
7588
|
+
"x": "9",
|
7589
|
+
"y": "8",
|
7590
|
+
"width": "80",
|
7591
|
+
"height": "18",
|
7592
|
+
"rx": "1.1"
|
7593
|
+
}, null), vue.createVNode("rect", {
|
7594
|
+
"fill": "#EBEDF0",
|
7595
|
+
"x": "15",
|
7596
|
+
"y": "12",
|
7597
|
+
"width": "18",
|
7598
|
+
"height": "6",
|
7599
|
+
"rx": "1.1"
|
7600
|
+
}, null)])])]);
|
7601
|
+
const renderMaterial = () => vue.createVNode("svg", {
|
7602
|
+
"viewBox": "0 0 160 160"
|
7603
|
+
}, [vue.createVNode("defs", null, [vue.createVNode("linearGradient", {
|
7604
|
+
"x1": "50%",
|
7605
|
+
"x2": "50%",
|
7606
|
+
"y2": "100%",
|
7607
|
+
"id": getId(5)
|
7608
|
+
}, [renderStops("#F2F3F5", "#DCDEE0")]), vue.createVNode("linearGradient", {
|
7609
|
+
"x1": "95%",
|
7610
|
+
"y1": "48%",
|
7611
|
+
"x2": "5.5%",
|
7612
|
+
"y2": "51%",
|
7613
|
+
"id": getId(6)
|
7614
|
+
}, [renderStops("#EAEDF1", "#DCDEE0")]), vue.createVNode("linearGradient", {
|
7615
|
+
"y1": "45%",
|
7616
|
+
"x2": "100%",
|
7617
|
+
"y2": "54%",
|
7618
|
+
"id": getId(7)
|
7619
|
+
}, [renderStops("#EAEDF1", "#DCDEE0")])]), renderBuilding(), renderCloud(), vue.createVNode("g", {
|
7620
|
+
"transform": "translate(36 50)",
|
7621
|
+
"fill": "none"
|
7622
|
+
}, [vue.createVNode("g", {
|
7623
|
+
"transform": "translate(8)"
|
7624
|
+
}, [vue.createVNode("rect", {
|
7625
|
+
"fill": "#EBEDF0",
|
7626
|
+
"opacity": ".6",
|
7627
|
+
"x": "38",
|
7628
|
+
"y": "13",
|
7629
|
+
"width": "36",
|
7630
|
+
"height": "53",
|
7631
|
+
"rx": "2"
|
7632
|
+
}, null), vue.createVNode("rect", {
|
7633
|
+
"fill": useId(5),
|
7634
|
+
"width": "64",
|
7635
|
+
"height": "66",
|
7636
|
+
"rx": "2"
|
7637
|
+
}, null), vue.createVNode("rect", {
|
7638
|
+
"fill": "#FFF",
|
7639
|
+
"x": "6",
|
7640
|
+
"y": "6",
|
7641
|
+
"width": "52",
|
7642
|
+
"height": "55",
|
7643
|
+
"rx": "1"
|
7644
|
+
}, null), vue.createVNode("g", {
|
7645
|
+
"transform": "translate(15 17)",
|
7646
|
+
"fill": useId(6)
|
7647
|
+
}, [vue.createVNode("rect", {
|
7648
|
+
"width": "34",
|
7649
|
+
"height": "6",
|
7650
|
+
"rx": "1"
|
7651
|
+
}, null), vue.createVNode("path", {
|
7652
|
+
"d": "M0 14h34v6H0z"
|
7653
|
+
}, null), vue.createVNode("rect", {
|
7654
|
+
"y": "28",
|
7655
|
+
"width": "34",
|
7656
|
+
"height": "6",
|
7657
|
+
"rx": "1"
|
7658
|
+
}, null)])]), vue.createVNode("rect", {
|
7659
|
+
"fill": useId(7),
|
7660
|
+
"y": "61",
|
7661
|
+
"width": "88",
|
7662
|
+
"height": "28",
|
7663
|
+
"rx": "1"
|
7664
|
+
}, null), vue.createVNode("rect", {
|
7665
|
+
"fill": "#F7F8FA",
|
7666
|
+
"x": "29",
|
7667
|
+
"y": "72",
|
7668
|
+
"width": "30",
|
7669
|
+
"height": "6",
|
7670
|
+
"rx": "1"
|
7671
|
+
}, null)])]);
|
7672
|
+
const renderError = () => vue.createVNode("svg", {
|
7673
|
+
"viewBox": "0 0 160 160"
|
7674
|
+
}, [vue.createVNode("defs", null, [vue.createVNode("linearGradient", {
|
7675
|
+
"x1": "50%",
|
7676
|
+
"x2": "50%",
|
7677
|
+
"y2": "100%",
|
7678
|
+
"id": getId(8)
|
7679
|
+
}, [renderStops("#EAEDF1", "#DCDEE0")])]), renderBuilding(), renderCloud(), renderShadow("c"), vue.createVNode("path", {
|
7680
|
+
"d": "m59 60 21 21 21-21h3l9 9v3L92 93l21 21v3l-9 9h-3l-21-21-21 21h-3l-9-9v-3l21-21-21-21v-3l9-9h3Z",
|
7681
|
+
"fill": useId(8)
|
7682
|
+
}, null)]);
|
7683
|
+
const renderSearch = () => vue.createVNode("svg", {
|
7684
|
+
"viewBox": "0 0 160 160"
|
7685
|
+
}, [vue.createVNode("defs", null, [vue.createVNode("linearGradient", {
|
7686
|
+
"x1": "50%",
|
7687
|
+
"y1": "100%",
|
7688
|
+
"x2": "50%",
|
7689
|
+
"id": getId(9)
|
7690
|
+
}, [renderStops("#EEE", "#D8D8D8")]), vue.createVNode("linearGradient", {
|
7691
|
+
"x1": "100%",
|
7692
|
+
"y1": "50%",
|
7693
|
+
"y2": "50%",
|
7694
|
+
"id": getId(10)
|
7695
|
+
}, [renderStops("#F2F3F5", "#DCDEE0")]), vue.createVNode("linearGradient", {
|
7696
|
+
"x1": "50%",
|
7697
|
+
"x2": "50%",
|
7698
|
+
"y2": "100%",
|
7699
|
+
"id": getId(11)
|
7700
|
+
}, [renderStops("#F2F3F5", "#DCDEE0")]), vue.createVNode("linearGradient", {
|
7701
|
+
"x1": "50%",
|
7702
|
+
"x2": "50%",
|
7703
|
+
"y2": "100%",
|
7704
|
+
"id": getId(12)
|
7705
|
+
}, [renderStops("#FFF", "#F7F8FA")])]), renderBuilding(), renderCloud(), renderShadow("d"), vue.createVNode("g", {
|
7706
|
+
"transform": "rotate(-45 113 -4)",
|
7707
|
+
"fill": "none"
|
7708
|
+
}, [vue.createVNode("rect", {
|
7709
|
+
"fill": useId(9),
|
7710
|
+
"x": "24",
|
7711
|
+
"y": "52.8",
|
7712
|
+
"width": "5.8",
|
7713
|
+
"height": "19",
|
7714
|
+
"rx": "1"
|
7715
|
+
}, null), vue.createVNode("rect", {
|
7716
|
+
"fill": useId(10),
|
7717
|
+
"x": "22.1",
|
7718
|
+
"y": "67.3",
|
7719
|
+
"width": "9.9",
|
7720
|
+
"height": "28",
|
7721
|
+
"rx": "1"
|
7722
|
+
}, null), vue.createVNode("circle", {
|
7723
|
+
"stroke": useId(11),
|
7724
|
+
"stroke-width": "8",
|
7725
|
+
"cx": "27",
|
7726
|
+
"cy": "27",
|
7727
|
+
"r": "27"
|
7728
|
+
}, null), vue.createVNode("circle", {
|
7729
|
+
"fill": useId(12),
|
7730
|
+
"cx": "27",
|
7731
|
+
"cy": "27",
|
7732
|
+
"r": "16"
|
7733
|
+
}, null), vue.createVNode("path", {
|
7734
|
+
"d": "M37 7c-8 0-15 5-16 12",
|
7735
|
+
"stroke": useId(11),
|
7736
|
+
"stroke-width": "3",
|
7737
|
+
"opacity": ".5",
|
7738
|
+
"stroke-linecap": "round",
|
7739
|
+
"transform": "rotate(45 29 13)"
|
7740
|
+
}, null)])]);
|
7741
|
+
const [name$D, bem$C] = createNamespace("empty");
|
7742
|
+
const PRESET_IMAGES = {
|
7743
|
+
error: renderError,
|
7744
|
+
search: renderSearch,
|
7745
|
+
network: renderNetwork,
|
7746
|
+
default: renderMaterial
|
7747
|
+
};
|
7748
|
+
const emptyProps = {
|
7749
|
+
image: makeStringProp("default"),
|
7750
|
+
imageSize: [Number, String, Array],
|
7751
|
+
description: String
|
7752
|
+
};
|
7753
|
+
var stdin_default$J = vue.defineComponent({
|
7754
|
+
name: name$D,
|
7755
|
+
props: emptyProps,
|
7756
|
+
setup(props, {
|
7757
|
+
slots
|
7758
|
+
}) {
|
7759
|
+
const renderImage = () => {
|
7760
|
+
var _a;
|
7761
|
+
if (slots.image) {
|
7762
|
+
return slots.image();
|
7763
|
+
}
|
7764
|
+
return ((_a = PRESET_IMAGES[props.image]) == null ? void 0 : _a.call(PRESET_IMAGES)) || vue.createVNode("img", {
|
7765
|
+
"src": props.image
|
7766
|
+
}, null);
|
7767
|
+
};
|
7768
|
+
const renderDescription = () => {
|
7769
|
+
const description = slots.description ? slots.description() : props.description;
|
7770
|
+
if (description) {
|
7771
|
+
return vue.createVNode("p", {
|
7772
|
+
"class": bem$C("description")
|
7773
|
+
}, [description]);
|
7774
|
+
}
|
7775
|
+
};
|
7776
|
+
const renderBottom = () => {
|
7777
|
+
if (slots.default) {
|
7778
|
+
return vue.createVNode("div", {
|
7779
|
+
"class": bem$C("bottom")
|
7780
|
+
}, [slots.default()]);
|
7781
|
+
}
|
7782
|
+
};
|
7783
|
+
return () => vue.createVNode("div", {
|
7784
|
+
"class": bem$C()
|
7785
|
+
}, [vue.createVNode("div", {
|
7786
|
+
"class": bem$C("image"),
|
7787
|
+
"style": getSizeStyle(props.imageSize)
|
7788
|
+
}, [renderImage()]), renderDescription(), renderBottom()]);
|
7789
|
+
}
|
7790
|
+
});
|
7791
|
+
const Empty = withInstall(stdin_default$J);
|
7792
|
+
const [name$C, bem$B, t$8] = createNamespace("coupon-list");
|
7471
7793
|
const couponListProps = {
|
7472
7794
|
code: makeStringProp(""),
|
7473
7795
|
coupons: makeArrayProp(),
|
7474
7796
|
currency: makeStringProp("\xA5"),
|
7475
7797
|
showCount: truthProp,
|
7476
|
-
emptyImage:
|
7798
|
+
emptyImage: String,
|
7477
7799
|
chosenCoupon: makeNumberProp(-1),
|
7478
7800
|
enabledTitle: String,
|
7479
7801
|
disabledTitle: String,
|
@@ -7488,8 +7810,8 @@ const couponListProps = {
|
|
7488
7810
|
exchangeButtonLoading: Boolean,
|
7489
7811
|
exchangeButtonDisabled: Boolean
|
7490
7812
|
};
|
7491
|
-
var stdin_default$
|
7492
|
-
name: name$
|
7813
|
+
var stdin_default$I = vue.defineComponent({
|
7814
|
+
name: name$C,
|
7493
7815
|
props: couponListProps,
|
7494
7816
|
emits: ["change", "exchange", "update:code"],
|
7495
7817
|
setup(props, {
|
@@ -7521,28 +7843,30 @@ var stdin_default$J = vue.defineComponent({
|
|
7521
7843
|
return (_a = couponRefs.value[index]) == null ? void 0 : _a.scrollIntoView();
|
7522
7844
|
});
|
7523
7845
|
};
|
7524
|
-
const renderEmpty = () => vue.createVNode(
|
7525
|
-
"
|
7526
|
-
},
|
7527
|
-
"
|
7528
|
-
|
7846
|
+
const renderEmpty = () => vue.createVNode(Empty, {
|
7847
|
+
"image": props.emptyImage
|
7848
|
+
}, {
|
7849
|
+
default: () => [vue.createVNode("p", {
|
7850
|
+
"class": bem$B("empty-tip")
|
7851
|
+
}, [t$8("noCoupon")])]
|
7852
|
+
});
|
7529
7853
|
const renderExchangeBar = () => {
|
7530
7854
|
if (props.showExchangeBar) {
|
7531
7855
|
return vue.createVNode("div", {
|
7532
7856
|
"ref": barRef,
|
7533
|
-
"class": bem$
|
7857
|
+
"class": bem$B("exchange-bar")
|
7534
7858
|
}, [vue.createVNode(Field, {
|
7535
7859
|
"modelValue": currentCode.value,
|
7536
7860
|
"onUpdate:modelValue": ($event) => currentCode.value = $event,
|
7537
7861
|
"clearable": true,
|
7538
7862
|
"border": false,
|
7539
|
-
"class": bem$
|
7863
|
+
"class": bem$B("field"),
|
7540
7864
|
"placeholder": props.inputPlaceholder || t$8("placeholder"),
|
7541
7865
|
"maxlength": "20"
|
7542
7866
|
}, null), vue.createVNode(Button, {
|
7543
7867
|
"plain": true,
|
7544
7868
|
"type": "primary",
|
7545
|
-
"class": bem$
|
7869
|
+
"class": bem$B("exchange"),
|
7546
7870
|
"text": props.exchangeButtonText || t$8("exchange"),
|
7547
7871
|
"loading": props.exchangeButtonLoading,
|
7548
7872
|
"disabled": buttonDisabled.value,
|
@@ -7562,7 +7886,7 @@ var stdin_default$J = vue.defineComponent({
|
|
7562
7886
|
default: () => {
|
7563
7887
|
var _a;
|
7564
7888
|
return [vue.createVNode("div", {
|
7565
|
-
"class": bem$
|
7889
|
+
"class": bem$B("list", {
|
7566
7890
|
"with-bottom": props.showCloseButton
|
7567
7891
|
}),
|
7568
7892
|
"style": {
|
@@ -7591,7 +7915,7 @@ var stdin_default$J = vue.defineComponent({
|
|
7591
7915
|
default: () => {
|
7592
7916
|
var _a;
|
7593
7917
|
return [vue.createVNode("div", {
|
7594
|
-
"class": bem$
|
7918
|
+
"class": bem$B("list", {
|
7595
7919
|
"with-bottom": props.showCloseButton
|
7596
7920
|
}),
|
7597
7921
|
"style": {
|
@@ -7618,28 +7942,28 @@ var stdin_default$J = vue.defineComponent({
|
|
7618
7942
|
});
|
7619
7943
|
return () => vue.createVNode("div", {
|
7620
7944
|
"ref": root,
|
7621
|
-
"class": bem$
|
7945
|
+
"class": bem$B()
|
7622
7946
|
}, [renderExchangeBar(), vue.createVNode(Tabs, {
|
7623
7947
|
"active": activeTab.value,
|
7624
7948
|
"onUpdate:active": ($event) => activeTab.value = $event,
|
7625
|
-
"class": bem$
|
7949
|
+
"class": bem$B("tab")
|
7626
7950
|
}, {
|
7627
7951
|
default: () => [renderCouponTab(), renderDisabledTab()]
|
7628
7952
|
}), vue.createVNode("div", {
|
7629
|
-
"class": bem$
|
7953
|
+
"class": bem$B("bottom")
|
7630
7954
|
}, [vue.withDirectives(vue.createVNode(Button, {
|
7631
7955
|
"round": true,
|
7632
7956
|
"block": true,
|
7633
7957
|
"type": "primary",
|
7634
|
-
"class": bem$
|
7958
|
+
"class": bem$B("close"),
|
7635
7959
|
"text": props.closeButtonText || t$8("close"),
|
7636
7960
|
"onClick": () => emit("change", -1)
|
7637
7961
|
}, null), [[vue.vShow, props.showCloseButton]])])]);
|
7638
7962
|
}
|
7639
7963
|
});
|
7640
|
-
const CouponList = withInstall(stdin_default$
|
7964
|
+
const CouponList = withInstall(stdin_default$I);
|
7641
7965
|
const currentYear = new Date().getFullYear();
|
7642
|
-
const [name$
|
7966
|
+
const [name$B] = createNamespace("date-picker");
|
7643
7967
|
const datePickerProps = extend({}, sharedProps, {
|
7644
7968
|
columnsType: {
|
7645
7969
|
type: Array,
|
@@ -7656,8 +7980,8 @@ const datePickerProps = extend({}, sharedProps, {
|
|
7656
7980
|
validator: isDate
|
7657
7981
|
}
|
7658
7982
|
});
|
7659
|
-
var stdin_default$
|
7660
|
-
name: name$
|
7983
|
+
var stdin_default$H = vue.defineComponent({
|
7984
|
+
name: name$B,
|
7661
7985
|
props: datePickerProps,
|
7662
7986
|
emits: ["confirm", "cancel", "change", "update:modelValue"],
|
7663
7987
|
setup(props, {
|
@@ -7741,8 +8065,8 @@ var stdin_default$I = vue.defineComponent({
|
|
7741
8065
|
}, pick(props, pickerInheritKeys)), slots);
|
7742
8066
|
}
|
7743
8067
|
});
|
7744
|
-
const DatePicker = withInstall(stdin_default$
|
7745
|
-
const [name$
|
8068
|
+
const DatePicker = withInstall(stdin_default$H);
|
8069
|
+
const [name$A, bem$A, t$7] = createNamespace("dialog");
|
7746
8070
|
const dialogProps = extend({}, popupSharedProps, {
|
7747
8071
|
title: String,
|
7748
8072
|
theme: String,
|
@@ -7763,8 +8087,8 @@ const dialogProps = extend({}, popupSharedProps, {
|
|
7763
8087
|
closeOnClickOverlay: Boolean
|
7764
8088
|
});
|
7765
8089
|
const popupInheritKeys$1 = [...popupSharedPropKeys, "transition", "closeOnPopstate"];
|
7766
|
-
var stdin_default$
|
7767
|
-
name: name$
|
8090
|
+
var stdin_default$G = vue.defineComponent({
|
8091
|
+
name: name$A,
|
7768
8092
|
props: dialogProps,
|
7769
8093
|
emits: ["confirm", "cancel", "keydown", "update:show"],
|
7770
8094
|
setup(props, {
|
@@ -7821,7 +8145,7 @@ var stdin_default$H = vue.defineComponent({
|
|
7821
8145
|
const title = slots.title ? slots.title() : props.title;
|
7822
8146
|
if (title) {
|
7823
8147
|
return vue.createVNode("div", {
|
7824
|
-
"class": bem$
|
8148
|
+
"class": bem$A("header", {
|
7825
8149
|
isolated: !props.message && !slots.default
|
7826
8150
|
})
|
7827
8151
|
}, [title]);
|
@@ -7833,7 +8157,7 @@ var stdin_default$H = vue.defineComponent({
|
|
7833
8157
|
allowHtml,
|
7834
8158
|
messageAlign
|
7835
8159
|
} = props;
|
7836
|
-
const classNames = bem$
|
8160
|
+
const classNames = bem$A("message", {
|
7837
8161
|
"has-title": hasTitle,
|
7838
8162
|
[messageAlign]: messageAlign
|
7839
8163
|
});
|
@@ -7851,7 +8175,7 @@ var stdin_default$H = vue.defineComponent({
|
|
7851
8175
|
const renderContent = () => {
|
7852
8176
|
if (slots.default) {
|
7853
8177
|
return vue.createVNode("div", {
|
7854
|
-
"class": bem$
|
8178
|
+
"class": bem$A("content")
|
7855
8179
|
}, [slots.default()]);
|
7856
8180
|
}
|
7857
8181
|
const {
|
@@ -7863,18 +8187,18 @@ var stdin_default$H = vue.defineComponent({
|
|
7863
8187
|
const hasTitle = !!(title || slots.title);
|
7864
8188
|
return vue.createVNode("div", {
|
7865
8189
|
"key": allowHtml ? 1 : 0,
|
7866
|
-
"class": bem$
|
8190
|
+
"class": bem$A("content", {
|
7867
8191
|
isolated: !hasTitle
|
7868
8192
|
})
|
7869
8193
|
}, [renderMessage(hasTitle)]);
|
7870
8194
|
}
|
7871
8195
|
};
|
7872
8196
|
const renderButtons = () => vue.createVNode("div", {
|
7873
|
-
"class": [BORDER_TOP, bem$
|
8197
|
+
"class": [BORDER_TOP, bem$A("footer")]
|
7874
8198
|
}, [props.showCancelButton && vue.createVNode(Button, {
|
7875
8199
|
"size": "large",
|
7876
8200
|
"text": props.cancelButtonText || t$7("cancel"),
|
7877
|
-
"class": bem$
|
8201
|
+
"class": bem$A("cancel"),
|
7878
8202
|
"style": {
|
7879
8203
|
color: props.cancelButtonColor
|
7880
8204
|
},
|
@@ -7883,7 +8207,7 @@ var stdin_default$H = vue.defineComponent({
|
|
7883
8207
|
}, null), props.showConfirmButton && vue.createVNode(Button, {
|
7884
8208
|
"size": "large",
|
7885
8209
|
"text": props.confirmButtonText || t$7("confirm"),
|
7886
|
-
"class": [bem$
|
8210
|
+
"class": [bem$A("confirm"), {
|
7887
8211
|
[BORDER_LEFT]: props.showCancelButton
|
7888
8212
|
}],
|
7889
8213
|
"style": {
|
@@ -7893,19 +8217,19 @@ var stdin_default$H = vue.defineComponent({
|
|
7893
8217
|
"onClick": onConfirm
|
7894
8218
|
}, null)]);
|
7895
8219
|
const renderRoundButtons = () => vue.createVNode(ActionBar, {
|
7896
|
-
"class": bem$
|
8220
|
+
"class": bem$A("footer")
|
7897
8221
|
}, {
|
7898
8222
|
default: () => [props.showCancelButton && vue.createVNode(ActionBarButton, {
|
7899
8223
|
"type": "warning",
|
7900
8224
|
"text": props.cancelButtonText || t$7("cancel"),
|
7901
|
-
"class": bem$
|
8225
|
+
"class": bem$A("cancel"),
|
7902
8226
|
"color": props.cancelButtonColor,
|
7903
8227
|
"loading": loading.cancel,
|
7904
8228
|
"onClick": onCancel
|
7905
8229
|
}, null), props.showConfirmButton && vue.createVNode(ActionBarButton, {
|
7906
8230
|
"type": "danger",
|
7907
8231
|
"text": props.confirmButtonText || t$7("confirm"),
|
7908
|
-
"class": bem$
|
8232
|
+
"class": bem$A("confirm"),
|
7909
8233
|
"color": props.confirmButtonColor,
|
7910
8234
|
"loading": loading.confirm,
|
7911
8235
|
"onClick": onConfirm
|
@@ -7928,7 +8252,7 @@ var stdin_default$H = vue.defineComponent({
|
|
7928
8252
|
return vue.createVNode(Popup, vue.mergeProps({
|
7929
8253
|
"ref": root,
|
7930
8254
|
"role": "dialog",
|
7931
|
-
"class": [bem$
|
8255
|
+
"class": [bem$A([theme]), className],
|
7932
8256
|
"style": {
|
7933
8257
|
width: addUnit(width)
|
7934
8258
|
},
|
@@ -7950,7 +8274,7 @@ function initInstance$2() {
|
|
7950
8274
|
state,
|
7951
8275
|
toggle
|
7952
8276
|
} = usePopupState();
|
7953
|
-
return () => vue.createVNode(stdin_default$
|
8277
|
+
return () => vue.createVNode(stdin_default$G, vue.mergeProps(state, {
|
7954
8278
|
"onUpdate:show": toggle
|
7955
8279
|
}), null);
|
7956
8280
|
}
|
@@ -8015,19 +8339,19 @@ Dialog.setDefaultOptions = (options) => {
|
|
8015
8339
|
Dialog.resetDefaultOptions = () => {
|
8016
8340
|
Dialog.currentOptions = extend({}, Dialog.defaultOptions);
|
8017
8341
|
};
|
8018
|
-
Dialog.Component = withInstall(stdin_default$
|
8342
|
+
Dialog.Component = withInstall(stdin_default$G);
|
8019
8343
|
Dialog.install = (app) => {
|
8020
8344
|
app.use(Dialog.Component);
|
8021
8345
|
app.config.globalProperties.$dialog = Dialog;
|
8022
8346
|
};
|
8023
|
-
const [name$
|
8347
|
+
const [name$z, bem$z] = createNamespace("divider");
|
8024
8348
|
const dividerProps = {
|
8025
8349
|
dashed: Boolean,
|
8026
8350
|
hairline: truthProp,
|
8027
8351
|
contentPosition: makeStringProp("center")
|
8028
8352
|
};
|
8029
|
-
var stdin_default$
|
8030
|
-
name: name$
|
8353
|
+
var stdin_default$F = vue.defineComponent({
|
8354
|
+
name: name$z,
|
8031
8355
|
props: dividerProps,
|
8032
8356
|
setup(props, {
|
8033
8357
|
slots
|
@@ -8036,7 +8360,7 @@ var stdin_default$G = vue.defineComponent({
|
|
8036
8360
|
var _a;
|
8037
8361
|
return vue.createVNode("div", {
|
8038
8362
|
"role": "separator",
|
8039
|
-
"class": bem$
|
8363
|
+
"class": bem$z({
|
8040
8364
|
dashed: props.dashed,
|
8041
8365
|
hairline: props.hairline,
|
8042
8366
|
[`content-${props.contentPosition}`]: !!slots.default
|
@@ -8045,8 +8369,8 @@ var stdin_default$G = vue.defineComponent({
|
|
8045
8369
|
};
|
8046
8370
|
}
|
8047
8371
|
});
|
8048
|
-
const Divider = withInstall(stdin_default$
|
8049
|
-
const [name$
|
8372
|
+
const Divider = withInstall(stdin_default$F);
|
8373
|
+
const [name$y, bem$y] = createNamespace("dropdown-menu");
|
8050
8374
|
const dropdownMenuProps = {
|
8051
8375
|
overlay: truthProp,
|
8052
8376
|
zIndex: numericProp,
|
@@ -8056,14 +8380,14 @@ const dropdownMenuProps = {
|
|
8056
8380
|
closeOnClickOutside: truthProp,
|
8057
8381
|
closeOnClickOverlay: truthProp
|
8058
8382
|
};
|
8059
|
-
const DROPDOWN_KEY = Symbol(name$
|
8060
|
-
var stdin_default$
|
8061
|
-
name: name$
|
8383
|
+
const DROPDOWN_KEY = Symbol(name$y);
|
8384
|
+
var stdin_default$E = vue.defineComponent({
|
8385
|
+
name: name$y,
|
8062
8386
|
props: dropdownMenuProps,
|
8063
8387
|
setup(props, {
|
8064
8388
|
slots
|
8065
8389
|
}) {
|
8066
|
-
const id = useId();
|
8390
|
+
const id = useId$1();
|
8067
8391
|
const root = vue.ref();
|
8068
8392
|
const barRef = vue.ref();
|
8069
8393
|
const offset = vue.ref(0);
|
@@ -8126,7 +8450,7 @@ var stdin_default$F = vue.defineComponent({
|
|
8126
8450
|
"id": `${id}-${index}`,
|
8127
8451
|
"role": "button",
|
8128
8452
|
"tabindex": disabled ? void 0 : 0,
|
8129
|
-
"class": [bem$
|
8453
|
+
"class": [bem$y("item", {
|
8130
8454
|
disabled
|
8131
8455
|
}), {
|
8132
8456
|
[HAPTICS_FEEDBACK]: !disabled
|
@@ -8137,7 +8461,7 @@ var stdin_default$F = vue.defineComponent({
|
|
8137
8461
|
}
|
8138
8462
|
}
|
8139
8463
|
}, [vue.createVNode("span", {
|
8140
|
-
"class": [bem$
|
8464
|
+
"class": [bem$y("title", {
|
8141
8465
|
down: showPopup === (props.direction === "down"),
|
8142
8466
|
active: showPopup
|
8143
8467
|
}), titleClass],
|
@@ -8161,18 +8485,18 @@ var stdin_default$F = vue.defineComponent({
|
|
8161
8485
|
var _a;
|
8162
8486
|
return vue.createVNode("div", {
|
8163
8487
|
"ref": root,
|
8164
|
-
"class": bem$
|
8488
|
+
"class": bem$y()
|
8165
8489
|
}, [vue.createVNode("div", {
|
8166
8490
|
"ref": barRef,
|
8167
8491
|
"style": barStyle.value,
|
8168
|
-
"class": bem$
|
8492
|
+
"class": bem$y("bar", {
|
8169
8493
|
opened: opened.value
|
8170
8494
|
})
|
8171
8495
|
}, [children.map(renderTitle)]), (_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
8172
8496
|
};
|
8173
8497
|
}
|
8174
8498
|
});
|
8175
|
-
const [name$
|
8499
|
+
const [name$x, bem$x] = createNamespace("dropdown-item");
|
8176
8500
|
const dropdownItemProps = {
|
8177
8501
|
title: String,
|
8178
8502
|
options: makeArrayProp(),
|
@@ -8182,8 +8506,8 @@ const dropdownItemProps = {
|
|
8182
8506
|
modelValue: unknownProp,
|
8183
8507
|
titleClass: unknownProp
|
8184
8508
|
};
|
8185
|
-
var stdin_default$
|
8186
|
-
name: name$
|
8509
|
+
var stdin_default$D = vue.defineComponent({
|
8510
|
+
name: name$x,
|
8187
8511
|
props: dropdownItemProps,
|
8188
8512
|
emits: ["open", "opened", "close", "closed", "change", "update:modelValue"],
|
8189
8513
|
setup(props, {
|
@@ -8250,7 +8574,7 @@ var stdin_default$E = vue.defineComponent({
|
|
8250
8574
|
const renderIcon = () => {
|
8251
8575
|
if (active) {
|
8252
8576
|
return vue.createVNode(Icon, {
|
8253
|
-
"class": bem$
|
8577
|
+
"class": bem$x("icon"),
|
8254
8578
|
"color": activeColor,
|
8255
8579
|
"name": "success"
|
8256
8580
|
}, null);
|
@@ -8261,7 +8585,7 @@ var stdin_default$E = vue.defineComponent({
|
|
8261
8585
|
"key": option.value,
|
8262
8586
|
"icon": option.icon,
|
8263
8587
|
"title": option.text,
|
8264
|
-
"class": bem$
|
8588
|
+
"class": bem$x("option", {
|
8265
8589
|
active
|
8266
8590
|
}),
|
8267
8591
|
"style": {
|
@@ -8293,13 +8617,13 @@ var stdin_default$E = vue.defineComponent({
|
|
8293
8617
|
}
|
8294
8618
|
return vue.withDirectives(vue.createVNode("div", {
|
8295
8619
|
"style": style,
|
8296
|
-
"class": bem$
|
8620
|
+
"class": bem$x([direction]),
|
8297
8621
|
"onClick": onClickWrapper
|
8298
8622
|
}, [vue.createVNode(Popup, {
|
8299
8623
|
"show": state.showPopup,
|
8300
8624
|
"onUpdate:show": ($event) => state.showPopup = $event,
|
8301
8625
|
"role": "menu",
|
8302
|
-
"class": bem$
|
8626
|
+
"class": bem$x("content"),
|
8303
8627
|
"overlay": overlay,
|
8304
8628
|
"position": direction === "down" ? "top" : "bottom",
|
8305
8629
|
"duration": state.transition ? duration : 0,
|
@@ -8337,147 +8661,8 @@ var stdin_default$E = vue.defineComponent({
|
|
8337
8661
|
};
|
8338
8662
|
}
|
8339
8663
|
});
|
8340
|
-
const DropdownItem = withInstall(stdin_default$
|
8341
|
-
const DropdownMenu = withInstall(stdin_default$
|
8342
|
-
const prefix = "van-empty-network-";
|
8343
|
-
const renderStop = (color, offset, opacity) => vue.createVNode("stop", {
|
8344
|
-
"stop-color": color,
|
8345
|
-
"offset": `${offset}%`,
|
8346
|
-
"stop-opacity": opacity
|
8347
|
-
}, null);
|
8348
|
-
const Network = vue.createVNode("svg", {
|
8349
|
-
"viewBox": "0 0 160 160"
|
8350
|
-
}, [vue.createVNode("defs", null, [vue.createVNode("linearGradient", {
|
8351
|
-
"id": `${prefix}1`,
|
8352
|
-
"x1": "64%",
|
8353
|
-
"y1": "100%",
|
8354
|
-
"x2": "64%"
|
8355
|
-
}, [renderStop("#FFF", 0, 0.5), renderStop("#F2F3F5", 100)]), vue.createVNode("linearGradient", {
|
8356
|
-
"id": `${prefix}2`,
|
8357
|
-
"x1": "50%",
|
8358
|
-
"x2": "50%",
|
8359
|
-
"y2": "84%"
|
8360
|
-
}, [renderStop("#EBEDF0", 0), renderStop("#DCDEE0", 100, 0)]), vue.createVNode("linearGradient", {
|
8361
|
-
"id": `${prefix}3`,
|
8362
|
-
"x1": "100%",
|
8363
|
-
"x2": "100%",
|
8364
|
-
"y2": "100%"
|
8365
|
-
}, [renderStop("#EAEDF0", 0), renderStop("#DCDEE0", 100)]), vue.createVNode("radialGradient", {
|
8366
|
-
"id": `${prefix}4`,
|
8367
|
-
"cx": "50%",
|
8368
|
-
"cy": "0%",
|
8369
|
-
"fx": "50%",
|
8370
|
-
"fy": "0%",
|
8371
|
-
"r": "100%",
|
8372
|
-
"gradientTransform": "matrix(0 1 -.54 0 .5 -.5)"
|
8373
|
-
}, [renderStop("#EBEDF0", 0), renderStop("#FFF", 100, 0)])]), vue.createVNode("g", {
|
8374
|
-
"fill": "none"
|
8375
|
-
}, [vue.createVNode("g", {
|
8376
|
-
"opacity": ".8"
|
8377
|
-
}, [vue.createVNode("path", {
|
8378
|
-
"d": "M36 131V53H16v20H2v58h34z",
|
8379
|
-
"fill": `url(#${prefix}1)`
|
8380
|
-
}, null), vue.createVNode("path", {
|
8381
|
-
"d": "M123 15h22v14h9v77h-31V15z",
|
8382
|
-
"fill": `url(#${prefix}1)`
|
8383
|
-
}, null)]), vue.createVNode("path", {
|
8384
|
-
"fill": `url(#${prefix}4)`,
|
8385
|
-
"d": "M0 139h160v21H0z"
|
8386
|
-
}, null), vue.createVNode("path", {
|
8387
|
-
"d": "M80 54a7 7 0 0 1 3 13v27l-2 2h-2a2 2 0 0 1-2-2V67a7 7 0 0 1 3-13z",
|
8388
|
-
"fill": `url(#${prefix}2)`
|
8389
|
-
}, null), vue.createVNode("g", {
|
8390
|
-
"opacity": ".6",
|
8391
|
-
"stroke-linecap": "round",
|
8392
|
-
"stroke-width": "7"
|
8393
|
-
}, [vue.createVNode("path", {
|
8394
|
-
"d": "M64 47a19 19 0 0 0-5 13c0 5 2 10 5 13",
|
8395
|
-
"stroke": `url(#${prefix}3)`
|
8396
|
-
}, null), vue.createVNode("path", {
|
8397
|
-
"d": "M53 36a34 34 0 0 0 0 48",
|
8398
|
-
"stroke": `url(#${prefix}3)`
|
8399
|
-
}, null), vue.createVNode("path", {
|
8400
|
-
"d": "M95 73a19 19 0 0 0 6-13c0-5-2-9-6-13",
|
8401
|
-
"stroke": `url(#${prefix}3)`
|
8402
|
-
}, null), vue.createVNode("path", {
|
8403
|
-
"d": "M106 84a34 34 0 0 0 0-48",
|
8404
|
-
"stroke": `url(#${prefix}3)`
|
8405
|
-
}, null)]), vue.createVNode("g", {
|
8406
|
-
"transform": "translate(31 105)"
|
8407
|
-
}, [vue.createVNode("rect", {
|
8408
|
-
"fill": "#EBEDF0",
|
8409
|
-
"width": "98",
|
8410
|
-
"height": "34",
|
8411
|
-
"rx": "2"
|
8412
|
-
}, null), vue.createVNode("rect", {
|
8413
|
-
"fill": "#FFF",
|
8414
|
-
"x": "9",
|
8415
|
-
"y": "8",
|
8416
|
-
"width": "80",
|
8417
|
-
"height": "18",
|
8418
|
-
"rx": "1.1"
|
8419
|
-
}, null), vue.createVNode("rect", {
|
8420
|
-
"fill": "#EBEDF0",
|
8421
|
-
"x": "15",
|
8422
|
-
"y": "12",
|
8423
|
-
"width": "18",
|
8424
|
-
"height": "6",
|
8425
|
-
"rx": "1.1"
|
8426
|
-
}, null)])])]);
|
8427
|
-
const [name$x, bem$x] = createNamespace("empty");
|
8428
|
-
const PRESET_IMAGES = ["error", "search", "default"];
|
8429
|
-
const emptyProps = {
|
8430
|
-
image: makeStringProp("default"),
|
8431
|
-
imageSize: numericProp,
|
8432
|
-
description: String
|
8433
|
-
};
|
8434
|
-
var stdin_default$D = vue.defineComponent({
|
8435
|
-
name: name$x,
|
8436
|
-
props: emptyProps,
|
8437
|
-
setup(props, {
|
8438
|
-
slots
|
8439
|
-
}) {
|
8440
|
-
const renderImage = () => {
|
8441
|
-
if (slots.image) {
|
8442
|
-
return slots.image();
|
8443
|
-
}
|
8444
|
-
let {
|
8445
|
-
image
|
8446
|
-
} = props;
|
8447
|
-
if (image === "network") {
|
8448
|
-
return Network;
|
8449
|
-
}
|
8450
|
-
if (PRESET_IMAGES.includes(image)) {
|
8451
|
-
image = `https://img.yzcdn.cn/vant/empty-image-${image}.png`;
|
8452
|
-
}
|
8453
|
-
return vue.createVNode("img", {
|
8454
|
-
"src": image
|
8455
|
-
}, null);
|
8456
|
-
};
|
8457
|
-
const renderDescription = () => {
|
8458
|
-
const description = slots.description ? slots.description() : props.description;
|
8459
|
-
if (description) {
|
8460
|
-
return vue.createVNode("p", {
|
8461
|
-
"class": bem$x("description")
|
8462
|
-
}, [description]);
|
8463
|
-
}
|
8464
|
-
};
|
8465
|
-
const renderBottom = () => {
|
8466
|
-
if (slots.default) {
|
8467
|
-
return vue.createVNode("div", {
|
8468
|
-
"class": bem$x("bottom")
|
8469
|
-
}, [slots.default()]);
|
8470
|
-
}
|
8471
|
-
};
|
8472
|
-
return () => vue.createVNode("div", {
|
8473
|
-
"class": bem$x()
|
8474
|
-
}, [vue.createVNode("div", {
|
8475
|
-
"class": bem$x("image"),
|
8476
|
-
"style": getSizeStyle(props.imageSize)
|
8477
|
-
}, [renderImage()]), renderDescription(), renderBottom()]);
|
8478
|
-
}
|
8479
|
-
});
|
8480
|
-
const Empty = withInstall(stdin_default$D);
|
8664
|
+
const DropdownItem = withInstall(stdin_default$D);
|
8665
|
+
const DropdownMenu = withInstall(stdin_default$E);
|
8481
8666
|
const [name$w, bem$w] = createNamespace("grid");
|
8482
8667
|
const gridProps = {
|
8483
8668
|
square: Boolean,
|
@@ -9971,6 +10156,15 @@ const numberKeyboardProps = {
|
|
9971
10156
|
default: ""
|
9972
10157
|
}
|
9973
10158
|
};
|
10159
|
+
function shuffle(array) {
|
10160
|
+
for (let i = array.length - 1; i > 0; i--) {
|
10161
|
+
const j = Math.floor(Math.random() * (i + 1));
|
10162
|
+
const temp = array[i];
|
10163
|
+
array[i] = array[j];
|
10164
|
+
array[j] = temp;
|
10165
|
+
}
|
10166
|
+
return array;
|
10167
|
+
}
|
9974
10168
|
var stdin_default$r = vue.defineComponent({
|
9975
10169
|
name: name$m,
|
9976
10170
|
props: numberKeyboardProps,
|
@@ -9985,7 +10179,7 @@ var stdin_default$r = vue.defineComponent({
|
|
9985
10179
|
text: i + 1
|
9986
10180
|
}));
|
9987
10181
|
if (props.randomKeyOrder) {
|
9988
|
-
keys2
|
10182
|
+
shuffle(keys2);
|
9989
10183
|
}
|
9990
10184
|
return keys2;
|
9991
10185
|
};
|
@@ -10840,33 +11034,53 @@ var stdin_default$l = vue.defineComponent({
|
|
10840
11034
|
}) {
|
10841
11035
|
const touch = useTouch();
|
10842
11036
|
const [itemRefs, setItemRefs] = useRefs();
|
11037
|
+
const groupRef = vue.ref();
|
10843
11038
|
const untouchable = () => props.readonly || props.disabled || !props.touchable;
|
10844
11039
|
const list = vue.computed(() => Array(+props.count).fill("").map((_, i) => getRateStatus(props.modelValue, i + 1, props.allowHalf, props.readonly)));
|
10845
11040
|
let ranges;
|
11041
|
+
let groupRefRect;
|
11042
|
+
let minRectTop = Number.MAX_SAFE_INTEGER;
|
11043
|
+
let maxRectTop = Number.MIN_SAFE_INTEGER;
|
10846
11044
|
const updateRanges = () => {
|
11045
|
+
groupRefRect = use.useRect(groupRef);
|
10847
11046
|
const rects = itemRefs.value.map(use.useRect);
|
10848
11047
|
ranges = [];
|
10849
11048
|
rects.forEach((rect, index) => {
|
11049
|
+
minRectTop = Math.min(rect.top, minRectTop);
|
11050
|
+
maxRectTop = Math.max(rect.top, maxRectTop);
|
10850
11051
|
if (props.allowHalf) {
|
10851
11052
|
ranges.push({
|
10852
11053
|
score: index + 0.5,
|
10853
|
-
left: rect.left
|
11054
|
+
left: rect.left,
|
11055
|
+
top: rect.top,
|
11056
|
+
height: rect.height
|
10854
11057
|
}, {
|
10855
11058
|
score: index + 1,
|
10856
|
-
left: rect.left + rect.width / 2
|
11059
|
+
left: rect.left + rect.width / 2,
|
11060
|
+
top: rect.top,
|
11061
|
+
height: rect.height
|
10857
11062
|
});
|
10858
11063
|
} else {
|
10859
11064
|
ranges.push({
|
10860
11065
|
score: index + 1,
|
10861
|
-
left: rect.left
|
11066
|
+
left: rect.left,
|
11067
|
+
top: rect.top,
|
11068
|
+
height: rect.height
|
10862
11069
|
});
|
10863
11070
|
}
|
10864
11071
|
});
|
10865
11072
|
};
|
10866
|
-
const getScoreByPosition = (x) => {
|
11073
|
+
const getScoreByPosition = (x, y) => {
|
10867
11074
|
for (let i = ranges.length - 1; i > 0; i--) {
|
10868
|
-
if (
|
10869
|
-
|
11075
|
+
if (y >= groupRefRect.top && y <= groupRefRect.bottom) {
|
11076
|
+
if (x > ranges[i].left && y >= ranges[i].top && y <= ranges[i].top + ranges[i].height) {
|
11077
|
+
return ranges[i].score;
|
11078
|
+
}
|
11079
|
+
} else {
|
11080
|
+
const curTop = y < groupRefRect.top ? minRectTop : maxRectTop;
|
11081
|
+
if (x > ranges[i].left && ranges[i].top === curTop) {
|
11082
|
+
return ranges[i].score;
|
11083
|
+
}
|
10870
11084
|
}
|
10871
11085
|
}
|
10872
11086
|
return props.allowHalf ? 0.5 : 1;
|
@@ -10891,10 +11105,11 @@ var stdin_default$l = vue.defineComponent({
|
|
10891
11105
|
touch.move(event);
|
10892
11106
|
if (touch.isHorizontal()) {
|
10893
11107
|
const {
|
10894
|
-
clientX
|
11108
|
+
clientX,
|
11109
|
+
clientY
|
10895
11110
|
} = event.touches[0];
|
10896
11111
|
preventDefault(event);
|
10897
|
-
select(getScoreByPosition(clientX));
|
11112
|
+
select(getScoreByPosition(clientX, clientY));
|
10898
11113
|
}
|
10899
11114
|
};
|
10900
11115
|
const renderStar = (item, index) => {
|
@@ -10923,7 +11138,7 @@ var stdin_default$l = vue.defineComponent({
|
|
10923
11138
|
}
|
10924
11139
|
const onClickItem = (event) => {
|
10925
11140
|
updateRanges();
|
10926
|
-
select(allowHalf ? getScoreByPosition(event.clientX) : score);
|
11141
|
+
select(allowHalf ? getScoreByPosition(event.clientX, event.clientY) : score);
|
10927
11142
|
};
|
10928
11143
|
return vue.createVNode("div", {
|
10929
11144
|
"key": index,
|
@@ -10961,6 +11176,7 @@ var stdin_default$l = vue.defineComponent({
|
|
10961
11176
|
};
|
10962
11177
|
use.useCustomFieldValue(() => props.modelValue);
|
10963
11178
|
return () => vue.createVNode("div", {
|
11179
|
+
"ref": groupRef,
|
10964
11180
|
"role": "radiogroup",
|
10965
11181
|
"class": bem$f({
|
10966
11182
|
readonly: props.readonly,
|
@@ -10995,7 +11211,7 @@ var stdin_default$k = vue.defineComponent({
|
|
10995
11211
|
slots,
|
10996
11212
|
attrs
|
10997
11213
|
}) {
|
10998
|
-
const id = useId();
|
11214
|
+
const id = useId$1();
|
10999
11215
|
const filedRef = vue.ref();
|
11000
11216
|
const onCancel = () => {
|
11001
11217
|
if (!slots.action) {
|
@@ -11085,14 +11301,17 @@ var stdin_default$k = vue.defineComponent({
|
|
11085
11301
|
}
|
11086
11302
|
});
|
11087
11303
|
const Search = withInstall(stdin_default$k);
|
11088
|
-
const PRESET_ICONS = ["qq", "link", "weibo", "wechat", "poster", "qrcode", "weapp-qrcode", "wechat-moments"];
|
11089
11304
|
const popupInheritKeys = [...popupSharedPropKeys, "round", "closeOnPopstate", "safeAreaInsetBottom"];
|
11090
|
-
|
11091
|
-
|
11092
|
-
|
11093
|
-
|
11094
|
-
|
11095
|
-
|
11305
|
+
const iconMap = {
|
11306
|
+
qq: "qq",
|
11307
|
+
link: "link-o",
|
11308
|
+
weibo: "weibo",
|
11309
|
+
qrcode: "qr",
|
11310
|
+
poster: "photo-o",
|
11311
|
+
wechat: "wechat",
|
11312
|
+
"weapp-qrcode": "miniprogram-o",
|
11313
|
+
"wechat-moments": "wechat-moments"
|
11314
|
+
};
|
11096
11315
|
const [name$e, bem$d, t$2] = createNamespace("share-sheet");
|
11097
11316
|
const shareSheetProps = extend({}, popupSharedProps, {
|
11098
11317
|
title: String,
|
@@ -11130,6 +11349,19 @@ var stdin_default$j = vue.defineComponent({
|
|
11130
11349
|
}, [description])]);
|
11131
11350
|
}
|
11132
11351
|
};
|
11352
|
+
const renderIcon = (icon) => {
|
11353
|
+
if (iconMap[icon]) {
|
11354
|
+
return vue.createVNode("div", {
|
11355
|
+
"class": bem$d("icon", [icon])
|
11356
|
+
}, [vue.createVNode(Icon, {
|
11357
|
+
"name": iconMap[icon] || icon
|
11358
|
+
}, null)]);
|
11359
|
+
}
|
11360
|
+
return vue.createVNode("img", {
|
11361
|
+
"src": icon,
|
11362
|
+
"class": bem$d("image-icon")
|
11363
|
+
}, null);
|
11364
|
+
};
|
11133
11365
|
const renderOption = (option, index) => {
|
11134
11366
|
const {
|
11135
11367
|
name: name2,
|
@@ -11142,10 +11374,7 @@ var stdin_default$j = vue.defineComponent({
|
|
11142
11374
|
"tabindex": 0,
|
11143
11375
|
"class": [bem$d("option"), className, HAPTICS_FEEDBACK],
|
11144
11376
|
"onClick": () => onSelect(option, index)
|
11145
|
-
}, [vue.createVNode("
|
11146
|
-
"src": getIconURL(icon),
|
11147
|
-
"class": bem$d("icon")
|
11148
|
-
}, null), name2 && vue.createVNode("span", {
|
11377
|
+
}, [renderIcon(icon), name2 && vue.createVNode("span", {
|
11149
11378
|
"class": bem$d("name")
|
11150
11379
|
}, [name2]), description && vue.createVNode("span", {
|
11151
11380
|
"class": bem$d("option-description")
|
@@ -12600,7 +12829,6 @@ var stdin_default$6 = vue.defineComponent({
|
|
12600
12829
|
});
|
12601
12830
|
const TreeSelect = withInstall(stdin_default$6);
|
12602
12831
|
const [name, bem, t] = createNamespace("uploader");
|
12603
|
-
const toArray = (item) => Array.isArray(item) ? item : [item];
|
12604
12832
|
function readFileContent(file, resultType) {
|
12605
12833
|
return new Promise((resolve) => {
|
12606
12834
|
if (resultType === "file") {
|
@@ -12666,7 +12894,7 @@ var stdin_default$5 = vue.defineComponent({
|
|
12666
12894
|
imageFit: String,
|
12667
12895
|
lazyLoad: Boolean,
|
12668
12896
|
deletable: Boolean,
|
12669
|
-
previewSize:
|
12897
|
+
previewSize: [Number, String, Array],
|
12670
12898
|
beforeDelete: Function
|
12671
12899
|
},
|
12672
12900
|
emits: ["delete", "preview"],
|
@@ -12713,13 +12941,16 @@ var stdin_default$5 = vue.defineComponent({
|
|
12713
12941
|
const onPreview = () => emit("preview");
|
12714
12942
|
const renderDeleteIcon = () => {
|
12715
12943
|
if (props.deletable && props.item.status !== "uploading") {
|
12944
|
+
const slot = slots["preview-delete"];
|
12716
12945
|
return vue.createVNode("div", {
|
12717
12946
|
"role": "button",
|
12718
|
-
"class": bem("preview-delete"
|
12947
|
+
"class": bem("preview-delete", {
|
12948
|
+
shadow: !slot
|
12949
|
+
}),
|
12719
12950
|
"tabindex": 0,
|
12720
12951
|
"aria-label": t("delete"),
|
12721
12952
|
"onClick": onDelete
|
12722
|
-
}, [vue.createVNode(Icon, {
|
12953
|
+
}, [slot ? slot() : vue.createVNode(Icon, {
|
12723
12954
|
"name": "cross",
|
12724
12955
|
"class": bem("preview-delete-icon")
|
12725
12956
|
}, null)]);
|
@@ -12740,16 +12971,19 @@ var stdin_default$5 = vue.defineComponent({
|
|
12740
12971
|
};
|
12741
12972
|
const renderPreview = () => {
|
12742
12973
|
const {
|
12743
|
-
item
|
12974
|
+
item,
|
12975
|
+
lazyLoad,
|
12976
|
+
imageFit,
|
12977
|
+
previewSize
|
12744
12978
|
} = props;
|
12745
12979
|
if (isImageFile(item)) {
|
12746
12980
|
return vue.createVNode(Image$1, {
|
12747
|
-
"fit":
|
12981
|
+
"fit": imageFit,
|
12748
12982
|
"src": item.content || item.url,
|
12749
12983
|
"class": bem("preview-image"),
|
12750
|
-
"width":
|
12751
|
-
"height":
|
12752
|
-
"lazyLoad":
|
12984
|
+
"width": Array.isArray(previewSize) ? previewSize[0] : previewSize,
|
12985
|
+
"height": Array.isArray(previewSize) ? previewSize[1] : previewSize,
|
12986
|
+
"lazyLoad": lazyLoad,
|
12753
12987
|
"onClick": onPreview
|
12754
12988
|
}, {
|
12755
12989
|
default: renderCover
|
@@ -12789,7 +13023,7 @@ const uploaderProps = {
|
|
12789
13023
|
modelValue: makeArrayProp(),
|
12790
13024
|
beforeRead: Function,
|
12791
13025
|
beforeDelete: Function,
|
12792
|
-
previewSize:
|
13026
|
+
previewSize: [Number, String, Array],
|
12793
13027
|
previewImage: truthProp,
|
12794
13028
|
previewOptions: Object,
|
12795
13029
|
previewFullImage: truthProp,
|
@@ -12943,9 +13177,7 @@ var stdin_default$4 = vue.defineComponent({
|
|
12943
13177
|
"onClick": () => emit("clickPreview", item, getDetail(index)),
|
12944
13178
|
"onDelete": () => deleteFile(item, index),
|
12945
13179
|
"onPreview": () => previewImage(item)
|
12946
|
-
}, pick(props, ["name", "lazyLoad"]), previewData),
|
12947
|
-
"preview-cover": slots["preview-cover"]
|
12948
|
-
});
|
13180
|
+
}, pick(props, ["name", "lazyLoad"]), previewData), pick(slots, ["preview-cover", "preview-delete"]));
|
12949
13181
|
};
|
12950
13182
|
const renderPreviewList = () => {
|
12951
13183
|
if (props.previewImage) {
|
@@ -13856,7 +14088,7 @@ const Lazyload = {
|
|
13856
14088
|
});
|
13857
14089
|
}
|
13858
14090
|
};
|
13859
|
-
const version = "4.0.0-alpha.
|
14091
|
+
const version = "4.0.0-alpha.4";
|
13860
14092
|
function install(app) {
|
13861
14093
|
const components = [
|
13862
14094
|
ActionBar,
|