vant 4.0.4 → 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/es/badge/Badge.mjs +12 -3
- package/es/form/Form.mjs +3 -1
- 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 +63 -52
- package/lib/vant.es.js +63 -52
- package/lib/vant.js +62 -51
- 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 -529
- 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 -190
- 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
@@ -1,119 +0,0 @@
|
|
1
|
-
var __defProp = Object.defineProperty;
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
5
|
-
var __export = (target, all) => {
|
6
|
-
for (var name in all)
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
8
|
-
};
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
11
|
-
for (let key of __getOwnPropNames(from))
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
14
|
-
}
|
15
|
-
return to;
|
16
|
-
};
|
17
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
18
|
-
var stdin_exports = {};
|
19
|
-
__export(stdin_exports, {
|
20
|
-
default: () => stdin_default
|
21
|
-
});
|
22
|
-
module.exports = __toCommonJS(stdin_exports);
|
23
|
-
var import_use = require("@vant/use");
|
24
|
-
var import_util = require("./util");
|
25
|
-
var import_utils = require("../../utils");
|
26
|
-
var import_vue = require("vue");
|
27
|
-
var stdin_default = (lazyManager) => ({
|
28
|
-
props: {
|
29
|
-
src: [String, Object],
|
30
|
-
tag: {
|
31
|
-
type: String,
|
32
|
-
default: "img"
|
33
|
-
}
|
34
|
-
},
|
35
|
-
render() {
|
36
|
-
var _a, _b;
|
37
|
-
return (0, import_vue.h)(
|
38
|
-
this.tag,
|
39
|
-
{
|
40
|
-
src: this.renderSrc
|
41
|
-
},
|
42
|
-
(_b = (_a = this.$slots).default) == null ? void 0 : _b.call(_a)
|
43
|
-
);
|
44
|
-
},
|
45
|
-
data() {
|
46
|
-
return {
|
47
|
-
el: null,
|
48
|
-
options: {
|
49
|
-
src: "",
|
50
|
-
error: "",
|
51
|
-
loading: "",
|
52
|
-
attempt: lazyManager.options.attempt
|
53
|
-
},
|
54
|
-
state: {
|
55
|
-
loaded: false,
|
56
|
-
error: false,
|
57
|
-
attempt: 0
|
58
|
-
},
|
59
|
-
renderSrc: ""
|
60
|
-
};
|
61
|
-
},
|
62
|
-
watch: {
|
63
|
-
src() {
|
64
|
-
this.init();
|
65
|
-
lazyManager.addLazyBox(this);
|
66
|
-
lazyManager.lazyLoadHandler();
|
67
|
-
}
|
68
|
-
},
|
69
|
-
created() {
|
70
|
-
this.init();
|
71
|
-
this.renderSrc = this.options.loading;
|
72
|
-
},
|
73
|
-
mounted() {
|
74
|
-
this.el = this.$el;
|
75
|
-
lazyManager.addLazyBox(this);
|
76
|
-
lazyManager.lazyLoadHandler();
|
77
|
-
},
|
78
|
-
beforeUnmount() {
|
79
|
-
lazyManager.removeComponent(this);
|
80
|
-
},
|
81
|
-
methods: {
|
82
|
-
init() {
|
83
|
-
const { src, loading, error } = lazyManager.valueFormatter(this.src);
|
84
|
-
this.state.loaded = false;
|
85
|
-
this.options.src = src;
|
86
|
-
this.options.error = error;
|
87
|
-
this.options.loading = loading;
|
88
|
-
this.renderSrc = this.options.loading;
|
89
|
-
},
|
90
|
-
checkInView() {
|
91
|
-
const rect = (0, import_use.useRect)(this.$el);
|
92
|
-
return rect.top < window.innerHeight * lazyManager.options.preLoad && rect.bottom > 0 && rect.left < window.innerWidth * lazyManager.options.preLoad && rect.right > 0;
|
93
|
-
},
|
94
|
-
load(onFinish = import_utils.noop) {
|
95
|
-
if (this.state.attempt > this.options.attempt - 1 && this.state.error) {
|
96
|
-
if (process.env.NODE_ENV !== "production" && !lazyManager.options.silent) {
|
97
|
-
console.log(
|
98
|
-
`[@vant/lazyload] ${this.options.src} tried too more than ${this.options.attempt} times`
|
99
|
-
);
|
100
|
-
}
|
101
|
-
onFinish();
|
102
|
-
return;
|
103
|
-
}
|
104
|
-
const { src } = this.options;
|
105
|
-
(0, import_util.loadImageAsync)(
|
106
|
-
{ src },
|
107
|
-
({ src: src2 }) => {
|
108
|
-
this.renderSrc = src2;
|
109
|
-
this.state.loaded = true;
|
110
|
-
},
|
111
|
-
() => {
|
112
|
-
this.state.attempt++;
|
113
|
-
this.renderSrc = this.options.error;
|
114
|
-
this.state.error = true;
|
115
|
-
}
|
116
|
-
);
|
117
|
-
}
|
118
|
-
}
|
119
|
-
});
|
@@ -1,378 +0,0 @@
|
|
1
|
-
var __create = Object.create;
|
2
|
-
var __defProp = Object.defineProperty;
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
7
|
-
var __export = (target, all) => {
|
8
|
-
for (var name in all)
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
10
|
-
};
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
13
|
-
for (let key of __getOwnPropNames(from))
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
16
|
-
}
|
17
|
-
return to;
|
18
|
-
};
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
20
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
21
|
-
mod
|
22
|
-
));
|
23
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
24
|
-
var stdin_exports = {};
|
25
|
-
__export(stdin_exports, {
|
26
|
-
default: () => stdin_default
|
27
|
-
});
|
28
|
-
module.exports = __toCommonJS(stdin_exports);
|
29
|
-
var import_vue = require("vue");
|
30
|
-
var import_use = require("@vant/use");
|
31
|
-
var import_util = require("./util");
|
32
|
-
var import_utils = require("../../utils");
|
33
|
-
var import_listener = __toESM(require("./listener"));
|
34
|
-
const DEFAULT_URL = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
|
35
|
-
const DEFAULT_EVENTS = [
|
36
|
-
"scroll",
|
37
|
-
"wheel",
|
38
|
-
"mousewheel",
|
39
|
-
"resize",
|
40
|
-
"animationend",
|
41
|
-
"transitionend",
|
42
|
-
"touchmove"
|
43
|
-
];
|
44
|
-
const DEFAULT_OBSERVER_OPTIONS = {
|
45
|
-
rootMargin: "0px",
|
46
|
-
threshold: 0
|
47
|
-
};
|
48
|
-
function stdin_default() {
|
49
|
-
return class Lazy {
|
50
|
-
constructor({
|
51
|
-
preLoad,
|
52
|
-
error,
|
53
|
-
throttleWait,
|
54
|
-
preLoadTop,
|
55
|
-
dispatchEvent,
|
56
|
-
loading,
|
57
|
-
attempt,
|
58
|
-
silent = true,
|
59
|
-
scale,
|
60
|
-
listenEvents,
|
61
|
-
filter,
|
62
|
-
adapter,
|
63
|
-
observer,
|
64
|
-
observerOptions
|
65
|
-
}) {
|
66
|
-
this.mode = import_util.modeType.event;
|
67
|
-
this.listeners = [];
|
68
|
-
this.targetIndex = 0;
|
69
|
-
this.targets = [];
|
70
|
-
this.options = {
|
71
|
-
silent,
|
72
|
-
dispatchEvent: !!dispatchEvent,
|
73
|
-
throttleWait: throttleWait || 200,
|
74
|
-
preLoad: preLoad || 1.3,
|
75
|
-
preLoadTop: preLoadTop || 0,
|
76
|
-
error: error || DEFAULT_URL,
|
77
|
-
loading: loading || DEFAULT_URL,
|
78
|
-
attempt: attempt || 3,
|
79
|
-
scale: scale || (0, import_util.getDPR)(scale),
|
80
|
-
ListenEvents: listenEvents || DEFAULT_EVENTS,
|
81
|
-
supportWebp: (0, import_util.supportWebp)(),
|
82
|
-
filter: filter || {},
|
83
|
-
adapter: adapter || {},
|
84
|
-
observer: !!observer,
|
85
|
-
observerOptions: observerOptions || DEFAULT_OBSERVER_OPTIONS
|
86
|
-
};
|
87
|
-
this.initEvent();
|
88
|
-
this.imageCache = new import_util.ImageCache({ max: 200 });
|
89
|
-
this.lazyLoadHandler = (0, import_util.throttle)(
|
90
|
-
this.lazyLoadHandler.bind(this),
|
91
|
-
this.options.throttleWait
|
92
|
-
);
|
93
|
-
this.setMode(this.options.observer ? import_util.modeType.observer : import_util.modeType.event);
|
94
|
-
}
|
95
|
-
config(options = {}) {
|
96
|
-
Object.assign(this.options, options);
|
97
|
-
}
|
98
|
-
performance() {
|
99
|
-
return this.listeners.map((item) => item.performance());
|
100
|
-
}
|
101
|
-
addLazyBox(vm) {
|
102
|
-
this.listeners.push(vm);
|
103
|
-
if (import_use.inBrowser) {
|
104
|
-
this.addListenerTarget(window);
|
105
|
-
this.observer && this.observer.observe(vm.el);
|
106
|
-
if (vm.$el && vm.$el.parentNode) {
|
107
|
-
this.addListenerTarget(vm.$el.parentNode);
|
108
|
-
}
|
109
|
-
}
|
110
|
-
}
|
111
|
-
add(el, binding, vnode) {
|
112
|
-
if (this.listeners.some((item) => item.el === el)) {
|
113
|
-
this.update(el, binding);
|
114
|
-
return (0, import_vue.nextTick)(this.lazyLoadHandler);
|
115
|
-
}
|
116
|
-
const value = this.valueFormatter(binding.value);
|
117
|
-
let { src } = value;
|
118
|
-
(0, import_vue.nextTick)(() => {
|
119
|
-
src = (0, import_util.getBestSelectionFromSrcset)(el, this.options.scale) || src;
|
120
|
-
this.observer && this.observer.observe(el);
|
121
|
-
const container = Object.keys(binding.modifiers)[0];
|
122
|
-
let $parent;
|
123
|
-
if (container) {
|
124
|
-
$parent = vnode.context.$refs[container];
|
125
|
-
$parent = $parent ? $parent.$el || $parent : document.getElementById(container);
|
126
|
-
}
|
127
|
-
if (!$parent) {
|
128
|
-
$parent = (0, import_use.getScrollParent)(el);
|
129
|
-
}
|
130
|
-
const newListener = new import_listener.default({
|
131
|
-
bindType: binding.arg,
|
132
|
-
$parent,
|
133
|
-
el,
|
134
|
-
src,
|
135
|
-
loading: value.loading,
|
136
|
-
error: value.error,
|
137
|
-
cors: value.cors,
|
138
|
-
elRenderer: this.elRenderer.bind(this),
|
139
|
-
options: this.options,
|
140
|
-
imageCache: this.imageCache
|
141
|
-
});
|
142
|
-
this.listeners.push(newListener);
|
143
|
-
if (import_use.inBrowser) {
|
144
|
-
this.addListenerTarget(window);
|
145
|
-
this.addListenerTarget($parent);
|
146
|
-
}
|
147
|
-
this.lazyLoadHandler();
|
148
|
-
(0, import_vue.nextTick)(() => this.lazyLoadHandler());
|
149
|
-
});
|
150
|
-
}
|
151
|
-
update(el, binding, vnode) {
|
152
|
-
const value = this.valueFormatter(binding.value);
|
153
|
-
let { src } = value;
|
154
|
-
src = (0, import_util.getBestSelectionFromSrcset)(el, this.options.scale) || src;
|
155
|
-
const exist = this.listeners.find((item) => item.el === el);
|
156
|
-
if (!exist) {
|
157
|
-
this.add(el, binding, vnode);
|
158
|
-
} else {
|
159
|
-
exist.update({
|
160
|
-
src,
|
161
|
-
error: value.error,
|
162
|
-
loading: value.loading
|
163
|
-
});
|
164
|
-
}
|
165
|
-
if (this.observer) {
|
166
|
-
this.observer.unobserve(el);
|
167
|
-
this.observer.observe(el);
|
168
|
-
}
|
169
|
-
this.lazyLoadHandler();
|
170
|
-
(0, import_vue.nextTick)(() => this.lazyLoadHandler());
|
171
|
-
}
|
172
|
-
remove(el) {
|
173
|
-
if (!el)
|
174
|
-
return;
|
175
|
-
this.observer && this.observer.unobserve(el);
|
176
|
-
const existItem = this.listeners.find((item) => item.el === el);
|
177
|
-
if (existItem) {
|
178
|
-
this.removeListenerTarget(existItem.$parent);
|
179
|
-
this.removeListenerTarget(window);
|
180
|
-
(0, import_util.remove)(this.listeners, existItem);
|
181
|
-
existItem.$destroy();
|
182
|
-
}
|
183
|
-
}
|
184
|
-
removeComponent(vm) {
|
185
|
-
if (!vm)
|
186
|
-
return;
|
187
|
-
(0, import_util.remove)(this.listeners, vm);
|
188
|
-
this.observer && this.observer.unobserve(vm.el);
|
189
|
-
if (vm.$parent && vm.$el.parentNode) {
|
190
|
-
this.removeListenerTarget(vm.$el.parentNode);
|
191
|
-
}
|
192
|
-
this.removeListenerTarget(window);
|
193
|
-
}
|
194
|
-
setMode(mode) {
|
195
|
-
if (!import_util.hasIntersectionObserver && mode === import_util.modeType.observer) {
|
196
|
-
mode = import_util.modeType.event;
|
197
|
-
}
|
198
|
-
this.mode = mode;
|
199
|
-
if (mode === import_util.modeType.event) {
|
200
|
-
if (this.observer) {
|
201
|
-
this.listeners.forEach((listener) => {
|
202
|
-
this.observer.unobserve(listener.el);
|
203
|
-
});
|
204
|
-
this.observer = null;
|
205
|
-
}
|
206
|
-
this.targets.forEach((target) => {
|
207
|
-
this.initListen(target.el, true);
|
208
|
-
});
|
209
|
-
} else {
|
210
|
-
this.targets.forEach((target) => {
|
211
|
-
this.initListen(target.el, false);
|
212
|
-
});
|
213
|
-
this.initIntersectionObserver();
|
214
|
-
}
|
215
|
-
}
|
216
|
-
addListenerTarget(el) {
|
217
|
-
if (!el)
|
218
|
-
return;
|
219
|
-
let target = this.targets.find((target2) => target2.el === el);
|
220
|
-
if (!target) {
|
221
|
-
target = {
|
222
|
-
el,
|
223
|
-
id: ++this.targetIndex,
|
224
|
-
childrenCount: 1,
|
225
|
-
listened: true
|
226
|
-
};
|
227
|
-
this.mode === import_util.modeType.event && this.initListen(target.el, true);
|
228
|
-
this.targets.push(target);
|
229
|
-
} else {
|
230
|
-
target.childrenCount++;
|
231
|
-
}
|
232
|
-
return this.targetIndex;
|
233
|
-
}
|
234
|
-
removeListenerTarget(el) {
|
235
|
-
this.targets.forEach((target, index) => {
|
236
|
-
if (target.el === el) {
|
237
|
-
target.childrenCount--;
|
238
|
-
if (!target.childrenCount) {
|
239
|
-
this.initListen(target.el, false);
|
240
|
-
this.targets.splice(index, 1);
|
241
|
-
target = null;
|
242
|
-
}
|
243
|
-
}
|
244
|
-
});
|
245
|
-
}
|
246
|
-
initListen(el, start) {
|
247
|
-
this.options.ListenEvents.forEach(
|
248
|
-
(evt) => (start ? import_util.on : import_util.off)(el, evt, this.lazyLoadHandler)
|
249
|
-
);
|
250
|
-
}
|
251
|
-
initEvent() {
|
252
|
-
this.Event = {
|
253
|
-
listeners: {
|
254
|
-
loading: [],
|
255
|
-
loaded: [],
|
256
|
-
error: []
|
257
|
-
}
|
258
|
-
};
|
259
|
-
this.$on = (event, func) => {
|
260
|
-
if (!this.Event.listeners[event])
|
261
|
-
this.Event.listeners[event] = [];
|
262
|
-
this.Event.listeners[event].push(func);
|
263
|
-
};
|
264
|
-
this.$once = (event, func) => {
|
265
|
-
const on2 = (...args) => {
|
266
|
-
this.$off(event, on2);
|
267
|
-
func.apply(this, args);
|
268
|
-
};
|
269
|
-
this.$on(event, on2);
|
270
|
-
};
|
271
|
-
this.$off = (event, func) => {
|
272
|
-
if (!func) {
|
273
|
-
if (!this.Event.listeners[event])
|
274
|
-
return;
|
275
|
-
this.Event.listeners[event].length = 0;
|
276
|
-
return;
|
277
|
-
}
|
278
|
-
(0, import_util.remove)(this.Event.listeners[event], func);
|
279
|
-
};
|
280
|
-
this.$emit = (event, context, inCache) => {
|
281
|
-
if (!this.Event.listeners[event])
|
282
|
-
return;
|
283
|
-
this.Event.listeners[event].forEach((func) => func(context, inCache));
|
284
|
-
};
|
285
|
-
}
|
286
|
-
lazyLoadHandler() {
|
287
|
-
const freeList = [];
|
288
|
-
this.listeners.forEach((listener) => {
|
289
|
-
if (!listener.el || !listener.el.parentNode) {
|
290
|
-
freeList.push(listener);
|
291
|
-
}
|
292
|
-
const catIn = listener.checkInView();
|
293
|
-
if (!catIn)
|
294
|
-
return;
|
295
|
-
listener.load();
|
296
|
-
});
|
297
|
-
freeList.forEach((item) => {
|
298
|
-
(0, import_util.remove)(this.listeners, item);
|
299
|
-
item.$destroy();
|
300
|
-
});
|
301
|
-
}
|
302
|
-
initIntersectionObserver() {
|
303
|
-
if (!import_util.hasIntersectionObserver) {
|
304
|
-
return;
|
305
|
-
}
|
306
|
-
this.observer = new IntersectionObserver(
|
307
|
-
this.observerHandler.bind(this),
|
308
|
-
this.options.observerOptions
|
309
|
-
);
|
310
|
-
if (this.listeners.length) {
|
311
|
-
this.listeners.forEach((listener) => {
|
312
|
-
this.observer.observe(listener.el);
|
313
|
-
});
|
314
|
-
}
|
315
|
-
}
|
316
|
-
observerHandler(entries) {
|
317
|
-
entries.forEach((entry) => {
|
318
|
-
if (entry.isIntersecting) {
|
319
|
-
this.listeners.forEach((listener) => {
|
320
|
-
if (listener.el === entry.target) {
|
321
|
-
if (listener.state.loaded)
|
322
|
-
return this.observer.unobserve(listener.el);
|
323
|
-
listener.load();
|
324
|
-
}
|
325
|
-
});
|
326
|
-
}
|
327
|
-
});
|
328
|
-
}
|
329
|
-
elRenderer(listener, state, cache) {
|
330
|
-
if (!listener.el)
|
331
|
-
return;
|
332
|
-
const { el, bindType } = listener;
|
333
|
-
let src;
|
334
|
-
switch (state) {
|
335
|
-
case "loading":
|
336
|
-
src = listener.loading;
|
337
|
-
break;
|
338
|
-
case "error":
|
339
|
-
src = listener.error;
|
340
|
-
break;
|
341
|
-
default:
|
342
|
-
({ src } = listener);
|
343
|
-
break;
|
344
|
-
}
|
345
|
-
if (bindType) {
|
346
|
-
el.style[bindType] = 'url("' + src + '")';
|
347
|
-
} else if (el.getAttribute("src") !== src) {
|
348
|
-
el.setAttribute("src", src);
|
349
|
-
}
|
350
|
-
el.setAttribute("lazy", state);
|
351
|
-
this.$emit(state, listener, cache);
|
352
|
-
this.options.adapter[state] && this.options.adapter[state](listener, this.options);
|
353
|
-
if (this.options.dispatchEvent) {
|
354
|
-
const event = new CustomEvent(state, {
|
355
|
-
detail: listener
|
356
|
-
});
|
357
|
-
el.dispatchEvent(event);
|
358
|
-
}
|
359
|
-
}
|
360
|
-
valueFormatter(value) {
|
361
|
-
let src = value;
|
362
|
-
let { loading, error } = this.options;
|
363
|
-
if ((0, import_utils.isObject)(value)) {
|
364
|
-
if (process.env.NODE_ENV !== "production" && !value.src && !this.options.silent) {
|
365
|
-
console.error("[@vant/lazyload] miss src with " + value);
|
366
|
-
}
|
367
|
-
({ src } = value);
|
368
|
-
loading = value.loading || this.options.loading;
|
369
|
-
error = value.error || this.options.error;
|
370
|
-
}
|
371
|
-
return {
|
372
|
-
src,
|
373
|
-
loading,
|
374
|
-
error
|
375
|
-
};
|
376
|
-
}
|
377
|
-
};
|
378
|
-
}
|
@@ -1,192 +0,0 @@
|
|
1
|
-
var __defProp = Object.defineProperty;
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
5
|
-
var __export = (target, all) => {
|
6
|
-
for (var name in all)
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
8
|
-
};
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
11
|
-
for (let key of __getOwnPropNames(from))
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
14
|
-
}
|
15
|
-
return to;
|
16
|
-
};
|
17
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
18
|
-
var stdin_exports = {};
|
19
|
-
__export(stdin_exports, {
|
20
|
-
default: () => ReactiveListener
|
21
|
-
});
|
22
|
-
module.exports = __toCommonJS(stdin_exports);
|
23
|
-
var import_use = require("@vant/use");
|
24
|
-
var import_util = require("./util");
|
25
|
-
var import_utils = require("../../utils");
|
26
|
-
class ReactiveListener {
|
27
|
-
constructor({
|
28
|
-
el,
|
29
|
-
src,
|
30
|
-
error,
|
31
|
-
loading,
|
32
|
-
bindType,
|
33
|
-
$parent,
|
34
|
-
options,
|
35
|
-
cors,
|
36
|
-
elRenderer,
|
37
|
-
imageCache
|
38
|
-
}) {
|
39
|
-
this.el = el;
|
40
|
-
this.src = src;
|
41
|
-
this.error = error;
|
42
|
-
this.loading = loading;
|
43
|
-
this.bindType = bindType;
|
44
|
-
this.attempt = 0;
|
45
|
-
this.cors = cors;
|
46
|
-
this.naturalHeight = 0;
|
47
|
-
this.naturalWidth = 0;
|
48
|
-
this.options = options;
|
49
|
-
this.$parent = $parent;
|
50
|
-
this.elRenderer = elRenderer;
|
51
|
-
this.imageCache = imageCache;
|
52
|
-
this.performanceData = {
|
53
|
-
loadStart: 0,
|
54
|
-
loadEnd: 0
|
55
|
-
};
|
56
|
-
this.filter();
|
57
|
-
this.initState();
|
58
|
-
this.render("loading", false);
|
59
|
-
}
|
60
|
-
initState() {
|
61
|
-
if ("dataset" in this.el) {
|
62
|
-
this.el.dataset.src = this.src;
|
63
|
-
} else {
|
64
|
-
this.el.setAttribute("data-src", this.src);
|
65
|
-
}
|
66
|
-
this.state = {
|
67
|
-
loading: false,
|
68
|
-
error: false,
|
69
|
-
loaded: false,
|
70
|
-
rendered: false
|
71
|
-
};
|
72
|
-
}
|
73
|
-
record(event) {
|
74
|
-
this.performanceData[event] = Date.now();
|
75
|
-
}
|
76
|
-
update({ src, loading, error }) {
|
77
|
-
const oldSrc = this.src;
|
78
|
-
this.src = src;
|
79
|
-
this.loading = loading;
|
80
|
-
this.error = error;
|
81
|
-
this.filter();
|
82
|
-
if (oldSrc !== this.src) {
|
83
|
-
this.attempt = 0;
|
84
|
-
this.initState();
|
85
|
-
}
|
86
|
-
}
|
87
|
-
checkInView() {
|
88
|
-
const rect = (0, import_use.useRect)(this.el);
|
89
|
-
return rect.top < window.innerHeight * this.options.preLoad && rect.bottom > this.options.preLoadTop && rect.left < window.innerWidth * this.options.preLoad && rect.right > 0;
|
90
|
-
}
|
91
|
-
filter() {
|
92
|
-
Object.keys(this.options.filter).forEach((key) => {
|
93
|
-
this.options.filter[key](this, this.options);
|
94
|
-
});
|
95
|
-
}
|
96
|
-
renderLoading(cb) {
|
97
|
-
this.state.loading = true;
|
98
|
-
(0, import_util.loadImageAsync)(
|
99
|
-
{
|
100
|
-
src: this.loading,
|
101
|
-
cors: this.cors
|
102
|
-
},
|
103
|
-
() => {
|
104
|
-
this.render("loading", false);
|
105
|
-
this.state.loading = false;
|
106
|
-
cb();
|
107
|
-
},
|
108
|
-
() => {
|
109
|
-
cb();
|
110
|
-
this.state.loading = false;
|
111
|
-
if (process.env.NODE_ENV !== "production" && !this.options.silent)
|
112
|
-
console.warn(
|
113
|
-
`[@vant/lazyload] load failed with loading image(${this.loading})`
|
114
|
-
);
|
115
|
-
}
|
116
|
-
);
|
117
|
-
}
|
118
|
-
load(onFinish = import_utils.noop) {
|
119
|
-
if (this.attempt > this.options.attempt - 1 && this.state.error) {
|
120
|
-
if (process.env.NODE_ENV !== "production" && !this.options.silent) {
|
121
|
-
console.log(
|
122
|
-
`[@vant/lazyload] ${this.src} tried too more than ${this.options.attempt} times`
|
123
|
-
);
|
124
|
-
}
|
125
|
-
onFinish();
|
126
|
-
return;
|
127
|
-
}
|
128
|
-
if (this.state.rendered && this.state.loaded)
|
129
|
-
return;
|
130
|
-
if (this.imageCache.has(this.src)) {
|
131
|
-
this.state.loaded = true;
|
132
|
-
this.render("loaded", true);
|
133
|
-
this.state.rendered = true;
|
134
|
-
return onFinish();
|
135
|
-
}
|
136
|
-
this.renderLoading(() => {
|
137
|
-
var _a, _b;
|
138
|
-
this.attempt++;
|
139
|
-
(_b = (_a = this.options.adapter).beforeLoad) == null ? void 0 : _b.call(_a, this, this.options);
|
140
|
-
this.record("loadStart");
|
141
|
-
(0, import_util.loadImageAsync)(
|
142
|
-
{
|
143
|
-
src: this.src,
|
144
|
-
cors: this.cors
|
145
|
-
},
|
146
|
-
(data) => {
|
147
|
-
this.naturalHeight = data.naturalHeight;
|
148
|
-
this.naturalWidth = data.naturalWidth;
|
149
|
-
this.state.loaded = true;
|
150
|
-
this.state.error = false;
|
151
|
-
this.record("loadEnd");
|
152
|
-
this.render("loaded", false);
|
153
|
-
this.state.rendered = true;
|
154
|
-
this.imageCache.add(this.src);
|
155
|
-
onFinish();
|
156
|
-
},
|
157
|
-
(err) => {
|
158
|
-
!this.options.silent && console.error(err);
|
159
|
-
this.state.error = true;
|
160
|
-
this.state.loaded = false;
|
161
|
-
this.render("error", false);
|
162
|
-
}
|
163
|
-
);
|
164
|
-
});
|
165
|
-
}
|
166
|
-
render(state, cache) {
|
167
|
-
this.elRenderer(this, state, cache);
|
168
|
-
}
|
169
|
-
performance() {
|
170
|
-
let state = "loading";
|
171
|
-
let time = 0;
|
172
|
-
if (this.state.loaded) {
|
173
|
-
state = "loaded";
|
174
|
-
time = (this.performanceData.loadEnd - this.performanceData.loadStart) / 1e3;
|
175
|
-
}
|
176
|
-
if (this.state.error)
|
177
|
-
state = "error";
|
178
|
-
return {
|
179
|
-
src: this.src,
|
180
|
-
state,
|
181
|
-
time
|
182
|
-
};
|
183
|
-
}
|
184
|
-
$destroy() {
|
185
|
-
this.el = null;
|
186
|
-
this.src = null;
|
187
|
-
this.error = null;
|
188
|
-
this.loading = null;
|
189
|
-
this.bindType = null;
|
190
|
-
this.attempt = 0;
|
191
|
-
}
|
192
|
-
}
|
@@ -1,25 +0,0 @@
|
|
1
|
-
export function remove(arr: any, item: any): any;
|
2
|
-
export function getBestSelectionFromSrcset(el: any, scale: any): string | undefined;
|
3
|
-
export function supportWebp(): boolean;
|
4
|
-
export function throttle(action: any, delay: any): (...args: any[]) => void;
|
5
|
-
export function on(el: any, type: any, func: any): void;
|
6
|
-
export function off(el: any, type: any, func: any): void;
|
7
|
-
export const hasIntersectionObserver: boolean;
|
8
|
-
export namespace modeType {
|
9
|
-
const event: string;
|
10
|
-
const observer: string;
|
11
|
-
}
|
12
|
-
export function getDPR(scale?: number): number;
|
13
|
-
export function loadImageAsync(item: any, resolve: any, reject: any): any;
|
14
|
-
export class ImageCache {
|
15
|
-
constructor({ max }: {
|
16
|
-
max: any;
|
17
|
-
});
|
18
|
-
options: {
|
19
|
-
max: any;
|
20
|
-
};
|
21
|
-
caches: any[];
|
22
|
-
has(key: any): boolean;
|
23
|
-
add(key: any): void;
|
24
|
-
free(): void;
|
25
|
-
}
|