vant 4.0.3 → 4.0.5
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 +0 -1
- package/es/badge/Badge.mjs +12 -3
- package/es/field/Field.mjs +38 -5
- package/es/form/Form.mjs +3 -1
- package/es/image/Image.mjs +10 -2
- package/es/index.d.ts +1 -1
- package/es/index.mjs +1 -1
- package/{lib/locale/lang/de-DE-formal.d.ts → es/locale/lang/mm-MN.d.ts} +1 -1
- package/es/locale/lang/mm-MN.mjs +64 -0
- package/{lib/locale/lang/bn-BD.d.ts → es/locale/lang/nl-NL.d.ts} +0 -0
- package/es/locale/lang/nl-NL.mjs +64 -0
- package/es/picker/index.css +1 -1
- package/lib/vant.cjs.js +111 -59
- package/lib/vant.es.js +111 -59
- package/lib/vant.js +110 -58
- package/lib/vant.min.js +1 -1
- package/lib/web-types.json +1 -1
- package/package.json +1 -1
- package/lib/action-bar/ActionBar.d.ts +0 -27
- package/lib/action-bar/ActionBar.js +0 -64
- package/lib/action-bar/index.css +0 -1
- package/lib/action-bar/index.d.ts +0 -25
- package/lib/action-bar/index.js +0 -35
- package/lib/action-bar/style/index.d.ts +0 -1
- package/lib/action-bar/style/index.js +0 -2
- package/lib/action-bar/types.d.ts +0 -4
- package/lib/action-bar/types.js +0 -15
- package/lib/action-bar-button/ActionBarButton.d.ts +0 -43
- package/lib/action-bar-button/ActionBarButton.js +0 -93
- package/lib/action-bar-button/index.css +0 -1
- package/lib/action-bar-button/index.d.ts +0 -36
- package/lib/action-bar-button/index.js +0 -35
- package/lib/action-bar-button/style/index.d.ts +0 -1
- package/lib/action-bar-button/style/index.js +0 -7
- package/lib/action-bar-button/types.d.ts +0 -5
- package/lib/action-bar-button/types.js +0 -15
- package/lib/action-bar-icon/ActionBarIcon.d.ts +0 -48
- package/lib/action-bar-icon/ActionBarIcon.js +0 -88
- package/lib/action-bar-icon/index.css +0 -1
- package/lib/action-bar-icon/index.d.ts +0 -39
- package/lib/action-bar-icon/index.js +0 -35
- package/lib/action-bar-icon/style/index.d.ts +0 -1
- package/lib/action-bar-icon/style/index.js +0 -5
- package/lib/action-bar-icon/types.d.ts +0 -10
- package/lib/action-bar-icon/types.js +0 -15
- package/lib/action-sheet/ActionSheet.d.ts +0 -194
- package/lib/action-sheet/ActionSheet.js +0 -151
- package/lib/action-sheet/index.css +0 -1
- package/lib/action-sheet/index.d.ts +0 -136
- package/lib/action-sheet/index.js +0 -35
- package/lib/action-sheet/style/index.d.ts +0 -1
- package/lib/action-sheet/style/index.js +0 -7
- package/lib/action-sheet/types.d.ts +0 -23
- package/lib/action-sheet/types.js +0 -15
- package/lib/address-edit/AddressEdit.d.ts +0 -157
- package/lib/address-edit/AddressEdit.js +0 -314
- package/lib/address-edit/AddressEditDetail.d.ts +0 -32
- package/lib/address-edit/AddressEditDetail.js +0 -95
- package/lib/address-edit/index.css +0 -1
- package/lib/address-edit/index.d.ts +0 -118
- package/lib/address-edit/index.js +0 -35
- package/lib/address-edit/style/index.d.ts +0 -1
- package/lib/address-edit/style/index.js +0 -19
- package/lib/address-edit/types.d.ts +0 -28
- package/lib/address-edit/types.js +0 -15
- package/lib/address-list/AddressList.d.ts +0 -69
- package/lib/address-list/AddressList.js +0 -108
- package/lib/address-list/AddressListItem.d.ts +0 -34
- package/lib/address-list/AddressListItem.js +0 -115
- package/lib/address-list/index.css +0 -1
- package/lib/address-list/index.d.ts +0 -57
- package/lib/address-list/index.js +0 -35
- package/lib/address-list/style/index.d.ts +0 -1
- package/lib/address-list/style/index.js +0 -11
- package/lib/address-list/types.d.ts +0 -15
- package/lib/address-list/types.js +0 -15
- package/lib/area/Area.d.ts +0 -136
- package/lib/area/Area.js +0 -96
- package/lib/area/index.d.ts +0 -102
- package/lib/area/index.js +0 -35
- package/lib/area/style/index.d.ts +0 -1
- package/lib/area/style/index.js +0 -10
- package/lib/area/types.d.ts +0 -9
- package/lib/area/types.js +0 -15
- package/lib/area/utils.d.ts +0 -6
- package/lib/area/utils.js +0 -111
- package/lib/back-top/BackTop.d.ts +0 -46
- package/lib/back-top/BackTop.js +0 -120
- package/lib/back-top/index.css +0 -1
- package/lib/back-top/index.d.ts +0 -39
- package/lib/back-top/index.js +0 -35
- package/lib/back-top/style/index.d.ts +0 -1
- package/lib/back-top/style/index.js +0 -4
- package/lib/back-top/types.d.ts +0 -6
- package/lib/back-top/types.js +0 -15
- package/lib/badge/Badge.d.ts +0 -66
- package/lib/badge/Badge.js +0 -115
- package/lib/badge/index.css +0 -1
- package/lib/badge/index.d.ts +0 -51
- package/lib/badge/index.js +0 -35
- package/lib/badge/style/index.d.ts +0 -1
- package/lib/badge/style/index.js +0 -2
- package/lib/badge/types.d.ts +0 -12
- package/lib/badge/types.js +0 -15
- package/lib/button/Button.d.ts +0 -140
- package/lib/button/Button.js +0 -168
- package/lib/button/index.css +0 -1
- package/lib/button/index.d.ts +0 -104
- package/lib/button/index.js +0 -35
- package/lib/button/style/index.d.ts +0 -1
- package/lib/button/style/index.js +0 -5
- package/lib/button/types.d.ts +0 -41
- package/lib/button/types.js +0 -15
- package/lib/calendar/Calendar.d.ts +0 -292
- package/lib/calendar/Calendar.js +0 -439
- package/lib/calendar/CalendarDay.d.ts +0 -32
- package/lib/calendar/CalendarDay.js +0 -148
- package/lib/calendar/CalendarHeader.d.ts +0 -21
- package/lib/calendar/CalendarHeader.js +0 -81
- package/lib/calendar/CalendarMonth.d.ts +0 -86
- package/lib/calendar/CalendarMonth.js +0 -233
- package/lib/calendar/index.css +0 -1
- package/lib/calendar/index.d.ts +0 -210
- package/lib/calendar/index.js +0 -35
- package/lib/calendar/style/index.d.ts +0 -1
- package/lib/calendar/style/index.js +0 -16
- package/lib/calendar/types.d.ts +0 -56
- package/lib/calendar/types.js +0 -15
- package/lib/calendar/utils.d.ts +0 -12
- package/lib/calendar/utils.js +0 -75
- package/lib/card/Card.d.ts +0 -56
- package/lib/card/Card.js +0 -146
- package/lib/card/index.css +0 -1
- package/lib/card/index.d.ts +0 -46
- package/lib/card/index.js +0 -35
- package/lib/card/style/index.d.ts +0 -1
- package/lib/card/style/index.js +0 -6
- package/lib/card/types.d.ts +0 -18
- package/lib/card/types.js +0 -15
- package/lib/cascader/Cascader.d.ts +0 -96
- package/lib/cascader/Cascader.js +0 -247
- package/lib/cascader/index.css +0 -1
- package/lib/cascader/index.d.ts +0 -74
- package/lib/cascader/index.js +0 -35
- package/lib/cascader/style/index.d.ts +0 -1
- package/lib/cascader/style/index.js +0 -9
- package/lib/cascader/types.d.ts +0 -34
- package/lib/cascader/types.js +0 -15
- package/lib/cell/Cell.d.ts +0 -136
- package/lib/cell/Cell.js +0 -148
- package/lib/cell/index.css +0 -1
- package/lib/cell/index.d.ts +0 -80
- package/lib/cell/index.js +0 -35
- package/lib/cell/style/index.d.ts +0 -1
- package/lib/cell/style/index.js +0 -4
- package/lib/cell/types.d.ts +0 -21
- package/lib/cell/types.js +0 -15
- package/lib/cell-group/CellGroup.d.ts +0 -29
- package/lib/cell-group/CellGroup.js +0 -63
- package/lib/cell-group/index.css +0 -1
- package/lib/cell-group/index.d.ts +0 -27
- package/lib/cell-group/index.js +0 -35
- package/lib/cell-group/style/index.d.ts +0 -1
- package/lib/cell-group/style/index.js +0 -2
- package/lib/cell-group/types.d.ts +0 -10
- package/lib/cell-group/types.js +0 -15
- package/lib/checkbox/Checkbox.d.ts +0 -64
- package/lib/checkbox/Checkbox.js +0 -107
- package/lib/checkbox/Checker.d.ts +0 -85
- package/lib/checkbox/Checker.js +0 -126
- package/lib/checkbox/index.css +0 -1
- package/lib/checkbox/index.d.ts +0 -52
- package/lib/checkbox/index.js +0 -35
- package/lib/checkbox/style/index.d.ts +0 -1
- package/lib/checkbox/style/index.js +0 -5
- package/lib/checkbox/types.d.ts +0 -24
- package/lib/checkbox/types.js +0 -15
- package/lib/checkbox-group/CheckboxGroup.d.ts +0 -44
- package/lib/checkbox-group/CheckboxGroup.js +0 -91
- package/lib/checkbox-group/index.css +0 -1
- package/lib/checkbox-group/index.d.ts +0 -36
- package/lib/checkbox-group/index.js +0 -35
- package/lib/checkbox-group/style/index.d.ts +0 -1
- package/lib/checkbox-group/style/index.js +0 -2
- package/lib/checkbox-group/types.d.ts +0 -16
- package/lib/checkbox-group/types.js +0 -15
- package/lib/circle/Circle.d.ts +0 -118
- package/lib/circle/Circle.js +0 -172
- package/lib/circle/index.css +0 -1
- package/lib/circle/index.d.ts +0 -88
- package/lib/circle/index.js +0 -35
- package/lib/circle/style/index.d.ts +0 -1
- package/lib/circle/style/index.js +0 -2
- package/lib/circle/types.d.ts +0 -9
- package/lib/circle/types.js +0 -15
- package/lib/col/Col.d.ts +0 -38
- package/lib/col/Col.js +0 -83
- package/lib/col/index.css +0 -1
- package/lib/col/index.d.ts +0 -32
- package/lib/col/index.js +0 -35
- package/lib/col/style/index.d.ts +0 -1
- package/lib/col/style/index.js +0 -3
- package/lib/collapse/Collapse.d.ts +0 -55
- package/lib/collapse/Collapse.js +0 -128
- package/lib/collapse/index.d.ts +0 -36
- package/lib/collapse/index.js +0 -35
- package/lib/collapse/style/index.d.ts +0 -1
- package/lib/collapse/style/index.js +0 -1
- package/lib/collapse-item/CollapseItem.d.ts +0 -132
- package/lib/collapse-item/CollapseItem.js +0 -156
- package/lib/collapse-item/index.css +0 -1
- package/lib/collapse-item/index.d.ts +0 -98
- package/lib/collapse-item/index.js +0 -35
- package/lib/collapse-item/style/index.d.ts +0 -1
- package/lib/collapse-item/style/index.js +0 -5
- package/lib/collapse-item/types.d.ts +0 -15
- package/lib/collapse-item/types.js +0 -15
- package/lib/composables/on-popup-reopen.d.ts +0 -3
- package/lib/composables/on-popup-reopen.js +0 -35
- package/lib/composables/use-expose.d.ts +0 -1
- package/lib/composables/use-expose.js +0 -30
- package/lib/composables/use-global-z-index.d.ts +0 -4
- package/lib/composables/use-global-z-index.js +0 -28
- package/lib/composables/use-height.d.ts +0 -2
- package/lib/composables/use-height.js +0 -43
- package/lib/composables/use-id.d.ts +0 -1
- package/lib/composables/use-id.js +0 -32
- package/lib/composables/use-lazy-render.d.ts +0 -2
- package/lib/composables/use-lazy-render.js +0 -36
- package/lib/composables/use-lock-scroll.d.ts +0 -2
- package/lib/composables/use-lock-scroll.js +0 -77
- package/lib/composables/use-placeholder.d.ts +0 -3
- package/lib/composables/use-placeholder.js +0 -33
- package/lib/composables/use-refs.d.ts +0 -2
- package/lib/composables/use-refs.js +0 -39
- package/lib/composables/use-route.d.ts +0 -13
- package/lib/composables/use-route.js +0 -46
- package/lib/composables/use-sync-prop-ref.d.ts +0 -2
- package/lib/composables/use-sync-prop-ref.js +0 -37
- package/lib/composables/use-tab-status.d.ts +0 -3
- package/lib/composables/use-tab-status.js +0 -26
- package/lib/composables/use-touch.d.ts +0 -16
- package/lib/composables/use-touch.js +0 -80
- package/lib/composables/use-visibility-change.d.ts +0 -2
- package/lib/composables/use-visibility-change.js +0 -49
- package/lib/config-provider/ConfigProvider.d.ts +0 -57
- package/lib/config-provider/ConfigProvider.js +0 -89
- package/lib/config-provider/index.d.ts +0 -41
- package/lib/config-provider/index.js +0 -35
- package/lib/config-provider/style/index.d.ts +0 -1
- package/lib/config-provider/style/index.js +0 -1
- package/lib/config-provider/types.d.ts +0 -1
- package/lib/config-provider/types.js +0 -15
- package/lib/contact-card/ContactCard.d.ts +0 -47
- package/lib/contact-card/ContactCard.js +0 -66
- package/lib/contact-card/index.css +0 -1
- package/lib/contact-card/index.d.ts +0 -39
- package/lib/contact-card/index.js +0 -35
- package/lib/contact-card/style/index.d.ts +0 -1
- package/lib/contact-card/style/index.js +0 -5
- package/lib/contact-card/types.d.ts +0 -6
- package/lib/contact-card/types.js +0 -15
- package/lib/contact-edit/ContactEdit.d.ts +0 -64
- package/lib/contact-edit/ContactEdit.js +0 -132
- package/lib/contact-edit/index.css +0 -1
- package/lib/contact-edit/index.d.ts +0 -49
- package/lib/contact-edit/index.js +0 -35
- package/lib/contact-edit/style/index.d.ts +0 -1
- package/lib/contact-edit/style/index.js +0 -9
- package/lib/contact-edit/types.d.ts +0 -8
- package/lib/contact-edit/types.js +0 -15
- package/lib/contact-list/ContactList.d.ts +0 -32
- package/lib/contact-list/ContactList.js +0 -109
- package/lib/contact-list/index.css +0 -1
- package/lib/contact-list/index.d.ts +0 -25
- package/lib/contact-list/index.js +0 -35
- package/lib/contact-list/style/index.d.ts +0 -1
- package/lib/contact-list/style/index.js +0 -11
- package/lib/contact-list/types.d.ts +0 -6
- package/lib/contact-list/types.js +0 -15
- package/lib/count-down/CountDown.d.ts +0 -55
- package/lib/count-down/CountDown.js +0 -76
- package/lib/count-down/index.css +0 -1
- package/lib/count-down/index.d.ts +0 -46
- package/lib/count-down/index.js +0 -35
- package/lib/count-down/style/index.d.ts +0 -1
- package/lib/count-down/style/index.js +0 -2
- package/lib/count-down/types.d.ts +0 -16
- package/lib/count-down/types.js +0 -15
- package/lib/count-down/utils.d.ts +0 -2
- package/lib/count-down/utils.js +0 -58
- package/lib/coupon/Coupon.d.ts +0 -45
- package/lib/coupon/Coupon.js +0 -99
- package/lib/coupon/index.css +0 -1
- package/lib/coupon/index.d.ts +0 -35
- package/lib/coupon/index.js +0 -33
- package/lib/coupon/style/index.d.ts +0 -1
- package/lib/coupon/style/index.js +0 -6
- package/lib/coupon/types.d.ts +0 -19
- package/lib/coupon/types.js +0 -15
- package/lib/coupon/utils.d.ts +0 -3
- package/lib/coupon/utils.js +0 -33
- package/lib/coupon-cell/CouponCell.d.ts +0 -78
- package/lib/coupon-cell/CouponCell.js +0 -74
- package/lib/coupon-cell/index.css +0 -1
- package/lib/coupon-cell/index.d.ts +0 -60
- package/lib/coupon-cell/index.js +0 -35
- package/lib/coupon-cell/style/index.d.ts +0 -1
- package/lib/coupon-cell/style/index.js +0 -5
- package/lib/coupon-cell/types.d.ts +0 -3
- package/lib/coupon-cell/types.js +0 -15
- package/lib/coupon-list/CouponList.d.ts +0 -170
- package/lib/coupon-list/CouponList.js +0 -206
- package/lib/coupon-list/index.css +0 -1
- package/lib/coupon-list/index.d.ts +0 -125
- package/lib/coupon-list/index.js +0 -35
- package/lib/coupon-list/style/index.d.ts +0 -1
- package/lib/coupon-list/style/index.js +0 -17
- package/lib/coupon-list/types.d.ts +0 -9
- package/lib/coupon-list/types.js +0 -15
- package/lib/date-picker/DatePicker.d.ts +0 -171
- package/lib/date-picker/DatePicker.js +0 -137
- package/lib/date-picker/index.d.ts +0 -127
- package/lib/date-picker/index.js +0 -35
- package/lib/date-picker/style/index.d.ts +0 -1
- package/lib/date-picker/style/index.js +0 -10
- package/lib/date-picker/utils.d.ts +0 -45
- package/lib/date-picker/utils.js +0 -70
- package/lib/dialog/Dialog.d.ts +0 -187
- package/lib/dialog/Dialog.js +0 -237
- package/lib/dialog/function-call.d.ts +0 -6
- package/lib/dialog/function-call.js +0 -110
- package/lib/dialog/index.css +0 -1
- package/lib/dialog/index.d.ts +0 -138
- package/lib/dialog/index.js +0 -41
- package/lib/dialog/style/index.d.ts +0 -1
- package/lib/dialog/style/index.js +0 -10
- package/lib/dialog/types.d.ts +0 -53
- package/lib/dialog/types.js +0 -15
- package/lib/divider/Divider.d.ts +0 -40
- package/lib/divider/Divider.js +0 -51
- package/lib/divider/index.css +0 -1
- package/lib/divider/index.d.ts +0 -34
- package/lib/divider/index.js +0 -35
- package/lib/divider/style/index.d.ts +0 -1
- package/lib/divider/style/index.js +0 -2
- package/lib/divider/types.d.ts +0 -10
- package/lib/divider/types.js +0 -15
- package/lib/dropdown-item/DropdownItem.d.ts +0 -59
- package/lib/dropdown-item/DropdownItem.js +0 -202
- package/lib/dropdown-item/index.css +0 -1
- package/lib/dropdown-item/index.d.ts +0 -50
- package/lib/dropdown-item/index.js +0 -35
- package/lib/dropdown-item/style/index.d.ts +0 -1
- package/lib/dropdown-item/style/index.js +0 -8
- package/lib/dropdown-item/types.d.ts +0 -25
- package/lib/dropdown-item/types.js +0 -15
- package/lib/dropdown-menu/DropdownMenu.d.ts +0 -82
- package/lib/dropdown-menu/DropdownMenu.js +0 -156
- package/lib/dropdown-menu/index.css +0 -1
- package/lib/dropdown-menu/index.d.ts +0 -63
- package/lib/dropdown-menu/index.js +0 -35
- package/lib/dropdown-menu/style/index.d.ts +0 -1
- package/lib/dropdown-menu/style/index.js +0 -2
- package/lib/dropdown-menu/types.d.ts +0 -21
- package/lib/dropdown-menu/types.js +0 -15
- package/lib/empty/Empty.d.ts +0 -29
- package/lib/empty/Empty.js +0 -342
- package/lib/empty/index.css +0 -1
- package/lib/empty/index.d.ts +0 -26
- package/lib/empty/index.js +0 -35
- package/lib/empty/style/index.d.ts +0 -1
- package/lib/empty/style/index.js +0 -2
- package/lib/empty/types.d.ts +0 -10
- package/lib/empty/types.js +0 -15
- package/lib/field/Field.d.ts +0 -337
- package/lib/field/Field.js +0 -496
- package/lib/field/index.css +0 -1
- package/lib/field/index.d.ts +0 -213
- package/lib/field/index.js +0 -35
- package/lib/field/style/index.d.ts +0 -1
- package/lib/field/style/index.js +0 -5
- package/lib/field/types.d.ts +0 -65
- package/lib/field/types.js +0 -15
- package/lib/field/utils.d.ts +0 -15
- package/lib/field/utils.js +0 -120
- package/lib/form/Form.d.ts +0 -88
- package/lib/form/Form.js +0 -178
- package/lib/form/index.d.ts +0 -70
- package/lib/form/index.js +0 -35
- package/lib/form/style/index.d.ts +0 -1
- package/lib/form/style/index.js +0 -1
- package/lib/form/types.d.ts +0 -15
- package/lib/form/types.js +0 -15
- package/lib/grid/Grid.d.ts +0 -74
- package/lib/grid/Grid.js +0 -67
- package/lib/grid/index.css +0 -1
- package/lib/grid/index.d.ts +0 -54
- package/lib/grid/index.js +0 -35
- package/lib/grid/style/index.d.ts +0 -1
- package/lib/grid/style/index.js +0 -2
- package/lib/grid-item/GridItem.d.ts +0 -45
- package/lib/grid-item/GridItem.js +0 -165
- package/lib/grid-item/index.css +0 -1
- package/lib/grid-item/index.d.ts +0 -37
- package/lib/grid-item/index.js +0 -35
- package/lib/grid-item/style/index.d.ts +0 -1
- package/lib/grid-item/style/index.js +0 -5
- package/lib/grid-item/types.d.ts +0 -8
- package/lib/grid-item/types.js +0 -15
- package/lib/icon/Icon.d.ts +0 -45
- package/lib/icon/Icon.js +0 -79
- package/lib/icon/index.css +0 -1
- package/lib/icon/index.d.ts +0 -36
- package/lib/icon/index.js +0 -35
- package/lib/icon/style/index.d.ts +0 -1
- package/lib/icon/style/index.js +0 -3
- package/lib/image/Image.d.ts +0 -105
- package/lib/image/Image.js +0 -182
- package/lib/image/index.css +0 -1
- package/lib/image/index.d.ts +0 -79
- package/lib/image/index.js +0 -35
- package/lib/image/style/index.d.ts +0 -1
- package/lib/image/style/index.js +0 -4
- package/lib/image/types.d.ts +0 -9
- package/lib/image/types.js +0 -15
- package/lib/image-preview/ImagePreview.d.ts +0 -188
- package/lib/image-preview/ImagePreview.js +0 -192
- package/lib/image-preview/ImagePreviewItem.d.ts +0 -48
- package/lib/image-preview/ImagePreviewItem.js +0 -284
- package/lib/image-preview/function-call.d.ts +0 -3
- package/lib/image-preview/function-call.js +0 -89
- package/lib/image-preview/index.css +0 -1
- package/lib/image-preview/index.d.ts +0 -140
- package/lib/image-preview/index.js +0 -37
- package/lib/image-preview/style/index.d.ts +0 -1
- package/lib/image-preview/style/index.js +0 -10
- package/lib/image-preview/types.d.ts +0 -50
- package/lib/image-preview/types.js +0 -15
- package/lib/index-anchor/IndexAnchor.d.ts +0 -11
- package/lib/index-anchor/IndexAnchor.js +0 -107
- package/lib/index-anchor/index.css +0 -1
- package/lib/index-anchor/index.d.ts +0 -14
- package/lib/index-anchor/index.js +0 -35
- package/lib/index-anchor/style/index.d.ts +0 -1
- package/lib/index-anchor/style/index.js +0 -3
- package/lib/index-anchor/types.d.ts +0 -11
- package/lib/index-anchor/types.js +0 -15
- package/lib/index-bar/IndexBar.d.ts +0 -64
- package/lib/index-bar/IndexBar.js +0 -246
- package/lib/index-bar/index.css +0 -1
- package/lib/index-bar/index.d.ts +0 -50
- package/lib/index-bar/index.js +0 -35
- package/lib/index-bar/style/index.d.ts +0 -1
- package/lib/index-bar/style/index.js +0 -2
- package/lib/index-bar/types.d.ts +0 -16
- package/lib/index-bar/types.js +0 -15
- package/lib/index.css +0 -1
- package/lib/index.d.ts +0 -97
- package/lib/index.js +0 -309
- package/lib/lazyload/index.d.ts +0 -3
- package/lib/lazyload/index.js +0 -25
- package/lib/lazyload/style/index.d.ts +0 -1
- package/lib/lazyload/style/index.js +0 -1
- package/lib/lazyload/vue-lazyload/index.d.ts +0 -55
- package/lib/lazyload/vue-lazyload/index.js +0 -56
- package/lib/lazyload/vue-lazyload/lazy-component.js +0 -70
- package/lib/lazyload/vue-lazyload/lazy-container.js +0 -93
- package/lib/lazyload/vue-lazyload/lazy-image.js +0 -119
- package/lib/lazyload/vue-lazyload/lazy.js +0 -378
- package/lib/lazyload/vue-lazyload/listener.js +0 -192
- package/lib/lazyload/vue-lazyload/util.d.ts +0 -25
- package/lib/lazyload/vue-lazyload/util.js +0 -185
- package/lib/list/List.d.ts +0 -78
- package/lib/list/List.js +0 -160
- package/lib/list/index.css +0 -1
- package/lib/list/index.d.ts +0 -63
- package/lib/list/index.js +0 -35
- package/lib/list/style/index.d.ts +0 -1
- package/lib/list/style/index.js +0 -3
- package/lib/list/types.d.ts +0 -13
- package/lib/list/types.js +0 -15
- package/lib/loading/Loading.d.ts +0 -39
- package/lib/loading/Loading.js +0 -90
- package/lib/loading/index.css +0 -1
- package/lib/loading/index.d.ts +0 -33
- package/lib/loading/index.js +0 -35
- package/lib/loading/style/index.d.ts +0 -1
- package/lib/loading/style/index.js +0 -2
- package/lib/loading/types.d.ts +0 -7
- package/lib/loading/types.js +0 -15
- package/lib/locale/index.d.ts +0 -7
- package/lib/locale/index.js +0 -49
- package/lib/locale/lang/bg-BG.d.ts +0 -64
- package/lib/locale/lang/bg-BG.js +0 -93
- package/lib/locale/lang/bn-BD.js +0 -91
- package/lib/locale/lang/da-DK.d.ts +0 -64
- package/lib/locale/lang/da-DK.js +0 -85
- package/lib/locale/lang/de-DE-formal.js +0 -83
- package/lib/locale/lang/de-DE.d.ts +0 -62
- package/lib/locale/lang/de-DE.js +0 -83
- package/lib/locale/lang/el-GR.d.ts +0 -64
- package/lib/locale/lang/el-GR.js +0 -93
- package/lib/locale/lang/en-US.d.ts +0 -62
- package/lib/locale/lang/en-US.js +0 -83
- package/lib/locale/lang/es-ES.d.ts +0 -62
- package/lib/locale/lang/es-ES.js +0 -83
- package/lib/locale/lang/fa-IR.d.ts +0 -64
- package/lib/locale/lang/fa-IR.js +0 -93
- package/lib/locale/lang/fr-FR.d.ts +0 -62
- package/lib/locale/lang/fr-FR.js +0 -83
- package/lib/locale/lang/he-IL.d.ts +0 -64
- package/lib/locale/lang/he-IL.js +0 -85
- package/lib/locale/lang/hi-IN.d.ts +0 -62
- package/lib/locale/lang/hi-IN.js +0 -91
- package/lib/locale/lang/id-ID.d.ts +0 -62
- package/lib/locale/lang/id-ID.js +0 -83
- package/lib/locale/lang/is-IS.d.ts +0 -62
- package/lib/locale/lang/is-IS.js +0 -91
- package/lib/locale/lang/it-IT.d.ts +0 -62
- package/lib/locale/lang/it-IT.js +0 -91
- package/lib/locale/lang/ja-JP.d.ts +0 -62
- package/lib/locale/lang/ja-JP.js +0 -83
- package/lib/locale/lang/ko-KR.d.ts +0 -62
- package/lib/locale/lang/ko-KR.js +0 -91
- package/lib/locale/lang/la-LA.d.ts +0 -62
- package/lib/locale/lang/la-LA.js +0 -83
- package/lib/locale/lang/nb-NO.d.ts +0 -62
- package/lib/locale/lang/nb-NO.js +0 -83
- package/lib/locale/lang/pt-BR.d.ts +0 -62
- package/lib/locale/lang/pt-BR.js +0 -83
- package/lib/locale/lang/ro-RO.d.ts +0 -62
- package/lib/locale/lang/ro-RO.js +0 -83
- package/lib/locale/lang/ru-RU.d.ts +0 -62
- package/lib/locale/lang/ru-RU.js +0 -83
- package/lib/locale/lang/sv-SE.d.ts +0 -62
- package/lib/locale/lang/sv-SE.js +0 -83
- package/lib/locale/lang/th-TH.d.ts +0 -62
- package/lib/locale/lang/th-TH.js +0 -83
- package/lib/locale/lang/tr-TR.d.ts +0 -62
- package/lib/locale/lang/tr-TR.js +0 -83
- package/lib/locale/lang/uk-UA.d.ts +0 -62
- package/lib/locale/lang/uk-UA.js +0 -91
- package/lib/locale/lang/vi-VN.d.ts +0 -62
- package/lib/locale/lang/vi-VN.js +0 -91
- package/lib/locale/lang/zh-CN.d.ts +0 -62
- package/lib/locale/lang/zh-CN.js +0 -83
- package/lib/locale/lang/zh-HK.d.ts +0 -62
- package/lib/locale/lang/zh-HK.js +0 -83
- package/lib/locale/lang/zh-TW.d.ts +0 -62
- package/lib/locale/lang/zh-TW.js +0 -83
- package/lib/locale/style/index.d.ts +0 -1
- package/lib/locale/style/index.js +0 -1
- package/lib/nav-bar/NavBar.d.ts +0 -66
- package/lib/nav-bar/NavBar.js +0 -111
- package/lib/nav-bar/index.css +0 -1
- package/lib/nav-bar/index.d.ts +0 -54
- package/lib/nav-bar/index.js +0 -35
- package/lib/nav-bar/style/index.d.ts +0 -1
- package/lib/nav-bar/style/index.js +0 -4
- package/lib/nav-bar/types.d.ts +0 -10
- package/lib/nav-bar/types.js +0 -15
- package/lib/notice-bar/NoticeBar.d.ts +0 -71
- package/lib/notice-bar/NoticeBar.js +0 -185
- package/lib/notice-bar/index.css +0 -1
- package/lib/notice-bar/index.d.ts +0 -57
- package/lib/notice-bar/index.js +0 -35
- package/lib/notice-bar/style/index.d.ts +0 -1
- package/lib/notice-bar/style/index.js +0 -4
- package/lib/notice-bar/types.d.ts +0 -18
- package/lib/notice-bar/types.js +0 -15
- package/lib/notify/Notify.d.ts +0 -134
- package/lib/notify/Notify.js +0 -65
- package/lib/notify/function-call.d.ts +0 -6
- package/lib/notify/function-call.js +0 -93
- package/lib/notify/index.css +0 -1
- package/lib/notify/index.d.ts +0 -100
- package/lib/notify/index.js +0 -40
- package/lib/notify/style/index.d.ts +0 -1
- package/lib/notify/style/index.js +0 -6
- package/lib/notify/types.d.ts +0 -27
- package/lib/notify/types.js +0 -15
- package/lib/number-keyboard/NumberKeyboard.d.ts +0 -162
- package/lib/number-keyboard/NumberKeyboard.js +0 -256
- package/lib/number-keyboard/NumberKeyboardKey.d.ts +0 -24
- package/lib/number-keyboard/NumberKeyboardKey.js +0 -113
- package/lib/number-keyboard/index.css +0 -1
- package/lib/number-keyboard/index.d.ts +0 -121
- package/lib/number-keyboard/index.js +0 -35
- package/lib/number-keyboard/style/index.d.ts +0 -1
- package/lib/number-keyboard/style/index.js +0 -3
- package/lib/number-keyboard/types.d.ts +0 -17
- package/lib/number-keyboard/types.js +0 -15
- package/lib/overlay/Overlay.d.ts +0 -51
- package/lib/overlay/Overlay.js +0 -74
- package/lib/overlay/index.css +0 -1
- package/lib/overlay/index.d.ts +0 -42
- package/lib/overlay/index.js +0 -35
- package/lib/overlay/style/index.d.ts +0 -1
- package/lib/overlay/style/index.js +0 -2
- package/lib/overlay/types.d.ts +0 -4
- package/lib/overlay/types.js +0 -15
- package/lib/pagination/Pagination.d.ts +0 -101
- package/lib/pagination/Pagination.js +0 -164
- package/lib/pagination/index.css +0 -1
- package/lib/pagination/index.d.ts +0 -77
- package/lib/pagination/index.js +0 -35
- package/lib/pagination/style/index.d.ts +0 -1
- package/lib/pagination/style/index.js +0 -2
- package/lib/pagination/types.d.ts +0 -11
- package/lib/pagination/types.js +0 -15
- package/lib/password-input/PasswordInput.d.ts +0 -63
- package/lib/password-input/PasswordInput.js +0 -98
- package/lib/password-input/index.css +0 -1
- package/lib/password-input/index.d.ts +0 -51
- package/lib/password-input/index.js +0 -35
- package/lib/password-input/style/index.d.ts +0 -1
- package/lib/password-input/style/index.js +0 -2
- package/lib/password-input/types.d.ts +0 -17
- package/lib/password-input/types.js +0 -15
- package/lib/picker/Picker.d.ts +0 -163
- package/lib/picker/Picker.js +0 -224
- package/lib/picker/PickerColumn.d.ts +0 -60
- package/lib/picker/PickerColumn.js +0 -213
- package/lib/picker/PickerToolbar.d.ts +0 -21
- package/lib/picker/PickerToolbar.js +0 -78
- package/lib/picker/index.css +0 -1
- package/lib/picker/index.d.ts +0 -104
- package/lib/picker/index.js +0 -35
- package/lib/picker/style/index.d.ts +0 -1
- package/lib/picker/style/index.js +0 -10
- package/lib/picker/types.d.ts +0 -62
- package/lib/picker/types.js +0 -15
- package/lib/picker/utils.d.ts +0 -13
- package/lib/picker/utils.js +0 -99
- package/lib/picker-group/PickerGroup.d.ts +0 -39
- package/lib/picker-group/PickerGroup.js +0 -82
- package/lib/picker-group/index.css +0 -1
- package/lib/picker-group/index.d.ts +0 -34
- package/lib/picker-group/index.js +0 -35
- package/lib/picker-group/style/index.d.ts +0 -1
- package/lib/picker-group/style/index.js +0 -9
- package/lib/picker-group/types.d.ts +0 -3
- package/lib/picker-group/types.js +0 -15
- package/lib/popover/Popover.d.ts +0 -164
- package/lib/popover/Popover.js +0 -203
- package/lib/popover/index.css +0 -1
- package/lib/popover/index.d.ts +0 -121
- package/lib/popover/index.js +0 -35
- package/lib/popover/style/index.d.ts +0 -1
- package/lib/popover/style/index.js +0 -6
- package/lib/popover/types.d.ts +0 -26
- package/lib/popover/types.js +0 -15
- package/lib/popup/Popup.d.ts +0 -165
- package/lib/popup/Popup.js +0 -226
- package/lib/popup/index.css +0 -1
- package/lib/popup/index.d.ts +0 -124
- package/lib/popup/index.js +0 -35
- package/lib/popup/shared.d.ts +0 -30
- package/lib/popup/shared.js +0 -41
- package/lib/popup/style/index.d.ts +0 -1
- package/lib/popup/style/index.js +0 -5
- package/lib/popup/types.d.ts +0 -17
- package/lib/popup/types.js +0 -15
- package/lib/progress/Progress.d.ts +0 -61
- package/lib/progress/Progress.js +0 -96
- package/lib/progress/index.css +0 -1
- package/lib/progress/index.d.ts +0 -49
- package/lib/progress/index.js +0 -35
- package/lib/progress/style/index.d.ts +0 -1
- package/lib/progress/style/index.js +0 -2
- package/lib/progress/types.d.ts +0 -17
- package/lib/progress/types.js +0 -15
- package/lib/pull-refresh/PullRefresh.d.ts +0 -75
- package/lib/pull-refresh/PullRefresh.js +0 -213
- package/lib/pull-refresh/index.css +0 -1
- package/lib/pull-refresh/index.d.ts +0 -60
- package/lib/pull-refresh/index.js +0 -35
- package/lib/pull-refresh/style/index.d.ts +0 -1
- package/lib/pull-refresh/style/index.js +0 -3
- package/lib/pull-refresh/types.d.ts +0 -6
- package/lib/pull-refresh/types.js +0 -15
- package/lib/radio/Radio.d.ts +0 -50
- package/lib/radio/Radio.js +0 -68
- package/lib/radio/index.css +0 -1
- package/lib/radio/index.d.ts +0 -40
- package/lib/radio/index.js +0 -35
- package/lib/radio/style/index.d.ts +0 -1
- package/lib/radio/style/index.js +0 -6
- package/lib/radio/types.d.ts +0 -11
- package/lib/radio/types.js +0 -15
- package/lib/radio-group/RadioGroup.d.ts +0 -35
- package/lib/radio-group/RadioGroup.js +0 -64
- package/lib/radio-group/index.css +0 -1
- package/lib/radio-group/index.d.ts +0 -26
- package/lib/radio-group/index.js +0 -35
- package/lib/radio-group/style/index.d.ts +0 -1
- package/lib/radio-group/style/index.js +0 -2
- package/lib/rate/Rate.d.ts +0 -107
- package/lib/rate/Rate.js +0 -239
- package/lib/rate/index.css +0 -1
- package/lib/rate/index.d.ts +0 -82
- package/lib/rate/index.js +0 -35
- package/lib/rate/style/index.d.ts +0 -1
- package/lib/rate/style/index.js +0 -4
- package/lib/rate/types.d.ts +0 -7
- package/lib/rate/types.js +0 -15
- package/lib/row/Row.d.ts +0 -64
- package/lib/row/Row.js +0 -111
- package/lib/row/index.css +0 -1
- package/lib/row/index.d.ts +0 -43
- package/lib/row/index.js +0 -35
- package/lib/row/style/index.d.ts +0 -1
- package/lib/row/style/index.js +0 -2
- package/lib/search/Search.d.ts +0 -206
- package/lib/search/Search.js +0 -138
- package/lib/search/index.css +0 -1
- package/lib/search/index.d.ts +0 -152
- package/lib/search/index.js +0 -35
- package/lib/search/style/index.d.ts +0 -1
- package/lib/search/style/index.js +0 -6
- package/lib/search/types.d.ts +0 -21
- package/lib/search/types.js +0 -15
- package/lib/share-sheet/ShareSheet.d.ts +0 -162
- package/lib/share-sheet/ShareSheet.js +0 -142
- package/lib/share-sheet/index.css +0 -1
- package/lib/share-sheet/index.d.ts +0 -115
- package/lib/share-sheet/index.js +0 -35
- package/lib/share-sheet/style/index.d.ts +0 -1
- package/lib/share-sheet/style/index.js +0 -6
- package/lib/share-sheet/types.d.ts +0 -17
- package/lib/share-sheet/types.js +0 -15
- package/lib/sidebar/Sidebar.d.ts +0 -30
- package/lib/sidebar/Sidebar.js +0 -64
- package/lib/sidebar/index.css +0 -1
- package/lib/sidebar/index.d.ts +0 -25
- package/lib/sidebar/index.js +0 -35
- package/lib/sidebar/style/index.d.ts +0 -1
- package/lib/sidebar/style/index.js +0 -2
- package/lib/sidebar/types.d.ts +0 -3
- package/lib/sidebar/types.js +0 -15
- package/lib/sidebar-item/SidebarItem.d.ts +0 -42
- package/lib/sidebar-item/SidebarItem.js +0 -92
- package/lib/sidebar-item/index.css +0 -1
- package/lib/sidebar-item/index.d.ts +0 -36
- package/lib/sidebar-item/index.js +0 -35
- package/lib/sidebar-item/style/index.d.ts +0 -1
- package/lib/sidebar-item/style/index.js +0 -4
- package/lib/sidebar-item/types.d.ts +0 -15
- package/lib/sidebar-item/types.js +0 -15
- package/lib/skeleton/Skeleton.d.ts +0 -96
- package/lib/skeleton/Skeleton.js +0 -115
- package/lib/skeleton/SkeletonAvatar.d.ts +0 -26
- package/lib/skeleton/SkeletonAvatar.js +0 -41
- package/lib/skeleton/SkeletonImage.d.ts +0 -26
- package/lib/skeleton/SkeletonImage.js +0 -45
- package/lib/skeleton/SkeletonParagraph.d.ts +0 -27
- package/lib/skeleton/SkeletonParagraph.js +0 -50
- package/lib/skeleton/SkeletonTitle.d.ts +0 -16
- package/lib/skeleton/SkeletonTitle.js +0 -45
- package/lib/skeleton/index.css +0 -1
- package/lib/skeleton/index.d.ts +0 -140
- package/lib/skeleton/index.js +0 -55
- package/lib/skeleton/style/index.d.ts +0 -1
- package/lib/skeleton/style/index.js +0 -4
- package/lib/skeleton/types.d.ts +0 -13
- package/lib/skeleton/types.js +0 -15
- package/lib/slider/Slider.d.ts +0 -100
- package/lib/slider/Slider.js +0 -291
- package/lib/slider/index.css +0 -1
- package/lib/slider/index.d.ts +0 -77
- package/lib/slider/index.js +0 -35
- package/lib/slider/style/index.d.ts +0 -1
- package/lib/slider/style/index.js +0 -2
- package/lib/slider/types.d.ts +0 -11
- package/lib/slider/types.js +0 -15
- package/lib/space/Space.d.ts +0 -48
- package/lib/space/Space.js +0 -107
- package/lib/space/index.css +0 -1
- package/lib/space/index.d.ts +0 -38
- package/lib/space/index.js +0 -35
- package/lib/space/style/index.d.ts +0 -1
- package/lib/space/style/index.js +0 -2
- package/lib/step/Step.d.ts +0 -2
- package/lib/step/Step.js +0 -137
- package/lib/step/index.css +0 -1
- package/lib/step/index.d.ts +0 -8
- package/lib/step/index.js +0 -33
- package/lib/step/style/index.d.ts +0 -1
- package/lib/step/style/index.js +0 -5
- package/lib/step/types.d.ts +0 -13
- package/lib/step/types.js +0 -15
- package/lib/stepper/Stepper.d.ts +0 -194
- package/lib/stepper/Stepper.js +0 -267
- package/lib/stepper/index.css +0 -1
- package/lib/stepper/index.d.ts +0 -143
- package/lib/stepper/index.js +0 -35
- package/lib/stepper/style/index.d.ts +0 -1
- package/lib/stepper/style/index.js +0 -2
- package/lib/stepper/types.d.ts +0 -15
- package/lib/stepper/types.js +0 -15
- package/lib/steps/Steps.d.ts +0 -71
- package/lib/steps/Steps.js +0 -66
- package/lib/steps/index.css +0 -1
- package/lib/steps/index.d.ts +0 -52
- package/lib/steps/index.js +0 -35
- package/lib/steps/style/index.d.ts +0 -1
- package/lib/steps/style/index.js +0 -2
- package/lib/steps/types.d.ts +0 -3
- package/lib/steps/types.js +0 -15
- package/lib/sticky/Sticky.d.ts +0 -58
- package/lib/sticky/Sticky.js +0 -140
- package/lib/sticky/index.css +0 -1
- package/lib/sticky/index.d.ts +0 -47
- package/lib/sticky/index.js +0 -35
- package/lib/sticky/style/index.d.ts +0 -1
- package/lib/sticky/style/index.js +0 -2
- package/lib/sticky/types.d.ts +0 -3
- package/lib/sticky/types.js +0 -15
- package/lib/style/animation.css +0 -1
- package/lib/style/base.css +0 -1
- package/lib/style/css-variables.css +0 -1
- package/lib/style/mixins/clearfix.css +0 -0
- package/lib/style/mixins/ellipsis.css +0 -0
- package/lib/style/mixins/hairline.css +0 -0
- package/lib/style/normalize.css +0 -1
- package/lib/submit-bar/SubmitBar.d.ts +0 -101
- package/lib/submit-bar/SubmitBar.js +0 -135
- package/lib/submit-bar/index.css +0 -1
- package/lib/submit-bar/index.d.ts +0 -76
- package/lib/submit-bar/index.js +0 -35
- package/lib/submit-bar/style/index.d.ts +0 -1
- package/lib/submit-bar/style/index.js +0 -6
- package/lib/submit-bar/types.d.ts +0 -21
- package/lib/submit-bar/types.js +0 -15
- package/lib/swipe/Swipe.d.ts +0 -121
- package/lib/swipe/Swipe.js +0 -380
- package/lib/swipe/index.css +0 -1
- package/lib/swipe/index.d.ts +0 -91
- package/lib/swipe/index.js +0 -35
- package/lib/swipe/style/index.d.ts +0 -1
- package/lib/swipe/style/index.js +0 -2
- package/lib/swipe/types.d.ts +0 -39
- package/lib/swipe/types.js +0 -15
- package/lib/swipe-cell/SwipeCell.d.ts +0 -44
- package/lib/swipe-cell/SwipeCell.js +0 -182
- package/lib/swipe-cell/index.css +0 -1
- package/lib/swipe-cell/index.d.ts +0 -39
- package/lib/swipe-cell/index.js +0 -35
- package/lib/swipe-cell/style/index.d.ts +0 -1
- package/lib/swipe-cell/style/index.js +0 -2
- package/lib/swipe-cell/types.d.ts +0 -9
- package/lib/swipe-cell/types.js +0 -15
- package/lib/swipe-item/SwipeItem.d.ts +0 -2
- package/lib/swipe-item/SwipeItem.js +0 -101
- package/lib/swipe-item/index.css +0 -1
- package/lib/swipe-item/index.d.ts +0 -7
- package/lib/swipe-item/index.js +0 -33
- package/lib/swipe-item/style/index.d.ts +0 -1
- package/lib/swipe-item/style/index.js +0 -3
- package/lib/switch/Switch.d.ts +0 -58
- package/lib/switch/Switch.js +0 -105
- package/lib/switch/index.css +0 -1
- package/lib/switch/index.d.ts +0 -48
- package/lib/switch/index.js +0 -35
- package/lib/switch/style/index.d.ts +0 -1
- package/lib/switch/style/index.js +0 -3
- package/lib/switch/types.d.ts +0 -12
- package/lib/switch/types.js +0 -15
- package/lib/tab/Tab.d.ts +0 -58
- package/lib/tab/Tab.js +0 -143
- package/lib/tab/index.css +0 -1
- package/lib/tab/index.d.ts +0 -46
- package/lib/tab/index.js +0 -35
- package/lib/tab/style/index.d.ts +0 -1
- package/lib/tab/style/index.js +0 -7
- package/lib/tabbar/Tabbar.d.ts +0 -90
- package/lib/tabbar/Tabbar.js +0 -104
- package/lib/tabbar/index.css +0 -1
- package/lib/tabbar/index.d.ts +0 -66
- package/lib/tabbar/index.js +0 -35
- package/lib/tabbar/style/index.d.ts +0 -1
- package/lib/tabbar/style/index.js +0 -2
- package/lib/tabbar/types.d.ts +0 -5
- package/lib/tabbar/types.js +0 -15
- package/lib/tabbar-item/TabbarItem.d.ts +0 -44
- package/lib/tabbar-item/TabbarItem.js +0 -140
- package/lib/tabbar-item/index.css +0 -1
- package/lib/tabbar-item/index.d.ts +0 -37
- package/lib/tabbar-item/index.js +0 -35
- package/lib/tabbar-item/style/index.d.ts +0 -1
- package/lib/tabbar-item/style/index.js +0 -5
- package/lib/tabbar-item/types.d.ts +0 -9
- package/lib/tabbar-item/types.js +0 -15
- package/lib/tabs/Tabs.d.ts +0 -154
- package/lib/tabs/Tabs.js +0 -391
- package/lib/tabs/TabsContent.d.ts +0 -43
- package/lib/tabs/TabsContent.js +0 -87
- package/lib/tabs/TabsTitle.d.ts +0 -45
- package/lib/tabs/TabsTitle.js +0 -109
- package/lib/tabs/index.css +0 -1
- package/lib/tabs/index.d.ts +0 -115
- package/lib/tabs/index.js +0 -35
- package/lib/tabs/style/index.d.ts +0 -1
- package/lib/tabs/style/index.js +0 -5
- package/lib/tabs/types.d.ts +0 -37
- package/lib/tabs/types.js +0 -15
- package/lib/tabs/utils.d.ts +0 -3
- package/lib/tabs/utils.js +0 -56
- package/lib/tag/Tag.d.ts +0 -63
- package/lib/tag/Tag.js +0 -98
- package/lib/tag/index.css +0 -1
- package/lib/tag/index.d.ts +0 -51
- package/lib/tag/index.js +0 -35
- package/lib/tag/style/index.d.ts +0 -1
- package/lib/tag/style/index.js +0 -4
- package/lib/tag/types.d.ts +0 -20
- package/lib/tag/types.js +0 -15
- package/lib/time-picker/TimePicker.d.ts +0 -217
- package/lib/time-picker/TimePicker.js +0 -95
- package/lib/time-picker/index.d.ts +0 -159
- package/lib/time-picker/index.js +0 -35
- package/lib/time-picker/style/index.d.ts +0 -1
- package/lib/time-picker/style/index.js +0 -10
- package/lib/toast/Toast.d.ts +0 -115
- package/lib/toast/Toast.js +0 -146
- package/lib/toast/function-call.d.ts +0 -10
- package/lib/toast/function-call.js +0 -167
- package/lib/toast/index.css +0 -1
- package/lib/toast/index.d.ts +0 -87
- package/lib/toast/index.js +0 -44
- package/lib/toast/lock-click.d.ts +0 -1
- package/lib/toast/lock-click.js +0 -36
- package/lib/toast/style/index.d.ts +0 -1
- package/lib/toast/style/index.js +0 -7
- package/lib/toast/types.d.ts +0 -55
- package/lib/toast/types.js +0 -15
- package/lib/tree-select/TreeSelect.d.ts +0 -106
- package/lib/tree-select/TreeSelect.js +0 -122
- package/lib/tree-select/index.css +0 -1
- package/lib/tree-select/index.d.ts +0 -72
- package/lib/tree-select/index.js +0 -35
- package/lib/tree-select/style/index.d.ts +0 -1
- package/lib/tree-select/style/index.js +0 -6
- package/lib/tree-select/types.d.ts +0 -10
- package/lib/tree-select/types.js +0 -15
- package/lib/uploader/Uploader.d.ts +0 -213
- package/lib/uploader/Uploader.js +0 -274
- package/lib/uploader/UploaderPreviewItem.d.ts +0 -36
- package/lib/uploader/UploaderPreviewItem.js +0 -147
- package/lib/uploader/index.css +0 -1
- package/lib/uploader/index.d.ts +0 -155
- package/lib/uploader/index.js +0 -35
- package/lib/uploader/style/index.d.ts +0 -1
- package/lib/uploader/style/index.js +0 -11
- package/lib/uploader/types.d.ts +0 -58
- package/lib/uploader/types.js +0 -15
- package/lib/uploader/utils.d.ts +0 -11
- package/lib/uploader/utils.js +0 -88
- package/lib/utils/basic.d.ts +0 -18
- package/lib/utils/basic.js +0 -52
- package/lib/utils/constant.d.ts +0 -12
- package/lib/utils/constant.js +0 -41
- package/lib/utils/create.d.ts +0 -17
- package/lib/utils/create.js +0 -78
- package/lib/utils/deep-assign.d.ts +0 -3
- package/lib/utils/deep-assign.js +0 -41
- package/lib/utils/deep-clone.d.ts +0 -1
- package/lib/utils/deep-clone.js +0 -39
- package/lib/utils/dom.d.ts +0 -12
- package/lib/utils/dom.js +0 -86
- package/lib/utils/format.d.ts +0 -13
- package/lib/utils/format.js +0 -139
- package/lib/utils/index.d.ts +0 -9
- package/lib/utils/index.js +0 -25
- package/lib/utils/interceptor.d.ts +0 -6
- package/lib/utils/interceptor.js +0 -48
- package/lib/utils/mount-component.d.ts +0 -14
- package/lib/utils/mount-component.js +0 -58
- package/lib/utils/props.d.ts +0 -31
- package/lib/utils/props.js +0 -55
- package/lib/utils/validate.d.ts +0 -9
- package/lib/utils/validate.js +0 -41
- package/lib/utils/with-install.d.ts +0 -13
- package/lib/utils/with-install.js +0 -33
- package/lib/vue-sfc-shim.d.ts +0 -6
- package/lib/vue-tsx-shim.d.ts +0 -23
package/README.md
CHANGED
@@ -8,7 +8,6 @@
|
|
8
8
|
|
9
9
|
<p align="center">
|
10
10
|
<img src="https://img.shields.io/npm/v/vant?style=flat-square" alt="npm version" />
|
11
|
-
<img src="https://img.shields.io/github/workflow/status/vant-ui/vant/CI/dev?style=flat-square" alt="CI Status" />
|
12
11
|
<img src="https://img.shields.io/codecov/c/github/vant-ui/vant/dev.svg?style=flat-square&color=#4fc08d" alt="Coverage Status" />
|
13
12
|
<img src="https://img.shields.io/npm/dm/vant.svg?style=flat-square&color=#4fc08d" alt="downloads" />
|
14
13
|
<img src="https://img.badgesize.io/https://unpkg.com/vant/lib/vant.min.js?compression=gzip&style=flat-square&label=gzip%20size&color=#4fc08d" alt="Gzip Size" />
|
package/es/badge/Badge.mjs
CHANGED
@@ -44,18 +44,27 @@ var stdin_default = defineComponent({
|
|
44
44
|
return content;
|
45
45
|
}
|
46
46
|
};
|
47
|
+
const getOffsetWithMinusString = (val) => val.startsWith("-") ? val.replace("-", "") : `-${val}`;
|
47
48
|
const style = computed(() => {
|
48
49
|
const style2 = {
|
49
50
|
background: props.color
|
50
51
|
};
|
51
52
|
if (props.offset) {
|
52
53
|
const [x, y] = props.offset;
|
54
|
+
const {
|
55
|
+
position
|
56
|
+
} = props;
|
57
|
+
const [offsetY, offsetX] = position.split("-");
|
53
58
|
if (slots.default) {
|
54
|
-
|
59
|
+
if (typeof y === "number") {
|
60
|
+
style2[offsetY] = addUnit(offsetY === "top" ? y : -y);
|
61
|
+
} else {
|
62
|
+
style2[offsetY] = offsetY === "top" ? addUnit(y) : getOffsetWithMinusString(y);
|
63
|
+
}
|
55
64
|
if (typeof x === "number") {
|
56
|
-
style2
|
65
|
+
style2[offsetX] = addUnit(offsetX === "left" ? x : -x);
|
57
66
|
} else {
|
58
|
-
style2
|
67
|
+
style2[offsetX] = offsetX === "left" ? addUnit(x) : getOffsetWithMinusString(x);
|
59
68
|
}
|
60
69
|
} else {
|
61
70
|
style2.marginTop = addUnit(y);
|
package/es/field/Field.mjs
CHANGED
@@ -179,6 +179,7 @@ var stdin_default = defineComponent({
|
|
179
179
|
}
|
180
180
|
};
|
181
181
|
const limitValueLength = (value) => {
|
182
|
+
var _a;
|
182
183
|
const {
|
183
184
|
maxlength
|
184
185
|
} = props;
|
@@ -187,6 +188,13 @@ var stdin_default = defineComponent({
|
|
187
188
|
if (modelValue && getStringLength(modelValue) === +maxlength) {
|
188
189
|
return modelValue;
|
189
190
|
}
|
191
|
+
const selectionEnd = (_a = inputRef.value) == null ? void 0 : _a.selectionEnd;
|
192
|
+
if (state.focused && selectionEnd) {
|
193
|
+
const valueArr = [...value];
|
194
|
+
const exceededLength = valueArr.length - +maxlength;
|
195
|
+
valueArr.splice(selectionEnd - exceededLength, exceededLength);
|
196
|
+
return valueArr.join("");
|
197
|
+
}
|
190
198
|
return cutString(value, +maxlength);
|
191
199
|
}
|
192
200
|
return value;
|
@@ -194,22 +202,47 @@ var stdin_default = defineComponent({
|
|
194
202
|
const updateValue = (value, trigger = "onChange") => {
|
195
203
|
const originalValue = value;
|
196
204
|
value = limitValueLength(value);
|
197
|
-
const
|
205
|
+
const limitDiffLen = getStringLength(originalValue) - getStringLength(value);
|
198
206
|
if (props.type === "number" || props.type === "digit") {
|
199
207
|
const isNumber = props.type === "number";
|
200
208
|
value = formatNumber(value, isNumber, isNumber);
|
201
209
|
}
|
210
|
+
let formatterDiffLen = 0;
|
202
211
|
if (props.formatter && trigger === props.formatTrigger) {
|
203
|
-
|
212
|
+
const {
|
213
|
+
formatter,
|
214
|
+
maxlength
|
215
|
+
} = props;
|
216
|
+
value = formatter(value);
|
217
|
+
if (isDef(maxlength) && getStringLength(value) > maxlength) {
|
218
|
+
value = cutString(value, +maxlength);
|
219
|
+
}
|
220
|
+
if (inputRef.value && state.focused) {
|
221
|
+
const {
|
222
|
+
selectionEnd
|
223
|
+
} = inputRef.value;
|
224
|
+
const bcoVal = cutString(originalValue, selectionEnd);
|
225
|
+
formatterDiffLen = getStringLength(formatter(bcoVal)) - getStringLength(bcoVal);
|
226
|
+
}
|
204
227
|
}
|
205
228
|
if (inputRef.value && inputRef.value.value !== value) {
|
206
|
-
if (state.focused
|
207
|
-
|
229
|
+
if (state.focused) {
|
230
|
+
let {
|
208
231
|
selectionStart,
|
209
232
|
selectionEnd
|
210
233
|
} = inputRef.value;
|
211
234
|
inputRef.value.value = value;
|
212
|
-
|
235
|
+
if (isDef(selectionStart) && isDef(selectionEnd)) {
|
236
|
+
const valueLen = getStringLength(value);
|
237
|
+
if (limitDiffLen) {
|
238
|
+
selectionStart -= limitDiffLen;
|
239
|
+
selectionEnd -= limitDiffLen;
|
240
|
+
} else if (formatterDiffLen) {
|
241
|
+
selectionStart += formatterDiffLen;
|
242
|
+
selectionEnd += formatterDiffLen;
|
243
|
+
}
|
244
|
+
inputRef.value.setSelectionRange(Math.min(selectionStart, valueLen), Math.min(selectionEnd, valueLen));
|
245
|
+
}
|
213
246
|
} else {
|
214
247
|
inputRef.value.value = value;
|
215
248
|
}
|
package/es/form/Form.mjs
CHANGED
@@ -114,7 +114,9 @@ var stdin_default = defineComponent({
|
|
114
114
|
});
|
115
115
|
};
|
116
116
|
const getValues = () => children.reduce((form, field) => {
|
117
|
-
|
117
|
+
if (field.name !== void 0) {
|
118
|
+
form[field.name] = field.formValue.value;
|
119
|
+
}
|
118
120
|
return form;
|
119
121
|
}, {});
|
120
122
|
const submit = () => {
|
package/es/image/Image.mjs
CHANGED
@@ -56,6 +56,14 @@ var stdin_default = defineComponent({
|
|
56
56
|
emit("load", event);
|
57
57
|
}
|
58
58
|
};
|
59
|
+
const triggerLoad = () => {
|
60
|
+
const loadEvent = new Event("load");
|
61
|
+
Object.defineProperty(loadEvent, "target", {
|
62
|
+
value: imageRef.value,
|
63
|
+
enumerable: true
|
64
|
+
});
|
65
|
+
onLoad(loadEvent);
|
66
|
+
};
|
59
67
|
const onError = (event) => {
|
60
68
|
error.value = true;
|
61
69
|
loading.value = false;
|
@@ -113,7 +121,7 @@ var stdin_default = defineComponent({
|
|
113
121
|
}) => {
|
114
122
|
const check = () => {
|
115
123
|
if (el === imageRef.value && loading.value) {
|
116
|
-
|
124
|
+
triggerLoad();
|
117
125
|
}
|
118
126
|
};
|
119
127
|
if (imageRef.value) {
|
@@ -141,7 +149,7 @@ var stdin_default = defineComponent({
|
|
141
149
|
nextTick(() => {
|
142
150
|
var _a;
|
143
151
|
if ((_a = imageRef.value) == null ? void 0 : _a.complete) {
|
144
|
-
|
152
|
+
triggerLoad();
|
145
153
|
}
|
146
154
|
});
|
147
155
|
});
|
package/es/index.d.ts
CHANGED
package/es/index.mjs
CHANGED
@@ -87,7 +87,7 @@ import { TimePicker } from "./time-picker/index.mjs";
|
|
87
87
|
import { Toast } from "./toast/index.mjs";
|
88
88
|
import { TreeSelect } from "./tree-select/index.mjs";
|
89
89
|
import { Uploader } from "./uploader/index.mjs";
|
90
|
-
const version = "4.0.
|
90
|
+
const version = "4.0.5";
|
91
91
|
function install(app) {
|
92
92
|
const components = [
|
93
93
|
ActionBar,
|
@@ -0,0 +1,64 @@
|
|
1
|
+
var stdin_default = {
|
2
|
+
name: "\u041D\u044D\u0440",
|
3
|
+
tel: "\u0423\u0442\u0430\u0441",
|
4
|
+
save: "\u0425\u0430\u0434\u0433\u0430\u043B\u0430\u0445",
|
5
|
+
confirm: "\u0411\u0430\u0442\u0430\u043B\u0433\u0430\u0430\u0436\u0443\u0443\u043B\u0430\u0445",
|
6
|
+
cancel: "\u0426\u0443\u0446\u043B\u0430\u0445",
|
7
|
+
delete: "\u0423\u0441\u0442\u0433\u0430\u0445",
|
8
|
+
loading: "\u0410\u0447\u0430\u0430\u0436 \u0431\u0430\u0439\u043D\u0430...",
|
9
|
+
noCoupon: "\u041A\u0443\u043F\u043E\u043D \u0431\u0430\u0439\u0445\u0433\u04AF\u0439",
|
10
|
+
nameEmpaty: "\u041D\u044D\u0440\u044D\u044D \u043E\u0440\u0443\u0443\u043B\u043D\u0430 \u0443\u0443",
|
11
|
+
addContact: "\u0425\u0430\u0440\u0438\u043B\u0446\u0430\u0433\u0447 \u043D\u044D\u043C\u044D\u0445",
|
12
|
+
telInvalid: "\u0413\u0430\u0437\u0430\u0440 \u0443\u0442\u0430\u0441\u043D\u044B \u0434\u0443\u0433\u0430\u0430\u0440",
|
13
|
+
vanCalendar: {
|
14
|
+
end: "\u0422\u04E9\u0433\u0441\u0433\u04E9\u043B",
|
15
|
+
start: "\u042D\u0445\u043B\u044D\u0445",
|
16
|
+
title: "\u0425\u0443\u0430\u043D\u043B\u0438",
|
17
|
+
weekdays: ["\u041D\u044F\u043C", "\u0414\u0430\u0432\u0430\u0430", "\u041C\u044F\u0433\u043C\u0430\u0440", "\u041B\u0445\u0430\u0433\u0432\u0430", "\u041F\u04AF\u0440\u044D\u0432", "\u0411\u0430\u0430\u0441\u0430\u043D", "\u0411\u044F\u043C\u0431\u0430"],
|
18
|
+
monthTitle: (year, month) => `${year}/${month}`,
|
19
|
+
rangePrompt: (maxRange) => `${maxRange} \u0445\u043E\u043D\u043E\u0433\u043E\u043E\u0441 \u0438\u043B\u04AF\u04AF\u0433\u04AF\u0439 \u0441\u043E\u043D\u0433\u043E\u0445`
|
20
|
+
},
|
21
|
+
vanCascader: {
|
22
|
+
select: "\u0421\u043E\u043D\u0433\u043E\u0445"
|
23
|
+
},
|
24
|
+
vanPagination: {
|
25
|
+
prev: "\u04E8\u043C\u043D\u04E9\u0445",
|
26
|
+
next: "\u0414\u0430\u0440\u0430\u0430\u0433\u0438\u0439\u043D"
|
27
|
+
},
|
28
|
+
vanPullRefresh: {
|
29
|
+
pulling: "\u0421\u044D\u0440\u0433\u044D\u044D\u0445\u0438\u0439\u043D \u0442\u0443\u043B\u0434 \u0442\u0430\u0442\u0430\u0445...",
|
30
|
+
loosing: "\u0421\u044D\u0440\u0433\u044D\u044D\u0445\u0438\u0439\u043D \u0442\u0443\u043B\u0434 \u0441\u0443\u043B..."
|
31
|
+
},
|
32
|
+
vanSubmitBar: {
|
33
|
+
label: "\u041D\u0438\u0439\u0442:"
|
34
|
+
},
|
35
|
+
vanCoupon: {
|
36
|
+
unlimited: "\u0425\u044F\u0437\u0433\u0430\u0430\u0440\u0433\u04AF\u0439",
|
37
|
+
discount: (discount) => `${discount * 10}% \u0445\u044F\u043C\u0434\u0440\u0430\u043B`,
|
38
|
+
condition: (condition) => `\u0425\u0430\u043C\u0433\u0438\u0439\u043D \u0431\u0430\u0433\u0430\u0434\u0430\u0430 ${condition}`
|
39
|
+
},
|
40
|
+
vanCouponCell: {
|
41
|
+
title: "\u041A\u0443\u043F\u043E\u043D",
|
42
|
+
count: (count) => `\u0422\u0430\u043D\u0434 ${count} \u043A\u0443\u043F\u043E\u043D \u0431\u0430\u0439\u043D\u0430`
|
43
|
+
},
|
44
|
+
vanCouponList: {
|
45
|
+
exchange: "\u0441\u043E\u043B\u0438\u043B\u0446\u043E\u043E",
|
46
|
+
close: "\u0445\u0430\u0430\u0445",
|
47
|
+
enable: "\u0411\u043E\u043B\u043E\u043C\u0436\u0442\u043E\u0439",
|
48
|
+
disabled: "\u0411\u043E\u043B\u043E\u043C\u0436\u0433\u04AF\u0439",
|
49
|
+
placeholder: "\u041A\u0443\u043F\u043E\u043D \u043A\u043E\u0434"
|
50
|
+
},
|
51
|
+
vanAddressEdit: {
|
52
|
+
area: "\u0422\u0430\u043B\u0431\u0430\u0439",
|
53
|
+
areaEmpty: "\u0425\u04AF\u043B\u044D\u044D\u043D \u0430\u0432\u0430\u0445 \u0431\u04AF\u0441\u044D\u044D \u0441\u043E\u043D\u0433\u043E\u043D\u043E \u0443\u0443",
|
54
|
+
addressEmpty: "\u0425\u0430\u044F\u0433 \u0445\u043E\u043E\u0441\u043E\u043D \u0431\u0430\u0439\u0436 \u0431\u043E\u043B\u043E\u0445\u0433\u04AF\u0439",
|
55
|
+
addressDetail: "\u0425\u0430\u044F\u0433",
|
56
|
+
defaultAddress: "\u04E8\u0433\u04E9\u0433\u0434\u043C\u04E9\u043B \u0445\u0430\u044F\u0433\u0430\u0430\u0440 \u0442\u043E\u0445\u0438\u0440\u0443\u0443\u043B\u0430\u0445"
|
57
|
+
},
|
58
|
+
vanAddressList: {
|
59
|
+
add: "\u0428\u0438\u043D\u044D \u0445\u0430\u044F\u0433 \u043D\u044D\u043C\u044D\u0445"
|
60
|
+
}
|
61
|
+
};
|
62
|
+
export {
|
63
|
+
stdin_default as default
|
64
|
+
};
|
File without changes
|
@@ -0,0 +1,64 @@
|
|
1
|
+
var stdin_default = {
|
2
|
+
name: "naam",
|
3
|
+
tel: "Telefoon",
|
4
|
+
save: "Opslaan",
|
5
|
+
confirm: "Bevestigen",
|
6
|
+
cancel: "Annuleren",
|
7
|
+
delete: "Verwijderen",
|
8
|
+
loading: "Bezig met laden...",
|
9
|
+
noCoupon: "Geen coupons",
|
10
|
+
nameEmpty: "Vul de naam in",
|
11
|
+
addContact: "Contact toevoegen",
|
12
|
+
telInvalid: "Onjuist opgemaakt telefoonnummer",
|
13
|
+
vanCalendar: {
|
14
|
+
end: "Einde",
|
15
|
+
start: "Beginnen",
|
16
|
+
title: "Kalender",
|
17
|
+
weekdays: ["Zon", "Maan", "Dins", "Woens", "Donder", "Vrij", "Zater"],
|
18
|
+
monthTitle: (year, month) => `${year}/${month}`,
|
19
|
+
rangePrompt: (maxRange) => `Kies niet meer dan ${maxRange} dagen`
|
20
|
+
},
|
21
|
+
vanCascader: {
|
22
|
+
select: "Selecteer"
|
23
|
+
},
|
24
|
+
vanPagination: {
|
25
|
+
prev: "Vorige",
|
26
|
+
next: "Volgende"
|
27
|
+
},
|
28
|
+
vanPullRefresh: {
|
29
|
+
pulling: "Trekken om te vernieuwen...",
|
30
|
+
loosing: "Los om te verversen..."
|
31
|
+
},
|
32
|
+
vanSubmitBar: {
|
33
|
+
label: "Totaal:"
|
34
|
+
},
|
35
|
+
vanCoupon: {
|
36
|
+
unlimited: "Onbeperkt",
|
37
|
+
discount: (discount) => `${discount * 10}% korting`,
|
38
|
+
condition: (condition) => `Ten minste ${condition}`
|
39
|
+
},
|
40
|
+
vanCouponCell: {
|
41
|
+
title: "Waardebon",
|
42
|
+
count: (count) => `Je hebt ${count} coupons`
|
43
|
+
},
|
44
|
+
vanCouponList: {
|
45
|
+
exchange: "Uitwisselen",
|
46
|
+
close: "Sluiten",
|
47
|
+
enable: "Beschikbaar",
|
48
|
+
disabled: "Niet beschikbaar",
|
49
|
+
placeholder: "Couponcode"
|
50
|
+
},
|
51
|
+
vanAddressEdit: {
|
52
|
+
area: "Gebied",
|
53
|
+
areaEmpty: "Selecteer een ontvangstgebied",
|
54
|
+
addressEmpty: "Adres mag niet leeg zijn",
|
55
|
+
addressDetail: "Adres",
|
56
|
+
defaultAddress: "Instellen als standaardadres"
|
57
|
+
},
|
58
|
+
vanAddressList: {
|
59
|
+
add: "Nieuw adres toevoegen"
|
60
|
+
}
|
61
|
+
};
|
62
|
+
export {
|
63
|
+
stdin_default as default
|
64
|
+
};
|
package/es/picker/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
:root{--van-picker-background: var(--van-background-2);--van-picker-toolbar-height: 44px;--van-picker-title-font-size: var(--van-font-size-lg);--van-picker-title-line-height: var(--van-line-height-md);--van-picker-action-padding: 0 var(--van-padding-md);--van-picker-action-font-size: var(--van-font-size-md);--van-picker-confirm-action-color: var(--van-link-color);--van-picker-cancel-action-color: var(--van-text-color-2);--van-picker-option-font-size: var(--van-font-size-lg);--van-picker-option-padding: 0 var(--van-padding-base);--van-picker-option-text-color: var(--van-text-color);--van-picker-option-disabled-opacity: .3;--van-picker-loading-icon-color: var(--van-primary-color);--van-picker-loading-mask-color: rgba(255, 255, 255, .9);--van-picker-mask-color: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .4)), linear-gradient(0deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .4))}.van-theme-dark{--van-picker-mask-color: linear-gradient(180deg, rgba(0, 0, 0, .6), rgba(0, 0, 0, .1)), linear-gradient(0deg, rgba(0, 0, 0, .6), rgba(0, 0, 0, .1))}.van-picker{position:relative;background:var(--van-picker-background);-webkit-user-select:none;user-select:none}.van-picker__toolbar{display:flex;align-items:center;justify-content:space-between;height:var(--van-picker-toolbar-height)}.van-picker__cancel,.van-picker__confirm{height:100%;padding:var(--van-picker-action-padding);font-size:var(--van-picker-action-font-size);background-color:transparent;border:none}.van-picker__confirm{color:var(--van-picker-confirm-action-color)}.van-picker__cancel{color:var(--van-picker-cancel-action-color)}.van-picker__title{color:var(--van-text-color);max-width:50%;font-weight:var(--van-font-bold);font-size:var(--van-picker-title-font-size);line-height:var(--van-picker-title-line-height);text-align:center}.van-picker__columns{position:relative;display:flex;cursor:-webkit-grab;cursor:grab}.van-picker__loading{position:absolute;top:0;right:0;bottom:0;left:0;z-index:3;display:flex;align-items:center;justify-content:center;color:var(--van-picker-loading-icon-color);background:var(--van-picker-loading-mask-color)}.van-picker__frame{position:absolute;top:50%;right:var(--van-padding-md);left:var(--van-padding-md);z-index:2;transform:translateY(-50%);pointer-events:none}.van-picker__mask{position:absolute;top:0;left:0;z-index:1;width:100%;height:100%;background-image:var(--van-picker-mask-color);background-repeat:no-repeat;background-position:top,bottom;transform:translateZ(0);pointer-events:none}.van-picker-column{flex:1;overflow:hidden;font-size:var(--van-picker-option-font-size)}.van-picker-column__wrapper{transition-timing-function:cubic-bezier(.23,1,.68,1)}.van-picker-column__item{display:flex;align-items:center;justify-content:center;padding:var(--van-picker-option-padding);color:var(--van-picker-option-text-color)}.van-picker-column__item--disabled{cursor:not-allowed;opacity:var(--van-picker-option-disabled-opacity)}
|
1
|
+
:root{--van-picker-background: var(--van-background-2);--van-picker-toolbar-height: 44px;--van-picker-title-font-size: var(--van-font-size-lg);--van-picker-title-line-height: var(--van-line-height-md);--van-picker-action-padding: 0 var(--van-padding-md);--van-picker-action-font-size: var(--van-font-size-md);--van-picker-confirm-action-color: var(--van-link-color);--van-picker-cancel-action-color: var(--van-text-color-2);--van-picker-option-font-size: var(--van-font-size-lg);--van-picker-option-padding: 0 var(--van-padding-base);--van-picker-option-text-color: var(--van-text-color);--van-picker-option-disabled-opacity: .3;--van-picker-loading-icon-color: var(--van-primary-color);--van-picker-loading-mask-color: rgba(255, 255, 255, .9);--van-picker-mask-color: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .4)), linear-gradient(0deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .4))}.van-theme-dark{--van-picker-loading-mask-color: rgba(0, 0, 0, .6);--van-picker-mask-color: linear-gradient(180deg, rgba(0, 0, 0, .6), rgba(0, 0, 0, .1)), linear-gradient(0deg, rgba(0, 0, 0, .6), rgba(0, 0, 0, .1))}.van-picker{position:relative;background:var(--van-picker-background);-webkit-user-select:none;user-select:none}.van-picker__toolbar{display:flex;align-items:center;justify-content:space-between;height:var(--van-picker-toolbar-height)}.van-picker__cancel,.van-picker__confirm{height:100%;padding:var(--van-picker-action-padding);font-size:var(--van-picker-action-font-size);background-color:transparent;border:none}.van-picker__confirm{color:var(--van-picker-confirm-action-color)}.van-picker__cancel{color:var(--van-picker-cancel-action-color)}.van-picker__title{color:var(--van-text-color);max-width:50%;font-weight:var(--van-font-bold);font-size:var(--van-picker-title-font-size);line-height:var(--van-picker-title-line-height);text-align:center}.van-picker__columns{position:relative;display:flex;cursor:-webkit-grab;cursor:grab}.van-picker__loading{position:absolute;top:0;right:0;bottom:0;left:0;z-index:3;display:flex;align-items:center;justify-content:center;color:var(--van-picker-loading-icon-color);background:var(--van-picker-loading-mask-color)}.van-picker__frame{position:absolute;top:50%;right:var(--van-padding-md);left:var(--van-padding-md);z-index:2;transform:translateY(-50%);pointer-events:none}.van-picker__mask{position:absolute;top:0;left:0;z-index:1;width:100%;height:100%;background-image:var(--van-picker-mask-color);background-repeat:no-repeat;background-position:top,bottom;transform:translateZ(0);pointer-events:none}.van-picker-column{flex:1;overflow:hidden;font-size:var(--van-picker-option-font-size)}.van-picker-column__wrapper{transition-timing-function:cubic-bezier(.23,1,.68,1)}.van-picker-column__item{display:flex;align-items:center;justify-content:center;padding:var(--van-picker-option-padding);color:var(--van-picker-option-text-color)}.van-picker-column__item--disabled{cursor:not-allowed;opacity:var(--van-picker-option-disabled-opacity)}
|
package/lib/vant.cjs.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
|
-
const use = require("@vant/use");
|
4
3
|
const vue = require("vue");
|
4
|
+
const use = require("@vant/use");
|
5
5
|
const popperjs = require("@vant/popperjs");
|
6
6
|
const isDef = (val) => val !== void 0 && val !== null;
|
7
7
|
const isFunction = (val) => typeof val === "function";
|
@@ -238,64 +238,64 @@ function deepAssign(to, from) {
|
|
238
238
|
return to;
|
239
239
|
}
|
240
240
|
var stdin_default$1K = {
|
241
|
-
name: "
|
242
|
-
tel: "
|
243
|
-
save: "
|
244
|
-
confirm: "
|
245
|
-
cancel: "
|
246
|
-
delete: "
|
247
|
-
loading: "
|
248
|
-
noCoupon: "
|
249
|
-
nameEmpty: "
|
250
|
-
addContact: "
|
251
|
-
telInvalid: "
|
241
|
+
name: "姓名",
|
242
|
+
tel: "电话",
|
243
|
+
save: "保存",
|
244
|
+
confirm: "确认",
|
245
|
+
cancel: "取消",
|
246
|
+
delete: "删除",
|
247
|
+
loading: "加载中...",
|
248
|
+
noCoupon: "暂无优惠券",
|
249
|
+
nameEmpty: "请填写姓名",
|
250
|
+
addContact: "添加联系人",
|
251
|
+
telInvalid: "请填写正确的电话",
|
252
252
|
vanCalendar: {
|
253
|
-
end: "
|
254
|
-
start: "
|
255
|
-
title: "
|
256
|
-
weekdays: ["
|
257
|
-
monthTitle: (year, month) => `${year}
|
258
|
-
rangePrompt: (maxRange) =>
|
253
|
+
end: "结束",
|
254
|
+
start: "开始",
|
255
|
+
title: "日期选择",
|
256
|
+
weekdays: ["日", "一", "二", "三", "四", "五", "六"],
|
257
|
+
monthTitle: (year, month) => `${year}年${month}月`,
|
258
|
+
rangePrompt: (maxRange) => `最多选择 ${maxRange} 天`
|
259
259
|
},
|
260
260
|
vanCascader: {
|
261
|
-
select: "
|
261
|
+
select: "请选择"
|
262
262
|
},
|
263
263
|
vanPagination: {
|
264
|
-
prev: "
|
265
|
-
next: "
|
264
|
+
prev: "上一页",
|
265
|
+
next: "下一页"
|
266
266
|
},
|
267
267
|
vanPullRefresh: {
|
268
|
-
pulling: "
|
269
|
-
loosing: "
|
268
|
+
pulling: "下拉即可刷新...",
|
269
|
+
loosing: "释放即可刷新..."
|
270
270
|
},
|
271
271
|
vanSubmitBar: {
|
272
|
-
label: "
|
272
|
+
label: "合计:"
|
273
273
|
},
|
274
274
|
vanCoupon: {
|
275
|
-
unlimited: "
|
276
|
-
discount: (discount) => `${discount}
|
277
|
-
condition: (condition) =>
|
275
|
+
unlimited: "无门槛",
|
276
|
+
discount: (discount) => `${discount}折`,
|
277
|
+
condition: (condition) => `满${condition}元可用`
|
278
278
|
},
|
279
279
|
vanCouponCell: {
|
280
|
-
title: "
|
281
|
-
count: (count) => `${count}
|
280
|
+
title: "优惠券",
|
281
|
+
count: (count) => `${count}张可用`
|
282
282
|
},
|
283
283
|
vanCouponList: {
|
284
|
-
exchange: "
|
285
|
-
close: "
|
286
|
-
enable: "
|
287
|
-
disabled: "
|
288
|
-
placeholder: "
|
284
|
+
exchange: "兑换",
|
285
|
+
close: "不使用",
|
286
|
+
enable: "可用",
|
287
|
+
disabled: "不可用",
|
288
|
+
placeholder: "输入优惠码"
|
289
289
|
},
|
290
290
|
vanAddressEdit: {
|
291
|
-
area: "
|
292
|
-
areaEmpty: "
|
293
|
-
addressEmpty: "
|
294
|
-
addressDetail: "
|
295
|
-
defaultAddress: "
|
291
|
+
area: "地区",
|
292
|
+
areaEmpty: "请选择地区",
|
293
|
+
addressEmpty: "请填写详细地址",
|
294
|
+
addressDetail: "详细地址",
|
295
|
+
defaultAddress: "设为默认收货地址"
|
296
296
|
},
|
297
297
|
vanAddressList: {
|
298
|
-
add: "
|
298
|
+
add: "新增地址"
|
299
299
|
}
|
300
300
|
};
|
301
301
|
const lang = vue.ref("zh-CN");
|
@@ -546,18 +546,27 @@ var stdin_default$1H = vue.defineComponent({
|
|
546
546
|
return content;
|
547
547
|
}
|
548
548
|
};
|
549
|
+
const getOffsetWithMinusString = (val) => val.startsWith("-") ? val.replace("-", "") : `-${val}`;
|
549
550
|
const style = vue.computed(() => {
|
550
551
|
const style2 = {
|
551
552
|
background: props.color
|
552
553
|
};
|
553
554
|
if (props.offset) {
|
554
555
|
const [x, y] = props.offset;
|
556
|
+
const {
|
557
|
+
position
|
558
|
+
} = props;
|
559
|
+
const [offsetY, offsetX] = position.split("-");
|
555
560
|
if (slots.default) {
|
556
|
-
|
561
|
+
if (typeof y === "number") {
|
562
|
+
style2[offsetY] = addUnit(offsetY === "top" ? y : -y);
|
563
|
+
} else {
|
564
|
+
style2[offsetY] = offsetY === "top" ? addUnit(y) : getOffsetWithMinusString(y);
|
565
|
+
}
|
557
566
|
if (typeof x === "number") {
|
558
|
-
style2
|
567
|
+
style2[offsetX] = addUnit(offsetX === "left" ? x : -x);
|
559
568
|
} else {
|
560
|
-
style2
|
569
|
+
style2[offsetX] = offsetX === "left" ? addUnit(x) : getOffsetWithMinusString(x);
|
561
570
|
}
|
562
571
|
} else {
|
563
572
|
style2.marginTop = addUnit(y);
|
@@ -3670,7 +3679,9 @@ var stdin_default$1k = vue.defineComponent({
|
|
3670
3679
|
});
|
3671
3680
|
};
|
3672
3681
|
const getValues = () => children.reduce((form, field) => {
|
3673
|
-
|
3682
|
+
if (field.name !== void 0) {
|
3683
|
+
form[field.name] = field.formValue.value;
|
3684
|
+
}
|
3674
3685
|
return form;
|
3675
3686
|
}, {});
|
3676
3687
|
const submit = () => {
|
@@ -3969,6 +3980,7 @@ var stdin_default$1j = vue.defineComponent({
|
|
3969
3980
|
}
|
3970
3981
|
};
|
3971
3982
|
const limitValueLength = (value) => {
|
3983
|
+
var _a;
|
3972
3984
|
const {
|
3973
3985
|
maxlength
|
3974
3986
|
} = props;
|
@@ -3977,6 +3989,13 @@ var stdin_default$1j = vue.defineComponent({
|
|
3977
3989
|
if (modelValue && getStringLength(modelValue) === +maxlength) {
|
3978
3990
|
return modelValue;
|
3979
3991
|
}
|
3992
|
+
const selectionEnd = (_a = inputRef.value) == null ? void 0 : _a.selectionEnd;
|
3993
|
+
if (state.focused && selectionEnd) {
|
3994
|
+
const valueArr = [...value];
|
3995
|
+
const exceededLength = valueArr.length - +maxlength;
|
3996
|
+
valueArr.splice(selectionEnd - exceededLength, exceededLength);
|
3997
|
+
return valueArr.join("");
|
3998
|
+
}
|
3980
3999
|
return cutString(value, +maxlength);
|
3981
4000
|
}
|
3982
4001
|
return value;
|
@@ -3984,22 +4003,47 @@ var stdin_default$1j = vue.defineComponent({
|
|
3984
4003
|
const updateValue = (value, trigger = "onChange") => {
|
3985
4004
|
const originalValue = value;
|
3986
4005
|
value = limitValueLength(value);
|
3987
|
-
const
|
4006
|
+
const limitDiffLen = getStringLength(originalValue) - getStringLength(value);
|
3988
4007
|
if (props.type === "number" || props.type === "digit") {
|
3989
4008
|
const isNumber = props.type === "number";
|
3990
4009
|
value = formatNumber(value, isNumber, isNumber);
|
3991
4010
|
}
|
4011
|
+
let formatterDiffLen = 0;
|
3992
4012
|
if (props.formatter && trigger === props.formatTrigger) {
|
3993
|
-
|
4013
|
+
const {
|
4014
|
+
formatter,
|
4015
|
+
maxlength
|
4016
|
+
} = props;
|
4017
|
+
value = formatter(value);
|
4018
|
+
if (isDef(maxlength) && getStringLength(value) > maxlength) {
|
4019
|
+
value = cutString(value, +maxlength);
|
4020
|
+
}
|
4021
|
+
if (inputRef.value && state.focused) {
|
4022
|
+
const {
|
4023
|
+
selectionEnd
|
4024
|
+
} = inputRef.value;
|
4025
|
+
const bcoVal = cutString(originalValue, selectionEnd);
|
4026
|
+
formatterDiffLen = getStringLength(formatter(bcoVal)) - getStringLength(bcoVal);
|
4027
|
+
}
|
3994
4028
|
}
|
3995
4029
|
if (inputRef.value && inputRef.value.value !== value) {
|
3996
|
-
if (state.focused
|
3997
|
-
|
4030
|
+
if (state.focused) {
|
4031
|
+
let {
|
3998
4032
|
selectionStart,
|
3999
4033
|
selectionEnd
|
4000
4034
|
} = inputRef.value;
|
4001
4035
|
inputRef.value.value = value;
|
4002
|
-
|
4036
|
+
if (isDef(selectionStart) && isDef(selectionEnd)) {
|
4037
|
+
const valueLen = getStringLength(value);
|
4038
|
+
if (limitDiffLen) {
|
4039
|
+
selectionStart -= limitDiffLen;
|
4040
|
+
selectionEnd -= limitDiffLen;
|
4041
|
+
} else if (formatterDiffLen) {
|
4042
|
+
selectionStart += formatterDiffLen;
|
4043
|
+
selectionEnd += formatterDiffLen;
|
4044
|
+
}
|
4045
|
+
inputRef.value.setSelectionRange(Math.min(selectionStart, valueLen), Math.min(selectionEnd, valueLen));
|
4046
|
+
}
|
4003
4047
|
} else {
|
4004
4048
|
inputRef.value.value = value;
|
4005
4049
|
}
|
@@ -6522,6 +6566,14 @@ var stdin_default$13 = vue.defineComponent({
|
|
6522
6566
|
emit("load", event);
|
6523
6567
|
}
|
6524
6568
|
};
|
6569
|
+
const triggerLoad = () => {
|
6570
|
+
const loadEvent = new Event("load");
|
6571
|
+
Object.defineProperty(loadEvent, "target", {
|
6572
|
+
value: imageRef.value,
|
6573
|
+
enumerable: true
|
6574
|
+
});
|
6575
|
+
onLoad(loadEvent);
|
6576
|
+
};
|
6525
6577
|
const onError = (event) => {
|
6526
6578
|
error.value = true;
|
6527
6579
|
loading.value = false;
|
@@ -6579,7 +6631,7 @@ var stdin_default$13 = vue.defineComponent({
|
|
6579
6631
|
}) => {
|
6580
6632
|
const check = () => {
|
6581
6633
|
if (el === imageRef.value && loading.value) {
|
6582
|
-
|
6634
|
+
triggerLoad();
|
6583
6635
|
}
|
6584
6636
|
};
|
6585
6637
|
if (imageRef.value) {
|
@@ -6607,7 +6659,7 @@ var stdin_default$13 = vue.defineComponent({
|
|
6607
6659
|
vue.nextTick(() => {
|
6608
6660
|
var _a;
|
6609
6661
|
if ((_a = imageRef.value) == null ? void 0 : _a.complete) {
|
6610
|
-
|
6662
|
+
triggerLoad();
|
6611
6663
|
}
|
6612
6664
|
});
|
6613
6665
|
});
|
@@ -6634,7 +6686,7 @@ const cardProps = {
|
|
6634
6686
|
price: numericProp,
|
6635
6687
|
centered: Boolean,
|
6636
6688
|
lazyLoad: Boolean,
|
6637
|
-
currency: makeStringProp("
|
6689
|
+
currency: makeStringProp("¥"),
|
6638
6690
|
thumbLink: String,
|
6639
6691
|
originPrice: numericProp
|
6640
6692
|
};
|
@@ -7670,7 +7722,7 @@ var stdin_default$U = vue.defineComponent({
|
|
7670
7722
|
if (props.type === "add") {
|
7671
7723
|
return props.addText || t$d("addContact");
|
7672
7724
|
}
|
7673
|
-
return [vue.createVNode("div", null, [`${t$d("name")}
|
7725
|
+
return [vue.createVNode("div", null, [`${t$d("name")}:${props.name}`]), vue.createVNode("div", null, [`${t$d("tel")}:${props.tel}`])];
|
7674
7726
|
};
|
7675
7727
|
return () => vue.createVNode(Cell, {
|
7676
7728
|
"center": true,
|
@@ -7821,7 +7873,7 @@ var stdin_default$S = vue.defineComponent({
|
|
7821
7873
|
}
|
7822
7874
|
}, null);
|
7823
7875
|
const renderContent = () => {
|
7824
|
-
const nodes = [`${item.name}
|
7876
|
+
const nodes = [`${item.name},${item.tel}`];
|
7825
7877
|
if (item.isDefault && props.defaultTagText) {
|
7826
7878
|
nodes.push(vue.createVNode(Tag, {
|
7827
7879
|
"type": "primary",
|
@@ -7964,7 +8016,7 @@ var stdin_default$Q = vue.defineComponent({
|
|
7964
8016
|
chosen: Boolean,
|
7965
8017
|
coupon: makeRequiredProp(Object),
|
7966
8018
|
disabled: Boolean,
|
7967
|
-
currency: makeStringProp("
|
8019
|
+
currency: makeStringProp("¥")
|
7968
8020
|
},
|
7969
8021
|
setup(props) {
|
7970
8022
|
const validPeriod = vue.computed(() => {
|
@@ -8036,7 +8088,7 @@ const couponCellProps = {
|
|
8036
8088
|
border: truthProp,
|
8037
8089
|
editable: truthProp,
|
8038
8090
|
coupons: makeArrayProp(),
|
8039
|
-
currency: makeStringProp("
|
8091
|
+
currency: makeStringProp("¥"),
|
8040
8092
|
chosenCoupon: makeNumericProp(-1)
|
8041
8093
|
};
|
8042
8094
|
function formatValue({
|
@@ -8398,7 +8450,7 @@ const [name$H, bem$G, t$8] = createNamespace("coupon-list");
|
|
8398
8450
|
const couponListProps = {
|
8399
8451
|
code: makeStringProp(""),
|
8400
8452
|
coupons: makeArrayProp(),
|
8401
|
-
currency: makeStringProp("
|
8453
|
+
currency: makeStringProp("¥"),
|
8402
8454
|
showCount: truthProp,
|
8403
8455
|
emptyImage: String,
|
8404
8456
|
chosenCoupon: makeNumberProp(-1),
|
@@ -13087,7 +13139,7 @@ const submitBarProps = {
|
|
13087
13139
|
price: Number,
|
13088
13140
|
tipIcon: String,
|
13089
13141
|
loading: Boolean,
|
13090
|
-
currency: makeStringProp("
|
13142
|
+
currency: makeStringProp("¥"),
|
13091
13143
|
disabled: Boolean,
|
13092
13144
|
textAlign: String,
|
13093
13145
|
buttonText: String,
|
@@ -14847,7 +14899,7 @@ const Lazyload = {
|
|
14847
14899
|
});
|
14848
14900
|
}
|
14849
14901
|
};
|
14850
|
-
const version = "4.0.
|
14902
|
+
const version = "4.0.5";
|
14851
14903
|
function install(app) {
|
14852
14904
|
const components = [
|
14853
14905
|
ActionBar,
|