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/es/picker/var.less
CHANGED
@@ -1,16 +1,22 @@
|
|
1
1
|
@import '../style/var.less';
|
2
2
|
|
3
|
-
@picker-background-color: var(--van-
|
3
|
+
@picker-background-color: var(--van-background-color-light);
|
4
4
|
@picker-toolbar-height: 44px;
|
5
5
|
@picker-title-font-size: var(--van-font-size-lg);
|
6
6
|
@picker-title-line-height: var(--van-line-height-md);
|
7
7
|
@picker-action-padding: 0 var(--van-padding-md);
|
8
8
|
@picker-action-font-size: var(--van-font-size-md);
|
9
9
|
@picker-confirm-action-color: var(--van-text-link-color);
|
10
|
-
@picker-cancel-action-color: var(--van-
|
10
|
+
@picker-cancel-action-color: var(--van-text-color-2);
|
11
11
|
@picker-option-padding: 0 var(--van-padding-base);
|
12
12
|
@picker-option-font-size: var(--van-font-size-lg);
|
13
|
-
@picker-option-text-color: var(--van-
|
13
|
+
@picker-option-text-color: var(--van-text-color);
|
14
14
|
@picker-option-disabled-opacity: 0.3;
|
15
|
+
@picker-mask-color: linear-gradient(
|
16
|
+
180deg,
|
17
|
+
rgba(255, 255, 255, 0.9),
|
18
|
+
rgba(255, 255, 255, 0.4)
|
19
|
+
),
|
20
|
+
linear-gradient(0deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.4));
|
15
21
|
@picker-loading-icon-color: var(--van-primary-color);
|
16
22
|
@picker-loading-mask-color: rgba(255, 255, 255, 0.9);
|
package/es/popover/Popover.d.ts
CHANGED
@@ -1,15 +1,54 @@
|
|
1
|
-
import { PropType, CSSProperties } from 'vue';
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
1
|
+
import { PropType, CSSProperties, ExtractPropTypes } from 'vue';
|
2
|
+
import { PopoverTheme, PopoverAction, PopoverTrigger, PopoverPlacement } from './types';
|
3
|
+
declare const popoverProps: {
|
4
|
+
show: BooleanConstructor;
|
5
|
+
theme: {
|
6
|
+
type: PropType<PopoverTheme>;
|
7
|
+
default: PopoverTheme;
|
8
|
+
};
|
9
|
+
overlay: BooleanConstructor;
|
10
|
+
actions: {
|
11
|
+
type: PropType<PopoverAction[]>;
|
12
|
+
default: () => never[];
|
13
|
+
};
|
14
|
+
trigger: {
|
15
|
+
type: PropType<PopoverTrigger>;
|
16
|
+
default: PopoverTrigger;
|
17
|
+
};
|
18
|
+
duration: (NumberConstructor | StringConstructor)[];
|
19
|
+
showArrow: {
|
20
|
+
type: BooleanConstructor;
|
21
|
+
default: true;
|
22
|
+
};
|
23
|
+
placement: {
|
24
|
+
type: PropType<PopoverPlacement>;
|
25
|
+
default: PopoverPlacement;
|
26
|
+
};
|
27
|
+
iconPrefix: StringConstructor;
|
28
|
+
overlayClass: PropType<unknown>;
|
29
|
+
overlayStyle: PropType<CSSProperties>;
|
30
|
+
closeOnClickAction: {
|
31
|
+
type: BooleanConstructor;
|
32
|
+
default: true;
|
33
|
+
};
|
34
|
+
closeOnClickOverlay: {
|
35
|
+
type: BooleanConstructor;
|
36
|
+
default: true;
|
37
|
+
};
|
38
|
+
closeOnClickOutside: {
|
39
|
+
type: BooleanConstructor;
|
40
|
+
default: true;
|
41
|
+
};
|
42
|
+
offset: {
|
43
|
+
type: PropType<[number, number]>;
|
44
|
+
default: () => number[];
|
45
|
+
};
|
46
|
+
teleport: {
|
47
|
+
type: PropType<string | import("vue").RendererElement | null | undefined>;
|
48
|
+
default: string;
|
49
|
+
};
|
12
50
|
};
|
51
|
+
export declare type PopoverProps = ExtractPropTypes<typeof popoverProps>;
|
13
52
|
declare const _default: import("vue").DefineComponent<{
|
14
53
|
show: BooleanConstructor;
|
15
54
|
theme: {
|
package/es/popover/Popover.js
CHANGED
@@ -7,42 +7,45 @@ import { pick, extend, truthProp, numericProp, unknownProp, BORDER_BOTTOM, makeS
|
|
7
7
|
import { useClickAway } from '@vant/use'; // Components
|
8
8
|
|
9
9
|
import { Icon } from '../icon';
|
10
|
-
import { Popup } from '../popup';
|
10
|
+
import { Popup } from '../popup'; // Types
|
11
|
+
|
11
12
|
var [name, bem] = createNamespace('popover');
|
12
13
|
var popupProps = ['show', 'overlay', 'duration', 'teleport', 'overlayStyle', 'overlayClass', 'closeOnClickOverlay'];
|
14
|
+
var popoverProps = {
|
15
|
+
show: Boolean,
|
16
|
+
theme: makeStringProp('light'),
|
17
|
+
overlay: Boolean,
|
18
|
+
actions: makeArrayProp(),
|
19
|
+
trigger: makeStringProp('click'),
|
20
|
+
duration: numericProp,
|
21
|
+
showArrow: truthProp,
|
22
|
+
placement: makeStringProp('bottom'),
|
23
|
+
iconPrefix: String,
|
24
|
+
overlayClass: unknownProp,
|
25
|
+
overlayStyle: Object,
|
26
|
+
closeOnClickAction: truthProp,
|
27
|
+
closeOnClickOverlay: truthProp,
|
28
|
+
closeOnClickOutside: truthProp,
|
29
|
+
offset: {
|
30
|
+
type: Array,
|
31
|
+
default: () => [0, 8]
|
32
|
+
},
|
33
|
+
teleport: {
|
34
|
+
type: [String, Object],
|
35
|
+
default: 'body'
|
36
|
+
}
|
37
|
+
};
|
13
38
|
export default defineComponent({
|
14
39
|
name,
|
15
|
-
props:
|
16
|
-
show: Boolean,
|
17
|
-
theme: makeStringProp('light'),
|
18
|
-
overlay: Boolean,
|
19
|
-
actions: makeArrayProp(),
|
20
|
-
trigger: makeStringProp('click'),
|
21
|
-
duration: numericProp,
|
22
|
-
showArrow: truthProp,
|
23
|
-
placement: makeStringProp('bottom'),
|
24
|
-
iconPrefix: String,
|
25
|
-
overlayClass: unknownProp,
|
26
|
-
overlayStyle: Object,
|
27
|
-
closeOnClickAction: truthProp,
|
28
|
-
closeOnClickOverlay: truthProp,
|
29
|
-
closeOnClickOutside: truthProp,
|
30
|
-
offset: {
|
31
|
-
type: Array,
|
32
|
-
default: () => [0, 8]
|
33
|
-
},
|
34
|
-
teleport: {
|
35
|
-
type: [String, Object],
|
36
|
-
default: 'body'
|
37
|
-
}
|
38
|
-
},
|
40
|
+
props: popoverProps,
|
39
41
|
emits: ['select', 'touchstart', 'update:show'],
|
40
42
|
|
41
|
-
setup(props, {
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
43
|
+
setup(props, _ref) {
|
44
|
+
var {
|
45
|
+
emit,
|
46
|
+
slots,
|
47
|
+
attrs
|
48
|
+
} = _ref;
|
46
49
|
var popper;
|
47
50
|
var wrapperRef = ref();
|
48
51
|
var popoverRef = ref();
|
package/es/popover/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
:root{--van-popover-arrow-size:6px;--van-popover-border-radius:var(--van-border-radius-lg);--van-popover-action-width:128px;--van-popover-action-height:44px;--van-popover-action-font-size:var(--van-font-size-md);--van-popover-action-line-height:var(--van-line-height-md);--van-popover-action-icon-size:20px;--van-popover-light-text-color:var(--van-text-color);--van-popover-light-background-color:var(--van-
|
1
|
+
:root{--van-popover-arrow-size:6px;--van-popover-border-radius:var(--van-border-radius-lg);--van-popover-action-width:128px;--van-popover-action-height:44px;--van-popover-action-font-size:var(--van-font-size-md);--van-popover-action-line-height:var(--van-line-height-md);--van-popover-action-icon-size:20px;--van-popover-light-text-color:var(--van-text-color);--van-popover-light-background-color:var(--van-background-color-light);--van-popover-light-action-disabled-text-color:var(--van-text-color-3);--van-popover-dark-text-color:var(--van-white);--van-popover-dark-background-color:#4a4a4a;--van-popover-dark-action-disabled-text-color:var(--van-text-color-2)}.van-popover{position:absolute;overflow:visible;background-color:transparent;transition:opacity .15s,transform .15s}.van-popover__wrapper{display:inline-block}.van-popover__arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid;border-width:var(--van-popover-arrow-size)}.van-popover__content{overflow:hidden;border-radius:var(--van-popover-border-radius)}.van-popover__action{position:relative;display:flex;align-items:center;box-sizing:border-box;width:var(--van-popover-action-width);height:var(--van-popover-action-height);padding:0 var(--van-padding-md);font-size:var(--van-popover-action-font-size);line-height:var(--van-line-height-md);cursor:pointer}.van-popover__action:last-child .van-popover__action-text::after{display:none}.van-popover__action-text{display:flex;flex:1;align-items:center;justify-content:center;height:100%}.van-popover__action-icon{margin-right:var(--van-padding-xs);font-size:var(--van-popover-action-icon-size)}.van-popover__action--with-icon .van-popover__action-text{justify-content:flex-start}.van-popover[data-popper-placement^=top] .van-popover__arrow{bottom:0;border-top-color:currentColor;border-bottom-width:0;transform:translate(-50%,100%)}.van-popover[data-popper-placement=top]{transform-origin:50% 100%}.van-popover[data-popper-placement=top] .van-popover__arrow{left:50%}.van-popover[data-popper-placement=top-start]{transform-origin:0 100%}.van-popover[data-popper-placement=top-start] .van-popover__arrow{left:var(--van-padding-md)}.van-popover[data-popper-placement=top-end]{transform-origin:100% 100%}.van-popover[data-popper-placement=top-end] .van-popover__arrow{right:var(--van-padding-md)}.van-popover[data-popper-placement^=left] .van-popover__arrow{right:0;border-right-width:0;border-left-color:currentColor;transform:translate(100%,-50%)}.van-popover[data-popper-placement=left]{transform-origin:100% 50%}.van-popover[data-popper-placement=left] .van-popover__arrow{top:50%}.van-popover[data-popper-placement=left-start]{transform-origin:100% 0}.van-popover[data-popper-placement=left-start] .van-popover__arrow{top:var(--van-padding-md)}.van-popover[data-popper-placement=left-end]{transform-origin:100% 100%}.van-popover[data-popper-placement=left-end] .van-popover__arrow{bottom:var(--van-padding-md)}.van-popover[data-popper-placement^=right] .van-popover__arrow{left:0;border-right-color:currentColor;border-left-width:0;transform:translate(-100%,-50%)}.van-popover[data-popper-placement=right]{transform-origin:0 50%}.van-popover[data-popper-placement=right] .van-popover__arrow{top:50%}.van-popover[data-popper-placement=right-start]{transform-origin:0 0}.van-popover[data-popper-placement=right-start] .van-popover__arrow{top:var(--van-padding-md)}.van-popover[data-popper-placement=right-end]{transform-origin:0 100%}.van-popover[data-popper-placement=right-end] .van-popover__arrow{bottom:var(--van-padding-md)}.van-popover[data-popper-placement^=bottom] .van-popover__arrow{top:0;border-top-width:0;border-bottom-color:currentColor;transform:translate(-50%,-100%)}.van-popover[data-popper-placement=bottom]{transform-origin:50% 0}.van-popover[data-popper-placement=bottom] .van-popover__arrow{left:50%}.van-popover[data-popper-placement=bottom-start]{transform-origin:0 0}.van-popover[data-popper-placement=bottom-start] .van-popover__arrow{left:var(--van-padding-md)}.van-popover[data-popper-placement=bottom-end]{transform-origin:100% 0}.van-popover[data-popper-placement=bottom-end] .van-popover__arrow{right:var(--van-padding-md)}.van-popover--light{color:var(--van-popover-light-text-color)}.van-popover--light .van-popover__content{background:var(--van-popover-light-background-color);box-shadow:0 2px 12px rgba(50,50,51,.12)}.van-popover--light .van-popover__arrow{color:var(--van-popover-light-background-color)}.van-popover--light .van-popover__action:active{background-color:var(--van-active-color)}.van-popover--light .van-popover__action--disabled{color:var(--van-popover-light-action-disabled-text-color);cursor:not-allowed}.van-popover--light .van-popover__action--disabled:active{background-color:transparent}.van-popover--dark{color:var(--van-popover-dark-text-color)}.van-popover--dark .van-popover__content{background:var(--van-popover-dark-background-color)}.van-popover--dark .van-popover__arrow{color:var(--van-popover-dark-background-color)}.van-popover--dark .van-popover__action:active{background-color:rgba(0,0,0,.2)}.van-popover--dark .van-popover__action--disabled{color:var(--van-popover-dark-action-disabled-text-color)}.van-popover--dark .van-popover__action--disabled:active{background-color:transparent}.van-popover--dark .van-popover__action-text::after{border-color:var(--van-gray-7)}.van-popover-zoom-enter-from,.van-popover-zoom-leave-active{transform:scale(.8);opacity:0}.van-popover-zoom-enter-active{transition-timing-function:var(--van-animation-timing-function-enter)}.van-popover-zoom-leave-active{transition-timing-function:var(--van-animation-timing-function-leave)}
|
package/es/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
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
package/es/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/es/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/es/popup/Popup.js
CHANGED
@@ -2,7 +2,7 @@ import { Fragment as _Fragment, withDirectives as _withDirectives, mergeProps as
|
|
2
2
|
import { ref, watch, provide, Teleport, computed, onMounted, Transition, onActivated, onDeactivated, defineComponent } from 'vue'; // Utils
|
3
3
|
|
4
4
|
import { popupSharedProps } from './shared';
|
5
|
-
import { isDef, extend, makeStringProp, callInterceptor, createNamespace } from '../utils'; // Composables
|
5
|
+
import { isDef, extend, makeStringProp, callInterceptor, createNamespace, HAPTICS_FEEDBACK } from '../utils'; // Composables
|
6
6
|
|
7
7
|
import { useEventListener } from '@vant/use';
|
8
8
|
import { useExpose } from '../composables/use-expose';
|
@@ -12,29 +12,31 @@ import { POPUP_TOGGLE_KEY } from '../composables/on-popup-reopen'; // Components
|
|
12
12
|
|
13
13
|
import { Icon } from '../icon';
|
14
14
|
import { Overlay } from '../overlay';
|
15
|
+
var popupProps = extend({}, popupSharedProps, {
|
16
|
+
round: Boolean,
|
17
|
+
position: makeStringProp('center'),
|
18
|
+
closeIcon: makeStringProp('cross'),
|
19
|
+
closeable: Boolean,
|
20
|
+
transition: String,
|
21
|
+
iconPrefix: String,
|
22
|
+
closeOnPopstate: Boolean,
|
23
|
+
closeIconPosition: makeStringProp('top-right'),
|
24
|
+
safeAreaInsetBottom: Boolean
|
25
|
+
});
|
15
26
|
var [name, bem] = createNamespace('popup');
|
16
27
|
var globalZIndex = 2000;
|
17
28
|
export default defineComponent({
|
18
29
|
name,
|
19
30
|
inheritAttrs: false,
|
20
|
-
props:
|
21
|
-
round: Boolean,
|
22
|
-
position: makeStringProp('center'),
|
23
|
-
closeIcon: makeStringProp('cross'),
|
24
|
-
closeable: Boolean,
|
25
|
-
transition: String,
|
26
|
-
iconPrefix: String,
|
27
|
-
closeOnPopstate: Boolean,
|
28
|
-
closeIconPosition: makeStringProp('top-right'),
|
29
|
-
safeAreaInsetBottom: Boolean
|
30
|
-
}),
|
31
|
+
props: popupProps,
|
31
32
|
emits: ['open', 'close', 'click', 'opened', 'closed', 'update:show', 'click-overlay', 'click-close-icon'],
|
32
33
|
|
33
|
-
setup(props, {
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
34
|
+
setup(props, _ref) {
|
35
|
+
var {
|
36
|
+
emit,
|
37
|
+
attrs,
|
38
|
+
slots
|
39
|
+
} = _ref;
|
38
40
|
var opened;
|
39
41
|
var shouldReopen;
|
40
42
|
var zIndex = ref();
|
@@ -112,7 +114,7 @@ export default defineComponent({
|
|
112
114
|
"role": "button",
|
113
115
|
"tabindex": 0,
|
114
116
|
"name": props.closeIcon,
|
115
|
-
"class": bem('close-icon', props.closeIconPosition),
|
117
|
+
"class": [bem('close-icon', props.closeIconPosition), HAPTICS_FEEDBACK],
|
116
118
|
"classPrefix": props.iconPrefix,
|
117
119
|
"onClick": onClickCloseIcon
|
118
120
|
}, null);
|
package/es/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/es/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/es/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/es/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/es/progress/Progress.js
CHANGED
@@ -2,7 +2,7 @@ import { createVNode as _createVNode } from "vue";
|
|
2
2
|
import { computed, defineComponent } from 'vue';
|
3
3
|
import { addUnit, truthProp, numericProp, createNamespace } from '../utils';
|
4
4
|
var [name, bem] = createNamespace('progress');
|
5
|
-
var
|
5
|
+
var progressProps = {
|
6
6
|
color: String,
|
7
7
|
inactive: Boolean,
|
8
8
|
pivotText: String,
|
@@ -19,7 +19,7 @@ var props = {
|
|
19
19
|
};
|
20
20
|
export default defineComponent({
|
21
21
|
name,
|
22
|
-
props,
|
22
|
+
props: progressProps,
|
23
23
|
|
24
24
|
setup(props) {
|
25
25
|
var background = 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;
|
@@ -10,26 +10,28 @@ import { Loading } from '../loading';
|
|
10
10
|
var [name, bem, t] = createNamespace('pull-refresh');
|
11
11
|
var DEFAULT_HEAD_HEIGHT = 50;
|
12
12
|
var TEXT_STATUS = ['pulling', 'loosing', 'success'];
|
13
|
+
var pullRefreshProps = {
|
14
|
+
disabled: Boolean,
|
15
|
+
modelValue: Boolean,
|
16
|
+
headHeight: makeNumericProp(DEFAULT_HEAD_HEIGHT),
|
17
|
+
successText: String,
|
18
|
+
pullingText: String,
|
19
|
+
loosingText: String,
|
20
|
+
loadingText: String,
|
21
|
+
pullDistance: numericProp,
|
22
|
+
successDuration: makeNumericProp(500),
|
23
|
+
animationDuration: makeNumericProp(300)
|
24
|
+
};
|
13
25
|
export default defineComponent({
|
14
26
|
name,
|
15
|
-
props:
|
16
|
-
disabled: Boolean,
|
17
|
-
modelValue: Boolean,
|
18
|
-
headHeight: makeNumericProp(DEFAULT_HEAD_HEIGHT),
|
19
|
-
successText: String,
|
20
|
-
pullingText: String,
|
21
|
-
loosingText: String,
|
22
|
-
loadingText: String,
|
23
|
-
pullDistance: numericProp,
|
24
|
-
successDuration: makeNumericProp(500),
|
25
|
-
animationDuration: makeNumericProp(300)
|
26
|
-
},
|
27
|
+
props: pullRefreshProps,
|
27
28
|
emits: ['refresh', 'update:modelValue'],
|
28
29
|
|
29
|
-
setup(props, {
|
30
|
-
|
31
|
-
|
32
|
-
|
30
|
+
setup(props, _ref) {
|
31
|
+
var {
|
32
|
+
emit,
|
33
|
+
slots
|
34
|
+
} = _ref;
|
33
35
|
var reachTop;
|
34
36
|
var root = ref();
|
35
37
|
var scrollParent = 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/es/pull-refresh/var.less
CHANGED
package/es/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/es/radio/Radio.js
CHANGED
@@ -13,10 +13,11 @@ export default defineComponent({
|
|
13
13
|
props: checkerProps,
|
14
14
|
emits: ['update:modelValue'],
|
15
15
|
|
16
|
-
setup(props, {
|
17
|
-
|
18
|
-
|
19
|
-
|
16
|
+
setup(props, _ref) {
|
17
|
+
var {
|
18
|
+
emit,
|
19
|
+
slots
|
20
|
+
} = _ref;
|
20
21
|
var {
|
21
22
|
parent
|
22
23
|
} = useParent(RADIO_KEY);
|
package/es/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)}
|