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/lib/uploader/Uploader.js
DELETED
@@ -1,274 +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 name2 in all)
|
9
|
-
__defProp(target, name2, { get: all[name2], 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
|
-
uploaderProps: () => uploaderProps
|
28
|
-
});
|
29
|
-
module.exports = __toCommonJS(stdin_exports);
|
30
|
-
var import_vue = require("vue");
|
31
|
-
var import_vue2 = require("vue");
|
32
|
-
var import_utils = require("../utils");
|
33
|
-
var import_utils2 = require("./utils");
|
34
|
-
var import_use = require("@vant/use");
|
35
|
-
var import_use_expose = require("../composables/use-expose");
|
36
|
-
var import_icon = require("../icon");
|
37
|
-
var import_image_preview = require("../image-preview");
|
38
|
-
var import_UploaderPreviewItem = __toESM(require("./UploaderPreviewItem"));
|
39
|
-
const uploaderProps = {
|
40
|
-
name: (0, import_utils.makeNumericProp)(""),
|
41
|
-
accept: (0, import_utils.makeStringProp)("image/*"),
|
42
|
-
capture: String,
|
43
|
-
multiple: Boolean,
|
44
|
-
disabled: Boolean,
|
45
|
-
readonly: Boolean,
|
46
|
-
lazyLoad: Boolean,
|
47
|
-
maxCount: (0, import_utils.makeNumericProp)(Infinity),
|
48
|
-
imageFit: (0, import_utils.makeStringProp)("cover"),
|
49
|
-
resultType: (0, import_utils.makeStringProp)("dataUrl"),
|
50
|
-
uploadIcon: (0, import_utils.makeStringProp)("photograph"),
|
51
|
-
uploadText: String,
|
52
|
-
deletable: import_utils.truthProp,
|
53
|
-
afterRead: Function,
|
54
|
-
showUpload: import_utils.truthProp,
|
55
|
-
modelValue: (0, import_utils.makeArrayProp)(),
|
56
|
-
beforeRead: Function,
|
57
|
-
beforeDelete: Function,
|
58
|
-
previewSize: [Number, String, Array],
|
59
|
-
previewImage: import_utils.truthProp,
|
60
|
-
previewOptions: Object,
|
61
|
-
previewFullImage: import_utils.truthProp,
|
62
|
-
maxSize: {
|
63
|
-
type: [Number, String, Function],
|
64
|
-
default: Infinity
|
65
|
-
}
|
66
|
-
};
|
67
|
-
var stdin_default = (0, import_vue2.defineComponent)({
|
68
|
-
name: import_utils2.name,
|
69
|
-
props: uploaderProps,
|
70
|
-
emits: ["delete", "oversize", "clickUpload", "closePreview", "clickPreview", "update:modelValue"],
|
71
|
-
setup(props, {
|
72
|
-
emit,
|
73
|
-
slots
|
74
|
-
}) {
|
75
|
-
const inputRef = (0, import_vue2.ref)();
|
76
|
-
const urls = [];
|
77
|
-
const getDetail = (index = props.modelValue.length) => ({
|
78
|
-
name: props.name,
|
79
|
-
index
|
80
|
-
});
|
81
|
-
const resetInput = () => {
|
82
|
-
if (inputRef.value) {
|
83
|
-
inputRef.value.value = "";
|
84
|
-
}
|
85
|
-
};
|
86
|
-
const onAfterRead = (items) => {
|
87
|
-
resetInput();
|
88
|
-
if ((0, import_utils2.isOversize)(items, props.maxSize)) {
|
89
|
-
if (Array.isArray(items)) {
|
90
|
-
const result = (0, import_utils2.filterFiles)(items, props.maxSize);
|
91
|
-
items = result.valid;
|
92
|
-
emit("oversize", result.invalid, getDetail());
|
93
|
-
if (!items.length) {
|
94
|
-
return;
|
95
|
-
}
|
96
|
-
} else {
|
97
|
-
emit("oversize", items, getDetail());
|
98
|
-
return;
|
99
|
-
}
|
100
|
-
}
|
101
|
-
items = (0, import_vue2.reactive)(items);
|
102
|
-
emit("update:modelValue", [...props.modelValue, ...(0, import_utils.toArray)(items)]);
|
103
|
-
if (props.afterRead) {
|
104
|
-
props.afterRead(items, getDetail());
|
105
|
-
}
|
106
|
-
};
|
107
|
-
const readFile = (files) => {
|
108
|
-
const {
|
109
|
-
maxCount,
|
110
|
-
modelValue,
|
111
|
-
resultType
|
112
|
-
} = props;
|
113
|
-
if (Array.isArray(files)) {
|
114
|
-
const remainCount = +maxCount - modelValue.length;
|
115
|
-
if (files.length > remainCount) {
|
116
|
-
files = files.slice(0, remainCount);
|
117
|
-
}
|
118
|
-
Promise.all(files.map((file) => (0, import_utils2.readFileContent)(file, resultType))).then((contents) => {
|
119
|
-
const fileList = files.map((file, index) => {
|
120
|
-
const result = {
|
121
|
-
file,
|
122
|
-
status: "",
|
123
|
-
message: ""
|
124
|
-
};
|
125
|
-
if (contents[index]) {
|
126
|
-
result.content = contents[index];
|
127
|
-
}
|
128
|
-
return result;
|
129
|
-
});
|
130
|
-
onAfterRead(fileList);
|
131
|
-
});
|
132
|
-
} else {
|
133
|
-
(0, import_utils2.readFileContent)(files, resultType).then((content) => {
|
134
|
-
const result = {
|
135
|
-
file: files,
|
136
|
-
status: "",
|
137
|
-
message: ""
|
138
|
-
};
|
139
|
-
if (content) {
|
140
|
-
result.content = content;
|
141
|
-
}
|
142
|
-
onAfterRead(result);
|
143
|
-
});
|
144
|
-
}
|
145
|
-
};
|
146
|
-
const onChange = (event) => {
|
147
|
-
const {
|
148
|
-
files
|
149
|
-
} = event.target;
|
150
|
-
if (props.disabled || !files || !files.length) {
|
151
|
-
return;
|
152
|
-
}
|
153
|
-
const file = files.length === 1 ? files[0] : [].slice.call(files);
|
154
|
-
if (props.beforeRead) {
|
155
|
-
const response = props.beforeRead(file, getDetail());
|
156
|
-
if (!response) {
|
157
|
-
resetInput();
|
158
|
-
return;
|
159
|
-
}
|
160
|
-
if ((0, import_utils.isPromise)(response)) {
|
161
|
-
response.then((data) => {
|
162
|
-
if (data) {
|
163
|
-
readFile(data);
|
164
|
-
} else {
|
165
|
-
readFile(file);
|
166
|
-
}
|
167
|
-
}).catch(resetInput);
|
168
|
-
return;
|
169
|
-
}
|
170
|
-
}
|
171
|
-
readFile(file);
|
172
|
-
};
|
173
|
-
let imagePreview;
|
174
|
-
const onClosePreview = () => emit("closePreview");
|
175
|
-
const previewImage = (item) => {
|
176
|
-
if (props.previewFullImage) {
|
177
|
-
const imageFiles = props.modelValue.filter(import_utils2.isImageFile);
|
178
|
-
const images = imageFiles.map((item2) => {
|
179
|
-
if (item2.file && !item2.url && item2.status !== "failed") {
|
180
|
-
item2.url = URL.createObjectURL(item2.file);
|
181
|
-
urls.push(item2.url);
|
182
|
-
}
|
183
|
-
return item2.url;
|
184
|
-
}).filter(Boolean);
|
185
|
-
imagePreview = (0, import_image_preview.showImagePreview)((0, import_utils.extend)({
|
186
|
-
images,
|
187
|
-
startPosition: imageFiles.indexOf(item),
|
188
|
-
onClose: onClosePreview
|
189
|
-
}, props.previewOptions));
|
190
|
-
}
|
191
|
-
};
|
192
|
-
const closeImagePreview = () => {
|
193
|
-
if (imagePreview) {
|
194
|
-
imagePreview.close();
|
195
|
-
}
|
196
|
-
};
|
197
|
-
const deleteFile = (item, index) => {
|
198
|
-
const fileList = props.modelValue.slice(0);
|
199
|
-
fileList.splice(index, 1);
|
200
|
-
emit("update:modelValue", fileList);
|
201
|
-
emit("delete", item, getDetail(index));
|
202
|
-
};
|
203
|
-
const renderPreviewItem = (item, index) => {
|
204
|
-
const needPickData = ["imageFit", "deletable", "previewSize", "beforeDelete"];
|
205
|
-
const previewData = (0, import_utils.extend)((0, import_utils.pick)(props, needPickData), (0, import_utils.pick)(item, needPickData, true));
|
206
|
-
return (0, import_vue.createVNode)(import_UploaderPreviewItem.default, (0, import_vue.mergeProps)({
|
207
|
-
"item": item,
|
208
|
-
"index": index,
|
209
|
-
"onClick": () => emit("clickPreview", item, getDetail(index)),
|
210
|
-
"onDelete": () => deleteFile(item, index),
|
211
|
-
"onPreview": () => previewImage(item)
|
212
|
-
}, (0, import_utils.pick)(props, ["name", "lazyLoad"]), previewData), (0, import_utils.pick)(slots, ["preview-cover", "preview-delete"]));
|
213
|
-
};
|
214
|
-
const renderPreviewList = () => {
|
215
|
-
if (props.previewImage) {
|
216
|
-
return props.modelValue.map(renderPreviewItem);
|
217
|
-
}
|
218
|
-
};
|
219
|
-
const onClickUpload = (event) => emit("clickUpload", event);
|
220
|
-
const renderUpload = () => {
|
221
|
-
if (props.modelValue.length >= props.maxCount) {
|
222
|
-
return;
|
223
|
-
}
|
224
|
-
const Input = props.readonly ? null : (0, import_vue.createVNode)("input", {
|
225
|
-
"ref": inputRef,
|
226
|
-
"type": "file",
|
227
|
-
"class": (0, import_utils2.bem)("input"),
|
228
|
-
"accept": props.accept,
|
229
|
-
"capture": props.capture,
|
230
|
-
"multiple": props.multiple,
|
231
|
-
"disabled": props.disabled,
|
232
|
-
"onChange": onChange
|
233
|
-
}, null);
|
234
|
-
if (slots.default) {
|
235
|
-
return (0, import_vue.createVNode)("div", {
|
236
|
-
"class": (0, import_utils2.bem)("input-wrapper"),
|
237
|
-
"onClick": onClickUpload
|
238
|
-
}, [slots.default(), Input]);
|
239
|
-
}
|
240
|
-
return (0, import_vue.withDirectives)((0, import_vue.createVNode)("div", {
|
241
|
-
"class": (0, import_utils2.bem)("upload", {
|
242
|
-
readonly: props.readonly
|
243
|
-
}),
|
244
|
-
"style": (0, import_utils.getSizeStyle)(props.previewSize),
|
245
|
-
"onClick": onClickUpload
|
246
|
-
}, [(0, import_vue.createVNode)(import_icon.Icon, {
|
247
|
-
"name": props.uploadIcon,
|
248
|
-
"class": (0, import_utils2.bem)("upload-icon")
|
249
|
-
}, null), props.uploadText && (0, import_vue.createVNode)("span", {
|
250
|
-
"class": (0, import_utils2.bem)("upload-text")
|
251
|
-
}, [props.uploadText]), Input]), [[import_vue.vShow, props.showUpload]]);
|
252
|
-
};
|
253
|
-
const chooseFile = () => {
|
254
|
-
if (inputRef.value && !props.disabled) {
|
255
|
-
inputRef.value.click();
|
256
|
-
}
|
257
|
-
};
|
258
|
-
(0, import_vue2.onBeforeUnmount)(() => {
|
259
|
-
urls.forEach((url) => URL.revokeObjectURL(url));
|
260
|
-
});
|
261
|
-
(0, import_use_expose.useExpose)({
|
262
|
-
chooseFile,
|
263
|
-
closeImagePreview
|
264
|
-
});
|
265
|
-
(0, import_use.useCustomFieldValue)(() => props.modelValue);
|
266
|
-
return () => (0, import_vue.createVNode)("div", {
|
267
|
-
"class": (0, import_utils2.bem)()
|
268
|
-
}, [(0, import_vue.createVNode)("div", {
|
269
|
-
"class": (0, import_utils2.bem)("wrapper", {
|
270
|
-
disabled: props.disabled
|
271
|
-
})
|
272
|
-
}, [renderPreviewList(), renderUpload()])]);
|
273
|
-
}
|
274
|
-
});
|
@@ -1,36 +0,0 @@
|
|
1
|
-
import { type PropType } from 'vue';
|
2
|
-
import { type Numeric, type Interceptor } from '../utils';
|
3
|
-
import { ImageFit } from '../image';
|
4
|
-
import type { UploaderFileListItem } from './types';
|
5
|
-
declare const _default: import("vue").DefineComponent<{
|
6
|
-
name: (NumberConstructor | StringConstructor)[];
|
7
|
-
item: {
|
8
|
-
type: PropType<UploaderFileListItem>;
|
9
|
-
required: true;
|
10
|
-
};
|
11
|
-
index: NumberConstructor;
|
12
|
-
imageFit: PropType<ImageFit>;
|
13
|
-
lazyLoad: BooleanConstructor;
|
14
|
-
deletable: BooleanConstructor;
|
15
|
-
previewSize: PropType<Numeric | [Numeric, Numeric]>;
|
16
|
-
beforeDelete: PropType<Interceptor>;
|
17
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("delete" | "preview")[], "delete" | "preview", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
18
|
-
name: (NumberConstructor | StringConstructor)[];
|
19
|
-
item: {
|
20
|
-
type: PropType<UploaderFileListItem>;
|
21
|
-
required: true;
|
22
|
-
};
|
23
|
-
index: NumberConstructor;
|
24
|
-
imageFit: PropType<ImageFit>;
|
25
|
-
lazyLoad: BooleanConstructor;
|
26
|
-
deletable: BooleanConstructor;
|
27
|
-
previewSize: PropType<Numeric | [Numeric, Numeric]>;
|
28
|
-
beforeDelete: PropType<Interceptor>;
|
29
|
-
}>> & {
|
30
|
-
onDelete?: ((...args: any[]) => any) | undefined;
|
31
|
-
onPreview?: ((...args: any[]) => any) | undefined;
|
32
|
-
}, {
|
33
|
-
lazyLoad: boolean;
|
34
|
-
deletable: boolean;
|
35
|
-
}>;
|
36
|
-
export default _default;
|
@@ -1,147 +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_vue = require("vue");
|
24
|
-
var import_vue2 = require("vue");
|
25
|
-
var import_utils = require("./utils");
|
26
|
-
var import_utils2 = require("../utils");
|
27
|
-
var import_icon = require("../icon");
|
28
|
-
var import_image = require("../image");
|
29
|
-
var import_loading = require("../loading");
|
30
|
-
var stdin_default = (0, import_vue2.defineComponent)({
|
31
|
-
props: {
|
32
|
-
name: import_utils2.numericProp,
|
33
|
-
item: (0, import_utils2.makeRequiredProp)(Object),
|
34
|
-
index: Number,
|
35
|
-
imageFit: String,
|
36
|
-
lazyLoad: Boolean,
|
37
|
-
deletable: Boolean,
|
38
|
-
previewSize: [Number, String, Array],
|
39
|
-
beforeDelete: Function
|
40
|
-
},
|
41
|
-
emits: ["delete", "preview"],
|
42
|
-
setup(props, {
|
43
|
-
emit,
|
44
|
-
slots
|
45
|
-
}) {
|
46
|
-
const renderMask = () => {
|
47
|
-
const {
|
48
|
-
status,
|
49
|
-
message
|
50
|
-
} = props.item;
|
51
|
-
if (status === "uploading" || status === "failed") {
|
52
|
-
const MaskIcon = status === "failed" ? (0, import_vue.createVNode)(import_icon.Icon, {
|
53
|
-
"name": "close",
|
54
|
-
"class": (0, import_utils.bem)("mask-icon")
|
55
|
-
}, null) : (0, import_vue.createVNode)(import_loading.Loading, {
|
56
|
-
"class": (0, import_utils.bem)("loading")
|
57
|
-
}, null);
|
58
|
-
const showMessage = (0, import_utils2.isDef)(message) && message !== "";
|
59
|
-
return (0, import_vue.createVNode)("div", {
|
60
|
-
"class": (0, import_utils.bem)("mask")
|
61
|
-
}, [MaskIcon, showMessage && (0, import_vue.createVNode)("div", {
|
62
|
-
"class": (0, import_utils.bem)("mask-message")
|
63
|
-
}, [message])]);
|
64
|
-
}
|
65
|
-
};
|
66
|
-
const onDelete = (event) => {
|
67
|
-
const {
|
68
|
-
name,
|
69
|
-
item,
|
70
|
-
index,
|
71
|
-
beforeDelete
|
72
|
-
} = props;
|
73
|
-
event.stopPropagation();
|
74
|
-
(0, import_utils2.callInterceptor)(beforeDelete, {
|
75
|
-
args: [item, {
|
76
|
-
name,
|
77
|
-
index
|
78
|
-
}],
|
79
|
-
done: () => emit("delete")
|
80
|
-
});
|
81
|
-
};
|
82
|
-
const onPreview = () => emit("preview");
|
83
|
-
const renderDeleteIcon = () => {
|
84
|
-
if (props.deletable && props.item.status !== "uploading") {
|
85
|
-
const slot = slots["preview-delete"];
|
86
|
-
return (0, import_vue.createVNode)("div", {
|
87
|
-
"role": "button",
|
88
|
-
"class": (0, import_utils.bem)("preview-delete", {
|
89
|
-
shadow: !slot
|
90
|
-
}),
|
91
|
-
"tabindex": 0,
|
92
|
-
"aria-label": (0, import_utils.t)("delete"),
|
93
|
-
"onClick": onDelete
|
94
|
-
}, [slot ? slot() : (0, import_vue.createVNode)(import_icon.Icon, {
|
95
|
-
"name": "cross",
|
96
|
-
"class": (0, import_utils.bem)("preview-delete-icon")
|
97
|
-
}, null)]);
|
98
|
-
}
|
99
|
-
};
|
100
|
-
const renderCover = () => {
|
101
|
-
if (slots["preview-cover"]) {
|
102
|
-
const {
|
103
|
-
index,
|
104
|
-
item
|
105
|
-
} = props;
|
106
|
-
return (0, import_vue.createVNode)("div", {
|
107
|
-
"class": (0, import_utils.bem)("preview-cover")
|
108
|
-
}, [slots["preview-cover"]((0, import_utils2.extend)({
|
109
|
-
index
|
110
|
-
}, item))]);
|
111
|
-
}
|
112
|
-
};
|
113
|
-
const renderPreview = () => {
|
114
|
-
const {
|
115
|
-
item,
|
116
|
-
lazyLoad,
|
117
|
-
imageFit,
|
118
|
-
previewSize
|
119
|
-
} = props;
|
120
|
-
if ((0, import_utils.isImageFile)(item)) {
|
121
|
-
return (0, import_vue.createVNode)(import_image.Image, {
|
122
|
-
"fit": imageFit,
|
123
|
-
"src": item.content || item.url,
|
124
|
-
"class": (0, import_utils.bem)("preview-image"),
|
125
|
-
"width": Array.isArray(previewSize) ? previewSize[0] : previewSize,
|
126
|
-
"height": Array.isArray(previewSize) ? previewSize[1] : previewSize,
|
127
|
-
"lazyLoad": lazyLoad,
|
128
|
-
"onClick": onPreview
|
129
|
-
}, {
|
130
|
-
default: renderCover
|
131
|
-
});
|
132
|
-
}
|
133
|
-
return (0, import_vue.createVNode)("div", {
|
134
|
-
"class": (0, import_utils.bem)("file"),
|
135
|
-
"style": (0, import_utils2.getSizeStyle)(props.previewSize)
|
136
|
-
}, [(0, import_vue.createVNode)(import_icon.Icon, {
|
137
|
-
"class": (0, import_utils.bem)("file-icon"),
|
138
|
-
"name": "description"
|
139
|
-
}, null), (0, import_vue.createVNode)("div", {
|
140
|
-
"class": [(0, import_utils.bem)("file-name"), "van-ellipsis"]
|
141
|
-
}, [item.file ? item.file.name : item.url]), renderCover()]);
|
142
|
-
};
|
143
|
-
return () => (0, import_vue.createVNode)("div", {
|
144
|
-
"class": (0, import_utils.bem)("preview")
|
145
|
-
}, [renderPreview(), renderMask(), renderDeleteIcon()]);
|
146
|
-
}
|
147
|
-
});
|
package/lib/uploader/index.css
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
:root{--van-uploader-size: 80px;--van-uploader-icon-size: 24px;--van-uploader-icon-color: var(--van-gray-4);--van-uploader-text-color: var(--van-text-color-2);--van-uploader-text-font-size: var(--van-font-size-sm);--van-uploader-upload-background: var(--van-gray-1);--van-uploader-upload-active-color: var(--van-active-color);--van-uploader-delete-color: var(--van-white);--van-uploader-delete-icon-size: 14px;--van-uploader-delete-background: rgba(0, 0, 0, .7);--van-uploader-file-background: var(--van-background);--van-uploader-file-icon-size: 20px;--van-uploader-file-icon-color: var(--van-gray-7);--van-uploader-file-name-padding: 0 var(--van-padding-base);--van-uploader-file-name-margin-top: var(--van-padding-xs);--van-uploader-file-name-font-size: var(--van-font-size-sm);--van-uploader-file-name-text-color: var(--van-gray-7);--van-uploader-mask-text-color: var(--van-white);--van-uploader-mask-background: rgba(50, 50, 51, .88);--van-uploader-mask-icon-size: 22px;--van-uploader-mask-message-font-size: var(--van-font-size-sm);--van-uploader-mask-message-line-height: var(--van-line-height-xs);--van-uploader-loading-icon-size: 22px;--van-uploader-loading-icon-color: var(--van-white);--van-uploader-disabled-opacity: var(--van-disabled-opacity)}.van-uploader{position:relative;display:inline-block}.van-uploader__wrapper{display:flex;flex-wrap:wrap}.van-uploader__wrapper--disabled{opacity:var(--van-uploader-disabled-opacity)}.van-uploader__input{position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden;cursor:pointer;opacity:0}.van-uploader__input-wrapper{position:relative}.van-uploader__input:disabled{cursor:not-allowed}.van-uploader__upload{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:border-box;width:var(--van-uploader-size);height:var(--van-uploader-size);margin:0 var(--van-padding-xs) var(--van-padding-xs) 0;background:var(--van-uploader-upload-background)}.van-uploader__upload:active{background-color:var(--van-uploader-upload-active-color)}.van-uploader__upload--readonly:active{background-color:var(--van-uploader-upload-background)}.van-uploader__upload-icon{color:var(--van-uploader-icon-color);font-size:var(--van-uploader-icon-size)}.van-uploader__upload-text{margin-top:var(--van-padding-xs);color:var(--van-uploader-text-color);font-size:var(--van-uploader-text-font-size)}.van-uploader__preview{position:relative;margin:0 var(--van-padding-xs) var(--van-padding-xs) 0;cursor:pointer}.van-uploader__preview-image{display:block;width:var(--van-uploader-size);height:var(--van-uploader-size);overflow:hidden}.van-uploader__preview-delete{position:absolute;top:0;right:0}.van-uploader__preview-delete--shadow{width:var(--van-uploader-delete-icon-size);height:var(--van-uploader-delete-icon-size);background:var(--van-uploader-delete-background);border-radius:0 0 0 12px}.van-uploader__preview-delete-icon{position:absolute;top:0;right:0;color:var(--van-uploader-delete-color);font-size:var(--van-uploader-delete-icon-size);transform:scale(.7) translate(10%,-10%)}.van-uploader__preview-cover{position:absolute;top:0;right:0;bottom:0;left:0}.van-uploader__mask{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--van-uploader-mask-text-color);background:var(--van-uploader-mask-background)}.van-uploader__mask-icon{font-size:var(--van-uploader-mask-icon-size)}.van-uploader__mask-message{margin-top:6px;padding:0 var(--van-padding-base);font-size:var(--van-uploader-mask-message-font-size);line-height:var(--van-uploader-mask-message-line-height)}.van-uploader__loading{width:var(--van-uploader-loading-icon-size);height:var(--van-uploader-loading-icon-size);color:var(--van-uploader-loading-icon-color)}.van-uploader__file{display:flex;flex-direction:column;align-items:center;justify-content:center;width:var(--van-uploader-size);height:var(--van-uploader-size);background:var(--van-uploader-file-background)}.van-uploader__file-icon{color:var(--van-uploader-file-icon-color);font-size:var(--van-uploader-file-icon-size)}.van-uploader__file-name{box-sizing:border-box;width:100%;margin-top:var(--van-uploader-file-name-margin-top);padding:var(--van-uploader-file-name-padding);color:var(--van-uploader-file-name-text-color);font-size:var(--van-uploader-file-name-font-size);text-align:center}
|
package/lib/uploader/index.d.ts
DELETED
@@ -1,155 +0,0 @@
|
|
1
|
-
import { UploaderProps } from './Uploader';
|
2
|
-
export declare const Uploader: import("../utils").WithInstall<import("vue").DefineComponent<{
|
3
|
-
name: {
|
4
|
-
type: (NumberConstructor | StringConstructor)[];
|
5
|
-
default: string;
|
6
|
-
};
|
7
|
-
accept: {
|
8
|
-
type: import("vue").PropType<string>;
|
9
|
-
default: string;
|
10
|
-
};
|
11
|
-
capture: StringConstructor;
|
12
|
-
multiple: BooleanConstructor;
|
13
|
-
disabled: BooleanConstructor;
|
14
|
-
readonly: BooleanConstructor;
|
15
|
-
lazyLoad: BooleanConstructor;
|
16
|
-
maxCount: {
|
17
|
-
type: (NumberConstructor | StringConstructor)[];
|
18
|
-
default: number;
|
19
|
-
};
|
20
|
-
imageFit: {
|
21
|
-
type: import("vue").PropType<import("..").ImageFit>;
|
22
|
-
default: import("..").ImageFit;
|
23
|
-
};
|
24
|
-
resultType: {
|
25
|
-
type: import("vue").PropType<import("./types").UploaderResultType>;
|
26
|
-
default: import("./types").UploaderResultType;
|
27
|
-
};
|
28
|
-
uploadIcon: {
|
29
|
-
type: import("vue").PropType<string>;
|
30
|
-
default: string;
|
31
|
-
};
|
32
|
-
uploadText: StringConstructor;
|
33
|
-
deletable: {
|
34
|
-
type: BooleanConstructor;
|
35
|
-
default: true;
|
36
|
-
};
|
37
|
-
afterRead: import("vue").PropType<import("./types").UploaderAfterRead>;
|
38
|
-
showUpload: {
|
39
|
-
type: BooleanConstructor;
|
40
|
-
default: true;
|
41
|
-
};
|
42
|
-
modelValue: {
|
43
|
-
type: import("vue").PropType<import("./types").UploaderFileListItem[]>;
|
44
|
-
default: () => never[];
|
45
|
-
};
|
46
|
-
beforeRead: import("vue").PropType<import("./types").UploaderBeforeRead>;
|
47
|
-
beforeDelete: import("vue").PropType<import("../utils").Interceptor>;
|
48
|
-
previewSize: import("vue").PropType<import("../utils").Numeric | [import("../utils").Numeric, import("../utils").Numeric]>;
|
49
|
-
previewImage: {
|
50
|
-
type: BooleanConstructor;
|
51
|
-
default: true;
|
52
|
-
};
|
53
|
-
previewOptions: import("vue").PropType<Partial<import("..").ImagePreviewOptions>>;
|
54
|
-
previewFullImage: {
|
55
|
-
type: BooleanConstructor;
|
56
|
-
default: true;
|
57
|
-
};
|
58
|
-
maxSize: {
|
59
|
-
type: import("vue").PropType<import("./types").UploaderMaxSize>;
|
60
|
-
default: number;
|
61
|
-
};
|
62
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "delete" | "oversize" | "clickUpload" | "closePreview" | "clickPreview")[], "update:modelValue" | "delete" | "oversize" | "clickUpload" | "closePreview" | "clickPreview", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
63
|
-
name: {
|
64
|
-
type: (NumberConstructor | StringConstructor)[];
|
65
|
-
default: string;
|
66
|
-
};
|
67
|
-
accept: {
|
68
|
-
type: import("vue").PropType<string>;
|
69
|
-
default: string;
|
70
|
-
};
|
71
|
-
capture: StringConstructor;
|
72
|
-
multiple: BooleanConstructor;
|
73
|
-
disabled: BooleanConstructor;
|
74
|
-
readonly: BooleanConstructor;
|
75
|
-
lazyLoad: BooleanConstructor;
|
76
|
-
maxCount: {
|
77
|
-
type: (NumberConstructor | StringConstructor)[];
|
78
|
-
default: number;
|
79
|
-
};
|
80
|
-
imageFit: {
|
81
|
-
type: import("vue").PropType<import("..").ImageFit>;
|
82
|
-
default: import("..").ImageFit;
|
83
|
-
};
|
84
|
-
resultType: {
|
85
|
-
type: import("vue").PropType<import("./types").UploaderResultType>;
|
86
|
-
default: import("./types").UploaderResultType;
|
87
|
-
};
|
88
|
-
uploadIcon: {
|
89
|
-
type: import("vue").PropType<string>;
|
90
|
-
default: string;
|
91
|
-
};
|
92
|
-
uploadText: StringConstructor;
|
93
|
-
deletable: {
|
94
|
-
type: BooleanConstructor;
|
95
|
-
default: true;
|
96
|
-
};
|
97
|
-
afterRead: import("vue").PropType<import("./types").UploaderAfterRead>;
|
98
|
-
showUpload: {
|
99
|
-
type: BooleanConstructor;
|
100
|
-
default: true;
|
101
|
-
};
|
102
|
-
modelValue: {
|
103
|
-
type: import("vue").PropType<import("./types").UploaderFileListItem[]>;
|
104
|
-
default: () => never[];
|
105
|
-
};
|
106
|
-
beforeRead: import("vue").PropType<import("./types").UploaderBeforeRead>;
|
107
|
-
beforeDelete: import("vue").PropType<import("../utils").Interceptor>;
|
108
|
-
previewSize: import("vue").PropType<import("../utils").Numeric | [import("../utils").Numeric, import("../utils").Numeric]>;
|
109
|
-
previewImage: {
|
110
|
-
type: BooleanConstructor;
|
111
|
-
default: true;
|
112
|
-
};
|
113
|
-
previewOptions: import("vue").PropType<Partial<import("..").ImagePreviewOptions>>;
|
114
|
-
previewFullImage: {
|
115
|
-
type: BooleanConstructor;
|
116
|
-
default: true;
|
117
|
-
};
|
118
|
-
maxSize: {
|
119
|
-
type: import("vue").PropType<import("./types").UploaderMaxSize>;
|
120
|
-
default: number;
|
121
|
-
};
|
122
|
-
}>> & {
|
123
|
-
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
124
|
-
onDelete?: ((...args: any[]) => any) | undefined;
|
125
|
-
onOversize?: ((...args: any[]) => any) | undefined;
|
126
|
-
onClickUpload?: ((...args: any[]) => any) | undefined;
|
127
|
-
onClosePreview?: ((...args: any[]) => any) | undefined;
|
128
|
-
onClickPreview?: ((...args: any[]) => any) | undefined;
|
129
|
-
}, {
|
130
|
-
name: string | number;
|
131
|
-
accept: string;
|
132
|
-
disabled: boolean;
|
133
|
-
modelValue: import("./types").UploaderFileListItem[];
|
134
|
-
readonly: boolean;
|
135
|
-
multiple: boolean;
|
136
|
-
lazyLoad: boolean;
|
137
|
-
maxCount: string | number;
|
138
|
-
imageFit: import("..").ImageFit;
|
139
|
-
resultType: import("./types").UploaderResultType;
|
140
|
-
uploadIcon: string;
|
141
|
-
deletable: boolean;
|
142
|
-
showUpload: boolean;
|
143
|
-
previewImage: boolean;
|
144
|
-
previewFullImage: boolean;
|
145
|
-
maxSize: import("./types").UploaderMaxSize;
|
146
|
-
}>>;
|
147
|
-
export default Uploader;
|
148
|
-
export { uploaderProps } from './Uploader';
|
149
|
-
export type { UploaderProps };
|
150
|
-
export type { UploaderInstance, UploaderThemeVars, UploaderResultType, UploaderFileListItem, } from './types';
|
151
|
-
declare module 'vue' {
|
152
|
-
interface GlobalComponents {
|
153
|
-
VanUploader: typeof Uploader;
|
154
|
-
}
|
155
|
-
}
|
package/lib/uploader/index.js
DELETED
@@ -1,35 +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
|
-
Uploader: () => Uploader,
|
27
|
-
default: () => stdin_default,
|
28
|
-
uploaderProps: () => import_Uploader2.uploaderProps
|
29
|
-
});
|
30
|
-
module.exports = __toCommonJS(stdin_exports);
|
31
|
-
var import_utils = require("../utils");
|
32
|
-
var import_Uploader = __toESM(require("./Uploader"));
|
33
|
-
var import_Uploader2 = require("./Uploader");
|
34
|
-
const Uploader = (0, import_utils.withInstall)(import_Uploader.default);
|
35
|
-
var stdin_default = Uploader;
|
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|
@@ -1,11 +0,0 @@
|
|
1
|
-
require("../../style/base.css");
|
2
|
-
require("../../badge/index.css");
|
3
|
-
require("../../icon/index.css");
|
4
|
-
require("../../image/index.css");
|
5
|
-
require("../../loading/index.css");
|
6
|
-
require("../../overlay/index.css");
|
7
|
-
require("../../popup/index.css");
|
8
|
-
require("../../swipe/index.css");
|
9
|
-
require("../../swipe-item/index.css");
|
10
|
-
require("../../image-preview/index.css");
|
11
|
-
require("../index.css");
|