vant 3.2.6 → 3.2.7
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/action-bar/ActionBar.d.ts +8 -0
- package/es/action-bar/ActionBar.js +8 -6
- package/es/action-bar/index.css +1 -1
- package/es/action-bar/index.d.ts +1 -0
- package/es/action-bar/var.less +1 -1
- package/es/action-bar-button/ActionBarButton.d.ts +14 -1
- package/es/action-bar-button/ActionBarButton.js +13 -11
- package/es/action-bar-button/index.d.ts +1 -0
- package/es/action-bar-icon/ActionBarIcon.d.ts +15 -0
- package/es/action-bar-icon/ActionBarIcon.js +14 -12
- package/es/action-bar-icon/index.css +1 -1
- package/es/action-bar-icon/index.d.ts +1 -0
- package/es/action-bar-icon/var.less +1 -1
- package/es/action-sheet/ActionSheet.d.ts +57 -0
- package/es/action-sheet/ActionSheet.js +23 -20
- package/es/action-sheet/index.css +1 -1
- package/es/action-sheet/index.d.ts +1 -1
- package/es/action-sheet/index.less +0 -5
- package/es/action-sheet/var.less +4 -5
- package/es/address-edit/AddressEdit.d.ts +2 -2
- package/es/address-edit/AddressEdit.js +7 -6
- package/es/address-edit/AddressEditDetail.js +4 -3
- package/es/address-list/AddressList.d.ts +20 -0
- package/es/address-list/AddressList.js +16 -13
- package/es/address-list/AddressListItem.js +6 -4
- package/es/address-list/index.css +1 -1
- package/es/address-list/index.d.ts +1 -0
- package/es/address-list/index.less +2 -2
- package/es/address-list/var.less +2 -2
- package/es/area/Area.d.ts +2 -2
- package/es/area/Area.js +20 -9
- package/es/area/index.d.ts +1 -2
- package/es/badge/Badge.d.ts +18 -2
- package/es/badge/Badge.js +17 -14
- package/es/badge/index.css +1 -1
- package/es/badge/index.d.ts +2 -1
- package/es/badge/index.less +1 -1
- package/es/button/Button.d.ts +43 -5
- package/es/button/Button.js +29 -26
- package/es/button/index.css +1 -1
- package/es/button/index.d.ts +18 -17
- package/es/button/types.d.ts +5 -0
- package/es/button/types.js +1 -0
- package/es/button/var.less +1 -1
- package/es/calendar/Calendar.d.ts +2 -2
- package/es/calendar/Calendar.js +32 -10
- package/es/calendar/CalendarDay.js +5 -4
- package/es/calendar/CalendarHeader.js +6 -4
- package/es/calendar/CalendarMonth.d.ts +2 -2
- package/es/calendar/CalendarMonth.js +7 -6
- package/es/calendar/index.css +1 -1
- package/es/calendar/index.d.ts +1 -2
- package/es/calendar/types.d.ts +1 -1
- package/es/calendar/utils.d.ts +1 -1
- package/es/calendar/var.less +2 -2
- package/es/card/Card.d.ts +18 -0
- package/es/card/Card.js +20 -17
- package/es/card/index.css +1 -1
- package/es/card/index.d.ts +1 -0
- package/es/card/var.less +3 -3
- package/es/cascader/Cascader.d.ts +2 -2
- package/es/cascader/Cascader.js +19 -13
- package/es/cascader/index.css +1 -1
- package/es/cascader/index.d.ts +1 -2
- package/es/cascader/index.less +0 -5
- package/es/cascader/var.less +2 -3
- package/es/cell/Cell.d.ts +35 -5
- package/es/cell/Cell.js +8 -13
- package/es/cell/index.css +1 -1
- package/es/cell/index.d.ts +3 -3
- package/es/cell/var.less +3 -3
- package/es/cell-group/CellGroup.d.ts +10 -0
- package/es/cell-group/CellGroup.js +12 -9
- package/es/cell-group/index.css +1 -1
- package/es/cell-group/index.d.ts +1 -0
- package/es/cell-group/var.less +2 -2
- package/es/checkbox/Checkbox.d.ts +2 -2
- package/es/checkbox/Checkbox.js +12 -7
- package/es/checkbox/Checker.js +5 -4
- package/es/checkbox/index.css +1 -1
- package/es/checkbox/index.d.ts +1 -2
- package/es/checkbox/var.less +1 -1
- package/es/checkbox-group/CheckboxGroup.d.ts +2 -2
- package/es/checkbox-group/CheckboxGroup.js +12 -7
- package/es/checkbox-group/index.d.ts +1 -2
- package/es/circle/Circle.d.ts +37 -1
- package/es/circle/Circle.js +20 -18
- package/es/circle/index.d.ts +1 -1
- package/es/col/Col.d.ts +13 -0
- package/es/col/Col.js +10 -8
- package/es/col/index.d.ts +1 -0
- package/es/collapse/Collapse.d.ts +13 -1
- package/es/collapse/Collapse.js +14 -12
- package/es/collapse/index.d.ts +1 -0
- package/es/collapse-item/CollapseItem.d.ts +5 -5
- package/es/collapse-item/CollapseItem.js +13 -8
- package/es/collapse-item/index.css +1 -1
- package/es/collapse-item/index.d.ts +3 -4
- package/es/collapse-item/var.less +3 -3
- package/es/config-provider/ConfigProvider.d.ts +11 -2
- package/es/config-provider/ConfigProvider.js +10 -8
- package/es/config-provider/index.d.ts +2 -1
- package/es/contact-card/ContactCard.d.ts +15 -0
- package/es/contact-card/ContactCard.js +13 -10
- package/es/contact-card/index.css +1 -1
- package/es/contact-card/index.d.ts +1 -1
- package/es/contact-card/index.less +2 -2
- package/es/contact-edit/ContactEdit.d.ts +17 -1
- package/es/contact-edit/ContactEdit.js +20 -18
- package/es/contact-edit/index.d.ts +1 -1
- package/es/contact-list/ContactList.d.ts +8 -1
- package/es/contact-list/ContactList.js +12 -9
- package/es/contact-list/index.css +1 -1
- package/es/contact-list/index.d.ts +1 -1
- package/es/contact-list/index.less +1 -1
- package/es/count-down/CountDown.d.ts +2 -2
- package/es/count-down/CountDown.js +7 -6
- package/es/count-down/index.d.ts +1 -2
- package/es/coupon/Coupon.js +2 -11
- package/es/coupon/index.css +1 -1
- package/es/coupon/index.less +2 -1
- package/es/coupon/utils.d.ts +3 -0
- package/es/coupon/utils.js +7 -0
- package/es/coupon/var.less +3 -2
- package/es/coupon-cell/CouponCell.d.ts +25 -0
- package/es/coupon-cell/CouponCell.js +17 -12
- package/es/coupon-cell/index.d.ts +1 -0
- package/es/coupon-list/CouponList.d.ts +55 -0
- package/es/coupon-list/CouponList.js +26 -24
- package/es/coupon-list/index.css +1 -1
- package/es/coupon-list/index.d.ts +1 -0
- package/es/coupon-list/index.less +3 -3
- package/es/coupon-list/var.less +1 -1
- package/es/datetime-picker/DatePicker.js +13 -10
- package/es/datetime-picker/DatetimePicker.d.ts +2 -2
- package/es/datetime-picker/DatetimePicker.js +10 -9
- package/es/datetime-picker/TimePicker.js +13 -10
- package/es/datetime-picker/utils.d.ts +1 -1
- package/es/datetime-picker/utils.js +3 -3
- package/es/dialog/Dialog.d.ts +55 -1
- package/es/dialog/Dialog.js +27 -25
- package/es/dialog/index.css +1 -1
- package/es/dialog/index.d.ts +1 -0
- package/es/dialog/var.less +1 -1
- package/es/divider/Divider.d.ts +13 -0
- package/es/divider/Divider.js +10 -8
- package/es/divider/index.css +1 -1
- package/es/divider/index.d.ts +1 -1
- package/es/divider/var.less +1 -1
- package/es/dropdown-item/DropdownItem.d.ts +2 -2
- package/es/dropdown-item/DropdownItem.js +16 -7
- package/es/dropdown-menu/DropdownMenu.d.ts +2 -2
- package/es/dropdown-menu/DropdownMenu.js +11 -8
- package/es/dropdown-menu/index.css +1 -1
- package/es/dropdown-menu/index.less +0 -8
- package/es/dropdown-menu/var.less +2 -2
- package/es/empty/Empty.d.ts +10 -0
- package/es/empty/Empty.js +11 -8
- package/es/empty/index.css +1 -1
- package/es/empty/index.d.ts +1 -0
- package/es/empty/var.less +1 -1
- package/es/field/Field.d.ts +5 -5
- package/es/field/Field.js +48 -35
- package/es/field/index.css +1 -1
- package/es/field/index.d.ts +2 -2
- package/es/field/utils.d.ts +2 -2
- package/es/field/utils.js +9 -6
- package/es/field/var.less +3 -3
- package/es/form/Form.d.ts +2 -2
- package/es/form/Form.js +7 -6
- package/es/grid/Grid.d.ts +3 -2
- package/es/grid/Grid.js +6 -5
- package/es/grid/index.d.ts +1 -1
- package/es/grid-item/GridItem.d.ts +14 -0
- package/es/grid-item/GridItem.js +14 -12
- package/es/grid-item/index.css +1 -1
- package/es/grid-item/index.d.ts +1 -0
- package/es/grid-item/var.less +1 -1
- package/es/icon/Icon.d.ts +14 -0
- package/es/icon/Icon.js +14 -12
- package/es/icon/index.d.ts +1 -0
- package/es/image/Image.d.ts +31 -2
- package/es/image/Image.js +32 -26
- package/es/image/index.css +1 -1
- package/es/image/index.d.ts +2 -2
- package/es/image/var.less +1 -1
- package/es/image-preview/ImagePreview.d.ts +2 -2
- package/es/image-preview/ImagePreview.js +9 -8
- package/es/image-preview/ImagePreviewItem.js +4 -3
- package/es/image-preview/function-call.js +5 -1
- package/es/image-preview/index.css +1 -1
- package/es/image-preview/index.less +0 -5
- package/es/image-preview/var.less +0 -1
- package/es/index-anchor/IndexAnchor.d.ts +5 -0
- package/es/index-anchor/IndexAnchor.js +8 -6
- package/es/index-anchor/index.css +1 -1
- package/es/index-anchor/index.d.ts +1 -0
- package/es/index-anchor/var.less +1 -1
- package/es/index-bar/IndexBar.d.ts +2 -2
- package/es/index-bar/IndexBar.js +7 -6
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/list/List.d.ts +2 -2
- package/es/list/List.js +7 -6
- package/es/list/index.css +1 -1
- package/es/list/var.less +1 -1
- package/es/loading/Loading.d.ts +13 -0
- package/es/loading/Loading.js +13 -11
- package/es/loading/index.css +1 -1
- package/es/loading/index.d.ts +1 -1
- package/es/loading/var.less +1 -1
- package/es/locale/index.js +5 -1
- package/es/nav-bar/NavBar.d.ts +16 -0
- package/es/nav-bar/NavBar.js +20 -18
- package/es/nav-bar/index.css +1 -1
- package/es/nav-bar/index.d.ts +1 -0
- package/es/nav-bar/index.less +0 -4
- package/es/nav-bar/var.less +1 -1
- package/es/notice-bar/NoticeBar.d.ts +2 -2
- package/es/notice-bar/NoticeBar.js +7 -6
- package/es/notify/Notify.d.ts +38 -0
- package/es/notify/Notify.js +15 -12
- package/es/notify/index.d.ts +1 -0
- package/es/number-keyboard/NumberKeyboard.d.ts +48 -1
- package/es/number-keyboard/NumberKeyboard.js +30 -28
- package/es/number-keyboard/NumberKeyboardKey.js +5 -4
- package/es/number-keyboard/index.css +1 -1
- package/es/number-keyboard/index.d.ts +1 -1
- package/es/number-keyboard/index.less +0 -4
- package/es/number-keyboard/var.less +1 -1
- package/es/overlay/Overlay.d.ts +13 -1
- package/es/overlay/Overlay.js +13 -11
- package/es/overlay/index.d.ts +1 -0
- package/es/pagination/Pagination.d.ts +31 -0
- package/es/pagination/Pagination.js +17 -15
- package/es/pagination/index.css +1 -1
- package/es/pagination/index.d.ts +1 -1
- package/es/pagination/var.less +1 -1
- package/es/password-input/PasswordInput.js +5 -3
- package/es/password-input/index.css +1 -1
- package/es/password-input/var.less +3 -3
- package/es/picker/Picker.d.ts +40 -1
- package/es/picker/Picker.js +20 -17
- package/es/picker/PickerColumn.js +5 -4
- package/es/picker/index.css +1 -1
- package/es/picker/index.less +2 -10
- package/es/picker/var.less +9 -3
- package/es/popover/Popover.d.ts +50 -11
- package/es/popover/Popover.js +33 -30
- package/es/popover/index.css +1 -1
- package/es/popover/index.d.ts +17 -16
- package/es/popover/types.d.ts +11 -0
- package/es/popover/types.js +1 -0
- package/es/popover/var.less +3 -3
- package/es/popup/Popup.d.ts +47 -1
- package/es/popup/Popup.js +20 -18
- package/es/popup/index.css +1 -1
- package/es/popup/index.d.ts +1 -1
- package/es/popup/index.less +0 -5
- package/es/popup/var.less +1 -2
- package/es/progress/Progress.d.ts +2 -2
- package/es/progress/Progress.js +2 -2
- package/es/pull-refresh/PullRefresh.d.ts +23 -0
- package/es/pull-refresh/PullRefresh.js +18 -16
- package/es/pull-refresh/index.css +1 -1
- package/es/pull-refresh/index.d.ts +1 -0
- package/es/pull-refresh/var.less +1 -1
- package/es/radio/Radio.d.ts +3 -1
- package/es/radio/Radio.js +5 -4
- package/es/radio/index.css +1 -1
- package/es/radio/index.d.ts +1 -2
- package/es/radio/var.less +1 -1
- package/es/radio-group/RadioGroup.d.ts +3 -2
- package/es/radio-group/RadioGroup.js +7 -6
- package/es/radio-group/index.d.ts +1 -2
- package/es/rate/Rate.d.ts +33 -0
- package/es/rate/Rate.js +21 -19
- package/es/rate/index.d.ts +1 -0
- package/es/row/Row.d.ts +18 -1
- package/es/row/Row.js +12 -10
- package/es/row/index.d.ts +1 -1
- package/es/search/Search.d.ts +2 -2
- package/es/search/Search.js +8 -7
- package/es/search/index.css +1 -1
- package/es/search/var.less +1 -1
- package/es/share-sheet/ShareSheet.d.ts +48 -0
- package/es/share-sheet/ShareSheet.js +20 -17
- package/es/share-sheet/index.css +1 -1
- package/es/share-sheet/index.d.ts +1 -1
- package/es/share-sheet/index.less +0 -4
- package/es/share-sheet/var.less +3 -3
- package/es/sidebar/Sidebar.d.ts +8 -1
- package/es/sidebar/Sidebar.js +9 -7
- package/es/sidebar/index.d.ts +1 -0
- package/es/sidebar-item/SidebarItem.d.ts +12 -0
- package/es/sidebar-item/SidebarItem.js +12 -10
- package/es/sidebar-item/index.css +1 -1
- package/es/sidebar-item/index.d.ts +1 -0
- package/es/sidebar-item/var.less +2 -2
- package/es/skeleton/Skeleton.d.ts +29 -1
- package/es/skeleton/Skeleton.js +21 -18
- package/es/skeleton/index.d.ts +5 -6
- package/es/slider/Slider.d.ts +31 -3
- package/es/slider/Slider.js +24 -22
- package/es/slider/index.d.ts +3 -2
- package/es/step/Step.js +4 -3
- package/es/step/index.css +1 -1
- package/es/step/index.less +1 -1
- package/es/step/var.less +1 -1
- package/es/stepper/Stepper.d.ts +53 -1
- package/es/stepper/Stepper.js +40 -33
- package/es/stepper/index.css +1 -1
- package/es/stepper/index.d.ts +3 -4
- package/es/stepper/index.less +3 -18
- package/es/stepper/var.less +1 -2
- package/es/steps/Steps.d.ts +3 -2
- package/es/steps/Steps.js +7 -6
- package/es/steps/index.css +1 -1
- package/es/steps/index.d.ts +5 -6
- package/es/steps/var.less +1 -1
- package/es/sticky/Sticky.d.ts +18 -1
- package/es/sticky/Sticky.js +13 -11
- package/es/sticky/index.d.ts +1 -1
- package/es/style/base.css +1 -1
- package/es/style/base.less +4 -0
- package/es/style/css-variables.css +1 -1
- package/es/style/css-variables.less +3 -1
- package/es/style/mixins/hairline.less +3 -3
- package/es/style/var.less +5 -3
- package/es/submit-bar/SubmitBar.d.ts +30 -1
- package/es/submit-bar/SubmitBar.js +23 -20
- package/es/submit-bar/index.css +1 -1
- package/es/submit-bar/var.less +3 -3
- package/es/swipe/Swipe.d.ts +2 -2
- package/es/swipe/Swipe.js +29 -14
- package/es/swipe-cell/SwipeCell.d.ts +2 -2
- package/es/swipe-cell/SwipeCell.js +12 -7
- package/es/swipe-item/SwipeItem.js +4 -3
- package/es/switch/Switch.d.ts +18 -0
- package/es/switch/Switch.js +22 -19
- package/es/switch/index.css +1 -1
- package/es/switch/index.d.ts +1 -0
- package/es/switch/var.less +1 -1
- package/es/tab/Tab.d.ts +19 -1
- package/es/tab/Tab.js +16 -14
- package/es/tab/index.d.ts +1 -0
- package/es/tabbar/Tabbar.d.ts +3 -2
- package/es/tabbar/Tabbar.js +7 -6
- package/es/tabbar/index.css +1 -1
- package/es/tabbar/index.d.ts +1 -0
- package/es/tabbar/var.less +1 -1
- package/es/tabbar-item/TabbarItem.d.ts +13 -0
- package/es/tabbar-item/TabbarItem.js +14 -12
- package/es/tabbar-item/index.css +1 -1
- package/es/tabbar-item/index.d.ts +1 -0
- package/es/tabbar-item/var.less +1 -1
- package/es/tabs/Tabs.d.ts +2 -2
- package/es/tabs/Tabs.js +13 -7
- package/es/tabs/TabsContent.js +5 -4
- package/es/tabs/index.css +1 -1
- package/es/tabs/var.less +2 -2
- package/es/tag/Tag.d.ts +23 -3
- package/es/tag/Tag.js +18 -15
- package/es/tag/index.css +1 -1
- package/es/tag/index.d.ts +3 -2
- package/es/tag/var.less +1 -1
- package/es/toast/Toast.d.ts +33 -1
- package/es/toast/Toast.js +26 -24
- package/es/toast/function-call.js +10 -2
- package/es/toast/index.d.ts +1 -0
- package/es/tree-select/TreeSelect.d.ts +28 -1
- package/es/tree-select/TreeSelect.js +18 -15
- package/es/tree-select/index.css +1 -1
- package/es/tree-select/index.d.ts +1 -1
- package/es/tree-select/var.less +1 -1
- package/es/uploader/Uploader.d.ts +2 -2
- package/es/uploader/Uploader.js +17 -10
- package/es/uploader/UploaderPreviewItem.js +6 -4
- package/es/uploader/index.css +1 -1
- package/es/uploader/var.less +1 -1
- package/es/utils/constant.d.ts +1 -0
- package/es/utils/constant.js +1 -0
- package/es/utils/create.d.ts +2 -2
- package/es/utils/create.js +6 -1
- package/es/utils/deep-assign.d.ts +1 -1
- package/es/utils/deep-assign.js +1 -1
- package/es/utils/deep-clone.js +2 -2
- package/es/utils/dom.d.ts +0 -1
- package/es/utils/dom.js +0 -5
- package/es/utils/format.js +14 -2
- package/es/utils/interceptor.d.ts +2 -2
- package/es/utils/interceptor.js +7 -5
- package/lib/action-bar/ActionBar.d.ts +8 -0
- package/lib/action-bar/ActionBar.js +8 -6
- package/lib/action-bar/index.css +1 -1
- package/lib/action-bar/index.d.ts +1 -0
- package/lib/action-bar/var.less +1 -1
- package/lib/action-bar-button/ActionBarButton.d.ts +14 -1
- package/lib/action-bar-button/ActionBarButton.js +13 -11
- package/lib/action-bar-button/index.d.ts +1 -0
- package/lib/action-bar-icon/ActionBarIcon.d.ts +15 -0
- package/lib/action-bar-icon/ActionBarIcon.js +15 -13
- package/lib/action-bar-icon/index.css +1 -1
- package/lib/action-bar-icon/index.d.ts +1 -0
- package/lib/action-bar-icon/var.less +1 -1
- package/lib/action-sheet/ActionSheet.d.ts +57 -0
- package/lib/action-sheet/ActionSheet.js +22 -19
- package/lib/action-sheet/index.css +1 -1
- package/lib/action-sheet/index.d.ts +1 -1
- package/lib/action-sheet/index.less +0 -5
- package/lib/action-sheet/var.less +4 -5
- package/lib/address-edit/AddressEdit.d.ts +2 -2
- package/lib/address-edit/AddressEdit.js +7 -6
- package/lib/address-edit/AddressEditDetail.js +4 -3
- package/lib/address-list/AddressList.d.ts +20 -0
- package/lib/address-list/AddressList.js +16 -13
- package/lib/address-list/AddressListItem.js +6 -4
- package/lib/address-list/index.css +1 -1
- package/lib/address-list/index.d.ts +1 -0
- package/lib/address-list/index.less +2 -2
- package/lib/address-list/var.less +2 -2
- package/lib/area/Area.d.ts +2 -2
- package/lib/area/Area.js +19 -8
- package/lib/area/index.d.ts +1 -2
- package/lib/badge/Badge.d.ts +18 -2
- package/lib/badge/Badge.js +16 -13
- package/lib/badge/index.css +1 -1
- package/lib/badge/index.d.ts +2 -1
- package/lib/badge/index.less +1 -1
- package/lib/button/Button.d.ts +43 -5
- package/lib/button/Button.js +27 -25
- package/lib/button/index.css +1 -1
- package/lib/button/index.d.ts +18 -17
- package/lib/button/types.d.ts +5 -0
- package/lib/button/types.js +3 -0
- package/lib/button/var.less +1 -1
- package/lib/calendar/Calendar.d.ts +2 -2
- package/lib/calendar/Calendar.js +32 -10
- package/lib/calendar/CalendarDay.js +5 -4
- package/lib/calendar/CalendarHeader.js +6 -4
- package/lib/calendar/CalendarMonth.d.ts +2 -2
- package/lib/calendar/CalendarMonth.js +7 -6
- package/lib/calendar/index.css +1 -1
- package/lib/calendar/index.d.ts +1 -2
- package/lib/calendar/types.d.ts +1 -1
- package/lib/calendar/utils.d.ts +1 -1
- package/lib/calendar/var.less +2 -2
- package/lib/card/Card.d.ts +18 -0
- package/lib/card/Card.js +20 -17
- package/lib/card/index.css +1 -1
- package/lib/card/index.d.ts +1 -0
- package/lib/card/var.less +3 -3
- package/lib/cascader/Cascader.d.ts +2 -2
- package/lib/cascader/Cascader.js +18 -12
- package/lib/cascader/index.css +1 -1
- package/lib/cascader/index.d.ts +1 -2
- package/lib/cascader/index.less +0 -5
- package/lib/cascader/var.less +2 -3
- package/lib/cell/Cell.d.ts +35 -5
- package/lib/cell/Cell.js +10 -15
- package/lib/cell/index.css +1 -1
- package/lib/cell/index.d.ts +3 -3
- package/lib/cell/var.less +3 -3
- package/lib/cell-group/CellGroup.d.ts +10 -0
- package/lib/cell-group/CellGroup.js +13 -10
- package/lib/cell-group/index.css +1 -1
- package/lib/cell-group/index.d.ts +1 -0
- package/lib/cell-group/var.less +2 -2
- package/lib/checkbox/Checkbox.d.ts +2 -2
- package/lib/checkbox/Checkbox.js +12 -7
- package/lib/checkbox/Checker.js +5 -4
- package/lib/checkbox/index.css +1 -1
- package/lib/checkbox/index.d.ts +1 -2
- package/lib/checkbox/var.less +1 -1
- package/lib/checkbox-group/CheckboxGroup.d.ts +2 -2
- package/lib/checkbox-group/CheckboxGroup.js +12 -7
- package/lib/checkbox-group/index.d.ts +1 -2
- package/lib/circle/Circle.d.ts +37 -1
- package/lib/circle/Circle.js +21 -18
- package/lib/circle/index.d.ts +1 -1
- package/lib/col/Col.d.ts +13 -0
- package/lib/col/Col.js +10 -8
- package/lib/col/index.d.ts +1 -0
- package/lib/collapse/Collapse.d.ts +13 -1
- package/lib/collapse/Collapse.js +14 -12
- package/lib/collapse/index.d.ts +1 -0
- package/lib/collapse-item/CollapseItem.d.ts +5 -5
- package/lib/collapse-item/CollapseItem.js +12 -7
- package/lib/collapse-item/index.css +1 -1
- package/lib/collapse-item/index.d.ts +3 -4
- package/lib/collapse-item/var.less +3 -3
- package/lib/config-provider/ConfigProvider.d.ts +11 -2
- package/lib/config-provider/ConfigProvider.js +11 -9
- package/lib/config-provider/index.d.ts +2 -1
- package/lib/contact-card/ContactCard.d.ts +15 -0
- package/lib/contact-card/ContactCard.js +13 -10
- package/lib/contact-card/index.css +1 -1
- package/lib/contact-card/index.d.ts +1 -1
- package/lib/contact-card/index.less +2 -2
- package/lib/contact-edit/ContactEdit.d.ts +17 -1
- package/lib/contact-edit/ContactEdit.js +20 -18
- package/lib/contact-edit/index.d.ts +1 -1
- package/lib/contact-list/ContactList.d.ts +8 -1
- package/lib/contact-list/ContactList.js +12 -9
- package/lib/contact-list/index.css +1 -1
- package/lib/contact-list/index.d.ts +1 -1
- package/lib/contact-list/index.less +1 -1
- package/lib/count-down/CountDown.d.ts +2 -2
- package/lib/count-down/CountDown.js +7 -6
- package/lib/count-down/index.d.ts +1 -2
- package/lib/coupon/Coupon.js +6 -13
- package/lib/coupon/index.css +1 -1
- package/lib/coupon/index.less +2 -1
- package/lib/coupon/utils.d.ts +3 -0
- package/lib/coupon/utils.js +20 -0
- package/lib/coupon/var.less +3 -2
- package/lib/coupon-cell/CouponCell.d.ts +25 -0
- package/lib/coupon-cell/CouponCell.js +16 -11
- package/lib/coupon-cell/index.d.ts +1 -0
- package/lib/coupon-list/CouponList.d.ts +55 -0
- package/lib/coupon-list/CouponList.js +26 -24
- package/lib/coupon-list/index.css +1 -1
- package/lib/coupon-list/index.d.ts +1 -0
- package/lib/coupon-list/index.less +3 -3
- package/lib/coupon-list/var.less +1 -1
- package/lib/datetime-picker/DatePicker.js +12 -9
- package/lib/datetime-picker/DatetimePicker.d.ts +2 -2
- package/lib/datetime-picker/DatetimePicker.js +10 -9
- package/lib/datetime-picker/TimePicker.js +12 -9
- package/lib/datetime-picker/utils.d.ts +1 -1
- package/lib/datetime-picker/utils.js +4 -4
- package/lib/dialog/Dialog.d.ts +55 -1
- package/lib/dialog/Dialog.js +27 -25
- package/lib/dialog/index.css +1 -1
- package/lib/dialog/index.d.ts +1 -0
- package/lib/dialog/var.less +1 -1
- package/lib/divider/Divider.d.ts +13 -0
- package/lib/divider/Divider.js +11 -9
- package/lib/divider/index.css +1 -1
- package/lib/divider/index.d.ts +1 -1
- package/lib/divider/var.less +1 -1
- package/lib/dropdown-item/DropdownItem.d.ts +2 -2
- package/lib/dropdown-item/DropdownItem.js +16 -7
- package/lib/dropdown-menu/DropdownMenu.d.ts +2 -2
- package/lib/dropdown-menu/DropdownMenu.js +10 -7
- package/lib/dropdown-menu/index.css +1 -1
- package/lib/dropdown-menu/index.less +0 -8
- package/lib/dropdown-menu/var.less +2 -2
- package/lib/empty/Empty.d.ts +10 -0
- package/lib/empty/Empty.js +12 -9
- package/lib/empty/index.css +1 -1
- package/lib/empty/index.d.ts +1 -0
- package/lib/empty/var.less +1 -1
- package/lib/field/Field.d.ts +5 -5
- package/lib/field/Field.js +47 -34
- package/lib/field/index.css +1 -1
- package/lib/field/index.d.ts +2 -2
- package/lib/field/utils.d.ts +2 -2
- package/lib/field/utils.js +8 -5
- package/lib/field/var.less +3 -3
- package/lib/form/Form.d.ts +2 -2
- package/lib/form/Form.js +7 -6
- package/lib/grid/Grid.d.ts +3 -2
- package/lib/grid/Grid.js +6 -5
- package/lib/grid/index.d.ts +1 -1
- package/lib/grid-item/GridItem.d.ts +14 -0
- package/lib/grid-item/GridItem.js +14 -12
- package/lib/grid-item/index.css +1 -1
- package/lib/grid-item/index.d.ts +1 -0
- package/lib/grid-item/var.less +1 -1
- package/lib/icon/Icon.d.ts +14 -0
- package/lib/icon/Icon.js +15 -12
- package/lib/icon/index.d.ts +1 -0
- package/lib/image/Image.d.ts +31 -2
- package/lib/image/Image.js +32 -26
- package/lib/image/index.css +1 -1
- package/lib/image/index.d.ts +2 -2
- package/lib/image/var.less +1 -1
- package/lib/image-preview/ImagePreview.d.ts +2 -2
- package/lib/image-preview/ImagePreview.js +8 -7
- package/lib/image-preview/ImagePreviewItem.js +4 -3
- package/lib/image-preview/function-call.js +5 -1
- package/lib/image-preview/index.css +1 -1
- package/lib/image-preview/index.less +0 -5
- package/lib/image-preview/var.less +0 -1
- package/lib/index-anchor/IndexAnchor.d.ts +5 -0
- package/lib/index-anchor/IndexAnchor.js +8 -6
- package/lib/index-anchor/index.css +1 -1
- package/lib/index-anchor/index.d.ts +1 -0
- package/lib/index-anchor/var.less +1 -1
- package/lib/index-bar/IndexBar.d.ts +2 -2
- package/lib/index-bar/IndexBar.js +7 -6
- package/lib/index.css +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/list/List.d.ts +2 -2
- package/lib/list/List.js +7 -6
- package/lib/list/index.css +1 -1
- package/lib/list/var.less +1 -1
- package/lib/loading/Loading.d.ts +13 -0
- package/lib/loading/Loading.js +13 -11
- package/lib/loading/index.css +1 -1
- package/lib/loading/index.d.ts +1 -1
- package/lib/loading/var.less +1 -1
- package/lib/locale/index.js +5 -1
- package/lib/nav-bar/NavBar.d.ts +16 -0
- package/lib/nav-bar/NavBar.js +19 -17
- package/lib/nav-bar/index.css +1 -1
- package/lib/nav-bar/index.d.ts +1 -0
- package/lib/nav-bar/index.less +0 -4
- package/lib/nav-bar/var.less +1 -1
- package/lib/notice-bar/NoticeBar.d.ts +2 -2
- package/lib/notice-bar/NoticeBar.js +7 -6
- package/lib/notify/Notify.d.ts +38 -0
- package/lib/notify/Notify.js +15 -12
- package/lib/notify/index.d.ts +1 -0
- package/lib/number-keyboard/NumberKeyboard.d.ts +48 -1
- package/lib/number-keyboard/NumberKeyboard.js +29 -27
- package/lib/number-keyboard/NumberKeyboardKey.js +5 -4
- package/lib/number-keyboard/index.css +1 -1
- package/lib/number-keyboard/index.d.ts +1 -1
- package/lib/number-keyboard/index.less +0 -4
- package/lib/number-keyboard/var.less +1 -1
- package/lib/overlay/Overlay.d.ts +13 -1
- package/lib/overlay/Overlay.js +14 -12
- package/lib/overlay/index.d.ts +1 -0
- package/lib/pagination/Pagination.d.ts +31 -0
- package/lib/pagination/Pagination.js +18 -15
- package/lib/pagination/index.css +1 -1
- package/lib/pagination/index.d.ts +1 -1
- package/lib/pagination/var.less +1 -1
- package/lib/password-input/PasswordInput.js +5 -3
- package/lib/password-input/index.css +1 -1
- package/lib/password-input/var.less +3 -3
- package/lib/picker/Picker.d.ts +40 -1
- package/lib/picker/Picker.js +21 -18
- package/lib/picker/PickerColumn.js +5 -4
- package/lib/picker/index.css +1 -1
- package/lib/picker/index.less +2 -10
- package/lib/picker/var.less +9 -3
- package/lib/popover/Popover.d.ts +50 -11
- package/lib/popover/Popover.js +31 -29
- package/lib/popover/index.css +1 -1
- package/lib/popover/index.d.ts +17 -16
- package/lib/popover/types.d.ts +11 -0
- package/lib/popover/types.js +3 -0
- package/lib/popover/var.less +3 -3
- package/lib/popup/Popup.d.ts +47 -1
- package/lib/popup/Popup.js +19 -17
- package/lib/popup/index.css +1 -1
- package/lib/popup/index.d.ts +1 -1
- package/lib/popup/index.less +0 -5
- package/lib/popup/var.less +1 -2
- package/lib/progress/Progress.d.ts +2 -2
- package/lib/progress/Progress.js +2 -2
- package/lib/pull-refresh/PullRefresh.d.ts +23 -0
- package/lib/pull-refresh/PullRefresh.js +18 -16
- package/lib/pull-refresh/index.css +1 -1
- package/lib/pull-refresh/index.d.ts +1 -0
- package/lib/pull-refresh/var.less +1 -1
- package/lib/radio/Radio.d.ts +3 -1
- package/lib/radio/Radio.js +5 -4
- package/lib/radio/index.css +1 -1
- package/lib/radio/index.d.ts +1 -2
- package/lib/radio/var.less +1 -1
- package/lib/radio-group/RadioGroup.d.ts +3 -2
- package/lib/radio-group/RadioGroup.js +7 -6
- package/lib/radio-group/index.d.ts +1 -2
- package/lib/rate/Rate.d.ts +33 -0
- package/lib/rate/Rate.js +22 -19
- package/lib/rate/index.d.ts +1 -0
- package/lib/row/Row.d.ts +18 -1
- package/lib/row/Row.js +12 -10
- package/lib/row/index.d.ts +1 -1
- package/lib/search/Search.d.ts +2 -2
- package/lib/search/Search.js +8 -7
- package/lib/search/index.css +1 -1
- package/lib/search/var.less +1 -1
- package/lib/share-sheet/ShareSheet.d.ts +48 -0
- package/lib/share-sheet/ShareSheet.js +19 -16
- package/lib/share-sheet/index.css +1 -1
- package/lib/share-sheet/index.d.ts +1 -1
- package/lib/share-sheet/index.less +0 -4
- package/lib/share-sheet/var.less +3 -3
- package/lib/sidebar/Sidebar.d.ts +8 -1
- package/lib/sidebar/Sidebar.js +9 -7
- package/lib/sidebar/index.d.ts +1 -0
- package/lib/sidebar-item/SidebarItem.d.ts +12 -0
- package/lib/sidebar-item/SidebarItem.js +12 -10
- package/lib/sidebar-item/index.css +1 -1
- package/lib/sidebar-item/index.d.ts +1 -0
- package/lib/sidebar-item/var.less +2 -2
- package/lib/skeleton/Skeleton.d.ts +29 -1
- package/lib/skeleton/Skeleton.js +22 -19
- package/lib/skeleton/index.d.ts +5 -6
- package/lib/slider/Slider.d.ts +31 -3
- package/lib/slider/Slider.js +24 -22
- package/lib/slider/index.d.ts +3 -2
- package/lib/step/Step.js +4 -3
- package/lib/step/index.css +1 -1
- package/lib/step/index.less +1 -1
- package/lib/step/var.less +1 -1
- package/lib/stepper/Stepper.d.ts +53 -1
- package/lib/stepper/Stepper.js +39 -31
- package/lib/stepper/index.css +1 -1
- package/lib/stepper/index.d.ts +3 -4
- package/lib/stepper/index.less +3 -18
- package/lib/stepper/var.less +1 -2
- package/lib/steps/Steps.d.ts +3 -2
- package/lib/steps/Steps.js +7 -6
- package/lib/steps/index.css +1 -1
- package/lib/steps/index.d.ts +5 -6
- package/lib/steps/var.less +1 -1
- package/lib/sticky/Sticky.d.ts +18 -1
- package/lib/sticky/Sticky.js +13 -11
- package/lib/sticky/index.d.ts +1 -1
- package/lib/style/base.css +1 -1
- package/lib/style/base.less +4 -0
- package/lib/style/css-variables.css +1 -1
- package/lib/style/css-variables.less +3 -1
- package/lib/style/mixins/hairline.less +3 -3
- package/lib/style/var.less +5 -3
- package/lib/submit-bar/SubmitBar.d.ts +30 -1
- package/lib/submit-bar/SubmitBar.js +23 -20
- package/lib/submit-bar/index.css +1 -1
- package/lib/submit-bar/var.less +3 -3
- package/lib/swipe/Swipe.d.ts +2 -2
- package/lib/swipe/Swipe.js +29 -14
- package/lib/swipe-cell/SwipeCell.d.ts +2 -2
- package/lib/swipe-cell/SwipeCell.js +12 -7
- package/lib/swipe-item/SwipeItem.js +4 -3
- package/lib/switch/Switch.d.ts +18 -0
- package/lib/switch/Switch.js +22 -19
- package/lib/switch/index.css +1 -1
- package/lib/switch/index.d.ts +1 -0
- package/lib/switch/var.less +1 -1
- package/lib/tab/Tab.d.ts +19 -1
- package/lib/tab/Tab.js +16 -14
- package/lib/tab/index.d.ts +1 -0
- package/lib/tabbar/Tabbar.d.ts +3 -2
- package/lib/tabbar/Tabbar.js +7 -6
- package/lib/tabbar/index.css +1 -1
- package/lib/tabbar/index.d.ts +1 -0
- package/lib/tabbar/var.less +1 -1
- package/lib/tabbar-item/TabbarItem.d.ts +13 -0
- package/lib/tabbar-item/TabbarItem.js +13 -11
- package/lib/tabbar-item/index.css +1 -1
- package/lib/tabbar-item/index.d.ts +1 -0
- package/lib/tabbar-item/var.less +1 -1
- package/lib/tabs/Tabs.d.ts +2 -2
- package/lib/tabs/Tabs.js +13 -7
- package/lib/tabs/TabsContent.js +5 -4
- package/lib/tabs/index.css +1 -1
- package/lib/tabs/var.less +2 -2
- package/lib/tag/Tag.d.ts +23 -3
- package/lib/tag/Tag.js +18 -15
- package/lib/tag/index.css +1 -1
- package/lib/tag/index.d.ts +3 -2
- package/lib/tag/var.less +1 -1
- package/lib/toast/Toast.d.ts +33 -1
- package/lib/toast/Toast.js +26 -24
- package/lib/toast/function-call.js +10 -2
- package/lib/toast/index.d.ts +1 -0
- package/lib/tree-select/TreeSelect.d.ts +28 -1
- package/lib/tree-select/TreeSelect.js +18 -15
- package/lib/tree-select/index.css +1 -1
- package/lib/tree-select/index.d.ts +1 -1
- package/lib/tree-select/var.less +1 -1
- package/lib/uploader/Uploader.d.ts +2 -2
- package/lib/uploader/Uploader.js +17 -10
- package/lib/uploader/UploaderPreviewItem.js +6 -4
- package/lib/uploader/index.css +1 -1
- package/lib/uploader/var.less +1 -1
- package/lib/utils/constant.d.ts +1 -0
- package/lib/utils/constant.js +3 -1
- package/lib/utils/create.d.ts +2 -2
- package/lib/utils/create.js +6 -1
- package/lib/utils/deep-assign.d.ts +1 -1
- package/lib/utils/deep-assign.js +1 -1
- package/lib/utils/deep-clone.js +1 -1
- package/lib/utils/dom.d.ts +0 -1
- package/lib/utils/dom.js +0 -7
- package/lib/utils/format.js +14 -2
- package/lib/utils/interceptor.d.ts +2 -2
- package/lib/utils/interceptor.js +7 -5
- package/lib/vant.es.js +2433 -2175
- package/lib/vant.es.min.js +2433 -2175
- package/lib/vant.js +2433 -2175
- package/lib/vant.min.js +1 -1
- package/package.json +2 -2
- package/vetur/attributes.json +52 -52
- package/vetur/tags.json +17 -17
- package/vetur/web-types.json +181 -177
package/lib/popover/index.d.ts
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
export declare const Popover: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
2
|
show: BooleanConstructor;
|
3
3
|
theme: {
|
4
|
-
type: import("vue").PropType<import("./
|
5
|
-
default: import("./
|
4
|
+
type: import("vue").PropType<import("./types").PopoverTheme>;
|
5
|
+
default: import("./types").PopoverTheme;
|
6
6
|
};
|
7
7
|
overlay: BooleanConstructor;
|
8
8
|
actions: {
|
9
|
-
type: import("vue").PropType<import("./
|
9
|
+
type: import("vue").PropType<import("./types").PopoverAction[]>;
|
10
10
|
default: () => never[];
|
11
11
|
};
|
12
12
|
trigger: {
|
13
|
-
type: import("vue").PropType<import("./
|
14
|
-
default: import("./
|
13
|
+
type: import("vue").PropType<import("./types").PopoverTrigger>;
|
14
|
+
default: import("./types").PopoverTrigger;
|
15
15
|
};
|
16
16
|
duration: (NumberConstructor | StringConstructor)[];
|
17
17
|
showArrow: {
|
@@ -19,8 +19,8 @@ export declare const Popover: import("../utils").WithInstall<import("vue").Defin
|
|
19
19
|
default: true;
|
20
20
|
};
|
21
21
|
placement: {
|
22
|
-
type: import("vue").PropType<import("./
|
23
|
-
default: import("./
|
22
|
+
type: import("vue").PropType<import("./types").PopoverPlacement>;
|
23
|
+
default: import("./types").PopoverPlacement;
|
24
24
|
};
|
25
25
|
iconPrefix: StringConstructor;
|
26
26
|
overlayClass: import("vue").PropType<unknown>;
|
@@ -68,13 +68,13 @@ export declare const Popover: import("../utils").WithInstall<import("vue").Defin
|
|
68
68
|
show: boolean;
|
69
69
|
teleport: string | import("vue").RendererElement | null | undefined;
|
70
70
|
closeOnClickOverlay: boolean;
|
71
|
-
actions: import("./
|
71
|
+
actions: import("./types").PopoverAction[];
|
72
72
|
closeOnClickAction: boolean;
|
73
|
-
theme: import("./
|
73
|
+
theme: import("./types").PopoverTheme;
|
74
74
|
closeOnClickOutside: boolean;
|
75
|
-
trigger: import("./
|
75
|
+
trigger: import("./types").PopoverTrigger;
|
76
76
|
showArrow: boolean;
|
77
|
-
placement: import("./
|
77
|
+
placement: import("./types").PopoverPlacement;
|
78
78
|
} & {
|
79
79
|
iconPrefix?: string | undefined;
|
80
80
|
duration?: string | number | undefined;
|
@@ -90,13 +90,14 @@ export declare const Popover: import("../utils").WithInstall<import("vue").Defin
|
|
90
90
|
show: boolean;
|
91
91
|
teleport: string | import("vue").RendererElement | null | undefined;
|
92
92
|
closeOnClickOverlay: boolean;
|
93
|
-
actions: import("./
|
93
|
+
actions: import("./types").PopoverAction[];
|
94
94
|
closeOnClickAction: boolean;
|
95
|
-
theme: import("./
|
95
|
+
theme: import("./types").PopoverTheme;
|
96
96
|
closeOnClickOutside: boolean;
|
97
|
-
trigger: import("./
|
97
|
+
trigger: import("./types").PopoverTrigger;
|
98
98
|
showArrow: boolean;
|
99
|
-
placement: import("./
|
99
|
+
placement: import("./types").PopoverPlacement;
|
100
100
|
}>>;
|
101
101
|
export default Popover;
|
102
|
-
export type {
|
102
|
+
export type { PopoverProps } from './Popover';
|
103
|
+
export type { PopoverTheme, PopoverAction, PopoverTrigger, PopoverPlacement, } from './types';
|
@@ -0,0 +1,11 @@
|
|
1
|
+
export declare type PopoverTheme = 'light' | 'dark';
|
2
|
+
export declare type PopoverTrigger = 'manual' | 'click';
|
3
|
+
export declare type PopoverPlacement = 'top' | 'top-start' | 'top-end' | 'left' | 'left-start' | 'left-end' | 'right' | 'right-start' | 'right-end' | 'bottom' | 'bottom-start' | 'bottom-end';
|
4
|
+
export declare type PopoverAction = {
|
5
|
+
text: string;
|
6
|
+
icon?: string;
|
7
|
+
color?: string;
|
8
|
+
disabled?: boolean;
|
9
|
+
className?: string;
|
10
|
+
[key: PropertyKey]: any;
|
11
|
+
};
|
package/lib/popover/var.less
CHANGED
@@ -8,8 +8,8 @@
|
|
8
8
|
@popover-action-line-height: var(--van-line-height-md);
|
9
9
|
@popover-action-icon-size: 20px;
|
10
10
|
@popover-light-text-color: var(--van-text-color);
|
11
|
-
@popover-light-background-color: var(--van-
|
12
|
-
@popover-light-action-disabled-text-color: var(--van-
|
11
|
+
@popover-light-background-color: var(--van-background-color-light);
|
12
|
+
@popover-light-action-disabled-text-color: var(--van-text-color-3);
|
13
13
|
@popover-dark-text-color: var(--van-white);
|
14
14
|
@popover-dark-background-color: #4a4a4a;
|
15
|
-
@popover-dark-action-disabled-text-color: var(--van-
|
15
|
+
@popover-dark-action-disabled-text-color: var(--van-text-color-2);
|
package/lib/popup/Popup.d.ts
CHANGED
@@ -1,6 +1,52 @@
|
|
1
|
-
import { CSSProperties } from 'vue';
|
1
|
+
import { CSSProperties, ExtractPropTypes } from 'vue';
|
2
2
|
export declare type PopupPosition = 'top' | 'left' | 'bottom' | 'right' | 'center' | '';
|
3
3
|
export declare type PopupCloseIconPosition = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
4
|
+
declare const popupProps: {
|
5
|
+
show: BooleanConstructor;
|
6
|
+
zIndex: (NumberConstructor | StringConstructor)[];
|
7
|
+
overlay: {
|
8
|
+
type: BooleanConstructor;
|
9
|
+
default: true;
|
10
|
+
};
|
11
|
+
duration: (NumberConstructor | StringConstructor)[];
|
12
|
+
teleport: import("vue").PropType<string | import("vue").RendererElement | null | undefined>;
|
13
|
+
lockScroll: {
|
14
|
+
type: BooleanConstructor;
|
15
|
+
default: true;
|
16
|
+
};
|
17
|
+
lazyRender: {
|
18
|
+
type: BooleanConstructor;
|
19
|
+
default: true;
|
20
|
+
};
|
21
|
+
beforeClose: import("vue").PropType<import("../utils").Interceptor>;
|
22
|
+
overlayStyle: import("vue").PropType<CSSProperties>;
|
23
|
+
overlayClass: import("vue").PropType<unknown>;
|
24
|
+
transitionAppear: BooleanConstructor;
|
25
|
+
closeOnClickOverlay: {
|
26
|
+
type: BooleanConstructor;
|
27
|
+
default: true;
|
28
|
+
};
|
29
|
+
} & {
|
30
|
+
round: BooleanConstructor;
|
31
|
+
position: {
|
32
|
+
type: import("vue").PropType<PopupPosition>;
|
33
|
+
default: PopupPosition;
|
34
|
+
};
|
35
|
+
closeIcon: {
|
36
|
+
type: import("vue").PropType<string>;
|
37
|
+
default: string;
|
38
|
+
};
|
39
|
+
closeable: BooleanConstructor;
|
40
|
+
transition: StringConstructor;
|
41
|
+
iconPrefix: StringConstructor;
|
42
|
+
closeOnPopstate: BooleanConstructor;
|
43
|
+
closeIconPosition: {
|
44
|
+
type: import("vue").PropType<PopupCloseIconPosition>;
|
45
|
+
default: PopupCloseIconPosition;
|
46
|
+
};
|
47
|
+
safeAreaInsetBottom: BooleanConstructor;
|
48
|
+
};
|
49
|
+
export declare type PopupProps = ExtractPropTypes<typeof popupProps>;
|
4
50
|
declare const _default: import("vue").DefineComponent<{
|
5
51
|
show: BooleanConstructor;
|
6
52
|
zIndex: (NumberConstructor | StringConstructor)[];
|
package/lib/popup/Popup.js
CHANGED
@@ -26,30 +26,32 @@ var _overlay = require("../overlay");
|
|
26
26
|
// Utils
|
27
27
|
// Composables
|
28
28
|
// Components
|
29
|
+
var popupProps = (0, _utils.extend)({}, _shared.popupSharedProps, {
|
30
|
+
round: Boolean,
|
31
|
+
position: (0, _utils.makeStringProp)('center'),
|
32
|
+
closeIcon: (0, _utils.makeStringProp)('cross'),
|
33
|
+
closeable: Boolean,
|
34
|
+
transition: String,
|
35
|
+
iconPrefix: String,
|
36
|
+
closeOnPopstate: Boolean,
|
37
|
+
closeIconPosition: (0, _utils.makeStringProp)('top-right'),
|
38
|
+
safeAreaInsetBottom: Boolean
|
39
|
+
});
|
29
40
|
var [name, bem] = (0, _utils.createNamespace)('popup');
|
30
41
|
var globalZIndex = 2000;
|
31
42
|
|
32
43
|
var _default = (0, _vue.defineComponent)({
|
33
44
|
name,
|
34
45
|
inheritAttrs: false,
|
35
|
-
props:
|
36
|
-
round: Boolean,
|
37
|
-
position: (0, _utils.makeStringProp)('center'),
|
38
|
-
closeIcon: (0, _utils.makeStringProp)('cross'),
|
39
|
-
closeable: Boolean,
|
40
|
-
transition: String,
|
41
|
-
iconPrefix: String,
|
42
|
-
closeOnPopstate: Boolean,
|
43
|
-
closeIconPosition: (0, _utils.makeStringProp)('top-right'),
|
44
|
-
safeAreaInsetBottom: Boolean
|
45
|
-
}),
|
46
|
+
props: popupProps,
|
46
47
|
emits: ['open', 'close', 'click', 'opened', 'closed', 'update:show', 'click-overlay', 'click-close-icon'],
|
47
48
|
|
48
|
-
setup(props, {
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
49
|
+
setup(props, _ref) {
|
50
|
+
var {
|
51
|
+
emit,
|
52
|
+
attrs,
|
53
|
+
slots
|
54
|
+
} = _ref;
|
53
55
|
var opened;
|
54
56
|
var shouldReopen;
|
55
57
|
var zIndex = (0, _vue.ref)();
|
@@ -127,7 +129,7 @@ var _default = (0, _vue.defineComponent)({
|
|
127
129
|
"role": "button",
|
128
130
|
"tabindex": 0,
|
129
131
|
"name": props.closeIcon,
|
130
|
-
"class": bem('close-icon', props.closeIconPosition),
|
132
|
+
"class": [bem('close-icon', props.closeIconPosition), _utils.HAPTICS_FEEDBACK],
|
131
133
|
"classPrefix": props.iconPrefix,
|
132
134
|
"onClick": onClickCloseIcon
|
133
135
|
}, null);
|
package/lib/popup/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
:root{--van-popup-background-color:var(--van-
|
1
|
+
:root{--van-popup-background-color:var(--van-background-color-light);--van-popup-transition:transform var(--van-animation-duration-base);--van-popup-round-border-radius:16px;--van-popup-close-icon-size:22px;--van-popup-close-icon-color:var(--van-gray-5);--van-popup-close-icon-margin:16px;--van-popup-close-icon-z-index:1}.van-overflow-hidden{overflow:hidden!important}.van-popup{position:fixed;max-height:100%;overflow-y:auto;background:var(--van-popup-background-color);transition:var(--van-popup-transition);-webkit-overflow-scrolling:touch}.van-popup--center{top:50%;left:50%;transform:translate3d(-50%,-50%,0)}.van-popup--center.van-popup--round{border-radius:var(--van-popup-round-border-radius)}.van-popup--top{top:0;left:0;width:100%}.van-popup--top.van-popup--round{border-radius:0 0 var(--van-popup-round-border-radius) var(--van-popup-round-border-radius)}.van-popup--right{top:50%;right:0;transform:translate3d(0,-50%,0)}.van-popup--right.van-popup--round{border-radius:var(--van-popup-round-border-radius) 0 0 var(--van-popup-round-border-radius)}.van-popup--bottom{bottom:0;left:0;width:100%}.van-popup--bottom.van-popup--round{border-radius:var(--van-popup-round-border-radius) var(--van-popup-round-border-radius) 0 0}.van-popup--left{top:50%;left:0;transform:translate3d(0,-50%,0)}.van-popup--left.van-popup--round{border-radius:0 var(--van-popup-round-border-radius) var(--van-popup-round-border-radius) 0}.van-popup-slide-bottom-enter-active,.van-popup-slide-left-enter-active,.van-popup-slide-right-enter-active,.van-popup-slide-top-enter-active{transition-timing-function:var(--van-animation-timing-function-enter)}.van-popup-slide-bottom-leave-active,.van-popup-slide-left-leave-active,.van-popup-slide-right-leave-active,.van-popup-slide-top-leave-active{transition-timing-function:var(--van-animation-timing-function-leave)}.van-popup-slide-top-enter-from,.van-popup-slide-top-leave-active{transform:translate3d(0,-100%,0)}.van-popup-slide-right-enter-from,.van-popup-slide-right-leave-active{transform:translate3d(100%,-50%,0)}.van-popup-slide-bottom-enter-from,.van-popup-slide-bottom-leave-active{transform:translate3d(0,100%,0)}.van-popup-slide-left-enter-from,.van-popup-slide-left-leave-active{transform:translate3d(-100%,-50%,0)}.van-popup__close-icon{position:absolute;z-index:var(--van-popup-close-icon-z-index);color:var(--van-popup-close-icon-color);font-size:var(--van-popup-close-icon-size);cursor:pointer}.van-popup__close-icon--top-left{top:var(--van-popup-close-icon-margin);left:var(--van-popup-close-icon-margin)}.van-popup__close-icon--top-right{top:var(--van-popup-close-icon-margin);right:var(--van-popup-close-icon-margin)}.van-popup__close-icon--bottom-left{bottom:var(--van-popup-close-icon-margin);left:var(--van-popup-close-icon-margin)}.van-popup__close-icon--bottom-right{right:var(--van-popup-close-icon-margin);bottom:var(--van-popup-close-icon-margin)}
|
package/lib/popup/index.d.ts
CHANGED
@@ -112,4 +112,4 @@ export declare const Popup: import("../utils").WithInstall<import("vue").DefineC
|
|
112
112
|
closeIconPosition: import("./Popup").PopupCloseIconPosition;
|
113
113
|
}>>;
|
114
114
|
export default Popup;
|
115
|
-
export type { PopupPosition, PopupCloseIconPosition } from './Popup';
|
115
|
+
export type { PopupProps, PopupPosition, PopupCloseIconPosition, } from './Popup';
|
package/lib/popup/index.less
CHANGED
@@ -6,7 +6,6 @@
|
|
6
6
|
--van-popup-round-border-radius: @popup-round-border-radius;
|
7
7
|
--van-popup-close-icon-size: @popup-close-icon-size;
|
8
8
|
--van-popup-close-icon-color: @popup-close-icon-color;
|
9
|
-
--van-popup-close-icon-active-color: @popup-close-icon-active-color;
|
10
9
|
--van-popup-close-icon-margin: @popup-close-icon-margin;
|
11
10
|
--van-popup-close-icon-z-index: @popup-close-icon-z-index;
|
12
11
|
}
|
@@ -119,10 +118,6 @@
|
|
119
118
|
font-size: var(--van-popup-close-icon-size);
|
120
119
|
cursor: pointer;
|
121
120
|
|
122
|
-
&:active {
|
123
|
-
color: var(--van-popup-close-icon-active-color);
|
124
|
-
}
|
125
|
-
|
126
121
|
&--top-left {
|
127
122
|
top: var(--van-popup-close-icon-margin);
|
128
123
|
left: var(--van-popup-close-icon-margin);
|
package/lib/popup/var.less
CHANGED
@@ -1,10 +1,9 @@
|
|
1
1
|
@import '../style/var.less';
|
2
2
|
|
3
|
-
@popup-background-color: var(--van-
|
3
|
+
@popup-background-color: var(--van-background-color-light);
|
4
4
|
@popup-transition: transform var(--van-animation-duration-base);
|
5
5
|
@popup-round-border-radius: 16px;
|
6
6
|
@popup-close-icon-size: 22px;
|
7
7
|
@popup-close-icon-color: var(--van-gray-5);
|
8
|
-
@popup-close-icon-active-color: var(--van-gray-6);
|
9
8
|
@popup-close-icon-margin: 16px;
|
10
9
|
@popup-close-icon-z-index: 1;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ExtractPropTypes } from 'vue';
|
2
|
-
declare const
|
2
|
+
declare const progressProps: {
|
3
3
|
color: StringConstructor;
|
4
4
|
inactive: BooleanConstructor;
|
5
5
|
pivotText: StringConstructor;
|
@@ -17,7 +17,7 @@ declare const props: {
|
|
17
17
|
validator: (value: number | string) => boolean;
|
18
18
|
};
|
19
19
|
};
|
20
|
-
export declare type ProgressProps = ExtractPropTypes<typeof
|
20
|
+
export declare type ProgressProps = ExtractPropTypes<typeof progressProps>;
|
21
21
|
declare const _default: import("vue").DefineComponent<{
|
22
22
|
color: StringConstructor;
|
23
23
|
inactive: BooleanConstructor;
|
package/lib/progress/Progress.js
CHANGED
@@ -8,7 +8,7 @@ var _vue = require("vue");
|
|
8
8
|
var _utils = require("../utils");
|
9
9
|
|
10
10
|
var [name, bem] = (0, _utils.createNamespace)('progress');
|
11
|
-
var
|
11
|
+
var progressProps = {
|
12
12
|
color: String,
|
13
13
|
inactive: Boolean,
|
14
14
|
pivotText: String,
|
@@ -26,7 +26,7 @@ var props = {
|
|
26
26
|
|
27
27
|
var _default = (0, _vue.defineComponent)({
|
28
28
|
name,
|
29
|
-
props,
|
29
|
+
props: progressProps,
|
30
30
|
|
31
31
|
setup(props) {
|
32
32
|
var background = (0, _vue.computed)(() => props.inactive ? undefined : props.color);
|
@@ -1,3 +1,26 @@
|
|
1
|
+
import { ExtractPropTypes } from 'vue';
|
2
|
+
declare const pullRefreshProps: {
|
3
|
+
disabled: BooleanConstructor;
|
4
|
+
modelValue: BooleanConstructor;
|
5
|
+
headHeight: {
|
6
|
+
type: (NumberConstructor | StringConstructor)[];
|
7
|
+
default: number;
|
8
|
+
};
|
9
|
+
successText: StringConstructor;
|
10
|
+
pullingText: StringConstructor;
|
11
|
+
loosingText: StringConstructor;
|
12
|
+
loadingText: StringConstructor;
|
13
|
+
pullDistance: (NumberConstructor | StringConstructor)[];
|
14
|
+
successDuration: {
|
15
|
+
type: (NumberConstructor | StringConstructor)[];
|
16
|
+
default: number;
|
17
|
+
};
|
18
|
+
animationDuration: {
|
19
|
+
type: (NumberConstructor | StringConstructor)[];
|
20
|
+
default: number;
|
21
|
+
};
|
22
|
+
};
|
23
|
+
export declare type PullRefreshProps = ExtractPropTypes<typeof pullRefreshProps>;
|
1
24
|
declare const _default: import("vue").DefineComponent<{
|
2
25
|
disabled: BooleanConstructor;
|
3
26
|
modelValue: BooleanConstructor;
|
@@ -19,27 +19,29 @@ var _loading = require("../loading");
|
|
19
19
|
var [name, bem, t] = (0, _utils.createNamespace)('pull-refresh');
|
20
20
|
var DEFAULT_HEAD_HEIGHT = 50;
|
21
21
|
var TEXT_STATUS = ['pulling', 'loosing', 'success'];
|
22
|
+
var pullRefreshProps = {
|
23
|
+
disabled: Boolean,
|
24
|
+
modelValue: Boolean,
|
25
|
+
headHeight: (0, _utils.makeNumericProp)(DEFAULT_HEAD_HEIGHT),
|
26
|
+
successText: String,
|
27
|
+
pullingText: String,
|
28
|
+
loosingText: String,
|
29
|
+
loadingText: String,
|
30
|
+
pullDistance: _utils.numericProp,
|
31
|
+
successDuration: (0, _utils.makeNumericProp)(500),
|
32
|
+
animationDuration: (0, _utils.makeNumericProp)(300)
|
33
|
+
};
|
22
34
|
|
23
35
|
var _default = (0, _vue.defineComponent)({
|
24
36
|
name,
|
25
|
-
props:
|
26
|
-
disabled: Boolean,
|
27
|
-
modelValue: Boolean,
|
28
|
-
headHeight: (0, _utils.makeNumericProp)(DEFAULT_HEAD_HEIGHT),
|
29
|
-
successText: String,
|
30
|
-
pullingText: String,
|
31
|
-
loosingText: String,
|
32
|
-
loadingText: String,
|
33
|
-
pullDistance: _utils.numericProp,
|
34
|
-
successDuration: (0, _utils.makeNumericProp)(500),
|
35
|
-
animationDuration: (0, _utils.makeNumericProp)(300)
|
36
|
-
},
|
37
|
+
props: pullRefreshProps,
|
37
38
|
emits: ['refresh', 'update:modelValue'],
|
38
39
|
|
39
|
-
setup(props, {
|
40
|
-
|
41
|
-
|
42
|
-
|
40
|
+
setup(props, _ref) {
|
41
|
+
var {
|
42
|
+
emit,
|
43
|
+
slots
|
44
|
+
} = _ref;
|
43
45
|
var reachTop;
|
44
46
|
var root = (0, _vue.ref)();
|
45
47
|
var scrollParent = (0, _use.useScrollParent)(root);
|
@@ -1 +1 @@
|
|
1
|
-
:root{--van-pull-refresh-head-height:50px;--van-pull-refresh-head-font-size:var(--van-font-size-md);--van-pull-refresh-head-text-color:var(--van-
|
1
|
+
:root{--van-pull-refresh-head-height:50px;--van-pull-refresh-head-font-size:var(--van-font-size-md);--van-pull-refresh-head-text-color:var(--van-text-color-2);--van-pull-refresh-loading-icon-size:16px}.van-pull-refresh{overflow:hidden;-webkit-user-select:none;user-select:none}.van-pull-refresh__track{position:relative;height:100%;transition-property:transform}.van-pull-refresh__head{position:absolute;left:0;width:100%;height:var(--van-pull-refresh-head-height);overflow:hidden;color:var(--van-pull-refresh-head-text-color);font-size:var(--van-pull-refresh-head-font-size);line-height:var(--van-pull-refresh-head-height);text-align:center;transform:translateY(-100%)}.van-pull-refresh__loading .van-loading__spinner{width:var(--van-pull-refresh-loading-icon-size);height:var(--van-pull-refresh-loading-icon-size)}
|
package/lib/radio/Radio.d.ts
CHANGED
@@ -1,6 +1,8 @@
|
|
1
|
-
import {
|
1
|
+
import { ExtractPropTypes } from 'vue';
|
2
|
+
import { checkerProps, CheckerShape, CheckerLabelPosition } from '../checkbox/Checker';
|
2
3
|
export declare type RadioShape = CheckerShape;
|
3
4
|
export declare type RadioLabelPosition = CheckerLabelPosition;
|
5
|
+
export declare type RadioProps = ExtractPropTypes<typeof checkerProps>;
|
4
6
|
declare const _default: import("vue").DefineComponent<{
|
5
7
|
name: import("vue").PropType<unknown>;
|
6
8
|
shape: {
|
package/lib/radio/Radio.js
CHANGED
@@ -27,10 +27,11 @@ var _default = (0, _vue.defineComponent)({
|
|
27
27
|
props: _Checker.checkerProps,
|
28
28
|
emits: ['update:modelValue'],
|
29
29
|
|
30
|
-
setup(props, {
|
31
|
-
|
32
|
-
|
33
|
-
|
30
|
+
setup(props, _ref) {
|
31
|
+
var {
|
32
|
+
emit,
|
33
|
+
slots
|
34
|
+
} = _ref;
|
34
35
|
var {
|
35
36
|
parent
|
36
37
|
} = (0, _use.useParent)(_RadioGroup.RADIO_KEY);
|
package/lib/radio/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
:root{--van-radio-size:20px;--van-radio-border-color:var(--van-gray-5);--van-radio-transition-duration:var(--van-animation-duration-fast);--van-radio-label-margin:var(--van-padding-xs);--van-radio-label-color:var(--van-text-color);--van-radio-checked-icon-color:var(--van-primary-color);--van-radio-disabled-icon-color:var(--van-gray-5);--van-radio-disabled-label-color:var(--van-
|
1
|
+
:root{--van-radio-size:20px;--van-radio-border-color:var(--van-gray-5);--van-radio-transition-duration:var(--van-animation-duration-fast);--van-radio-label-margin:var(--van-padding-xs);--van-radio-label-color:var(--van-text-color);--van-radio-checked-icon-color:var(--van-primary-color);--van-radio-disabled-icon-color:var(--van-gray-5);--van-radio-disabled-label-color:var(--van-text-color-3);--van-radio-disabled-background-color:var(--van-border-color)}.van-radio{display:flex;align-items:center;overflow:hidden;cursor:pointer;-webkit-user-select:none;user-select:none}.van-radio--disabled{cursor:not-allowed}.van-radio--label-disabled{cursor:default}.van-radio--horizontal{margin-right:var(--van-padding-sm)}.van-radio__icon{flex:none;height:1em;font-size:var(--van-radio-size);line-height:1em;cursor:pointer}.van-radio__icon .van-icon{display:block;box-sizing:border-box;width:1.25em;height:1.25em;color:transparent;font-size:.8em;line-height:1.25;text-align:center;border:1px solid var(--van-radio-border-color);transition-duration:var(--van-radio-transition-duration);transition-property:color,border-color,background-color}.van-radio__icon--round .van-icon{border-radius:100%}.van-radio__icon--checked .van-icon{color:var(--van-white);background-color:var(--van-radio-checked-icon-color);border-color:var(--van-radio-checked-icon-color)}.van-radio__icon--disabled{cursor:not-allowed}.van-radio__icon--disabled .van-icon{background-color:var(--van-radio-disabled-background-color);border-color:var(--van-radio-disabled-icon-color)}.van-radio__icon--disabled.van-radio__icon--checked .van-icon{color:var(--van-radio-disabled-icon-color)}.van-radio__label{margin-left:var(--van-radio-label-margin);color:var(--van-radio-label-color);line-height:var(--van-radio-size)}.van-radio__label--left{margin:0 var(--van-radio-label-margin) 0 0}.van-radio__label--disabled{color:var(--van-radio-disabled-label-color)}
|
package/lib/radio/index.d.ts
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
import { RadioShape, RadioLabelPosition } from './Radio';
|
2
1
|
export declare const Radio: import("../utils").WithInstall<import("vue").DefineComponent<{
|
3
2
|
name: import("vue").PropType<unknown>;
|
4
3
|
shape: {
|
@@ -38,4 +37,4 @@ export declare const Radio: import("../utils").WithInstall<import("vue").DefineC
|
|
38
37
|
labelDisabled: boolean;
|
39
38
|
}>>;
|
40
39
|
export default Radio;
|
41
|
-
export type { RadioShape, RadioLabelPosition };
|
40
|
+
export type { RadioProps, RadioShape, RadioLabelPosition } from './Radio';
|
package/lib/radio/var.less
CHANGED
@@ -7,5 +7,5 @@
|
|
7
7
|
@radio-label-color: var(--van-text-color);
|
8
8
|
@radio-checked-icon-color: var(--van-primary-color);
|
9
9
|
@radio-disabled-icon-color: var(--van-gray-5);
|
10
|
-
@radio-disabled-label-color: var(--van-
|
10
|
+
@radio-disabled-label-color: var(--van-text-color-3);
|
11
11
|
@radio-disabled-background-color: var(--van-border-color);
|
@@ -1,15 +1,16 @@
|
|
1
1
|
import { PropType, InjectionKey, ExtractPropTypes } from 'vue';
|
2
2
|
import type { CheckerDirection } from '../checkbox/Checker';
|
3
3
|
export declare type RadioGroupDirection = CheckerDirection;
|
4
|
-
declare const
|
4
|
+
declare const radioGroupProps: {
|
5
5
|
disabled: BooleanConstructor;
|
6
6
|
iconSize: (NumberConstructor | StringConstructor)[];
|
7
7
|
direction: PropType<CheckerDirection>;
|
8
8
|
modelValue: PropType<unknown>;
|
9
9
|
checkedColor: StringConstructor;
|
10
10
|
};
|
11
|
+
export declare type RadioGroupProps = ExtractPropTypes<typeof radioGroupProps>;
|
11
12
|
export declare type RadioGroupProvide = {
|
12
|
-
props:
|
13
|
+
props: RadioGroupProps;
|
13
14
|
updateValue: (value: unknown) => void;
|
14
15
|
};
|
15
16
|
export declare const RADIO_KEY: InjectionKey<RadioGroupProvide>;
|
@@ -10,7 +10,7 @@ var _utils = require("../utils");
|
|
10
10
|
var _use = require("@vant/use");
|
11
11
|
|
12
12
|
var [name, bem] = (0, _utils.createNamespace)('radio-group');
|
13
|
-
var
|
13
|
+
var radioGroupProps = {
|
14
14
|
disabled: Boolean,
|
15
15
|
iconSize: _utils.numericProp,
|
16
16
|
direction: String,
|
@@ -22,13 +22,14 @@ exports.RADIO_KEY = RADIO_KEY;
|
|
22
22
|
|
23
23
|
var _default = (0, _vue.defineComponent)({
|
24
24
|
name,
|
25
|
-
props,
|
25
|
+
props: radioGroupProps,
|
26
26
|
emits: ['change', 'update:modelValue'],
|
27
27
|
|
28
|
-
setup(props, {
|
29
|
-
|
30
|
-
|
31
|
-
|
28
|
+
setup(props, _ref) {
|
29
|
+
var {
|
30
|
+
emit,
|
31
|
+
slots
|
32
|
+
} = _ref;
|
32
33
|
var {
|
33
34
|
linkChildren
|
34
35
|
} = (0, _use.useChildren)(RADIO_KEY);
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import { RadioGroupDirection } from './RadioGroup';
|
2
1
|
export declare const RadioGroup: import("../utils").WithInstall<import("vue").DefineComponent<{
|
3
2
|
disabled: BooleanConstructor;
|
4
3
|
iconSize: (NumberConstructor | StringConstructor)[];
|
@@ -25,4 +24,4 @@ export declare const RadioGroup: import("../utils").WithInstall<import("vue").De
|
|
25
24
|
disabled: boolean;
|
26
25
|
}>>;
|
27
26
|
export default RadioGroup;
|
28
|
-
export type { RadioGroupDirection };
|
27
|
+
export type { RadioGroupProps, RadioGroupDirection } from './RadioGroup';
|
package/lib/rate/Rate.d.ts
CHANGED
@@ -1,3 +1,36 @@
|
|
1
|
+
import { ExtractPropTypes } from 'vue';
|
2
|
+
declare const rateProps: {
|
3
|
+
size: (NumberConstructor | StringConstructor)[];
|
4
|
+
icon: {
|
5
|
+
type: import("vue").PropType<string>;
|
6
|
+
default: string;
|
7
|
+
};
|
8
|
+
color: StringConstructor;
|
9
|
+
count: {
|
10
|
+
type: (NumberConstructor | StringConstructor)[];
|
11
|
+
default: number;
|
12
|
+
};
|
13
|
+
gutter: (NumberConstructor | StringConstructor)[];
|
14
|
+
readonly: BooleanConstructor;
|
15
|
+
disabled: BooleanConstructor;
|
16
|
+
voidIcon: {
|
17
|
+
type: import("vue").PropType<string>;
|
18
|
+
default: string;
|
19
|
+
};
|
20
|
+
allowHalf: BooleanConstructor;
|
21
|
+
voidColor: StringConstructor;
|
22
|
+
touchable: {
|
23
|
+
type: BooleanConstructor;
|
24
|
+
default: true;
|
25
|
+
};
|
26
|
+
iconPrefix: StringConstructor;
|
27
|
+
modelValue: {
|
28
|
+
type: NumberConstructor;
|
29
|
+
default: number;
|
30
|
+
};
|
31
|
+
disabledColor: StringConstructor;
|
32
|
+
};
|
33
|
+
export declare type RateProps = ExtractPropTypes<typeof rateProps>;
|
1
34
|
declare const _default: import("vue").DefineComponent<{
|
2
35
|
size: (NumberConstructor | StringConstructor)[];
|
3
36
|
icon: {
|
package/lib/rate/Rate.js
CHANGED
@@ -49,29 +49,32 @@ function getRateStatus(value, index, allowHalf, readonly) {
|
|
49
49
|
};
|
50
50
|
}
|
51
51
|
|
52
|
+
var rateProps = {
|
53
|
+
size: _utils.numericProp,
|
54
|
+
icon: (0, _utils.makeStringProp)('star'),
|
55
|
+
color: String,
|
56
|
+
count: (0, _utils.makeNumericProp)(5),
|
57
|
+
gutter: _utils.numericProp,
|
58
|
+
readonly: Boolean,
|
59
|
+
disabled: Boolean,
|
60
|
+
voidIcon: (0, _utils.makeStringProp)('star-o'),
|
61
|
+
allowHalf: Boolean,
|
62
|
+
voidColor: String,
|
63
|
+
touchable: _utils.truthProp,
|
64
|
+
iconPrefix: String,
|
65
|
+
modelValue: (0, _utils.makeNumberProp)(0),
|
66
|
+
disabledColor: String
|
67
|
+
};
|
68
|
+
|
52
69
|
var _default = (0, _vue.defineComponent)({
|
53
70
|
name,
|
54
|
-
props:
|
55
|
-
size: _utils.numericProp,
|
56
|
-
icon: (0, _utils.makeStringProp)('star'),
|
57
|
-
color: String,
|
58
|
-
count: (0, _utils.makeNumericProp)(5),
|
59
|
-
gutter: _utils.numericProp,
|
60
|
-
readonly: Boolean,
|
61
|
-
disabled: Boolean,
|
62
|
-
voidIcon: (0, _utils.makeStringProp)('star-o'),
|
63
|
-
allowHalf: Boolean,
|
64
|
-
voidColor: String,
|
65
|
-
touchable: _utils.truthProp,
|
66
|
-
iconPrefix: String,
|
67
|
-
modelValue: (0, _utils.makeNumberProp)(0),
|
68
|
-
disabledColor: String
|
69
|
-
},
|
71
|
+
props: rateProps,
|
70
72
|
emits: ['change', 'update:modelValue'],
|
71
73
|
|
72
|
-
setup(props, {
|
73
|
-
|
74
|
-
|
74
|
+
setup(props, _ref) {
|
75
|
+
var {
|
76
|
+
emit
|
77
|
+
} = _ref;
|
75
78
|
var touch = (0, _useTouch.useTouch)();
|
76
79
|
var [itemRefs, setItemRefs] = (0, _useRefs.useRefs)();
|
77
80
|
|
package/lib/rate/index.d.ts
CHANGED
package/lib/row/Row.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { PropType, ComputedRef, InjectionKey } from 'vue';
|
1
|
+
import { PropType, ComputedRef, InjectionKey, ExtractPropTypes } from 'vue';
|
2
2
|
export declare type RowSpaces = {
|
3
3
|
left?: number;
|
4
4
|
right: number;
|
@@ -9,6 +9,23 @@ export declare type RowProvide = {
|
|
9
9
|
export declare const ROW_KEY: InjectionKey<RowProvide>;
|
10
10
|
export declare type RowAlign = 'top' | 'center' | 'bottom';
|
11
11
|
export declare type RowJustify = 'start' | 'end' | 'center' | 'space-around' | 'space-between';
|
12
|
+
declare const rowProps: {
|
13
|
+
tag: {
|
14
|
+
type: PropType<keyof HTMLElementTagNameMap>;
|
15
|
+
default: keyof HTMLElementTagNameMap;
|
16
|
+
};
|
17
|
+
wrap: {
|
18
|
+
type: BooleanConstructor;
|
19
|
+
default: true;
|
20
|
+
};
|
21
|
+
align: PropType<RowAlign>;
|
22
|
+
gutter: {
|
23
|
+
type: (NumberConstructor | StringConstructor)[];
|
24
|
+
default: number;
|
25
|
+
};
|
26
|
+
justify: PropType<RowJustify>;
|
27
|
+
};
|
28
|
+
export declare type RowProps = ExtractPropTypes<typeof rowProps>;
|
12
29
|
declare const _default: import("vue").DefineComponent<{
|
13
30
|
tag: {
|
14
31
|
type: PropType<keyof HTMLElementTagNameMap>;
|