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.es.min.js
CHANGED
@@ -23,6 +23,7 @@ function pick(obj, keys, ignoreUndefined) {
|
|
23
23
|
}, {});
|
24
24
|
}
|
25
25
|
const isSameValue = (newValue, oldValue) => JSON.stringify(newValue) === JSON.stringify(oldValue);
|
26
|
+
const toArray = (item) => Array.isArray(item) ? item : [item];
|
26
27
|
const unknownProp = null;
|
27
28
|
const numericProp = [Number, String];
|
28
29
|
const truthProp = {
|
@@ -119,6 +120,12 @@ function addUnit(value) {
|
|
119
120
|
}
|
120
121
|
function getSizeStyle(originSize) {
|
121
122
|
if (isDef(originSize)) {
|
123
|
+
if (Array.isArray(originSize)) {
|
124
|
+
return {
|
125
|
+
width: addUnit(originSize[0]),
|
126
|
+
height: addUnit(originSize[1])
|
127
|
+
};
|
128
|
+
}
|
122
129
|
const size = addUnit(originSize);
|
123
130
|
return {
|
124
131
|
width: size,
|
@@ -280,10 +287,8 @@ var stdin_default$1C = {
|
|
280
287
|
},
|
281
288
|
vanAddressEdit: {
|
282
289
|
area: "\u5730\u533A",
|
283
|
-
postal: "\u90AE\u653F\u7F16\u7801",
|
284
290
|
areaEmpty: "\u8BF7\u9009\u62E9\u5730\u533A",
|
285
291
|
addressEmpty: "\u8BF7\u586B\u5199\u8BE6\u7EC6\u5730\u5740",
|
286
|
-
postalEmpty: "\u90AE\u653F\u7F16\u7801\u4E0D\u6B63\u786E",
|
287
292
|
addressDetail: "\u8BE6\u7EC6\u5730\u5740",
|
288
293
|
defaultAddress: "\u8BBE\u4E3A\u9ED8\u8BA4\u6536\u8D27\u5730\u5740"
|
289
294
|
},
|
@@ -309,10 +314,10 @@ const Locale = {
|
|
309
314
|
};
|
310
315
|
var stdin_default$1B = Locale;
|
311
316
|
function createTranslate(name2) {
|
312
|
-
const
|
317
|
+
const prefix = camelize(name2) + ".";
|
313
318
|
return (path, ...args) => {
|
314
319
|
const messages2 = stdin_default$1B.messages();
|
315
|
-
const message = get(messages2,
|
320
|
+
const message = get(messages2, prefix + path) || get(messages2, path);
|
316
321
|
return isFunction(message) ? message(...args) : message;
|
317
322
|
};
|
318
323
|
}
|
@@ -678,7 +683,9 @@ var stdin_default$1w = defineComponent({
|
|
678
683
|
return createVNode("div", {
|
679
684
|
"class": bem$1l([type, {
|
680
685
|
vertical
|
681
|
-
}])
|
686
|
+
}]),
|
687
|
+
"aria-live": "polite",
|
688
|
+
"aria-busy": true
|
682
689
|
}, [createVNode("span", {
|
683
690
|
"class": bem$1l("spinner", type),
|
684
691
|
"style": spinnerStyle.value
|
@@ -996,7 +1003,7 @@ function useTouch() {
|
|
996
1003
|
};
|
997
1004
|
const move = (event) => {
|
998
1005
|
const touch = event.touches[0];
|
999
|
-
deltaX.value = touch.clientX < 0 ? 0 : touch.clientX - startX.value;
|
1006
|
+
deltaX.value = (touch.clientX < 0 ? 0 : touch.clientX) - startX.value;
|
1000
1007
|
deltaY.value = touch.clientY - startY.value;
|
1001
1008
|
offsetX.value = Math.abs(deltaX.value);
|
1002
1009
|
offsetY.value = Math.abs(deltaY.value);
|
@@ -2144,9 +2151,12 @@ const formProps = {
|
|
2144
2151
|
scrollToError: Boolean,
|
2145
2152
|
validateFirst: Boolean,
|
2146
2153
|
submitOnEnter: truthProp,
|
2147
|
-
validateTrigger: makeStringProp("onBlur"),
|
2148
2154
|
showErrorMessage: truthProp,
|
2149
|
-
errorMessageAlign: String
|
2155
|
+
errorMessageAlign: String,
|
2156
|
+
validateTrigger: {
|
2157
|
+
type: [String, Array],
|
2158
|
+
default: "onBlur"
|
2159
|
+
}
|
2150
2160
|
};
|
2151
2161
|
var stdin_default$1l = defineComponent({
|
2152
2162
|
name: name$1e,
|
@@ -2226,6 +2236,10 @@ var stdin_default$1l = defineComponent({
|
|
2226
2236
|
item.resetValidation();
|
2227
2237
|
});
|
2228
2238
|
};
|
2239
|
+
const getValidationStatus = () => children.reduce((form, field) => {
|
2240
|
+
form[field.name] = field.getValidationStatus();
|
2241
|
+
return form;
|
2242
|
+
}, {});
|
2229
2243
|
const scrollToField = (name2, options) => {
|
2230
2244
|
children.some((item) => {
|
2231
2245
|
if (item.name === name2) {
|
@@ -2261,8 +2275,10 @@ var stdin_default$1l = defineComponent({
|
|
2261
2275
|
useExpose({
|
2262
2276
|
submit,
|
2263
2277
|
validate,
|
2278
|
+
getValues,
|
2264
2279
|
scrollToField,
|
2265
|
-
resetValidation
|
2280
|
+
resetValidation,
|
2281
|
+
getValidationStatus
|
2266
2282
|
});
|
2267
2283
|
return () => {
|
2268
2284
|
var _a;
|
@@ -2358,7 +2374,7 @@ function cutString(str, maxlength) {
|
|
2358
2374
|
return [...str].slice(0, maxlength).join("");
|
2359
2375
|
}
|
2360
2376
|
let current = 0;
|
2361
|
-
function useId() {
|
2377
|
+
function useId$1() {
|
2362
2378
|
const vm = getCurrentInstance();
|
2363
2379
|
const { name: name2 = "unknown" } = (vm == null ? void 0 : vm.type) || {};
|
2364
2380
|
return `${name2}-${++current}`;
|
@@ -2379,6 +2395,7 @@ const fieldSharedProps = {
|
|
2379
2395
|
placeholder: String,
|
2380
2396
|
autocomplete: String,
|
2381
2397
|
errorMessage: String,
|
2398
|
+
enterkeyhint: String,
|
2382
2399
|
clearTrigger: makeStringProp("focus"),
|
2383
2400
|
formatTrigger: makeStringProp("onChange"),
|
2384
2401
|
error: {
|
@@ -2417,10 +2434,10 @@ var stdin_default$1k = defineComponent({
|
|
2417
2434
|
emit,
|
2418
2435
|
slots
|
2419
2436
|
}) {
|
2420
|
-
const id = useId();
|
2437
|
+
const id = useId$1();
|
2421
2438
|
const state = reactive({
|
2439
|
+
status: "unvalidated",
|
2422
2440
|
focused: false,
|
2423
|
-
validateFailed: false,
|
2424
2441
|
validateMessage: ""
|
2425
2442
|
});
|
2426
2443
|
const inputRef = ref();
|
@@ -2456,7 +2473,7 @@ var stdin_default$1k = defineComponent({
|
|
2456
2473
|
return props.modelValue;
|
2457
2474
|
});
|
2458
2475
|
const runRules = (rules) => rules.reduce((promise, rule) => promise.then(() => {
|
2459
|
-
if (state.
|
2476
|
+
if (state.status === "failed") {
|
2460
2477
|
return;
|
2461
2478
|
}
|
2462
2479
|
let {
|
@@ -2466,38 +2483,37 @@ var stdin_default$1k = defineComponent({
|
|
2466
2483
|
value = rule.formatter(value, rule);
|
2467
2484
|
}
|
2468
2485
|
if (!runSyncRule(value, rule)) {
|
2469
|
-
state.
|
2486
|
+
state.status = "failed";
|
2470
2487
|
state.validateMessage = getRuleMessage(value, rule);
|
2471
2488
|
return;
|
2472
2489
|
}
|
2473
2490
|
if (rule.validator) {
|
2474
2491
|
return runRuleValidator(value, rule).then((result) => {
|
2475
2492
|
if (result && typeof result === "string") {
|
2476
|
-
state.
|
2493
|
+
state.status = "failed";
|
2477
2494
|
state.validateMessage = result;
|
2478
2495
|
} else if (result === false) {
|
2479
|
-
state.
|
2496
|
+
state.status = "failed";
|
2480
2497
|
state.validateMessage = getRuleMessage(value, rule);
|
2481
2498
|
}
|
2482
2499
|
});
|
2483
2500
|
}
|
2484
2501
|
}), Promise.resolve());
|
2485
2502
|
const resetValidation = () => {
|
2486
|
-
|
2487
|
-
|
2488
|
-
state.validateMessage = "";
|
2489
|
-
}
|
2503
|
+
state.status = "unvalidated";
|
2504
|
+
state.validateMessage = "";
|
2490
2505
|
};
|
2491
2506
|
const validate = (rules = props.rules) => new Promise((resolve) => {
|
2492
2507
|
resetValidation();
|
2493
2508
|
if (rules) {
|
2494
2509
|
runRules(rules).then(() => {
|
2495
|
-
if (state.
|
2510
|
+
if (state.status === "failed") {
|
2496
2511
|
resolve({
|
2497
2512
|
name: props.name,
|
2498
2513
|
message: state.validateMessage
|
2499
2514
|
});
|
2500
2515
|
} else {
|
2516
|
+
state.status = "passed";
|
2501
2517
|
resolve();
|
2502
2518
|
}
|
2503
2519
|
});
|
@@ -2507,10 +2523,13 @@ var stdin_default$1k = defineComponent({
|
|
2507
2523
|
});
|
2508
2524
|
const validateWithTrigger = (trigger) => {
|
2509
2525
|
if (form && props.rules) {
|
2510
|
-
const
|
2526
|
+
const {
|
2527
|
+
validateTrigger
|
2528
|
+
} = form.props;
|
2529
|
+
const defaultTrigger = toArray(validateTrigger).includes(trigger);
|
2511
2530
|
const rules = props.rules.filter((rule) => {
|
2512
2531
|
if (rule.trigger) {
|
2513
|
-
return rule.trigger
|
2532
|
+
return toArray(rule.trigger).includes(trigger);
|
2514
2533
|
}
|
2515
2534
|
return defaultTrigger;
|
2516
2535
|
});
|
@@ -2598,7 +2617,7 @@ var stdin_default$1k = defineComponent({
|
|
2598
2617
|
if (typeof props.error === "boolean") {
|
2599
2618
|
return props.error;
|
2600
2619
|
}
|
2601
|
-
if (form && form.props.showError && state.
|
2620
|
+
if (form && form.props.showError && state.status === "failed") {
|
2602
2621
|
return true;
|
2603
2622
|
}
|
2604
2623
|
});
|
@@ -2624,6 +2643,7 @@ var stdin_default$1k = defineComponent({
|
|
2624
2643
|
emit("keypress", event);
|
2625
2644
|
};
|
2626
2645
|
const getInputId = () => props.id || `${id}-input`;
|
2646
|
+
const getValidationStatus = () => state.status;
|
2627
2647
|
const renderInput = () => {
|
2628
2648
|
const controlClass = bem$19("control", [getProp("inputAlign"), {
|
2629
2649
|
error: showError.value,
|
@@ -2642,12 +2662,12 @@ var stdin_default$1k = defineComponent({
|
|
2642
2662
|
name: props.name,
|
2643
2663
|
rows: props.rows !== void 0 ? +props.rows : void 0,
|
2644
2664
|
class: controlClass,
|
2645
|
-
value: props.modelValue,
|
2646
2665
|
disabled: getProp("disabled"),
|
2647
2666
|
readonly: getProp("readonly"),
|
2648
2667
|
autofocus: props.autofocus,
|
2649
2668
|
placeholder: props.placeholder,
|
2650
2669
|
autocomplete: props.autocomplete,
|
2670
|
+
enterkeyhint: props.enterkeyhint,
|
2651
2671
|
"aria-labelledby": props.label ? `${id}-label` : void 0,
|
2652
2672
|
onBlur,
|
2653
2673
|
onFocus,
|
@@ -2738,7 +2758,8 @@ var stdin_default$1k = defineComponent({
|
|
2738
2758
|
focus,
|
2739
2759
|
validate,
|
2740
2760
|
formValue,
|
2741
|
-
resetValidation
|
2761
|
+
resetValidation,
|
2762
|
+
getValidationStatus
|
2742
2763
|
});
|
2743
2764
|
provide(CUSTOM_FIELD_INJECTION_KEY, {
|
2744
2765
|
customValue,
|
@@ -3097,7 +3118,8 @@ var stdin_default$1i = defineComponent({
|
|
3097
3118
|
props: switchProps,
|
3098
3119
|
emits: ["change", "update:modelValue"],
|
3099
3120
|
setup(props, {
|
3100
|
-
emit
|
3121
|
+
emit,
|
3122
|
+
slots
|
3101
3123
|
}) {
|
3102
3124
|
const isChecked = () => props.modelValue === props.activeValue;
|
3103
3125
|
const onClick = () => {
|
@@ -3115,6 +3137,9 @@ var stdin_default$1i = defineComponent({
|
|
3115
3137
|
"color": color
|
3116
3138
|
}, null);
|
3117
3139
|
}
|
3140
|
+
if (slots.node) {
|
3141
|
+
return slots.node();
|
3142
|
+
}
|
3118
3143
|
};
|
3119
3144
|
useCustomFieldValue(() => props.modelValue);
|
3120
3145
|
return () => {
|
@@ -3226,10 +3251,8 @@ const DEFAULT_DATA = {
|
|
3226
3251
|
province: "",
|
3227
3252
|
areaCode: "",
|
3228
3253
|
isDefault: false,
|
3229
|
-
postalCode: "",
|
3230
3254
|
addressDetail: ""
|
3231
3255
|
};
|
3232
|
-
const isPostal = (value) => /^\d{6}$/.test(value);
|
3233
3256
|
const addressEditProps = {
|
3234
3257
|
areaList: Object,
|
3235
3258
|
isSaving: Boolean,
|
@@ -3238,7 +3261,6 @@ const addressEditProps = {
|
|
3238
3261
|
showArea: truthProp,
|
3239
3262
|
showDetail: truthProp,
|
3240
3263
|
showDelete: Boolean,
|
3241
|
-
showPostal: Boolean,
|
3242
3264
|
disableArea: Boolean,
|
3243
3265
|
searchResult: Array,
|
3244
3266
|
telMaxlength: numericProp,
|
@@ -3257,10 +3279,6 @@ const addressEditProps = {
|
|
3257
3279
|
telValidator: {
|
3258
3280
|
type: Function,
|
3259
3281
|
default: isMobile
|
3260
|
-
},
|
3261
|
-
postalValidator: {
|
3262
|
-
type: Function,
|
3263
|
-
default: isPostal
|
3264
3282
|
}
|
3265
3283
|
};
|
3266
3284
|
var stdin_default$1g = defineComponent({
|
@@ -3303,8 +3321,7 @@ var stdin_default$1g = defineComponent({
|
|
3303
3321
|
const rules = computed(() => {
|
3304
3322
|
const {
|
3305
3323
|
validator,
|
3306
|
-
telValidator
|
3307
|
-
postalValidator
|
3324
|
+
telValidator
|
3308
3325
|
} = props;
|
3309
3326
|
const makeRule = (name2, emptyMessage) => ({
|
3310
3327
|
validator: (value) => {
|
@@ -3327,11 +3344,7 @@ var stdin_default$1g = defineComponent({
|
|
3327
3344
|
message: t$h("telInvalid")
|
3328
3345
|
}],
|
3329
3346
|
areaCode: [makeRule("areaCode", t$h("areaEmpty"))],
|
3330
|
-
addressDetail: [makeRule("addressDetail", t$h("addressEmpty"))]
|
3331
|
-
postalCode: [makeRule("addressDetail", t$h("postalEmpty")), {
|
3332
|
-
validator: postalValidator,
|
3333
|
-
message: t$h("postalEmpty")
|
3334
|
-
}]
|
3347
|
+
addressDetail: [makeRule("addressDetail", t$h("addressEmpty"))]
|
3335
3348
|
};
|
3336
3349
|
});
|
3337
3350
|
const onSave = () => emit("save", data);
|
@@ -3456,16 +3469,7 @@ var stdin_default$1g = defineComponent({
|
|
3456
3469
|
"onFocus": () => onFocus("addressDetail"),
|
3457
3470
|
"onInput": onChangeDetail,
|
3458
3471
|
"onSelectSearch": (event) => emit("selectSearch", event)
|
3459
|
-
}, null),
|
3460
|
-
"modelValue": data.postalCode,
|
3461
|
-
"onUpdate:modelValue": ($event) => data.postalCode = $event,
|
3462
|
-
"type": "tel",
|
3463
|
-
"rules": rules.value.postalCode,
|
3464
|
-
"label": t$h("postal"),
|
3465
|
-
"maxlength": "6",
|
3466
|
-
"placeholder": t$h("postal"),
|
3467
|
-
"onFocus": () => onFocus("postalCode")
|
3468
|
-
}, null), [[vShow, !hideBottomFields.value]]), (_a = slots.default) == null ? void 0 : _a.call(slots)]), renderSetDefaultCell(), withDirectives(createVNode("div", {
|
3472
|
+
}, null), (_a = slots.default) == null ? void 0 : _a.call(slots)]), renderSetDefaultCell(), withDirectives(createVNode("div", {
|
3469
3473
|
"class": bem$15("buttons")
|
3470
3474
|
}, [createVNode(Button, {
|
3471
3475
|
"block": true,
|
@@ -4024,6 +4028,7 @@ var stdin_default$19 = defineComponent({
|
|
4024
4028
|
slots
|
4025
4029
|
}) {
|
4026
4030
|
const style = computed(() => {
|
4031
|
+
var _a;
|
4027
4032
|
const {
|
4028
4033
|
item,
|
4029
4034
|
index,
|
@@ -4055,6 +4060,9 @@ var stdin_default$19 = defineComponent({
|
|
4055
4060
|
break;
|
4056
4061
|
}
|
4057
4062
|
}
|
4063
|
+
if (offset + (((_a = item.date) == null ? void 0 : _a.getDate()) || 1) > 28) {
|
4064
|
+
style2.marginBottom = 0;
|
4065
|
+
}
|
4058
4066
|
return style2;
|
4059
4067
|
});
|
4060
4068
|
const onClick = () => {
|
@@ -4562,8 +4570,8 @@ var stdin_default$16 = defineComponent({
|
|
4562
4570
|
}
|
4563
4571
|
raf(() => {
|
4564
4572
|
bodyHeight = Math.floor(useRect(bodyRef).height);
|
4565
|
-
scrollToCurrentDate();
|
4566
4573
|
});
|
4574
|
+
scrollToCurrentDate();
|
4567
4575
|
};
|
4568
4576
|
const reset = (date = getInitialDate()) => {
|
4569
4577
|
currentDate.value = date;
|
@@ -5707,7 +5715,7 @@ var stdin_default$$ = defineComponent({
|
|
5707
5715
|
const root = ref();
|
5708
5716
|
const navRef = ref();
|
5709
5717
|
const wrapRef = ref();
|
5710
|
-
const id = useId();
|
5718
|
+
const id = useId$1();
|
5711
5719
|
const scroller = useScrollParent(root);
|
5712
5720
|
const [titleRefs, setTitleRefs] = useRefs();
|
5713
5721
|
const {
|
@@ -5874,6 +5882,7 @@ var stdin_default$$ = defineComponent({
|
|
5874
5882
|
}
|
5875
5883
|
};
|
5876
5884
|
const renderNav = () => children.map((item, index) => createVNode(stdin_default$12, mergeProps({
|
5885
|
+
"key": item.id,
|
5877
5886
|
"id": `${id}-${index}`,
|
5878
5887
|
"ref": setTitleRefs(index),
|
5879
5888
|
"type": props.type,
|
@@ -6093,7 +6102,7 @@ var stdin_default$Z = defineComponent({
|
|
6093
6102
|
setup(props, {
|
6094
6103
|
slots
|
6095
6104
|
}) {
|
6096
|
-
const id = useId();
|
6105
|
+
const id = useId$1();
|
6097
6106
|
const inited = ref(false);
|
6098
6107
|
const {
|
6099
6108
|
parent,
|
@@ -7463,14 +7472,328 @@ var stdin_default$K = defineComponent({
|
|
7463
7472
|
}
|
7464
7473
|
});
|
7465
7474
|
const CouponCell = withInstall(stdin_default$K);
|
7466
|
-
const
|
7467
|
-
const
|
7475
|
+
const getId = (num) => `van-empty-${num}`;
|
7476
|
+
const useId = (num) => `url(#${getId(num)})`;
|
7477
|
+
const renderStop = (color, offset, opacity) => createVNode("stop", {
|
7478
|
+
"stop-color": color,
|
7479
|
+
"offset": `${offset}%`,
|
7480
|
+
"stop-opacity": opacity
|
7481
|
+
}, null);
|
7482
|
+
const renderStops = (fromColor, toColor) => [renderStop(fromColor, 0), renderStop(toColor, 100)];
|
7483
|
+
const renderShadow = (id) => [createVNode("defs", null, [createVNode("radialGradient", {
|
7484
|
+
"id": getId(id),
|
7485
|
+
"cx": "50%",
|
7486
|
+
"cy": "54%",
|
7487
|
+
"fx": "50%",
|
7488
|
+
"fy": "54%",
|
7489
|
+
"r": "297%",
|
7490
|
+
"gradientTransform": "matrix(-.16 0 0 -.33 .58 .72)"
|
7491
|
+
}, [renderStop("#EBEDF0", 0), renderStop("#F2F3F5", 100, 0.3)])]), createVNode("ellipse", {
|
7492
|
+
"fill": useId(id),
|
7493
|
+
"opacity": ".8",
|
7494
|
+
"cx": "80",
|
7495
|
+
"cy": "140",
|
7496
|
+
"rx": "46",
|
7497
|
+
"ry": "8"
|
7498
|
+
}, null)];
|
7499
|
+
const renderBuilding = () => [createVNode("defs", null, [createVNode("linearGradient", {
|
7500
|
+
"id": getId("a"),
|
7501
|
+
"x1": "64%",
|
7502
|
+
"y1": "100%",
|
7503
|
+
"x2": "64%"
|
7504
|
+
}, [renderStop("#FFF", 0, 0.5), renderStop("#F2F3F5", 100)])]), createVNode("g", {
|
7505
|
+
"opacity": ".8"
|
7506
|
+
}, [createVNode("path", {
|
7507
|
+
"d": "M36 131V53H16v20H2v58h34z",
|
7508
|
+
"fill": useId("a")
|
7509
|
+
}, null), createVNode("path", {
|
7510
|
+
"d": "M123 15h22v14h9v77h-31V15z",
|
7511
|
+
"fill": useId("a")
|
7512
|
+
}, null)])];
|
7513
|
+
const renderCloud = () => [createVNode("defs", null, [createVNode("linearGradient", {
|
7514
|
+
"id": getId("b"),
|
7515
|
+
"x1": "64%",
|
7516
|
+
"y1": "97%",
|
7517
|
+
"x2": "64%",
|
7518
|
+
"y2": "0%"
|
7519
|
+
}, [renderStop("#F2F3F5", 0, 0.3), renderStop("#F2F3F5", 100)])]), createVNode("g", {
|
7520
|
+
"opacity": ".8"
|
7521
|
+
}, [createVNode("path", {
|
7522
|
+
"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",
|
7523
|
+
"fill": useId("b")
|
7524
|
+
}, null), createVNode("path", {
|
7525
|
+
"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",
|
7526
|
+
"fill": useId("b")
|
7527
|
+
}, null)])];
|
7528
|
+
const renderNetwork = () => createVNode("svg", {
|
7529
|
+
"viewBox": "0 0 160 160"
|
7530
|
+
}, [createVNode("defs", null, [createVNode("linearGradient", {
|
7531
|
+
"id": getId(1),
|
7532
|
+
"x1": "64%",
|
7533
|
+
"y1": "100%",
|
7534
|
+
"x2": "64%"
|
7535
|
+
}, [renderStop("#FFF", 0, 0.5), renderStop("#F2F3F5", 100)]), createVNode("linearGradient", {
|
7536
|
+
"id": getId(2),
|
7537
|
+
"x1": "50%",
|
7538
|
+
"x2": "50%",
|
7539
|
+
"y2": "84%"
|
7540
|
+
}, [renderStop("#EBEDF0", 0), renderStop("#DCDEE0", 100, 0)]), createVNode("linearGradient", {
|
7541
|
+
"id": getId(3),
|
7542
|
+
"x1": "100%",
|
7543
|
+
"x2": "100%",
|
7544
|
+
"y2": "100%"
|
7545
|
+
}, [renderStops("#EAEDF0", "#DCDEE0")]), createVNode("radialGradient", {
|
7546
|
+
"id": getId(4),
|
7547
|
+
"cx": "50%",
|
7548
|
+
"cy": "0%",
|
7549
|
+
"fx": "50%",
|
7550
|
+
"fy": "0%",
|
7551
|
+
"r": "100%",
|
7552
|
+
"gradientTransform": "matrix(0 1 -.54 0 .5 -.5)"
|
7553
|
+
}, [renderStop("#EBEDF0", 0), renderStop("#FFF", 100, 0)])]), createVNode("g", {
|
7554
|
+
"fill": "none"
|
7555
|
+
}, [renderBuilding(), createVNode("path", {
|
7556
|
+
"fill": useId(4),
|
7557
|
+
"d": "M0 139h160v21H0z"
|
7558
|
+
}, null), createVNode("path", {
|
7559
|
+
"d": "M80 54a7 7 0 0 1 3 13v27l-2 2h-2a2 2 0 0 1-2-2V67a7 7 0 0 1 3-13z",
|
7560
|
+
"fill": useId(2)
|
7561
|
+
}, null), createVNode("g", {
|
7562
|
+
"opacity": ".6",
|
7563
|
+
"stroke-linecap": "round",
|
7564
|
+
"stroke-width": "7"
|
7565
|
+
}, [createVNode("path", {
|
7566
|
+
"d": "M64 47a19 19 0 0 0-5 13c0 5 2 10 5 13",
|
7567
|
+
"stroke": useId(3)
|
7568
|
+
}, null), createVNode("path", {
|
7569
|
+
"d": "M53 36a34 34 0 0 0 0 48",
|
7570
|
+
"stroke": useId(3)
|
7571
|
+
}, null), createVNode("path", {
|
7572
|
+
"d": "M95 73a19 19 0 0 0 6-13c0-5-2-9-6-13",
|
7573
|
+
"stroke": useId(3)
|
7574
|
+
}, null), createVNode("path", {
|
7575
|
+
"d": "M106 84a34 34 0 0 0 0-48",
|
7576
|
+
"stroke": useId(3)
|
7577
|
+
}, null)]), createVNode("g", {
|
7578
|
+
"transform": "translate(31 105)"
|
7579
|
+
}, [createVNode("rect", {
|
7580
|
+
"fill": "#EBEDF0",
|
7581
|
+
"width": "98",
|
7582
|
+
"height": "34",
|
7583
|
+
"rx": "2"
|
7584
|
+
}, null), createVNode("rect", {
|
7585
|
+
"fill": "#FFF",
|
7586
|
+
"x": "9",
|
7587
|
+
"y": "8",
|
7588
|
+
"width": "80",
|
7589
|
+
"height": "18",
|
7590
|
+
"rx": "1.1"
|
7591
|
+
}, null), createVNode("rect", {
|
7592
|
+
"fill": "#EBEDF0",
|
7593
|
+
"x": "15",
|
7594
|
+
"y": "12",
|
7595
|
+
"width": "18",
|
7596
|
+
"height": "6",
|
7597
|
+
"rx": "1.1"
|
7598
|
+
}, null)])])]);
|
7599
|
+
const renderMaterial = () => createVNode("svg", {
|
7600
|
+
"viewBox": "0 0 160 160"
|
7601
|
+
}, [createVNode("defs", null, [createVNode("linearGradient", {
|
7602
|
+
"x1": "50%",
|
7603
|
+
"x2": "50%",
|
7604
|
+
"y2": "100%",
|
7605
|
+
"id": getId(5)
|
7606
|
+
}, [renderStops("#F2F3F5", "#DCDEE0")]), createVNode("linearGradient", {
|
7607
|
+
"x1": "95%",
|
7608
|
+
"y1": "48%",
|
7609
|
+
"x2": "5.5%",
|
7610
|
+
"y2": "51%",
|
7611
|
+
"id": getId(6)
|
7612
|
+
}, [renderStops("#EAEDF1", "#DCDEE0")]), createVNode("linearGradient", {
|
7613
|
+
"y1": "45%",
|
7614
|
+
"x2": "100%",
|
7615
|
+
"y2": "54%",
|
7616
|
+
"id": getId(7)
|
7617
|
+
}, [renderStops("#EAEDF1", "#DCDEE0")])]), renderBuilding(), renderCloud(), createVNode("g", {
|
7618
|
+
"transform": "translate(36 50)",
|
7619
|
+
"fill": "none"
|
7620
|
+
}, [createVNode("g", {
|
7621
|
+
"transform": "translate(8)"
|
7622
|
+
}, [createVNode("rect", {
|
7623
|
+
"fill": "#EBEDF0",
|
7624
|
+
"opacity": ".6",
|
7625
|
+
"x": "38",
|
7626
|
+
"y": "13",
|
7627
|
+
"width": "36",
|
7628
|
+
"height": "53",
|
7629
|
+
"rx": "2"
|
7630
|
+
}, null), createVNode("rect", {
|
7631
|
+
"fill": useId(5),
|
7632
|
+
"width": "64",
|
7633
|
+
"height": "66",
|
7634
|
+
"rx": "2"
|
7635
|
+
}, null), createVNode("rect", {
|
7636
|
+
"fill": "#FFF",
|
7637
|
+
"x": "6",
|
7638
|
+
"y": "6",
|
7639
|
+
"width": "52",
|
7640
|
+
"height": "55",
|
7641
|
+
"rx": "1"
|
7642
|
+
}, null), createVNode("g", {
|
7643
|
+
"transform": "translate(15 17)",
|
7644
|
+
"fill": useId(6)
|
7645
|
+
}, [createVNode("rect", {
|
7646
|
+
"width": "34",
|
7647
|
+
"height": "6",
|
7648
|
+
"rx": "1"
|
7649
|
+
}, null), createVNode("path", {
|
7650
|
+
"d": "M0 14h34v6H0z"
|
7651
|
+
}, null), createVNode("rect", {
|
7652
|
+
"y": "28",
|
7653
|
+
"width": "34",
|
7654
|
+
"height": "6",
|
7655
|
+
"rx": "1"
|
7656
|
+
}, null)])]), createVNode("rect", {
|
7657
|
+
"fill": useId(7),
|
7658
|
+
"y": "61",
|
7659
|
+
"width": "88",
|
7660
|
+
"height": "28",
|
7661
|
+
"rx": "1"
|
7662
|
+
}, null), createVNode("rect", {
|
7663
|
+
"fill": "#F7F8FA",
|
7664
|
+
"x": "29",
|
7665
|
+
"y": "72",
|
7666
|
+
"width": "30",
|
7667
|
+
"height": "6",
|
7668
|
+
"rx": "1"
|
7669
|
+
}, null)])]);
|
7670
|
+
const renderError = () => createVNode("svg", {
|
7671
|
+
"viewBox": "0 0 160 160"
|
7672
|
+
}, [createVNode("defs", null, [createVNode("linearGradient", {
|
7673
|
+
"x1": "50%",
|
7674
|
+
"x2": "50%",
|
7675
|
+
"y2": "100%",
|
7676
|
+
"id": getId(8)
|
7677
|
+
}, [renderStops("#EAEDF1", "#DCDEE0")])]), renderBuilding(), renderCloud(), renderShadow("c"), createVNode("path", {
|
7678
|
+
"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",
|
7679
|
+
"fill": useId(8)
|
7680
|
+
}, null)]);
|
7681
|
+
const renderSearch = () => createVNode("svg", {
|
7682
|
+
"viewBox": "0 0 160 160"
|
7683
|
+
}, [createVNode("defs", null, [createVNode("linearGradient", {
|
7684
|
+
"x1": "50%",
|
7685
|
+
"y1": "100%",
|
7686
|
+
"x2": "50%",
|
7687
|
+
"id": getId(9)
|
7688
|
+
}, [renderStops("#EEE", "#D8D8D8")]), createVNode("linearGradient", {
|
7689
|
+
"x1": "100%",
|
7690
|
+
"y1": "50%",
|
7691
|
+
"y2": "50%",
|
7692
|
+
"id": getId(10)
|
7693
|
+
}, [renderStops("#F2F3F5", "#DCDEE0")]), createVNode("linearGradient", {
|
7694
|
+
"x1": "50%",
|
7695
|
+
"x2": "50%",
|
7696
|
+
"y2": "100%",
|
7697
|
+
"id": getId(11)
|
7698
|
+
}, [renderStops("#F2F3F5", "#DCDEE0")]), createVNode("linearGradient", {
|
7699
|
+
"x1": "50%",
|
7700
|
+
"x2": "50%",
|
7701
|
+
"y2": "100%",
|
7702
|
+
"id": getId(12)
|
7703
|
+
}, [renderStops("#FFF", "#F7F8FA")])]), renderBuilding(), renderCloud(), renderShadow("d"), createVNode("g", {
|
7704
|
+
"transform": "rotate(-45 113 -4)",
|
7705
|
+
"fill": "none"
|
7706
|
+
}, [createVNode("rect", {
|
7707
|
+
"fill": useId(9),
|
7708
|
+
"x": "24",
|
7709
|
+
"y": "52.8",
|
7710
|
+
"width": "5.8",
|
7711
|
+
"height": "19",
|
7712
|
+
"rx": "1"
|
7713
|
+
}, null), createVNode("rect", {
|
7714
|
+
"fill": useId(10),
|
7715
|
+
"x": "22.1",
|
7716
|
+
"y": "67.3",
|
7717
|
+
"width": "9.9",
|
7718
|
+
"height": "28",
|
7719
|
+
"rx": "1"
|
7720
|
+
}, null), createVNode("circle", {
|
7721
|
+
"stroke": useId(11),
|
7722
|
+
"stroke-width": "8",
|
7723
|
+
"cx": "27",
|
7724
|
+
"cy": "27",
|
7725
|
+
"r": "27"
|
7726
|
+
}, null), createVNode("circle", {
|
7727
|
+
"fill": useId(12),
|
7728
|
+
"cx": "27",
|
7729
|
+
"cy": "27",
|
7730
|
+
"r": "16"
|
7731
|
+
}, null), createVNode("path", {
|
7732
|
+
"d": "M37 7c-8 0-15 5-16 12",
|
7733
|
+
"stroke": useId(11),
|
7734
|
+
"stroke-width": "3",
|
7735
|
+
"opacity": ".5",
|
7736
|
+
"stroke-linecap": "round",
|
7737
|
+
"transform": "rotate(45 29 13)"
|
7738
|
+
}, null)])]);
|
7739
|
+
const [name$D, bem$C] = createNamespace("empty");
|
7740
|
+
const PRESET_IMAGES = {
|
7741
|
+
error: renderError,
|
7742
|
+
search: renderSearch,
|
7743
|
+
network: renderNetwork,
|
7744
|
+
default: renderMaterial
|
7745
|
+
};
|
7746
|
+
const emptyProps = {
|
7747
|
+
image: makeStringProp("default"),
|
7748
|
+
imageSize: [Number, String, Array],
|
7749
|
+
description: String
|
7750
|
+
};
|
7751
|
+
var stdin_default$J = defineComponent({
|
7752
|
+
name: name$D,
|
7753
|
+
props: emptyProps,
|
7754
|
+
setup(props, {
|
7755
|
+
slots
|
7756
|
+
}) {
|
7757
|
+
const renderImage = () => {
|
7758
|
+
var _a;
|
7759
|
+
if (slots.image) {
|
7760
|
+
return slots.image();
|
7761
|
+
}
|
7762
|
+
return ((_a = PRESET_IMAGES[props.image]) == null ? void 0 : _a.call(PRESET_IMAGES)) || createVNode("img", {
|
7763
|
+
"src": props.image
|
7764
|
+
}, null);
|
7765
|
+
};
|
7766
|
+
const renderDescription = () => {
|
7767
|
+
const description = slots.description ? slots.description() : props.description;
|
7768
|
+
if (description) {
|
7769
|
+
return createVNode("p", {
|
7770
|
+
"class": bem$C("description")
|
7771
|
+
}, [description]);
|
7772
|
+
}
|
7773
|
+
};
|
7774
|
+
const renderBottom = () => {
|
7775
|
+
if (slots.default) {
|
7776
|
+
return createVNode("div", {
|
7777
|
+
"class": bem$C("bottom")
|
7778
|
+
}, [slots.default()]);
|
7779
|
+
}
|
7780
|
+
};
|
7781
|
+
return () => createVNode("div", {
|
7782
|
+
"class": bem$C()
|
7783
|
+
}, [createVNode("div", {
|
7784
|
+
"class": bem$C("image"),
|
7785
|
+
"style": getSizeStyle(props.imageSize)
|
7786
|
+
}, [renderImage()]), renderDescription(), renderBottom()]);
|
7787
|
+
}
|
7788
|
+
});
|
7789
|
+
const Empty = withInstall(stdin_default$J);
|
7790
|
+
const [name$C, bem$B, t$8] = createNamespace("coupon-list");
|
7468
7791
|
const couponListProps = {
|
7469
7792
|
code: makeStringProp(""),
|
7470
7793
|
coupons: makeArrayProp(),
|
7471
7794
|
currency: makeStringProp("\xA5"),
|
7472
7795
|
showCount: truthProp,
|
7473
|
-
emptyImage:
|
7796
|
+
emptyImage: String,
|
7474
7797
|
chosenCoupon: makeNumberProp(-1),
|
7475
7798
|
enabledTitle: String,
|
7476
7799
|
disabledTitle: String,
|
@@ -7485,8 +7808,8 @@ const couponListProps = {
|
|
7485
7808
|
exchangeButtonLoading: Boolean,
|
7486
7809
|
exchangeButtonDisabled: Boolean
|
7487
7810
|
};
|
7488
|
-
var stdin_default$
|
7489
|
-
name: name$
|
7811
|
+
var stdin_default$I = defineComponent({
|
7812
|
+
name: name$C,
|
7490
7813
|
props: couponListProps,
|
7491
7814
|
emits: ["change", "exchange", "update:code"],
|
7492
7815
|
setup(props, {
|
@@ -7518,28 +7841,30 @@ var stdin_default$J = defineComponent({
|
|
7518
7841
|
return (_a = couponRefs.value[index]) == null ? void 0 : _a.scrollIntoView();
|
7519
7842
|
});
|
7520
7843
|
};
|
7521
|
-
const renderEmpty = () => createVNode(
|
7522
|
-
"
|
7523
|
-
},
|
7524
|
-
"
|
7525
|
-
|
7844
|
+
const renderEmpty = () => createVNode(Empty, {
|
7845
|
+
"image": props.emptyImage
|
7846
|
+
}, {
|
7847
|
+
default: () => [createVNode("p", {
|
7848
|
+
"class": bem$B("empty-tip")
|
7849
|
+
}, [t$8("noCoupon")])]
|
7850
|
+
});
|
7526
7851
|
const renderExchangeBar = () => {
|
7527
7852
|
if (props.showExchangeBar) {
|
7528
7853
|
return createVNode("div", {
|
7529
7854
|
"ref": barRef,
|
7530
|
-
"class": bem$
|
7855
|
+
"class": bem$B("exchange-bar")
|
7531
7856
|
}, [createVNode(Field, {
|
7532
7857
|
"modelValue": currentCode.value,
|
7533
7858
|
"onUpdate:modelValue": ($event) => currentCode.value = $event,
|
7534
7859
|
"clearable": true,
|
7535
7860
|
"border": false,
|
7536
|
-
"class": bem$
|
7861
|
+
"class": bem$B("field"),
|
7537
7862
|
"placeholder": props.inputPlaceholder || t$8("placeholder"),
|
7538
7863
|
"maxlength": "20"
|
7539
7864
|
}, null), createVNode(Button, {
|
7540
7865
|
"plain": true,
|
7541
7866
|
"type": "primary",
|
7542
|
-
"class": bem$
|
7867
|
+
"class": bem$B("exchange"),
|
7543
7868
|
"text": props.exchangeButtonText || t$8("exchange"),
|
7544
7869
|
"loading": props.exchangeButtonLoading,
|
7545
7870
|
"disabled": buttonDisabled.value,
|
@@ -7559,7 +7884,7 @@ var stdin_default$J = defineComponent({
|
|
7559
7884
|
default: () => {
|
7560
7885
|
var _a;
|
7561
7886
|
return [createVNode("div", {
|
7562
|
-
"class": bem$
|
7887
|
+
"class": bem$B("list", {
|
7563
7888
|
"with-bottom": props.showCloseButton
|
7564
7889
|
}),
|
7565
7890
|
"style": {
|
@@ -7588,7 +7913,7 @@ var stdin_default$J = defineComponent({
|
|
7588
7913
|
default: () => {
|
7589
7914
|
var _a;
|
7590
7915
|
return [createVNode("div", {
|
7591
|
-
"class": bem$
|
7916
|
+
"class": bem$B("list", {
|
7592
7917
|
"with-bottom": props.showCloseButton
|
7593
7918
|
}),
|
7594
7919
|
"style": {
|
@@ -7615,28 +7940,28 @@ var stdin_default$J = defineComponent({
|
|
7615
7940
|
});
|
7616
7941
|
return () => createVNode("div", {
|
7617
7942
|
"ref": root,
|
7618
|
-
"class": bem$
|
7943
|
+
"class": bem$B()
|
7619
7944
|
}, [renderExchangeBar(), createVNode(Tabs, {
|
7620
7945
|
"active": activeTab.value,
|
7621
7946
|
"onUpdate:active": ($event) => activeTab.value = $event,
|
7622
|
-
"class": bem$
|
7947
|
+
"class": bem$B("tab")
|
7623
7948
|
}, {
|
7624
7949
|
default: () => [renderCouponTab(), renderDisabledTab()]
|
7625
7950
|
}), createVNode("div", {
|
7626
|
-
"class": bem$
|
7951
|
+
"class": bem$B("bottom")
|
7627
7952
|
}, [withDirectives(createVNode(Button, {
|
7628
7953
|
"round": true,
|
7629
7954
|
"block": true,
|
7630
7955
|
"type": "primary",
|
7631
|
-
"class": bem$
|
7956
|
+
"class": bem$B("close"),
|
7632
7957
|
"text": props.closeButtonText || t$8("close"),
|
7633
7958
|
"onClick": () => emit("change", -1)
|
7634
7959
|
}, null), [[vShow, props.showCloseButton]])])]);
|
7635
7960
|
}
|
7636
7961
|
});
|
7637
|
-
const CouponList = withInstall(stdin_default$
|
7962
|
+
const CouponList = withInstall(stdin_default$I);
|
7638
7963
|
const currentYear = new Date().getFullYear();
|
7639
|
-
const [name$
|
7964
|
+
const [name$B] = createNamespace("date-picker");
|
7640
7965
|
const datePickerProps = extend({}, sharedProps, {
|
7641
7966
|
columnsType: {
|
7642
7967
|
type: Array,
|
@@ -7653,8 +7978,8 @@ const datePickerProps = extend({}, sharedProps, {
|
|
7653
7978
|
validator: isDate
|
7654
7979
|
}
|
7655
7980
|
});
|
7656
|
-
var stdin_default$
|
7657
|
-
name: name$
|
7981
|
+
var stdin_default$H = defineComponent({
|
7982
|
+
name: name$B,
|
7658
7983
|
props: datePickerProps,
|
7659
7984
|
emits: ["confirm", "cancel", "change", "update:modelValue"],
|
7660
7985
|
setup(props, {
|
@@ -7738,8 +8063,8 @@ var stdin_default$I = defineComponent({
|
|
7738
8063
|
}, pick(props, pickerInheritKeys)), slots);
|
7739
8064
|
}
|
7740
8065
|
});
|
7741
|
-
const DatePicker = withInstall(stdin_default$
|
7742
|
-
const [name$
|
8066
|
+
const DatePicker = withInstall(stdin_default$H);
|
8067
|
+
const [name$A, bem$A, t$7] = createNamespace("dialog");
|
7743
8068
|
const dialogProps = extend({}, popupSharedProps, {
|
7744
8069
|
title: String,
|
7745
8070
|
theme: String,
|
@@ -7760,8 +8085,8 @@ const dialogProps = extend({}, popupSharedProps, {
|
|
7760
8085
|
closeOnClickOverlay: Boolean
|
7761
8086
|
});
|
7762
8087
|
const popupInheritKeys$1 = [...popupSharedPropKeys, "transition", "closeOnPopstate"];
|
7763
|
-
var stdin_default$
|
7764
|
-
name: name$
|
8088
|
+
var stdin_default$G = defineComponent({
|
8089
|
+
name: name$A,
|
7765
8090
|
props: dialogProps,
|
7766
8091
|
emits: ["confirm", "cancel", "keydown", "update:show"],
|
7767
8092
|
setup(props, {
|
@@ -7818,7 +8143,7 @@ var stdin_default$H = defineComponent({
|
|
7818
8143
|
const title = slots.title ? slots.title() : props.title;
|
7819
8144
|
if (title) {
|
7820
8145
|
return createVNode("div", {
|
7821
|
-
"class": bem$
|
8146
|
+
"class": bem$A("header", {
|
7822
8147
|
isolated: !props.message && !slots.default
|
7823
8148
|
})
|
7824
8149
|
}, [title]);
|
@@ -7830,7 +8155,7 @@ var stdin_default$H = defineComponent({
|
|
7830
8155
|
allowHtml,
|
7831
8156
|
messageAlign
|
7832
8157
|
} = props;
|
7833
|
-
const classNames = bem$
|
8158
|
+
const classNames = bem$A("message", {
|
7834
8159
|
"has-title": hasTitle,
|
7835
8160
|
[messageAlign]: messageAlign
|
7836
8161
|
});
|
@@ -7848,7 +8173,7 @@ var stdin_default$H = defineComponent({
|
|
7848
8173
|
const renderContent = () => {
|
7849
8174
|
if (slots.default) {
|
7850
8175
|
return createVNode("div", {
|
7851
|
-
"class": bem$
|
8176
|
+
"class": bem$A("content")
|
7852
8177
|
}, [slots.default()]);
|
7853
8178
|
}
|
7854
8179
|
const {
|
@@ -7860,18 +8185,18 @@ var stdin_default$H = defineComponent({
|
|
7860
8185
|
const hasTitle = !!(title || slots.title);
|
7861
8186
|
return createVNode("div", {
|
7862
8187
|
"key": allowHtml ? 1 : 0,
|
7863
|
-
"class": bem$
|
8188
|
+
"class": bem$A("content", {
|
7864
8189
|
isolated: !hasTitle
|
7865
8190
|
})
|
7866
8191
|
}, [renderMessage(hasTitle)]);
|
7867
8192
|
}
|
7868
8193
|
};
|
7869
8194
|
const renderButtons = () => createVNode("div", {
|
7870
|
-
"class": [BORDER_TOP, bem$
|
8195
|
+
"class": [BORDER_TOP, bem$A("footer")]
|
7871
8196
|
}, [props.showCancelButton && createVNode(Button, {
|
7872
8197
|
"size": "large",
|
7873
8198
|
"text": props.cancelButtonText || t$7("cancel"),
|
7874
|
-
"class": bem$
|
8199
|
+
"class": bem$A("cancel"),
|
7875
8200
|
"style": {
|
7876
8201
|
color: props.cancelButtonColor
|
7877
8202
|
},
|
@@ -7880,7 +8205,7 @@ var stdin_default$H = defineComponent({
|
|
7880
8205
|
}, null), props.showConfirmButton && createVNode(Button, {
|
7881
8206
|
"size": "large",
|
7882
8207
|
"text": props.confirmButtonText || t$7("confirm"),
|
7883
|
-
"class": [bem$
|
8208
|
+
"class": [bem$A("confirm"), {
|
7884
8209
|
[BORDER_LEFT]: props.showCancelButton
|
7885
8210
|
}],
|
7886
8211
|
"style": {
|
@@ -7890,19 +8215,19 @@ var stdin_default$H = defineComponent({
|
|
7890
8215
|
"onClick": onConfirm
|
7891
8216
|
}, null)]);
|
7892
8217
|
const renderRoundButtons = () => createVNode(ActionBar, {
|
7893
|
-
"class": bem$
|
8218
|
+
"class": bem$A("footer")
|
7894
8219
|
}, {
|
7895
8220
|
default: () => [props.showCancelButton && createVNode(ActionBarButton, {
|
7896
8221
|
"type": "warning",
|
7897
8222
|
"text": props.cancelButtonText || t$7("cancel"),
|
7898
|
-
"class": bem$
|
8223
|
+
"class": bem$A("cancel"),
|
7899
8224
|
"color": props.cancelButtonColor,
|
7900
8225
|
"loading": loading.cancel,
|
7901
8226
|
"onClick": onCancel
|
7902
8227
|
}, null), props.showConfirmButton && createVNode(ActionBarButton, {
|
7903
8228
|
"type": "danger",
|
7904
8229
|
"text": props.confirmButtonText || t$7("confirm"),
|
7905
|
-
"class": bem$
|
8230
|
+
"class": bem$A("confirm"),
|
7906
8231
|
"color": props.confirmButtonColor,
|
7907
8232
|
"loading": loading.confirm,
|
7908
8233
|
"onClick": onConfirm
|
@@ -7925,7 +8250,7 @@ var stdin_default$H = defineComponent({
|
|
7925
8250
|
return createVNode(Popup, mergeProps({
|
7926
8251
|
"ref": root,
|
7927
8252
|
"role": "dialog",
|
7928
|
-
"class": [bem$
|
8253
|
+
"class": [bem$A([theme]), className],
|
7929
8254
|
"style": {
|
7930
8255
|
width: addUnit(width)
|
7931
8256
|
},
|
@@ -7947,7 +8272,7 @@ function initInstance$2() {
|
|
7947
8272
|
state,
|
7948
8273
|
toggle
|
7949
8274
|
} = usePopupState();
|
7950
|
-
return () => createVNode(stdin_default$
|
8275
|
+
return () => createVNode(stdin_default$G, mergeProps(state, {
|
7951
8276
|
"onUpdate:show": toggle
|
7952
8277
|
}), null);
|
7953
8278
|
}
|
@@ -8012,19 +8337,19 @@ Dialog.setDefaultOptions = (options) => {
|
|
8012
8337
|
Dialog.resetDefaultOptions = () => {
|
8013
8338
|
Dialog.currentOptions = extend({}, Dialog.defaultOptions);
|
8014
8339
|
};
|
8015
|
-
Dialog.Component = withInstall(stdin_default$
|
8340
|
+
Dialog.Component = withInstall(stdin_default$G);
|
8016
8341
|
Dialog.install = (app) => {
|
8017
8342
|
app.use(Dialog.Component);
|
8018
8343
|
app.config.globalProperties.$dialog = Dialog;
|
8019
8344
|
};
|
8020
|
-
const [name$
|
8345
|
+
const [name$z, bem$z] = createNamespace("divider");
|
8021
8346
|
const dividerProps = {
|
8022
8347
|
dashed: Boolean,
|
8023
8348
|
hairline: truthProp,
|
8024
8349
|
contentPosition: makeStringProp("center")
|
8025
8350
|
};
|
8026
|
-
var stdin_default$
|
8027
|
-
name: name$
|
8351
|
+
var stdin_default$F = defineComponent({
|
8352
|
+
name: name$z,
|
8028
8353
|
props: dividerProps,
|
8029
8354
|
setup(props, {
|
8030
8355
|
slots
|
@@ -8033,7 +8358,7 @@ var stdin_default$G = defineComponent({
|
|
8033
8358
|
var _a;
|
8034
8359
|
return createVNode("div", {
|
8035
8360
|
"role": "separator",
|
8036
|
-
"class": bem$
|
8361
|
+
"class": bem$z({
|
8037
8362
|
dashed: props.dashed,
|
8038
8363
|
hairline: props.hairline,
|
8039
8364
|
[`content-${props.contentPosition}`]: !!slots.default
|
@@ -8042,8 +8367,8 @@ var stdin_default$G = defineComponent({
|
|
8042
8367
|
};
|
8043
8368
|
}
|
8044
8369
|
});
|
8045
|
-
const Divider = withInstall(stdin_default$
|
8046
|
-
const [name$
|
8370
|
+
const Divider = withInstall(stdin_default$F);
|
8371
|
+
const [name$y, bem$y] = createNamespace("dropdown-menu");
|
8047
8372
|
const dropdownMenuProps = {
|
8048
8373
|
overlay: truthProp,
|
8049
8374
|
zIndex: numericProp,
|
@@ -8053,14 +8378,14 @@ const dropdownMenuProps = {
|
|
8053
8378
|
closeOnClickOutside: truthProp,
|
8054
8379
|
closeOnClickOverlay: truthProp
|
8055
8380
|
};
|
8056
|
-
const DROPDOWN_KEY = Symbol(name$
|
8057
|
-
var stdin_default$
|
8058
|
-
name: name$
|
8381
|
+
const DROPDOWN_KEY = Symbol(name$y);
|
8382
|
+
var stdin_default$E = defineComponent({
|
8383
|
+
name: name$y,
|
8059
8384
|
props: dropdownMenuProps,
|
8060
8385
|
setup(props, {
|
8061
8386
|
slots
|
8062
8387
|
}) {
|
8063
|
-
const id = useId();
|
8388
|
+
const id = useId$1();
|
8064
8389
|
const root = ref();
|
8065
8390
|
const barRef = ref();
|
8066
8391
|
const offset = ref(0);
|
@@ -8123,7 +8448,7 @@ var stdin_default$F = defineComponent({
|
|
8123
8448
|
"id": `${id}-${index}`,
|
8124
8449
|
"role": "button",
|
8125
8450
|
"tabindex": disabled ? void 0 : 0,
|
8126
|
-
"class": [bem$
|
8451
|
+
"class": [bem$y("item", {
|
8127
8452
|
disabled
|
8128
8453
|
}), {
|
8129
8454
|
[HAPTICS_FEEDBACK]: !disabled
|
@@ -8134,7 +8459,7 @@ var stdin_default$F = defineComponent({
|
|
8134
8459
|
}
|
8135
8460
|
}
|
8136
8461
|
}, [createVNode("span", {
|
8137
|
-
"class": [bem$
|
8462
|
+
"class": [bem$y("title", {
|
8138
8463
|
down: showPopup === (props.direction === "down"),
|
8139
8464
|
active: showPopup
|
8140
8465
|
}), titleClass],
|
@@ -8158,18 +8483,18 @@ var stdin_default$F = defineComponent({
|
|
8158
8483
|
var _a;
|
8159
8484
|
return createVNode("div", {
|
8160
8485
|
"ref": root,
|
8161
|
-
"class": bem$
|
8486
|
+
"class": bem$y()
|
8162
8487
|
}, [createVNode("div", {
|
8163
8488
|
"ref": barRef,
|
8164
8489
|
"style": barStyle.value,
|
8165
|
-
"class": bem$
|
8490
|
+
"class": bem$y("bar", {
|
8166
8491
|
opened: opened.value
|
8167
8492
|
})
|
8168
8493
|
}, [children.map(renderTitle)]), (_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
8169
8494
|
};
|
8170
8495
|
}
|
8171
8496
|
});
|
8172
|
-
const [name$
|
8497
|
+
const [name$x, bem$x] = createNamespace("dropdown-item");
|
8173
8498
|
const dropdownItemProps = {
|
8174
8499
|
title: String,
|
8175
8500
|
options: makeArrayProp(),
|
@@ -8179,8 +8504,8 @@ const dropdownItemProps = {
|
|
8179
8504
|
modelValue: unknownProp,
|
8180
8505
|
titleClass: unknownProp
|
8181
8506
|
};
|
8182
|
-
var stdin_default$
|
8183
|
-
name: name$
|
8507
|
+
var stdin_default$D = defineComponent({
|
8508
|
+
name: name$x,
|
8184
8509
|
props: dropdownItemProps,
|
8185
8510
|
emits: ["open", "opened", "close", "closed", "change", "update:modelValue"],
|
8186
8511
|
setup(props, {
|
@@ -8247,7 +8572,7 @@ var stdin_default$E = defineComponent({
|
|
8247
8572
|
const renderIcon = () => {
|
8248
8573
|
if (active) {
|
8249
8574
|
return createVNode(Icon, {
|
8250
|
-
"class": bem$
|
8575
|
+
"class": bem$x("icon"),
|
8251
8576
|
"color": activeColor,
|
8252
8577
|
"name": "success"
|
8253
8578
|
}, null);
|
@@ -8258,7 +8583,7 @@ var stdin_default$E = defineComponent({
|
|
8258
8583
|
"key": option.value,
|
8259
8584
|
"icon": option.icon,
|
8260
8585
|
"title": option.text,
|
8261
|
-
"class": bem$
|
8586
|
+
"class": bem$x("option", {
|
8262
8587
|
active
|
8263
8588
|
}),
|
8264
8589
|
"style": {
|
@@ -8290,13 +8615,13 @@ var stdin_default$E = defineComponent({
|
|
8290
8615
|
}
|
8291
8616
|
return withDirectives(createVNode("div", {
|
8292
8617
|
"style": style,
|
8293
|
-
"class": bem$
|
8618
|
+
"class": bem$x([direction]),
|
8294
8619
|
"onClick": onClickWrapper
|
8295
8620
|
}, [createVNode(Popup, {
|
8296
8621
|
"show": state.showPopup,
|
8297
8622
|
"onUpdate:show": ($event) => state.showPopup = $event,
|
8298
8623
|
"role": "menu",
|
8299
|
-
"class": bem$
|
8624
|
+
"class": bem$x("content"),
|
8300
8625
|
"overlay": overlay,
|
8301
8626
|
"position": direction === "down" ? "top" : "bottom",
|
8302
8627
|
"duration": state.transition ? duration : 0,
|
@@ -8334,147 +8659,8 @@ var stdin_default$E = defineComponent({
|
|
8334
8659
|
};
|
8335
8660
|
}
|
8336
8661
|
});
|
8337
|
-
const DropdownItem = withInstall(stdin_default$
|
8338
|
-
const DropdownMenu = withInstall(stdin_default$
|
8339
|
-
const prefix = "van-empty-network-";
|
8340
|
-
const renderStop = (color, offset, opacity) => createVNode("stop", {
|
8341
|
-
"stop-color": color,
|
8342
|
-
"offset": `${offset}%`,
|
8343
|
-
"stop-opacity": opacity
|
8344
|
-
}, null);
|
8345
|
-
const Network = createVNode("svg", {
|
8346
|
-
"viewBox": "0 0 160 160"
|
8347
|
-
}, [createVNode("defs", null, [createVNode("linearGradient", {
|
8348
|
-
"id": `${prefix}1`,
|
8349
|
-
"x1": "64%",
|
8350
|
-
"y1": "100%",
|
8351
|
-
"x2": "64%"
|
8352
|
-
}, [renderStop("#FFF", 0, 0.5), renderStop("#F2F3F5", 100)]), createVNode("linearGradient", {
|
8353
|
-
"id": `${prefix}2`,
|
8354
|
-
"x1": "50%",
|
8355
|
-
"x2": "50%",
|
8356
|
-
"y2": "84%"
|
8357
|
-
}, [renderStop("#EBEDF0", 0), renderStop("#DCDEE0", 100, 0)]), createVNode("linearGradient", {
|
8358
|
-
"id": `${prefix}3`,
|
8359
|
-
"x1": "100%",
|
8360
|
-
"x2": "100%",
|
8361
|
-
"y2": "100%"
|
8362
|
-
}, [renderStop("#EAEDF0", 0), renderStop("#DCDEE0", 100)]), createVNode("radialGradient", {
|
8363
|
-
"id": `${prefix}4`,
|
8364
|
-
"cx": "50%",
|
8365
|
-
"cy": "0%",
|
8366
|
-
"fx": "50%",
|
8367
|
-
"fy": "0%",
|
8368
|
-
"r": "100%",
|
8369
|
-
"gradientTransform": "matrix(0 1 -.54 0 .5 -.5)"
|
8370
|
-
}, [renderStop("#EBEDF0", 0), renderStop("#FFF", 100, 0)])]), createVNode("g", {
|
8371
|
-
"fill": "none"
|
8372
|
-
}, [createVNode("g", {
|
8373
|
-
"opacity": ".8"
|
8374
|
-
}, [createVNode("path", {
|
8375
|
-
"d": "M36 131V53H16v20H2v58h34z",
|
8376
|
-
"fill": `url(#${prefix}1)`
|
8377
|
-
}, null), createVNode("path", {
|
8378
|
-
"d": "M123 15h22v14h9v77h-31V15z",
|
8379
|
-
"fill": `url(#${prefix}1)`
|
8380
|
-
}, null)]), createVNode("path", {
|
8381
|
-
"fill": `url(#${prefix}4)`,
|
8382
|
-
"d": "M0 139h160v21H0z"
|
8383
|
-
}, null), createVNode("path", {
|
8384
|
-
"d": "M80 54a7 7 0 0 1 3 13v27l-2 2h-2a2 2 0 0 1-2-2V67a7 7 0 0 1 3-13z",
|
8385
|
-
"fill": `url(#${prefix}2)`
|
8386
|
-
}, null), createVNode("g", {
|
8387
|
-
"opacity": ".6",
|
8388
|
-
"stroke-linecap": "round",
|
8389
|
-
"stroke-width": "7"
|
8390
|
-
}, [createVNode("path", {
|
8391
|
-
"d": "M64 47a19 19 0 0 0-5 13c0 5 2 10 5 13",
|
8392
|
-
"stroke": `url(#${prefix}3)`
|
8393
|
-
}, null), createVNode("path", {
|
8394
|
-
"d": "M53 36a34 34 0 0 0 0 48",
|
8395
|
-
"stroke": `url(#${prefix}3)`
|
8396
|
-
}, null), createVNode("path", {
|
8397
|
-
"d": "M95 73a19 19 0 0 0 6-13c0-5-2-9-6-13",
|
8398
|
-
"stroke": `url(#${prefix}3)`
|
8399
|
-
}, null), createVNode("path", {
|
8400
|
-
"d": "M106 84a34 34 0 0 0 0-48",
|
8401
|
-
"stroke": `url(#${prefix}3)`
|
8402
|
-
}, null)]), createVNode("g", {
|
8403
|
-
"transform": "translate(31 105)"
|
8404
|
-
}, [createVNode("rect", {
|
8405
|
-
"fill": "#EBEDF0",
|
8406
|
-
"width": "98",
|
8407
|
-
"height": "34",
|
8408
|
-
"rx": "2"
|
8409
|
-
}, null), createVNode("rect", {
|
8410
|
-
"fill": "#FFF",
|
8411
|
-
"x": "9",
|
8412
|
-
"y": "8",
|
8413
|
-
"width": "80",
|
8414
|
-
"height": "18",
|
8415
|
-
"rx": "1.1"
|
8416
|
-
}, null), createVNode("rect", {
|
8417
|
-
"fill": "#EBEDF0",
|
8418
|
-
"x": "15",
|
8419
|
-
"y": "12",
|
8420
|
-
"width": "18",
|
8421
|
-
"height": "6",
|
8422
|
-
"rx": "1.1"
|
8423
|
-
}, null)])])]);
|
8424
|
-
const [name$x, bem$x] = createNamespace("empty");
|
8425
|
-
const PRESET_IMAGES = ["error", "search", "default"];
|
8426
|
-
const emptyProps = {
|
8427
|
-
image: makeStringProp("default"),
|
8428
|
-
imageSize: numericProp,
|
8429
|
-
description: String
|
8430
|
-
};
|
8431
|
-
var stdin_default$D = defineComponent({
|
8432
|
-
name: name$x,
|
8433
|
-
props: emptyProps,
|
8434
|
-
setup(props, {
|
8435
|
-
slots
|
8436
|
-
}) {
|
8437
|
-
const renderImage = () => {
|
8438
|
-
if (slots.image) {
|
8439
|
-
return slots.image();
|
8440
|
-
}
|
8441
|
-
let {
|
8442
|
-
image
|
8443
|
-
} = props;
|
8444
|
-
if (image === "network") {
|
8445
|
-
return Network;
|
8446
|
-
}
|
8447
|
-
if (PRESET_IMAGES.includes(image)) {
|
8448
|
-
image = `https://img.yzcdn.cn/vant/empty-image-${image}.png`;
|
8449
|
-
}
|
8450
|
-
return createVNode("img", {
|
8451
|
-
"src": image
|
8452
|
-
}, null);
|
8453
|
-
};
|
8454
|
-
const renderDescription = () => {
|
8455
|
-
const description = slots.description ? slots.description() : props.description;
|
8456
|
-
if (description) {
|
8457
|
-
return createVNode("p", {
|
8458
|
-
"class": bem$x("description")
|
8459
|
-
}, [description]);
|
8460
|
-
}
|
8461
|
-
};
|
8462
|
-
const renderBottom = () => {
|
8463
|
-
if (slots.default) {
|
8464
|
-
return createVNode("div", {
|
8465
|
-
"class": bem$x("bottom")
|
8466
|
-
}, [slots.default()]);
|
8467
|
-
}
|
8468
|
-
};
|
8469
|
-
return () => createVNode("div", {
|
8470
|
-
"class": bem$x()
|
8471
|
-
}, [createVNode("div", {
|
8472
|
-
"class": bem$x("image"),
|
8473
|
-
"style": getSizeStyle(props.imageSize)
|
8474
|
-
}, [renderImage()]), renderDescription(), renderBottom()]);
|
8475
|
-
}
|
8476
|
-
});
|
8477
|
-
const Empty = withInstall(stdin_default$D);
|
8662
|
+
const DropdownItem = withInstall(stdin_default$D);
|
8663
|
+
const DropdownMenu = withInstall(stdin_default$E);
|
8478
8664
|
const [name$w, bem$w] = createNamespace("grid");
|
8479
8665
|
const gridProps = {
|
8480
8666
|
square: Boolean,
|
@@ -9968,6 +10154,15 @@ const numberKeyboardProps = {
|
|
9968
10154
|
default: ""
|
9969
10155
|
}
|
9970
10156
|
};
|
10157
|
+
function shuffle(array) {
|
10158
|
+
for (let i = array.length - 1; i > 0; i--) {
|
10159
|
+
const j = Math.floor(Math.random() * (i + 1));
|
10160
|
+
const temp = array[i];
|
10161
|
+
array[i] = array[j];
|
10162
|
+
array[j] = temp;
|
10163
|
+
}
|
10164
|
+
return array;
|
10165
|
+
}
|
9971
10166
|
var stdin_default$r = defineComponent({
|
9972
10167
|
name: name$m,
|
9973
10168
|
props: numberKeyboardProps,
|
@@ -9982,7 +10177,7 @@ var stdin_default$r = defineComponent({
|
|
9982
10177
|
text: i + 1
|
9983
10178
|
}));
|
9984
10179
|
if (props.randomKeyOrder) {
|
9985
|
-
keys2
|
10180
|
+
shuffle(keys2);
|
9986
10181
|
}
|
9987
10182
|
return keys2;
|
9988
10183
|
};
|
@@ -10837,33 +11032,53 @@ var stdin_default$l = defineComponent({
|
|
10837
11032
|
}) {
|
10838
11033
|
const touch = useTouch();
|
10839
11034
|
const [itemRefs, setItemRefs] = useRefs();
|
11035
|
+
const groupRef = ref();
|
10840
11036
|
const untouchable = () => props.readonly || props.disabled || !props.touchable;
|
10841
11037
|
const list = computed(() => Array(+props.count).fill("").map((_, i) => getRateStatus(props.modelValue, i + 1, props.allowHalf, props.readonly)));
|
10842
11038
|
let ranges;
|
11039
|
+
let groupRefRect;
|
11040
|
+
let minRectTop = Number.MAX_SAFE_INTEGER;
|
11041
|
+
let maxRectTop = Number.MIN_SAFE_INTEGER;
|
10843
11042
|
const updateRanges = () => {
|
11043
|
+
groupRefRect = useRect(groupRef);
|
10844
11044
|
const rects = itemRefs.value.map(useRect);
|
10845
11045
|
ranges = [];
|
10846
11046
|
rects.forEach((rect, index) => {
|
11047
|
+
minRectTop = Math.min(rect.top, minRectTop);
|
11048
|
+
maxRectTop = Math.max(rect.top, maxRectTop);
|
10847
11049
|
if (props.allowHalf) {
|
10848
11050
|
ranges.push({
|
10849
11051
|
score: index + 0.5,
|
10850
|
-
left: rect.left
|
11052
|
+
left: rect.left,
|
11053
|
+
top: rect.top,
|
11054
|
+
height: rect.height
|
10851
11055
|
}, {
|
10852
11056
|
score: index + 1,
|
10853
|
-
left: rect.left + rect.width / 2
|
11057
|
+
left: rect.left + rect.width / 2,
|
11058
|
+
top: rect.top,
|
11059
|
+
height: rect.height
|
10854
11060
|
});
|
10855
11061
|
} else {
|
10856
11062
|
ranges.push({
|
10857
11063
|
score: index + 1,
|
10858
|
-
left: rect.left
|
11064
|
+
left: rect.left,
|
11065
|
+
top: rect.top,
|
11066
|
+
height: rect.height
|
10859
11067
|
});
|
10860
11068
|
}
|
10861
11069
|
});
|
10862
11070
|
};
|
10863
|
-
const getScoreByPosition = (x) => {
|
11071
|
+
const getScoreByPosition = (x, y) => {
|
10864
11072
|
for (let i = ranges.length - 1; i > 0; i--) {
|
10865
|
-
if (
|
10866
|
-
|
11073
|
+
if (y >= groupRefRect.top && y <= groupRefRect.bottom) {
|
11074
|
+
if (x > ranges[i].left && y >= ranges[i].top && y <= ranges[i].top + ranges[i].height) {
|
11075
|
+
return ranges[i].score;
|
11076
|
+
}
|
11077
|
+
} else {
|
11078
|
+
const curTop = y < groupRefRect.top ? minRectTop : maxRectTop;
|
11079
|
+
if (x > ranges[i].left && ranges[i].top === curTop) {
|
11080
|
+
return ranges[i].score;
|
11081
|
+
}
|
10867
11082
|
}
|
10868
11083
|
}
|
10869
11084
|
return props.allowHalf ? 0.5 : 1;
|
@@ -10888,10 +11103,11 @@ var stdin_default$l = defineComponent({
|
|
10888
11103
|
touch.move(event);
|
10889
11104
|
if (touch.isHorizontal()) {
|
10890
11105
|
const {
|
10891
|
-
clientX
|
11106
|
+
clientX,
|
11107
|
+
clientY
|
10892
11108
|
} = event.touches[0];
|
10893
11109
|
preventDefault(event);
|
10894
|
-
select(getScoreByPosition(clientX));
|
11110
|
+
select(getScoreByPosition(clientX, clientY));
|
10895
11111
|
}
|
10896
11112
|
};
|
10897
11113
|
const renderStar = (item, index) => {
|
@@ -10920,7 +11136,7 @@ var stdin_default$l = defineComponent({
|
|
10920
11136
|
}
|
10921
11137
|
const onClickItem = (event) => {
|
10922
11138
|
updateRanges();
|
10923
|
-
select(allowHalf ? getScoreByPosition(event.clientX) : score);
|
11139
|
+
select(allowHalf ? getScoreByPosition(event.clientX, event.clientY) : score);
|
10924
11140
|
};
|
10925
11141
|
return createVNode("div", {
|
10926
11142
|
"key": index,
|
@@ -10958,6 +11174,7 @@ var stdin_default$l = defineComponent({
|
|
10958
11174
|
};
|
10959
11175
|
useCustomFieldValue(() => props.modelValue);
|
10960
11176
|
return () => createVNode("div", {
|
11177
|
+
"ref": groupRef,
|
10961
11178
|
"role": "radiogroup",
|
10962
11179
|
"class": bem$f({
|
10963
11180
|
readonly: props.readonly,
|
@@ -10992,7 +11209,7 @@ var stdin_default$k = defineComponent({
|
|
10992
11209
|
slots,
|
10993
11210
|
attrs
|
10994
11211
|
}) {
|
10995
|
-
const id = useId();
|
11212
|
+
const id = useId$1();
|
10996
11213
|
const filedRef = ref();
|
10997
11214
|
const onCancel = () => {
|
10998
11215
|
if (!slots.action) {
|
@@ -11082,14 +11299,17 @@ var stdin_default$k = defineComponent({
|
|
11082
11299
|
}
|
11083
11300
|
});
|
11084
11301
|
const Search = withInstall(stdin_default$k);
|
11085
|
-
const PRESET_ICONS = ["qq", "link", "weibo", "wechat", "poster", "qrcode", "weapp-qrcode", "wechat-moments"];
|
11086
11302
|
const popupInheritKeys = [...popupSharedPropKeys, "round", "closeOnPopstate", "safeAreaInsetBottom"];
|
11087
|
-
|
11088
|
-
|
11089
|
-
|
11090
|
-
|
11091
|
-
|
11092
|
-
|
11303
|
+
const iconMap = {
|
11304
|
+
qq: "qq",
|
11305
|
+
link: "link-o",
|
11306
|
+
weibo: "weibo",
|
11307
|
+
qrcode: "qr",
|
11308
|
+
poster: "photo-o",
|
11309
|
+
wechat: "wechat",
|
11310
|
+
"weapp-qrcode": "miniprogram-o",
|
11311
|
+
"wechat-moments": "wechat-moments"
|
11312
|
+
};
|
11093
11313
|
const [name$e, bem$d, t$2] = createNamespace("share-sheet");
|
11094
11314
|
const shareSheetProps = extend({}, popupSharedProps, {
|
11095
11315
|
title: String,
|
@@ -11127,6 +11347,19 @@ var stdin_default$j = defineComponent({
|
|
11127
11347
|
}, [description])]);
|
11128
11348
|
}
|
11129
11349
|
};
|
11350
|
+
const renderIcon = (icon) => {
|
11351
|
+
if (iconMap[icon]) {
|
11352
|
+
return createVNode("div", {
|
11353
|
+
"class": bem$d("icon", [icon])
|
11354
|
+
}, [createVNode(Icon, {
|
11355
|
+
"name": iconMap[icon] || icon
|
11356
|
+
}, null)]);
|
11357
|
+
}
|
11358
|
+
return createVNode("img", {
|
11359
|
+
"src": icon,
|
11360
|
+
"class": bem$d("image-icon")
|
11361
|
+
}, null);
|
11362
|
+
};
|
11130
11363
|
const renderOption = (option, index) => {
|
11131
11364
|
const {
|
11132
11365
|
name: name2,
|
@@ -11139,10 +11372,7 @@ var stdin_default$j = defineComponent({
|
|
11139
11372
|
"tabindex": 0,
|
11140
11373
|
"class": [bem$d("option"), className, HAPTICS_FEEDBACK],
|
11141
11374
|
"onClick": () => onSelect(option, index)
|
11142
|
-
}, [createVNode("
|
11143
|
-
"src": getIconURL(icon),
|
11144
|
-
"class": bem$d("icon")
|
11145
|
-
}, null), name2 && createVNode("span", {
|
11375
|
+
}, [renderIcon(icon), name2 && createVNode("span", {
|
11146
11376
|
"class": bem$d("name")
|
11147
11377
|
}, [name2]), description && createVNode("span", {
|
11148
11378
|
"class": bem$d("option-description")
|
@@ -12597,7 +12827,6 @@ var stdin_default$6 = defineComponent({
|
|
12597
12827
|
});
|
12598
12828
|
const TreeSelect = withInstall(stdin_default$6);
|
12599
12829
|
const [name, bem, t] = createNamespace("uploader");
|
12600
|
-
const toArray = (item) => Array.isArray(item) ? item : [item];
|
12601
12830
|
function readFileContent(file, resultType) {
|
12602
12831
|
return new Promise((resolve) => {
|
12603
12832
|
if (resultType === "file") {
|
@@ -12663,7 +12892,7 @@ var stdin_default$5 = defineComponent({
|
|
12663
12892
|
imageFit: String,
|
12664
12893
|
lazyLoad: Boolean,
|
12665
12894
|
deletable: Boolean,
|
12666
|
-
previewSize:
|
12895
|
+
previewSize: [Number, String, Array],
|
12667
12896
|
beforeDelete: Function
|
12668
12897
|
},
|
12669
12898
|
emits: ["delete", "preview"],
|
@@ -12710,13 +12939,16 @@ var stdin_default$5 = defineComponent({
|
|
12710
12939
|
const onPreview = () => emit("preview");
|
12711
12940
|
const renderDeleteIcon = () => {
|
12712
12941
|
if (props.deletable && props.item.status !== "uploading") {
|
12942
|
+
const slot = slots["preview-delete"];
|
12713
12943
|
return createVNode("div", {
|
12714
12944
|
"role": "button",
|
12715
|
-
"class": bem("preview-delete"
|
12945
|
+
"class": bem("preview-delete", {
|
12946
|
+
shadow: !slot
|
12947
|
+
}),
|
12716
12948
|
"tabindex": 0,
|
12717
12949
|
"aria-label": t("delete"),
|
12718
12950
|
"onClick": onDelete
|
12719
|
-
}, [createVNode(Icon, {
|
12951
|
+
}, [slot ? slot() : createVNode(Icon, {
|
12720
12952
|
"name": "cross",
|
12721
12953
|
"class": bem("preview-delete-icon")
|
12722
12954
|
}, null)]);
|
@@ -12737,16 +12969,19 @@ var stdin_default$5 = defineComponent({
|
|
12737
12969
|
};
|
12738
12970
|
const renderPreview = () => {
|
12739
12971
|
const {
|
12740
|
-
item
|
12972
|
+
item,
|
12973
|
+
lazyLoad,
|
12974
|
+
imageFit,
|
12975
|
+
previewSize
|
12741
12976
|
} = props;
|
12742
12977
|
if (isImageFile(item)) {
|
12743
12978
|
return createVNode(Image$1, {
|
12744
|
-
"fit":
|
12979
|
+
"fit": imageFit,
|
12745
12980
|
"src": item.content || item.url,
|
12746
12981
|
"class": bem("preview-image"),
|
12747
|
-
"width":
|
12748
|
-
"height":
|
12749
|
-
"lazyLoad":
|
12982
|
+
"width": Array.isArray(previewSize) ? previewSize[0] : previewSize,
|
12983
|
+
"height": Array.isArray(previewSize) ? previewSize[1] : previewSize,
|
12984
|
+
"lazyLoad": lazyLoad,
|
12750
12985
|
"onClick": onPreview
|
12751
12986
|
}, {
|
12752
12987
|
default: renderCover
|
@@ -12786,7 +13021,7 @@ const uploaderProps = {
|
|
12786
13021
|
modelValue: makeArrayProp(),
|
12787
13022
|
beforeRead: Function,
|
12788
13023
|
beforeDelete: Function,
|
12789
|
-
previewSize:
|
13024
|
+
previewSize: [Number, String, Array],
|
12790
13025
|
previewImage: truthProp,
|
12791
13026
|
previewOptions: Object,
|
12792
13027
|
previewFullImage: truthProp,
|
@@ -12940,9 +13175,7 @@ var stdin_default$4 = defineComponent({
|
|
12940
13175
|
"onClick": () => emit("clickPreview", item, getDetail(index)),
|
12941
13176
|
"onDelete": () => deleteFile(item, index),
|
12942
13177
|
"onPreview": () => previewImage(item)
|
12943
|
-
}, pick(props, ["name", "lazyLoad"]), previewData),
|
12944
|
-
"preview-cover": slots["preview-cover"]
|
12945
|
-
});
|
13178
|
+
}, pick(props, ["name", "lazyLoad"]), previewData), pick(slots, ["preview-cover", "preview-delete"]));
|
12946
13179
|
};
|
12947
13180
|
const renderPreviewList = () => {
|
12948
13181
|
if (props.previewImage) {
|
@@ -13853,7 +14086,7 @@ const Lazyload = {
|
|
13853
14086
|
});
|
13854
14087
|
}
|
13855
14088
|
};
|
13856
|
-
const version = "4.0.0-alpha.
|
14089
|
+
const version = "4.0.0-alpha.4";
|
13857
14090
|
function install(app) {
|
13858
14091
|
const components = [
|
13859
14092
|
ActionBar,
|