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/button/index.d.ts
CHANGED
@@ -10,12 +10,12 @@ export declare const Button: import("../utils").WithInstall<import("vue").Define
|
|
10
10
|
text: StringConstructor;
|
11
11
|
icon: StringConstructor;
|
12
12
|
type: {
|
13
|
-
type: import("vue").PropType<import("./
|
14
|
-
default: import("./
|
13
|
+
type: import("vue").PropType<import("./types").ButtonType>;
|
14
|
+
default: import("./types").ButtonType;
|
15
15
|
};
|
16
16
|
size: {
|
17
|
-
type: import("vue").PropType<import("./
|
18
|
-
default: import("./
|
17
|
+
type: import("vue").PropType<import("./types").ButtonSize>;
|
18
|
+
default: import("./types").ButtonSize;
|
19
19
|
};
|
20
20
|
color: StringConstructor;
|
21
21
|
block: BooleanConstructor;
|
@@ -27,15 +27,15 @@ export declare const Button: import("../utils").WithInstall<import("vue").Define
|
|
27
27
|
disabled: BooleanConstructor;
|
28
28
|
iconPrefix: StringConstructor;
|
29
29
|
nativeType: {
|
30
|
-
type: import("vue").PropType<import("./
|
31
|
-
default: import("./
|
30
|
+
type: import("vue").PropType<import("./types").ButtonNativeType>;
|
31
|
+
default: import("./types").ButtonNativeType;
|
32
32
|
};
|
33
33
|
loadingSize: (NumberConstructor | StringConstructor)[];
|
34
34
|
loadingText: StringConstructor;
|
35
35
|
loadingType: import("vue").PropType<import("..").LoadingType>;
|
36
36
|
iconPosition: {
|
37
|
-
type: import("vue").PropType<import("./
|
38
|
-
default: import("./
|
37
|
+
type: import("vue").PropType<import("./types").ButtonIconPosition>;
|
38
|
+
default: import("./types").ButtonIconPosition;
|
39
39
|
};
|
40
40
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
|
41
41
|
to?: unknown;
|
@@ -62,18 +62,18 @@ export declare const Button: import("../utils").WithInstall<import("vue").Define
|
|
62
62
|
iconPosition?: unknown;
|
63
63
|
} & {
|
64
64
|
replace: boolean;
|
65
|
-
type: import("./
|
65
|
+
type: import("./types").ButtonType;
|
66
66
|
tag: keyof HTMLElementTagNameMap;
|
67
67
|
round: boolean;
|
68
68
|
disabled: boolean;
|
69
|
-
size: import("./
|
69
|
+
size: import("./types").ButtonSize;
|
70
70
|
loading: boolean;
|
71
71
|
block: boolean;
|
72
72
|
square: boolean;
|
73
73
|
plain: boolean;
|
74
74
|
hairline: boolean;
|
75
|
-
nativeType: import("./
|
76
|
-
iconPosition: import("./
|
75
|
+
nativeType: import("./types").ButtonNativeType;
|
76
|
+
iconPosition: import("./types").ButtonIconPosition;
|
77
77
|
} & {
|
78
78
|
text?: string | undefined;
|
79
79
|
url?: string | undefined;
|
@@ -88,18 +88,19 @@ export declare const Button: import("../utils").WithInstall<import("vue").Define
|
|
88
88
|
onClick?: ((...args: any[]) => any) | undefined;
|
89
89
|
}, {
|
90
90
|
replace: boolean;
|
91
|
-
type: import("./
|
91
|
+
type: import("./types").ButtonType;
|
92
92
|
tag: keyof HTMLElementTagNameMap;
|
93
93
|
round: boolean;
|
94
94
|
disabled: boolean;
|
95
|
-
size: import("./
|
95
|
+
size: import("./types").ButtonSize;
|
96
96
|
loading: boolean;
|
97
97
|
block: boolean;
|
98
98
|
square: boolean;
|
99
99
|
plain: boolean;
|
100
100
|
hairline: boolean;
|
101
|
-
nativeType: import("./
|
102
|
-
iconPosition: import("./
|
101
|
+
nativeType: import("./types").ButtonNativeType;
|
102
|
+
iconPosition: import("./types").ButtonIconPosition;
|
103
103
|
}>>;
|
104
104
|
export default Button;
|
105
|
-
export type {
|
105
|
+
export type { ButtonProps } from './Button';
|
106
|
+
export type { ButtonType, ButtonSize, ButtonNativeType, ButtonIconPosition, } from './types';
|
@@ -0,0 +1,5 @@
|
|
1
|
+
import type { ButtonHTMLAttributes } from 'vue';
|
2
|
+
export declare type ButtonType = 'default' | 'primary' | 'success' | 'warning' | 'danger';
|
3
|
+
export declare type ButtonSize = 'large' | 'normal' | 'small' | 'mini';
|
4
|
+
export declare type ButtonNativeType = NonNullable<ButtonHTMLAttributes['type']>;
|
5
|
+
export declare type ButtonIconPosition = 'left' | 'right';
|
package/lib/button/var.less
CHANGED
@@ -13,7 +13,7 @@
|
|
13
13
|
@button-default-line-height: 1.2;
|
14
14
|
@button-default-font-size: var(--van-font-size-lg);
|
15
15
|
@button-default-color: var(--van-text-color);
|
16
|
-
@button-default-background-color: var(--van-
|
16
|
+
@button-default-background-color: var(--van-background-color-light);
|
17
17
|
@button-default-border-color: var(--van-border-color);
|
18
18
|
@button-primary-color: var(--van-white);
|
19
19
|
@button-primary-background-color: var(--van-primary-color);
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { PropType, ExtractPropTypes } from 'vue';
|
2
2
|
import { PopupPosition } from '../popup';
|
3
3
|
import type { CalendarType, CalendarDayItem } from './types';
|
4
|
-
declare const
|
4
|
+
declare const calendarProps: {
|
5
5
|
show: BooleanConstructor;
|
6
6
|
type: {
|
7
7
|
type: PropType<CalendarType>;
|
@@ -86,7 +86,7 @@ declare const props: {
|
|
86
86
|
validator: (val: number) => boolean;
|
87
87
|
};
|
88
88
|
};
|
89
|
-
export declare type CalendarProps = ExtractPropTypes<typeof
|
89
|
+
export declare type CalendarProps = ExtractPropTypes<typeof calendarProps>;
|
90
90
|
declare const _default: import("vue").DefineComponent<{
|
91
91
|
show: BooleanConstructor;
|
92
92
|
type: {
|
package/lib/calendar/Calendar.js
CHANGED
@@ -30,7 +30,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
30
30
|
// Utils
|
31
31
|
// Composables
|
32
32
|
// Components
|
33
|
-
var
|
33
|
+
var calendarProps = {
|
34
34
|
show: Boolean,
|
35
35
|
type: (0, _utils.makeStringProp)('single'),
|
36
36
|
title: String,
|
@@ -79,14 +79,24 @@ var props = {
|
|
79
79
|
|
80
80
|
var _default = (0, _vue.defineComponent)({
|
81
81
|
name: _utils2.name,
|
82
|
-
props,
|
82
|
+
props: calendarProps,
|
83
83
|
emits: ['select', 'confirm', 'unselect', 'month-show', 'over-range', 'update:show', 'click-subtitle'],
|
84
84
|
|
85
|
-
setup(props, {
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
85
|
+
setup(props, _ref) {
|
86
|
+
var {
|
87
|
+
emit,
|
88
|
+
slots
|
89
|
+
} = _ref;
|
90
|
+
|
91
|
+
var limitDateRange = function (date, minDate, maxDate) {
|
92
|
+
if (minDate === void 0) {
|
93
|
+
minDate = props.minDate;
|
94
|
+
}
|
95
|
+
|
96
|
+
if (maxDate === void 0) {
|
97
|
+
maxDate = props.maxDate;
|
98
|
+
}
|
99
|
+
|
90
100
|
if ((0, _utils2.compareDay)(date, minDate) === -1) {
|
91
101
|
return minDate;
|
92
102
|
}
|
@@ -98,7 +108,11 @@ var _default = (0, _vue.defineComponent)({
|
|
98
108
|
return date;
|
99
109
|
};
|
100
110
|
|
101
|
-
var getInitialDate = (defaultDate
|
111
|
+
var getInitialDate = function (defaultDate) {
|
112
|
+
if (defaultDate === void 0) {
|
113
|
+
defaultDate = props.defaultDate;
|
114
|
+
}
|
115
|
+
|
102
116
|
var {
|
103
117
|
type,
|
104
118
|
minDate,
|
@@ -262,7 +276,11 @@ var _default = (0, _vue.defineComponent)({
|
|
262
276
|
});
|
263
277
|
};
|
264
278
|
|
265
|
-
var reset = (date
|
279
|
+
var reset = function (date) {
|
280
|
+
if (date === void 0) {
|
281
|
+
date = getInitialDate();
|
282
|
+
}
|
283
|
+
|
266
284
|
currentDate.value = date;
|
267
285
|
scrollIntoView();
|
268
286
|
};
|
@@ -460,7 +478,11 @@ var _default = (0, _vue.defineComponent)({
|
|
460
478
|
|
461
479
|
(0, _vue.watch)(() => props.show, init);
|
462
480
|
(0, _vue.watch)(() => [props.type, props.minDate, props.maxDate], () => reset(getInitialDate(currentDate.value)));
|
463
|
-
(0, _vue.watch)(() => props.defaultDate, (value
|
481
|
+
(0, _vue.watch)(() => props.defaultDate, function (value) {
|
482
|
+
if (value === void 0) {
|
483
|
+
value = null;
|
484
|
+
}
|
485
|
+
|
464
486
|
currentDate.value = value;
|
465
487
|
scrollIntoView();
|
466
488
|
});
|
@@ -22,10 +22,12 @@ var _default = (0, _vue.defineComponent)({
|
|
22
22
|
},
|
23
23
|
emits: ['click-subtitle'],
|
24
24
|
|
25
|
-
setup(props, {
|
26
|
-
|
27
|
-
|
28
|
-
|
25
|
+
setup(props, _ref) {
|
26
|
+
var {
|
27
|
+
slots,
|
28
|
+
emit
|
29
|
+
} = _ref;
|
30
|
+
|
29
31
|
var renderTitle = () => {
|
30
32
|
if (props.showTitle) {
|
31
33
|
var text = props.title || (0, _utils2.t)('title');
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { PropType, ExtractPropTypes } from 'vue';
|
2
2
|
import type { CalendarType, CalendarDayItem } from './types';
|
3
|
-
declare const
|
3
|
+
declare const calendarMonthProps: {
|
4
4
|
date: {
|
5
5
|
type: DateConstructor;
|
6
6
|
required: true;
|
@@ -25,7 +25,7 @@ declare const props: {
|
|
25
25
|
showMonthTitle: BooleanConstructor;
|
26
26
|
firstDayOfWeek: NumberConstructor;
|
27
27
|
};
|
28
|
-
export declare type CalendarMonthProps = ExtractPropTypes<typeof
|
28
|
+
export declare type CalendarMonthProps = ExtractPropTypes<typeof calendarMonthProps>;
|
29
29
|
declare const _default: import("vue").DefineComponent<{
|
30
30
|
date: {
|
31
31
|
type: DateConstructor;
|
@@ -25,7 +25,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
25
25
|
// Composables
|
26
26
|
// Components
|
27
27
|
var [name] = (0, _utils.createNamespace)('calendar-month');
|
28
|
-
var
|
28
|
+
var calendarMonthProps = {
|
29
29
|
date: (0, _utils.makeRequiredProp)(Date),
|
30
30
|
type: String,
|
31
31
|
color: String,
|
@@ -44,13 +44,14 @@ var props = {
|
|
44
44
|
|
45
45
|
var _default = (0, _vue.defineComponent)({
|
46
46
|
name,
|
47
|
-
props,
|
47
|
+
props: calendarMonthProps,
|
48
48
|
emits: ['click', 'update-height'],
|
49
49
|
|
50
|
-
setup(props, {
|
51
|
-
|
52
|
-
|
53
|
-
|
50
|
+
setup(props, _ref) {
|
51
|
+
var {
|
52
|
+
emit,
|
53
|
+
slots
|
54
|
+
} = _ref;
|
54
55
|
var [visible, setVisible] = (0, _use.useToggle)();
|
55
56
|
var daysRef = (0, _vue.ref)();
|
56
57
|
var monthRef = (0, _vue.ref)();
|
package/lib/calendar/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
:root{--van-calendar-background-color:var(--van-
|
1
|
+
:root{--van-calendar-background-color:var(--van-background-color-light);--van-calendar-popup-height:80%;--van-calendar-header-box-shadow:0 2px 10px rgba(125, 126, 128, 0.16);--van-calendar-header-title-height:44px;--van-calendar-header-title-font-size:var(--van-font-size-lg);--van-calendar-header-subtitle-font-size:var(--van-font-size-md);--van-calendar-weekdays-height:30px;--van-calendar-weekdays-font-size:var(--van-font-size-sm);--van-calendar-month-title-font-size:var(--van-font-size-md);--van-calendar-month-mark-color:rgba(242, 243, 245, 0.8);--van-calendar-month-mark-font-size:160px;--van-calendar-day-height:64px;--van-calendar-day-font-size:var(--van-font-size-lg);--van-calendar-range-edge-color:var(--van-white);--van-calendar-range-edge-background-color:var(--van-danger-color);--van-calendar-range-middle-color:var(--van-danger-color);--van-calendar-range-middle-background-opacity:0.1;--van-calendar-selected-day-size:54px;--van-calendar-selected-day-color:var(--van-white);--van-calendar-info-font-size:var(--van-font-size-xs);--van-calendar-info-line-height:var(--van-line-height-xs);--van-calendar-selected-day-background-color:var(--van-danger-color);--van-calendar-day-disabled-color:var(--van-text-color-3);--van-calendar-confirm-button-height:36px;--van-calendar-confirm-button-margin:7px 0}.van-calendar{display:flex;flex-direction:column;height:100%;background:var(--van-calendar-background-color)}.van-calendar__popup.van-popup--bottom,.van-calendar__popup.van-popup--top{height:var(--van-calendar-popup-height)}.van-calendar__popup.van-popup--left,.van-calendar__popup.van-popup--right{height:100%}.van-calendar__popup .van-popup__close-icon{top:11px}.van-calendar__header{flex-shrink:0;box-shadow:var(--van-calendar-header-box-shadow)}.van-calendar__header-subtitle,.van-calendar__header-title,.van-calendar__month-title{height:var(--van-calendar-header-title-height);font-weight:var(--van-font-weight-bold);line-height:var(--van-calendar-header-title-height);text-align:center}.van-calendar__header-title{font-size:var(--van-calendar-header-title-font-size)}.van-calendar__header-subtitle{font-size:var(--van-calendar-header-subtitle-font-size)}.van-calendar__month-title{font-size:var(--van-calendar-month-title-font-size)}.van-calendar__weekdays{display:flex}.van-calendar__weekday{flex:1;font-size:var(--van-calendar-weekdays-font-size);line-height:var(--van-calendar-weekdays-height);text-align:center}.van-calendar__body{flex:1;overflow:auto;-webkit-overflow-scrolling:touch}.van-calendar__days{position:relative;display:flex;flex-wrap:wrap;-webkit-user-select:none;user-select:none}.van-calendar__month-mark{position:absolute;top:50%;left:50%;z-index:0;color:var(--van-calendar-month-mark-color);font-size:var(--van-calendar-month-mark-font-size);transform:translate(-50%,-50%);pointer-events:none}.van-calendar__day,.van-calendar__selected-day{display:flex;align-items:center;justify-content:center;text-align:center}.van-calendar__day{position:relative;width:14.285%;height:var(--van-calendar-day-height);font-size:var(--van-calendar-day-font-size);cursor:pointer}.van-calendar__day--end,.van-calendar__day--multiple-middle,.van-calendar__day--multiple-selected,.van-calendar__day--start,.van-calendar__day--start-end{color:var(--van-calendar-range-edge-color);background:var(--van-calendar-range-edge-background-color)}.van-calendar__day--start{border-radius:var(--van-border-radius-md) 0 0 var(--van-border-radius-md)}.van-calendar__day--end{border-radius:0 var(--van-border-radius-md) var(--van-border-radius-md) 0}.van-calendar__day--multiple-selected,.van-calendar__day--start-end{border-radius:var(--van-border-radius-md)}.van-calendar__day--middle{color:var(--van-calendar-range-middle-color)}.van-calendar__day--middle::after{position:absolute;top:0;right:0;bottom:0;left:0;background-color:currentColor;opacity:var(--van-calendar-range-middle-background-opacity);content:''}.van-calendar__day--disabled{color:var(--van-calendar-day-disabled-color);cursor:default}.van-calendar__bottom-info,.van-calendar__top-info{position:absolute;right:0;left:0;font-size:var(--van-calendar-info-font-size);line-height:var(--van-calendar-info-line-height)}@media (max-width:350px){.van-calendar__bottom-info,.van-calendar__top-info{font-size:9px}}.van-calendar__top-info{top:6px}.van-calendar__bottom-info{bottom:6px}.van-calendar__selected-day{width:var(--van-calendar-selected-day-size);height:var(--van-calendar-selected-day-size);color:var(--van-calendar-selected-day-color);background:var(--van-calendar-selected-day-background-color);border-radius:var(--van-border-radius-md)}.van-calendar__footer{flex-shrink:0;padding-left:var(--van-padding-md);padding-right:var(--van-padding-md)}.van-calendar__confirm{height:var(--van-calendar-confirm-button-height);margin:var(--van-calendar-confirm-button-margin)}
|
package/lib/calendar/index.d.ts
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
import { CalendarProps } from './Calendar';
|
2
1
|
export declare const Calendar: import("../utils").WithInstall<import("vue").DefineComponent<{
|
3
2
|
show: BooleanConstructor;
|
4
3
|
type: {
|
@@ -175,5 +174,5 @@ export declare const Calendar: import("../utils").WithInstall<import("vue").Defi
|
|
175
174
|
firstDayOfWeek: string | number;
|
176
175
|
}>>;
|
177
176
|
export default Calendar;
|
178
|
-
export type { CalendarProps };
|
177
|
+
export type { CalendarProps } from './Calendar';
|
179
178
|
export type { CalendarType, CalendarDayItem, CalendarDayType, CalendarInstance, } from './types';
|
package/lib/calendar/types.d.ts
CHANGED
@@ -18,7 +18,7 @@ export declare type CalendarExpose = {
|
|
18
18
|
export declare type CalendarInstance = ComponentPublicInstance<CalendarProps, CalendarExpose>;
|
19
19
|
export declare type CalendarMonthInstance = ComponentPublicInstance<CalendarMonthProps, {
|
20
20
|
showed?: boolean;
|
21
|
-
getTitle: () =>
|
21
|
+
getTitle: () => string;
|
22
22
|
getHeight: () => number;
|
23
23
|
setVisible: (value?: boolean | undefined) => void;
|
24
24
|
scrollIntoView: (body: Element) => void;
|
package/lib/calendar/utils.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
declare const name: string, bem: (el?: import("../utils").Mods | undefined, mods?: import("../utils").Mods | undefined) => import("../utils").Mods, t: (path: string, ...args:
|
1
|
+
declare const name: string, bem: (el?: import("../utils").Mods | undefined, mods?: import("../utils").Mods | undefined) => import("../utils").Mods, t: (path: string, ...args: unknown[]) => any;
|
2
2
|
export { name, bem, t };
|
3
3
|
export declare const formatMonthTitle: (date: Date) => any;
|
4
4
|
export declare function compareMonth(date1: Date, date2: Date): 0 | 1 | -1;
|
package/lib/calendar/var.less
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
@import '../style/var.less';
|
2
2
|
|
3
|
-
@calendar-background-color: var(--van-
|
3
|
+
@calendar-background-color: var(--van-background-color-light);
|
4
4
|
@calendar-popup-height: 80%;
|
5
5
|
@calendar-header-box-shadow: 0 2px 10px rgba(125, 126, 128, 0.16);
|
6
6
|
@calendar-header-title-height: 44px;
|
@@ -22,6 +22,6 @@
|
|
22
22
|
@calendar-info-font-size: var(--van-font-size-xs);
|
23
23
|
@calendar-info-line-height: var(--van-line-height-xs);
|
24
24
|
@calendar-selected-day-background-color: var(--van-danger-color);
|
25
|
-
@calendar-day-disabled-color: var(--van-
|
25
|
+
@calendar-day-disabled-color: var(--van-text-color-3);
|
26
26
|
@calendar-confirm-button-height: 36px;
|
27
27
|
@calendar-confirm-button-margin: 7px 0;
|
package/lib/card/Card.d.ts
CHANGED
@@ -1,3 +1,21 @@
|
|
1
|
+
import { ExtractPropTypes } from 'vue';
|
2
|
+
declare const cardProps: {
|
3
|
+
tag: StringConstructor;
|
4
|
+
num: (NumberConstructor | StringConstructor)[];
|
5
|
+
desc: StringConstructor;
|
6
|
+
thumb: StringConstructor;
|
7
|
+
title: StringConstructor;
|
8
|
+
price: (NumberConstructor | StringConstructor)[];
|
9
|
+
centered: BooleanConstructor;
|
10
|
+
lazyLoad: BooleanConstructor;
|
11
|
+
currency: {
|
12
|
+
type: import("vue").PropType<string>;
|
13
|
+
default: string;
|
14
|
+
};
|
15
|
+
thumbLink: StringConstructor;
|
16
|
+
originPrice: (NumberConstructor | StringConstructor)[];
|
17
|
+
};
|
18
|
+
export declare type CardProps = ExtractPropTypes<typeof cardProps>;
|
1
19
|
declare const _default: import("vue").DefineComponent<{
|
2
20
|
tag: StringConstructor;
|
3
21
|
num: (NumberConstructor | StringConstructor)[];
|
package/lib/card/Card.js
CHANGED
@@ -14,28 +14,31 @@ var _image = require("../image");
|
|
14
14
|
// Utils
|
15
15
|
// Components
|
16
16
|
var [name, bem] = (0, _utils.createNamespace)('card');
|
17
|
+
var cardProps = {
|
18
|
+
tag: String,
|
19
|
+
num: _utils.numericProp,
|
20
|
+
desc: String,
|
21
|
+
thumb: String,
|
22
|
+
title: String,
|
23
|
+
price: _utils.numericProp,
|
24
|
+
centered: Boolean,
|
25
|
+
lazyLoad: Boolean,
|
26
|
+
currency: (0, _utils.makeStringProp)('¥'),
|
27
|
+
thumbLink: String,
|
28
|
+
originPrice: _utils.numericProp
|
29
|
+
};
|
17
30
|
|
18
31
|
var _default = (0, _vue.defineComponent)({
|
19
32
|
name,
|
20
|
-
props:
|
21
|
-
tag: String,
|
22
|
-
num: _utils.numericProp,
|
23
|
-
desc: String,
|
24
|
-
thumb: String,
|
25
|
-
title: String,
|
26
|
-
price: _utils.numericProp,
|
27
|
-
centered: Boolean,
|
28
|
-
lazyLoad: Boolean,
|
29
|
-
currency: (0, _utils.makeStringProp)('¥'),
|
30
|
-
thumbLink: String,
|
31
|
-
originPrice: _utils.numericProp
|
32
|
-
},
|
33
|
+
props: cardProps,
|
33
34
|
emits: ['click-thumb'],
|
34
35
|
|
35
|
-
setup(props, {
|
36
|
-
|
37
|
-
|
38
|
-
|
36
|
+
setup(props, _ref) {
|
37
|
+
var {
|
38
|
+
slots,
|
39
|
+
emit
|
40
|
+
} = _ref;
|
41
|
+
|
39
42
|
var renderTitle = () => {
|
40
43
|
if (slots.title) {
|
41
44
|
return slots.title();
|
package/lib/card/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
:root{--van-card-padding:var(--van-padding-xs) var(--van-padding-md);--van-card-font-size:var(--van-font-size-sm);--van-card-text-color:var(--van-text-color);--van-card-background-color:var(--van-
|
1
|
+
:root{--van-card-padding:var(--van-padding-xs) var(--van-padding-md);--van-card-font-size:var(--van-font-size-sm);--van-card-text-color:var(--van-text-color);--van-card-background-color:var(--van-gray-1);--van-card-thumb-size:88px;--van-card-thumb-border-radius:var(--van-border-radius-lg);--van-card-title-line-height:16px;--van-card-desc-color:var(--van-gray-7);--van-card-desc-line-height:var(--van-line-height-md);--van-card-price-color:var(--van-gray-8);--van-card-origin-price-color:var(--van-text-color-2);--van-card-num-color:var(--van-text-color-2);--van-card-origin-price-font-size:var(--van-font-size-xs);--van-card-price-font-size:var(--van-font-size-sm);--van-card-price-integer-font-size:var(--van-font-size-lg);--van-card-price-font-family:var(--van-price-integer-font-family)}.van-card{position:relative;box-sizing:border-box;padding:var(--van-card-padding);color:var(--van-card-text-color);font-size:var(--van-card-font-size);background:var(--van-card-background-color)}.van-card:not(:first-child){margin-top:var(--van-padding-xs)}.van-card__header{display:flex}.van-card__thumb{position:relative;flex:none;width:var(--van-card-thumb-size);height:var(--van-card-thumb-size);margin-right:var(--van-padding-xs)}.van-card__thumb img{border-radius:var(--van-card-thumb-border-radius)}.van-card__content{position:relative;display:flex;flex:1;flex-direction:column;justify-content:space-between;min-width:0;min-height:var(--van-card-thumb-size)}.van-card__content--centered{justify-content:center}.van-card__desc,.van-card__title{word-wrap:break-word}.van-card__title{max-height:32px;font-weight:var(--van-font-weight-bold);line-height:var(--van-card-title-line-height)}.van-card__desc{max-height:var(--van-card-desc-line-height);color:var(--van-card-desc-color);line-height:var(--van-card-desc-line-height)}.van-card__bottom{line-height:var(--van-line-height-md)}.van-card__price{display:inline-block;color:var(--van-card-price-color);font-weight:var(--van-font-weight-bold);font-size:var(--van-card-price-font-size)}.van-card__price-integer{font-size:var(--van-card-price-integer-font-size);font-family:var(--van-card-price-font-family)}.van-card__price-decimal{font-family:var(--van-card-price-font-family)}.van-card__origin-price{display:inline-block;margin-left:5px;color:var(--van-card-origin-price-color);font-size:var(--van-card-origin-price-font-size);text-decoration:line-through}.van-card__num{float:right;color:var(--van-card-num-color)}.van-card__tag{position:absolute;top:2px;left:0}.van-card__footer{flex:none;text-align:right}.van-card__footer .van-button{margin-left:5px}
|
package/lib/card/index.d.ts
CHANGED
package/lib/card/var.less
CHANGED
@@ -3,15 +3,15 @@
|
|
3
3
|
@card-padding: var(--van-padding-xs) var(--van-padding-md);
|
4
4
|
@card-font-size: var(--van-font-size-sm);
|
5
5
|
@card-text-color: var(--van-text-color);
|
6
|
-
@card-background-color: var(--van-
|
6
|
+
@card-background-color: var(--van-gray-1);
|
7
7
|
@card-thumb-size: 88px;
|
8
8
|
@card-thumb-border-radius: var(--van-border-radius-lg);
|
9
9
|
@card-title-line-height: 16px;
|
10
10
|
@card-desc-color: var(--van-gray-7);
|
11
11
|
@card-desc-line-height: var(--van-line-height-md);
|
12
12
|
@card-price-color: var(--van-gray-8);
|
13
|
-
@card-origin-price-color: var(--van-
|
14
|
-
@card-num-color: var(--van-
|
13
|
+
@card-origin-price-color: var(--van-text-color-2);
|
14
|
+
@card-num-color: var(--van-text-color-2);
|
15
15
|
@card-origin-price-font-size: var(--van-font-size-xs);
|
16
16
|
@card-price-font-size: var(--van-font-size-sm);
|
17
17
|
@card-price-integer-font-size: var(--van-font-size-lg);
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { PropType, ExtractPropTypes } from 'vue';
|
2
2
|
import type { CascaderOption, CascaderFieldNames } from './types';
|
3
|
-
declare const
|
3
|
+
declare const cascaderProps: {
|
4
4
|
title: StringConstructor;
|
5
5
|
options: {
|
6
6
|
type: PropType<CascaderOption[]>;
|
@@ -23,7 +23,7 @@ declare const props: {
|
|
23
23
|
placeholder: StringConstructor;
|
24
24
|
activeColor: StringConstructor;
|
25
25
|
};
|
26
|
-
export declare type CascaderProps = ExtractPropTypes<typeof
|
26
|
+
export declare type CascaderProps = ExtractPropTypes<typeof cascaderProps>;
|
27
27
|
declare const _default: import("vue").DefineComponent<{
|
28
28
|
title: StringConstructor;
|
29
29
|
options: {
|
package/lib/cascader/Cascader.js
CHANGED
@@ -15,7 +15,7 @@ var _icon = require("../icon");
|
|
15
15
|
|
16
16
|
// Components
|
17
17
|
var [name, bem, t] = (0, _utils.createNamespace)('cascader');
|
18
|
-
var
|
18
|
+
var cascaderProps = {
|
19
19
|
title: String,
|
20
20
|
options: (0, _utils.makeArrayProp)(),
|
21
21
|
closeable: _utils.truthProp,
|
@@ -29,13 +29,14 @@ var props = {
|
|
29
29
|
|
30
30
|
var _default = (0, _vue.defineComponent)({
|
31
31
|
name,
|
32
|
-
props,
|
32
|
+
props: cascaderProps,
|
33
33
|
emits: ['close', 'change', 'finish', 'click-tab', 'update:modelValue'],
|
34
34
|
|
35
|
-
setup(props, {
|
36
|
-
|
37
|
-
|
38
|
-
|
35
|
+
setup(props, _ref) {
|
36
|
+
var {
|
37
|
+
slots,
|
38
|
+
emit
|
39
|
+
} = _ref;
|
39
40
|
var tabs = (0, _vue.ref)([]);
|
40
41
|
var activeTab = (0, _vue.ref)(0);
|
41
42
|
var {
|
@@ -153,10 +154,13 @@ var _default = (0, _vue.defineComponent)({
|
|
153
154
|
|
154
155
|
var onClose = () => emit('close');
|
155
156
|
|
156
|
-
var onClickTab =
|
157
|
-
|
158
|
-
|
159
|
-
|
157
|
+
var onClickTab = _ref2 => {
|
158
|
+
var {
|
159
|
+
name,
|
160
|
+
title
|
161
|
+
} = _ref2;
|
162
|
+
return emit('click-tab', name, title);
|
163
|
+
};
|
160
164
|
|
161
165
|
var renderHeader = () => (0, _vue.createVNode)("div", {
|
162
166
|
"class": bem('header')
|
@@ -164,7 +168,7 @@ var _default = (0, _vue.defineComponent)({
|
|
164
168
|
"class": bem('title')
|
165
169
|
}, [slots.title ? slots.title() : props.title]), props.closeable ? (0, _vue.createVNode)(_icon.Icon, {
|
166
170
|
"name": props.closeIcon,
|
167
|
-
"class": bem('close-icon'),
|
171
|
+
"class": [bem('close-icon'), _utils.HAPTICS_FEEDBACK],
|
168
172
|
"onClick": onClose
|
169
173
|
}, null) : null]);
|
170
174
|
|
@@ -207,7 +211,9 @@ var _default = (0, _vue.defineComponent)({
|
|
207
211
|
unselected: !selected
|
208
212
|
})
|
209
213
|
}, {
|
210
|
-
default: () => [
|
214
|
+
default: () => [slots['options-top'] ? slots['options-top']({
|
215
|
+
tabIndex: activeTab.value
|
216
|
+
}) : null, renderOptions(options, selected, tabIndex)]
|
211
217
|
});
|
212
218
|
};
|
213
219
|
|
package/lib/cascader/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
:root{--van-cascader-header-height:48px;--van-cascader-header-padding:0 var(--van-padding-md);--van-cascader-title-font-size:var(--van-font-size-lg);--van-cascader-title-line-height:20px;--van-cascader-close-icon-size:22px;--van-cascader-close-icon-color:var(--van-gray-5);--van-cascader-
|
1
|
+
:root{--van-cascader-header-height:48px;--van-cascader-header-padding:0 var(--van-padding-md);--van-cascader-title-font-size:var(--van-font-size-lg);--van-cascader-title-line-height:20px;--van-cascader-close-icon-size:22px;--van-cascader-close-icon-color:var(--van-gray-5);--van-cascader-selected-icon-size:18px;--van-cascader-tabs-height:48px;--van-cascader-active-color:var(--van-danger-color);--van-cascader-options-height:384px;--van-cascader-option-disabled-color:var(--van-text-color-3);--van-cascader-tab-color:var(--van-text-color);--van-cascader-unselected-tab-color:var(--van-text-color-2)}.van-cascader__header{display:flex;align-items:center;justify-content:space-between;height:var(--van-cascader-header-height);padding:var(--van-cascader-header-padding)}.van-cascader__title{font-weight:var(--van-font-weight-bold);font-size:var(--van-cascader-title-font-size);line-height:var(--van-cascader-title-line-height)}.van-cascader__close-icon{color:var(--van-cascader-close-icon-color);font-size:var(--van-cascader-close-icon-size)}.van-cascader__tabs .van-tab{flex:none;padding:0 10px}.van-cascader__tabs.van-tabs--line .van-tabs__wrap{height:var(--van-cascader-tabs-height)}.van-cascader__tabs .van-tabs__nav--complete{padding-right:6px;padding-left:6px}.van-cascader__tab{color:var(--van-cascader-tab-color);font-weight:var(--van-font-weight-bold)}.van-cascader__tab--unselected{color:var(--van-cascader-unselected-tab-color);font-weight:400}.van-cascader__option{display:flex;align-items:center;justify-content:space-between;padding:10px var(--van-padding-md);font-size:var(--van-font-size-md);line-height:var(--van-line-height-md);cursor:pointer}.van-cascader__option:active{background-color:var(--van-active-color)}.van-cascader__option--selected{color:var(--van-cascader-active-color);font-weight:var(--van-font-weight-bold)}.van-cascader__option--disabled{color:var(--van-cascader-option-disabled-color);cursor:not-allowed}.van-cascader__option--disabled:active{background-color:transparent}.van-cascader__selected-icon{font-size:var(--van-cascader-selected-icon-size)}.van-cascader__options{box-sizing:border-box;height:var(--van-cascader-options-height);padding-top:6px;overflow-y:auto;-webkit-overflow-scrolling:touch}
|
package/lib/cascader/index.d.ts
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
import { CascaderProps } from './Cascader';
|
2
1
|
export declare const Cascader: import("../utils").WithInstall<import("vue").DefineComponent<{
|
3
2
|
title: StringConstructor;
|
4
3
|
options: {
|
@@ -55,5 +54,5 @@ export declare const Cascader: import("../utils").WithInstall<import("vue").Defi
|
|
55
54
|
swipeable: boolean;
|
56
55
|
}>>;
|
57
56
|
export default Cascader;
|
58
|
-
export type { CascaderProps };
|
57
|
+
export type { CascaderProps } from './Cascader';
|
59
58
|
export type { CascaderOption, CascaderFieldNames } from './types';
|
package/lib/cascader/index.less
CHANGED
@@ -7,7 +7,6 @@
|
|
7
7
|
--van-cascader-title-line-height: @cascader-title-line-height;
|
8
8
|
--van-cascader-close-icon-size: @cascader-close-icon-size;
|
9
9
|
--van-cascader-close-icon-color: @cascader-close-icon-color;
|
10
|
-
--van-cascader-close-icon-active-color: @cascader-close-icon-active-color;
|
11
10
|
--van-cascader-selected-icon-size: @cascader-selected-icon-size;
|
12
11
|
--van-cascader-tabs-height: @cascader-tabs-height;
|
13
12
|
--van-cascader-active-color: @cascader-active-color;
|
@@ -35,10 +34,6 @@
|
|
35
34
|
&__close-icon {
|
36
35
|
color: var(--van-cascader-close-icon-color);
|
37
36
|
font-size: var(--van-cascader-close-icon-size);
|
38
|
-
|
39
|
-
&:active {
|
40
|
-
color: var(--van-cascader-close-icon-active-color);
|
41
|
-
}
|
42
37
|
}
|
43
38
|
|
44
39
|
&__tabs {
|
package/lib/cascader/var.less
CHANGED
@@ -6,11 +6,10 @@
|
|
6
6
|
@cascader-title-line-height: 20px;
|
7
7
|
@cascader-close-icon-size: 22px;
|
8
8
|
@cascader-close-icon-color: var(--van-gray-5);
|
9
|
-
@cascader-close-icon-active-color: var(--van-gray-6);
|
10
9
|
@cascader-selected-icon-size: 18px;
|
11
10
|
@cascader-tabs-height: 48px;
|
12
11
|
@cascader-active-color: var(--van-danger-color);
|
13
12
|
@cascader-options-height: 384px;
|
14
|
-
@cascader-option-disabled-color: var(--van-
|
13
|
+
@cascader-option-disabled-color: var(--van-text-color-3);
|
15
14
|
@cascader-tab-color: var(--van-text-color);
|
16
|
-
@cascader-unselected-tab-color: var(--van-
|
15
|
+
@cascader-unselected-tab-color: var(--van-text-color-2);
|