vant 4.0.0-beta.1 → 4.0.0-rc.0
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/changelog.generated.md +46 -42
- package/es/action-bar/ActionBar.d.ts +1 -1
- package/es/action-bar/index.d.ts +1 -1
- package/es/action-bar-button/ActionBarButton.d.ts +1 -1
- package/es/action-bar-button/index.d.ts +1 -1
- package/es/action-bar-icon/ActionBarIcon.d.ts +1 -1
- package/es/action-bar-icon/index.d.ts +1 -1
- package/es/address-edit/style/index.mjs +7 -1
- package/es/area/Area.d.ts +6 -3
- package/es/area/index.d.ts +4 -2
- package/es/area/style/index.mjs +7 -0
- package/es/area/utils.mjs +9 -2
- package/es/badge/Badge.d.ts +1 -1
- package/es/badge/index.d.ts +1 -1
- package/es/calendar/Calendar.mjs +4 -3
- package/es/calendar/style/index.mjs +7 -1
- package/es/cell/Cell.d.ts +1 -1
- package/es/cell/index.d.ts +1 -1
- package/es/cell-group/CellGroup.d.ts +1 -1
- package/es/cell-group/index.d.ts +1 -1
- package/es/col/Col.d.ts +1 -1
- package/es/col/index.d.ts +1 -1
- package/es/collapse-item/CollapseItem.d.ts +1 -1
- package/es/collapse-item/index.d.ts +1 -1
- package/es/composables/use-lazy-render.mjs +9 -5
- package/es/composables/use-lock-scroll.mjs +4 -1
- package/es/composables/use-visibility-change.mjs +6 -3
- package/es/config-provider/ConfigProvider.d.ts +1 -1
- package/es/config-provider/index.d.ts +1 -1
- package/es/coupon/Coupon.d.ts +1 -1
- package/es/coupon/index.d.ts +1 -1
- package/es/coupon/utils.mjs +3 -1
- package/es/coupon-cell/CouponCell.d.ts +1 -1
- package/es/coupon-cell/index.d.ts +1 -1
- package/es/coupon-list/style/index.mjs +3 -3
- package/es/date-picker/DatePicker.d.ts +6 -3
- package/es/date-picker/DatePicker.mjs +10 -10
- package/es/date-picker/index.d.ts +4 -2
- package/es/date-picker/style/index.mjs +7 -0
- package/es/date-picker/utils.d.ts +2 -1
- package/es/divider/Divider.d.ts +1 -1
- package/es/divider/index.d.ts +1 -1
- package/es/dropdown-item/DropdownItem.d.ts +2 -2
- package/es/dropdown-item/index.d.ts +2 -2
- package/es/dropdown-menu/DropdownMenu.d.ts +1 -1
- package/es/dropdown-menu/index.d.ts +1 -1
- package/es/empty/Empty.d.ts +1 -1
- package/es/empty/index.d.ts +1 -1
- package/es/field/Field.mjs +10 -3
- package/es/grid/Grid.d.ts +1 -1
- package/es/grid/index.d.ts +1 -1
- package/es/grid-item/GridItem.d.ts +1 -1
- package/es/grid-item/index.d.ts +1 -1
- package/es/icon/Icon.d.ts +1 -1
- package/es/icon/index.d.ts +1 -1
- package/es/image-preview/ImagePreviewItem.mjs +10 -2
- package/es/index-anchor/IndexAnchor.d.ts +1 -1
- package/es/index-anchor/index.d.ts +1 -1
- package/es/index-bar/IndexBar.mjs +7 -3
- package/es/index.d.ts +2 -1
- package/es/index.mjs +4 -1
- package/es/lazyload/vue-lazyload/lazy-component.mjs +4 -1
- package/es/lazyload/vue-lazyload/lazy-container.mjs +11 -7
- package/es/lazyload/vue-lazyload/lazy-image.mjs +24 -14
- package/es/lazyload/vue-lazyload/lazy.mjs +11 -3
- package/es/lazyload/vue-lazyload/listener.mjs +45 -33
- package/es/lazyload/vue-lazyload/util.mjs +4 -1
- package/es/loading/Loading.d.ts +1 -1
- package/es/loading/index.d.ts +1 -1
- package/es/number-keyboard/NumberKeyboard.d.ts +1 -1
- package/es/number-keyboard/index.d.ts +1 -1
- package/es/overlay/Overlay.d.ts +1 -1
- package/es/overlay/Overlay.mjs +13 -6
- package/es/overlay/index.d.ts +1 -1
- package/es/picker/Picker.d.ts +8 -4
- package/es/picker/Picker.mjs +43 -67
- package/es/picker/PickerColumn.mjs +6 -2
- package/es/picker/PickerToolbar.d.ts +21 -0
- package/es/picker/PickerToolbar.mjs +59 -0
- package/es/picker/index.d.ts +4 -2
- package/es/picker/style/index.mjs +7 -0
- package/es/picker/utils.d.ts +2 -0
- package/es/picker/utils.mjs +14 -7
- package/es/picker-group/PickerGroup.d.ts +39 -0
- package/es/picker-group/PickerGroup.mjs +57 -0
- package/es/picker-group/index.css +1 -0
- package/es/picker-group/index.d.ts +32 -0
- package/es/picker-group/index.mjs +8 -0
- package/es/picker-group/style/index.d.ts +1 -0
- package/es/picker-group/style/index.mjs +9 -0
- package/es/popup/Popup.d.ts +2 -2
- package/es/popup/index.d.ts +2 -2
- package/es/popup/shared.mjs +3 -1
- package/es/progress/Progress.d.ts +1 -1
- package/es/progress/index.d.ts +1 -1
- package/es/rate/Rate.mjs +5 -3
- package/es/row/Row.d.ts +1 -1
- package/es/row/index.d.ts +1 -1
- package/es/skeleton/Skeleton.d.ts +1 -1
- package/es/skeleton/index.d.ts +1 -1
- package/es/slider/Slider.mjs +6 -2
- package/es/space/Space.d.ts +1 -1
- package/es/space/index.d.ts +1 -1
- package/es/step/Step.d.ts +1 -1
- package/es/step/index.d.ts +1 -1
- package/es/swipe/Swipe.mjs +13 -6
- package/es/swipe-cell/SwipeCell.d.ts +2 -2
- package/es/swipe-cell/SwipeCell.mjs +4 -2
- package/es/swipe-cell/index.d.ts +2 -2
- package/es/swipe-item/SwipeItem.d.ts +1 -1
- package/es/swipe-item/index.d.ts +1 -1
- package/es/tab/Tab.d.ts +1 -1
- package/es/tab/index.d.ts +1 -1
- package/es/tabs/TabsTitle.d.ts +1 -1
- package/es/time-picker/TimePicker.d.ts +6 -3
- package/es/time-picker/index.d.ts +4 -2
- package/es/time-picker/style/index.mjs +7 -0
- package/es/utils/create.mjs +8 -2
- package/es/utils/with-install.d.ts +2 -2
- package/es/utils/with-install.mjs +4 -2
- package/lib/action-bar/ActionBar.d.ts +1 -1
- package/lib/action-bar/index.d.ts +1 -1
- package/lib/action-bar/index.js +4 -1
- package/lib/action-bar-button/ActionBarButton.d.ts +1 -1
- package/lib/action-bar-button/index.d.ts +1 -1
- package/lib/action-bar-button/index.js +4 -1
- package/lib/action-bar-icon/ActionBarIcon.d.ts +1 -1
- package/lib/action-bar-icon/index.d.ts +1 -1
- package/lib/action-bar-icon/index.js +4 -1
- package/lib/action-sheet/index.js +4 -1
- package/lib/address-edit/AddressEdit.js +4 -1
- package/lib/address-edit/index.js +4 -1
- package/lib/address-edit/style/index.js +7 -1
- package/lib/address-list/AddressList.js +4 -1
- package/lib/address-list/index.js +4 -1
- package/lib/area/Area.d.ts +6 -3
- package/lib/area/index.d.ts +4 -2
- package/lib/area/index.js +4 -1
- package/lib/area/style/index.js +7 -0
- package/lib/area/utils.js +9 -2
- package/lib/badge/Badge.d.ts +1 -1
- package/lib/badge/index.d.ts +1 -1
- package/lib/badge/index.js +4 -1
- package/lib/button/index.js +4 -1
- package/lib/calendar/Calendar.js +8 -4
- package/lib/calendar/CalendarMonth.js +4 -1
- package/lib/calendar/index.js +4 -1
- package/lib/calendar/style/index.js +7 -1
- package/lib/card/index.js +4 -1
- package/lib/cascader/index.js +4 -1
- package/lib/cell/Cell.d.ts +1 -1
- package/lib/cell/index.d.ts +1 -1
- package/lib/cell/index.js +4 -1
- package/lib/cell-group/CellGroup.d.ts +1 -1
- package/lib/cell-group/index.d.ts +1 -1
- package/lib/cell-group/index.js +4 -1
- package/lib/checkbox/Checkbox.js +4 -1
- package/lib/checkbox/index.js +4 -1
- package/lib/checkbox-group/index.js +4 -1
- package/lib/circle/index.js +4 -1
- package/lib/col/Col.d.ts +1 -1
- package/lib/col/index.d.ts +1 -1
- package/lib/col/index.js +4 -1
- package/lib/collapse/index.js +4 -1
- package/lib/collapse-item/CollapseItem.d.ts +1 -1
- package/lib/collapse-item/index.d.ts +1 -1
- package/lib/collapse-item/index.js +4 -1
- package/lib/composables/use-lazy-render.js +9 -5
- package/lib/composables/use-lock-scroll.js +4 -1
- package/lib/composables/use-visibility-change.js +6 -3
- package/lib/config-provider/ConfigProvider.d.ts +1 -1
- package/lib/config-provider/index.d.ts +1 -1
- package/lib/config-provider/index.js +4 -1
- package/lib/contact-card/index.js +4 -1
- package/lib/contact-edit/index.js +4 -1
- package/lib/contact-list/index.js +4 -1
- package/lib/count-down/index.js +4 -1
- package/lib/coupon/Coupon.d.ts +1 -1
- package/lib/coupon/index.d.ts +1 -1
- package/lib/coupon/index.js +4 -1
- package/lib/coupon/utils.js +3 -1
- package/lib/coupon-cell/CouponCell.d.ts +1 -1
- package/lib/coupon-cell/index.d.ts +1 -1
- package/lib/coupon-cell/index.js +4 -1
- package/lib/coupon-list/index.js +4 -1
- package/lib/coupon-list/style/index.js +3 -3
- package/lib/date-picker/DatePicker.d.ts +6 -3
- package/lib/date-picker/DatePicker.js +10 -10
- package/lib/date-picker/index.d.ts +4 -2
- package/lib/date-picker/index.js +4 -1
- package/lib/date-picker/style/index.js +7 -0
- package/lib/date-picker/utils.d.ts +2 -1
- package/lib/dialog/function-call.js +4 -1
- package/lib/dialog/index.js +4 -1
- package/lib/divider/Divider.d.ts +1 -1
- package/lib/divider/index.d.ts +1 -1
- package/lib/divider/index.js +4 -1
- package/lib/dropdown-item/DropdownItem.d.ts +2 -2
- package/lib/dropdown-item/index.d.ts +2 -2
- package/lib/dropdown-item/index.js +4 -1
- package/lib/dropdown-menu/DropdownMenu.d.ts +1 -1
- package/lib/dropdown-menu/index.d.ts +1 -1
- package/lib/dropdown-menu/index.js +4 -1
- package/lib/empty/Empty.d.ts +1 -1
- package/lib/empty/index.d.ts +1 -1
- package/lib/empty/index.js +4 -1
- package/lib/field/Field.js +9 -2
- package/lib/field/index.js +4 -1
- package/lib/form/index.js +4 -1
- package/lib/grid/Grid.d.ts +1 -1
- package/lib/grid/index.d.ts +1 -1
- package/lib/grid/index.js +4 -1
- package/lib/grid-item/GridItem.d.ts +1 -1
- package/lib/grid-item/index.d.ts +1 -1
- package/lib/grid-item/index.js +4 -1
- package/lib/icon/Icon.d.ts +1 -1
- package/lib/icon/index.d.ts +1 -1
- package/lib/icon/index.js +4 -1
- package/lib/image/index.js +4 -1
- package/lib/image-preview/ImagePreview.js +4 -1
- package/lib/image-preview/ImagePreviewItem.js +9 -1
- package/lib/image-preview/function-call.js +4 -1
- package/lib/image-preview/index.js +4 -1
- package/lib/index-anchor/IndexAnchor.d.ts +1 -1
- package/lib/index-anchor/index.d.ts +1 -1
- package/lib/index-anchor/index.js +4 -1
- package/lib/index-bar/IndexBar.js +7 -3
- package/lib/index-bar/index.js +4 -1
- package/lib/index.css +1 -1
- package/lib/index.d.ts +2 -1
- package/lib/index.js +4 -1
- package/lib/lazyload/vue-lazyload/index.js +4 -1
- package/lib/lazyload/vue-lazyload/lazy-component.js +4 -1
- package/lib/lazyload/vue-lazyload/lazy-container.js +11 -7
- package/lib/lazyload/vue-lazyload/lazy-image.js +24 -14
- package/lib/lazyload/vue-lazyload/lazy.js +15 -4
- package/lib/lazyload/vue-lazyload/listener.js +45 -33
- package/lib/lazyload/vue-lazyload/util.js +4 -1
- package/lib/list/index.js +4 -1
- package/lib/loading/Loading.d.ts +1 -1
- package/lib/loading/index.d.ts +1 -1
- package/lib/loading/index.js +4 -1
- package/lib/locale/index.js +4 -1
- package/lib/nav-bar/index.js +4 -1
- package/lib/notice-bar/index.js +4 -1
- package/lib/notify/function-call.js +4 -1
- package/lib/notify/index.js +4 -1
- package/lib/number-keyboard/NumberKeyboard.d.ts +1 -1
- package/lib/number-keyboard/NumberKeyboard.js +4 -1
- package/lib/number-keyboard/index.d.ts +1 -1
- package/lib/number-keyboard/index.js +4 -1
- package/lib/overlay/Overlay.d.ts +1 -1
- package/lib/overlay/Overlay.js +11 -4
- package/lib/overlay/index.d.ts +1 -1
- package/lib/overlay/index.js +4 -1
- package/lib/pagination/index.js +4 -1
- package/lib/password-input/index.js +4 -1
- package/lib/picker/Picker.d.ts +8 -4
- package/lib/picker/Picker.js +49 -70
- package/lib/picker/PickerColumn.js +5 -1
- package/lib/picker/PickerToolbar.d.ts +21 -0
- package/lib/picker/PickerToolbar.js +78 -0
- package/lib/picker/index.d.ts +4 -2
- package/lib/picker/index.js +4 -1
- package/lib/picker/style/index.js +7 -0
- package/lib/picker/utils.d.ts +2 -0
- package/lib/picker/utils.js +15 -8
- package/lib/picker-group/PickerGroup.d.ts +39 -0
- package/lib/picker-group/PickerGroup.js +82 -0
- package/lib/picker-group/index.css +1 -0
- package/lib/picker-group/index.d.ts +32 -0
- package/lib/picker-group/index.js +33 -0
- package/lib/picker-group/style/index.d.ts +1 -0
- package/lib/picker-group/style/index.js +9 -0
- package/lib/popover/index.js +4 -1
- package/lib/popup/Popup.d.ts +2 -2
- package/lib/popup/index.d.ts +2 -2
- package/lib/popup/index.js +4 -1
- package/lib/popup/shared.js +3 -1
- package/lib/progress/Progress.d.ts +1 -1
- package/lib/progress/index.d.ts +1 -1
- package/lib/progress/index.js +4 -1
- package/lib/pull-refresh/index.js +4 -1
- package/lib/radio/Radio.js +4 -1
- package/lib/radio/index.js +4 -1
- package/lib/radio-group/index.js +4 -1
- package/lib/rate/Rate.js +4 -2
- package/lib/rate/index.js +4 -1
- package/lib/row/Row.d.ts +1 -1
- package/lib/row/index.d.ts +1 -1
- package/lib/row/index.js +4 -1
- package/lib/search/index.js +4 -1
- package/lib/share-sheet/index.js +4 -1
- package/lib/sidebar/index.js +4 -1
- package/lib/sidebar-item/index.js +4 -1
- package/lib/skeleton/Skeleton.d.ts +1 -1
- package/lib/skeleton/index.d.ts +1 -1
- package/lib/skeleton/index.js +4 -1
- package/lib/slider/Slider.js +5 -1
- package/lib/slider/index.js +4 -1
- package/lib/space/Space.d.ts +1 -1
- package/lib/space/index.d.ts +1 -1
- package/lib/space/index.js +4 -1
- package/lib/step/Step.d.ts +1 -1
- package/lib/step/index.d.ts +1 -1
- package/lib/step/index.js +4 -1
- package/lib/stepper/index.js +4 -1
- package/lib/steps/index.js +4 -1
- package/lib/sticky/index.js +4 -1
- package/lib/submit-bar/index.js +4 -1
- package/lib/swipe/Swipe.js +12 -5
- package/lib/swipe/index.js +4 -1
- package/lib/swipe-cell/SwipeCell.d.ts +2 -2
- package/lib/swipe-cell/SwipeCell.js +3 -1
- package/lib/swipe-cell/index.d.ts +2 -2
- package/lib/swipe-cell/index.js +4 -1
- package/lib/swipe-item/SwipeItem.d.ts +1 -1
- package/lib/swipe-item/index.d.ts +1 -1
- package/lib/swipe-item/index.js +4 -1
- package/lib/switch/index.js +4 -1
- package/lib/tab/Tab.d.ts +1 -1
- package/lib/tab/index.d.ts +1 -1
- package/lib/tab/index.js +4 -1
- package/lib/tabbar/index.js +4 -1
- package/lib/tabbar-item/index.js +4 -1
- package/lib/tabs/Tabs.js +4 -1
- package/lib/tabs/TabsTitle.d.ts +1 -1
- package/lib/tabs/index.js +4 -1
- package/lib/tag/index.js +4 -1
- package/lib/time-picker/TimePicker.d.ts +6 -3
- package/lib/time-picker/index.d.ts +4 -2
- package/lib/time-picker/index.js +4 -1
- package/lib/time-picker/style/index.js +7 -0
- package/lib/toast/function-call.js +4 -1
- package/lib/toast/index.js +4 -1
- package/lib/tree-select/index.js +4 -1
- package/lib/uploader/Uploader.js +4 -1
- package/lib/uploader/index.js +4 -1
- package/lib/utils/create.js +12 -3
- package/lib/utils/with-install.d.ts +2 -2
- package/lib/utils/with-install.js +4 -2
- package/lib/vant.cjs.js +4345 -4157
- package/lib/vant.es.js +4347 -4159
- package/lib/vant.js +4402 -4197
- package/lib/vant.min.js +1 -1
- package/lib/web-types.json +2088 -2034
- package/package.json +7 -7
package/changelog.generated.md
CHANGED
@@ -1,23 +1,40 @@
|
|
1
|
-
### [v4.0.0-
|
1
|
+
### [v4.0.0-rc.0](https://github.com/vant-ui/vant/compare/v3.6.2...v4.0.0-rc.0)
|
2
|
+
|
3
|
+
`2022-09-04`
|
4
|
+
|
5
|
+
**Bug Fixes**
|
6
|
+
|
7
|
+
- DatePicker: failed to update model value [#10984](https://github.com/vant-ui/vant/issues/10984)
|
8
|
+
- DatePicker: min-date prop not work correctly [#10985](https://github.com/vant-ui/vant/issues/10985)
|
9
|
+
- Picker: fix passive event [8bcb34](https://github.com/vant-ui/vant/commit/8bcb34724f5bab2a184b075d85b8896f4a0a8c1f)
|
10
|
+
|
11
|
+
**Document**
|
12
|
+
|
13
|
+
- changelog: vant@3.6.2 [#11008](https://github.com/vant-ui/vant/issues/11008)
|
14
|
+
- changelog: vant@4.0.0-beta.1 [#10966](https://github.com/vant-ui/vant/issues/10966)
|
15
|
+
- DatePicker: fix basic usage [66aa29](https://github.com/vant-ui/vant/commit/66aa2906e0c4fa613e55e2cb57637a40b37cdb7e)
|
16
|
+
- DatePicker: fix toolbar slot name [#10983](https://github.com/vant-ui/vant/issues/10983)
|
17
|
+
- update babel-plugin-import tip [7d023f](https://github.com/vant-ui/vant/commit/7d023fd6e45b6407a339d8a07ab6c4e4b70f4f92)
|
18
|
+
|
19
|
+
**Feature**
|
20
|
+
|
21
|
+
- add new PickerGroup component [#11005](https://github.com/vant-ui/vant/issues/11005)
|
22
|
+
### [v4.0.0-beta.1](https://github.com/vant-ui/vant/compare/v3.6.1...v4.0.0-beta.1)
|
2
23
|
|
3
24
|
`2022-08-24`
|
4
25
|
|
5
26
|
**Bug Fixes**
|
6
27
|
|
7
28
|
- ConfigProvider: should remove theme class on unmount [#10898](https://github.com/vant-ui/vant/issues/10898)
|
8
|
-
- reduce passive event warning of touchstart event [#10954](https://github.com/vant-ui/vant/issues/10954)
|
9
|
-
- Tabs: resize not work for swipeable tabs [#10964](https://github.com/vant-ui/vant/issues/10964)
|
10
29
|
|
11
30
|
**Document**
|
12
31
|
|
13
32
|
- add babel-plugin-import migration guide [#10867](https://github.com/vant-ui/vant/issues/10867)
|
14
33
|
- add faq of remove babel-plugin-import [#10942](https://github.com/vant-ui/vant/issues/10942)
|
15
34
|
- changelog: 4.0.0-beta.0 [#10825](https://github.com/vant-ui/vant/issues/10825)
|
16
|
-
- changelog: vant@3.6.0 [667034](https://github.com/vant-ui/vant/commit/667034322ed4e1c39fd014e83d8661a1ff891ee0)
|
17
35
|
- fix link address in migrate-from-v3.md [#10919](https://github.com/vant-ui/vant/issues/10919)
|
18
36
|
- Icon: separate usingUrl demo from basicUsage [#10828](https://github.com/vant-ui/vant/issues/10828)
|
19
37
|
- ImagePreview: fix cell style in demo [0881de](https://github.com/vant-ui/vant/commit/0881de82af347002c3f37bba5e2f89aacdeadc16)
|
20
|
-
- NoticeBar: disable swipe drag in demo [#10950](https://github.com/vant-ui/vant/issues/10950)
|
21
38
|
|
22
39
|
- Restore "fix(Popup&Toast): invalid adaptive width (#10961)" [#10961](https://github.com/vant-ui/vant/issues/10961)
|
23
40
|
|
@@ -27,13 +44,9 @@
|
|
27
44
|
- Picker: add clickOption event [#10865](https://github.com/vant-ui/vant/issues/10865)
|
28
45
|
- Popup: improve style when position is center [#10965](https://github.com/vant-ui/vant/issues/10965)
|
29
46
|
|
30
|
-
**
|
31
|
-
|
32
|
-
- add correct passive flag to improve scroll performance [#10951](https://github.com/vant-ui/vant/issues/10951)
|
33
|
-
|
34
|
-
**Types**
|
47
|
+
**release**
|
35
48
|
|
36
|
-
-
|
49
|
+
- 4.0.0-beta.1 [889b28](https://github.com/vant-ui/vant/commit/889b28609ad6cc53a8fa82017cff2e7d210f3f74)
|
37
50
|
### [v4.0.0-beta.0](https://github.com/vant-ui/vant/compare/v3.5.2...v4.0.0-beta.0)
|
38
51
|
|
39
52
|
`2022-07-16`
|
@@ -246,46 +259,37 @@
|
|
246
259
|
- Picker: fix columns prop typing [6c64bc](https://github.com/vant-ui/vant/commit/6c64bc33c1ba537b7951dcbc02d6deec3aaab093)
|
247
260
|
- Picker: fix return type of getSelectedOptions [967cb5](https://github.com/vant-ui/vant/commit/967cb56c181cc145189a868f49c4666a75f85b00)
|
248
261
|
- TimePicker: export TimePickerColumnType [b608fb](https://github.com/vant-ui/vant/commit/b608fb23f031cf09a474039cd9cd23f8bc7811d3)
|
249
|
-
### [v3.6.
|
262
|
+
### [v3.6.2](https://github.com/vant-ui/vant/compare/v4.0.0-beta.1...v3.6.2)
|
250
263
|
|
251
|
-
`2022-
|
264
|
+
`2022-09-04`
|
252
265
|
|
253
266
|
**Bug Fixes**
|
254
267
|
|
255
|
-
- @vant/cli:
|
256
|
-
-
|
257
|
-
- Calendar:
|
258
|
-
- Calendar:
|
259
|
-
-
|
260
|
-
-
|
261
|
-
-
|
262
|
-
- PullRefresh: remove passive event warning [#10938](https://github.com/vant-ui/vant/issues/10938)
|
263
|
-
- Search: --van-search-input-height var not work [#10911](https://github.com/vant-ui/vant/issues/10911)
|
268
|
+
- @vant/cli: add passive for global touchstart [#10979](https://github.com/vant-ui/vant/issues/10979)
|
269
|
+
- area-data: update counties of Daxinganling region [#11000](https://github.com/vant-ui/vant/issues/11000)
|
270
|
+
- Calendar: allow default date to be maxDate when enable allowSameDay [#10976](https://github.com/vant-ui/vant/issues/10976)
|
271
|
+
- Calendar: range type defaultDate when set allowSameDay [#10971](https://github.com/vant-ui/vant/issues/10971)
|
272
|
+
- indexBar: index-bar not positioned correctly when scrolled to the bottom [#10994](https://github.com/vant-ui/vant/issues/10994)
|
273
|
+
- reduce passive event warning of touchmove event [#10975](https://github.com/vant-ui/vant/issues/10975)
|
274
|
+
- Swipe: should not prevent touch move when reach edge [#10980](https://github.com/vant-ui/vant/issues/10980)
|
264
275
|
|
265
276
|
**Document**
|
266
277
|
|
267
|
-
- add
|
268
|
-
- add
|
269
|
-
- changelog: 3.
|
270
|
-
-
|
271
|
-
-
|
272
|
-
-
|
273
|
-
- Search: fix action-text type [#10936](https://github.com/vant-ui/vant/issues/10936)
|
274
|
-
- Search: fix action-text type [#10935](https://github.com/vant-ui/vant/issues/10935)
|
275
|
-
- Space: add version tip [#10886](https://github.com/vant-ui/vant/issues/10886)
|
278
|
+
- add function component style guide [#11003](https://github.com/vant-ui/vant/issues/11003)
|
279
|
+
- add nuxt 3 guide [#10977](https://github.com/vant-ui/vant/issues/10977)
|
280
|
+
- changelog: 3.6.1 [6a7376](https://github.com/vant-ui/vant/commit/6a7376d15d20bdd1641422ff2cb1c317fc987e89)
|
281
|
+
- fix card overflow issue [#10988](https://github.com/vant-ui/vant/issues/10988)
|
282
|
+
- prefer using externalVue in nuxt 3 [#10978](https://github.com/vant-ui/vant/issues/10978)
|
283
|
+
- update quickstart guide [#11006](https://github.com/vant-ui/vant/issues/11006)
|
276
284
|
|
277
|
-
**
|
285
|
+
**release**
|
278
286
|
|
279
|
-
- @vant/
|
280
|
-
-
|
281
|
-
|
282
|
-
|
283
|
-
-
|
284
|
-
- Space: add new component space [#10857](https://github.com/vant-ui/vant/issues/10857)
|
285
|
-
- touch-emulator: support .mjs extension [#10888](https://github.com/vant-ui/vant/issues/10888)
|
287
|
+
- @vant/area-data 1.3.2 [94c5af](https://github.com/vant-ui/vant/commit/94c5afe65caa97188fe3a800c52c629c1416ff41)
|
288
|
+
- 3.6.2 [7afb74](https://github.com/vant-ui/vant/commit/7afb74345a39f23a3c62aa8b0e6d95de4c2b35de)
|
289
|
+
### [v3.6.1](https://github.com/vant-ui/vant/compare/v3.6.0...v3.6.1)
|
290
|
+
|
291
|
+
`2022-08-24`
|
286
292
|
|
287
293
|
**release**
|
288
294
|
|
289
|
-
-
|
290
|
-
- 3.5.4 [cfdb5c](https://github.com/vant-ui/vant/commit/cfdb5c1fbe496f6a064ab8bebe7f1ae8734490c0)
|
291
|
-
- 3.6.0 [8d51f9](https://github.com/vant-ui/vant/commit/8d51f9e08ea5833b4b27077c61727924c9112f0b)
|
295
|
+
- 3.6.1 [2cca63](https://github.com/vant-ui/vant/commit/2cca63080868beb1b64bedddd004d8f13bc64d4a)
|
@@ -14,7 +14,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
14
14
|
type: BooleanConstructor;
|
15
15
|
default: true;
|
16
16
|
};
|
17
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
17
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
18
18
|
placeholder: BooleanConstructor;
|
19
19
|
safeAreaInsetBottom: {
|
20
20
|
type: BooleanConstructor;
|
package/es/action-bar/index.d.ts
CHANGED
@@ -4,7 +4,7 @@ export declare const ActionBar: import("../utils").WithInstall<import("vue").Def
|
|
4
4
|
type: BooleanConstructor;
|
5
5
|
default: true;
|
6
6
|
};
|
7
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
7
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
8
8
|
placeholder: BooleanConstructor;
|
9
9
|
safeAreaInsetBottom: {
|
10
10
|
type: BooleanConstructor;
|
@@ -24,7 +24,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
24
24
|
color: StringConstructor;
|
25
25
|
loading: BooleanConstructor;
|
26
26
|
disabled: BooleanConstructor;
|
27
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
27
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
28
28
|
to: PropType<import("vue-router").RouteLocationRaw>;
|
29
29
|
url: StringConstructor;
|
30
30
|
replace: BooleanConstructor;
|
@@ -9,7 +9,7 @@ export declare const ActionBarButton: import("../utils").WithInstall<import("vue
|
|
9
9
|
color: StringConstructor;
|
10
10
|
loading: BooleanConstructor;
|
11
11
|
disabled: BooleanConstructor;
|
12
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
12
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
13
13
|
to: import("vue").PropType<import("vue-router").RouteLocationRaw>;
|
14
14
|
url: StringConstructor;
|
15
15
|
replace: BooleanConstructor;
|
@@ -28,7 +28,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
28
28
|
iconClass: PropType<unknown>;
|
29
29
|
badgeProps: PropType<Partial<BadgeProps>>;
|
30
30
|
iconPrefix: StringConstructor;
|
31
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
31
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
32
32
|
to: PropType<import("vue-router").RouteLocationRaw>;
|
33
33
|
url: StringConstructor;
|
34
34
|
replace: BooleanConstructor;
|
@@ -11,7 +11,7 @@ export declare const ActionBarIcon: import("../utils").WithInstall<import("vue")
|
|
11
11
|
iconClass: import("vue").PropType<unknown>;
|
12
12
|
badgeProps: import("vue").PropType<Partial<import("..").BadgeProps>>;
|
13
13
|
iconPrefix: StringConstructor;
|
14
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
14
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
15
15
|
to: import("vue").PropType<import("vue-router").RouteLocationRaw>;
|
16
16
|
url: StringConstructor;
|
17
17
|
replace: BooleanConstructor;
|
@@ -5,9 +5,15 @@ import "../../cell/index.css";
|
|
5
5
|
import "../../field/index.css";
|
6
6
|
import "../../loading/index.css";
|
7
7
|
import "../../switch/index.css";
|
8
|
-
import "../../picker/index.css";
|
9
8
|
import "../../button/index.css";
|
10
9
|
import "../../overlay/index.css";
|
11
10
|
import "../../popup/index.css";
|
12
11
|
import "../../toast/index.css";
|
12
|
+
import "../../sticky/index.css";
|
13
|
+
import "../../swipe/index.css";
|
14
|
+
import "../../swipe-item/index.css";
|
15
|
+
import "../../tabs/index.css";
|
16
|
+
import "../../tab/index.css";
|
17
|
+
import "../../picker/index.css";
|
18
|
+
import "../../picker-group/index.css";
|
13
19
|
import "../index.css";
|
package/es/area/Area.d.ts
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
import { type PropType, type ExtractPropTypes } from 'vue';
|
2
2
|
import type { AreaList } from './types';
|
3
3
|
declare const areaProps: {
|
4
|
-
title: StringConstructor;
|
5
4
|
loading: BooleanConstructor;
|
6
5
|
readonly: BooleanConstructor;
|
7
6
|
allowHtml: BooleanConstructor;
|
@@ -21,6 +20,8 @@ declare const areaProps: {
|
|
21
20
|
type: (NumberConstructor | StringConstructor)[];
|
22
21
|
default: number;
|
23
22
|
};
|
23
|
+
} & {
|
24
|
+
title: StringConstructor;
|
24
25
|
cancelButtonText: StringConstructor;
|
25
26
|
confirmButtonText: StringConstructor;
|
26
27
|
} & {
|
@@ -40,7 +41,6 @@ declare const areaProps: {
|
|
40
41
|
};
|
41
42
|
export declare type AreaProps = ExtractPropTypes<typeof areaProps>;
|
42
43
|
declare const _default: import("vue").DefineComponent<{
|
43
|
-
title: StringConstructor;
|
44
44
|
loading: BooleanConstructor;
|
45
45
|
readonly: BooleanConstructor;
|
46
46
|
allowHtml: BooleanConstructor;
|
@@ -60,6 +60,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
60
60
|
type: (NumberConstructor | StringConstructor)[];
|
61
61
|
default: number;
|
62
62
|
};
|
63
|
+
} & {
|
64
|
+
title: StringConstructor;
|
63
65
|
cancelButtonText: StringConstructor;
|
64
66
|
confirmButtonText: StringConstructor;
|
65
67
|
} & {
|
@@ -77,7 +79,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
77
79
|
default: () => {};
|
78
80
|
};
|
79
81
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change" | "cancel" | "confirm")[], "update:modelValue" | "change" | "cancel" | "confirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
80
|
-
title: StringConstructor;
|
81
82
|
loading: BooleanConstructor;
|
82
83
|
readonly: BooleanConstructor;
|
83
84
|
allowHtml: BooleanConstructor;
|
@@ -97,6 +98,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
97
98
|
type: (NumberConstructor | StringConstructor)[];
|
98
99
|
default: number;
|
99
100
|
};
|
101
|
+
} & {
|
102
|
+
title: StringConstructor;
|
100
103
|
cancelButtonText: StringConstructor;
|
101
104
|
confirmButtonText: StringConstructor;
|
102
105
|
} & {
|
package/es/area/index.d.ts
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
export declare const Area: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
|
-
title: StringConstructor;
|
3
2
|
loading: BooleanConstructor;
|
4
3
|
readonly: BooleanConstructor;
|
5
4
|
allowHtml: BooleanConstructor;
|
@@ -19,6 +18,8 @@ export declare const Area: import("../utils").WithInstall<import("vue").DefineCo
|
|
19
18
|
type: (NumberConstructor | StringConstructor)[];
|
20
19
|
default: number;
|
21
20
|
};
|
21
|
+
} & {
|
22
|
+
title: StringConstructor;
|
22
23
|
cancelButtonText: StringConstructor;
|
23
24
|
confirmButtonText: StringConstructor;
|
24
25
|
} & {
|
@@ -36,7 +37,6 @@ export declare const Area: import("../utils").WithInstall<import("vue").DefineCo
|
|
36
37
|
default: () => {};
|
37
38
|
};
|
38
39
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change" | "cancel" | "confirm")[], "update:modelValue" | "change" | "cancel" | "confirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
39
|
-
title: StringConstructor;
|
40
40
|
loading: BooleanConstructor;
|
41
41
|
readonly: BooleanConstructor;
|
42
42
|
allowHtml: BooleanConstructor;
|
@@ -56,6 +56,8 @@ export declare const Area: import("../utils").WithInstall<import("vue").DefineCo
|
|
56
56
|
type: (NumberConstructor | StringConstructor)[];
|
57
57
|
default: number;
|
58
58
|
};
|
59
|
+
} & {
|
60
|
+
title: StringConstructor;
|
59
61
|
cancelButtonText: StringConstructor;
|
60
62
|
confirmButtonText: StringConstructor;
|
61
63
|
} & {
|
package/es/area/style/index.mjs
CHANGED
@@ -1,3 +1,10 @@
|
|
1
1
|
import "../../style/base.css";
|
2
|
+
import "../../badge/index.css";
|
2
3
|
import "../../loading/index.css";
|
4
|
+
import "../../sticky/index.css";
|
5
|
+
import "../../swipe/index.css";
|
6
|
+
import "../../swipe-item/index.css";
|
7
|
+
import "../../tabs/index.css";
|
8
|
+
import "../../tab/index.css";
|
3
9
|
import "../../picker/index.css";
|
10
|
+
import "../../picker-group/index.css";
|
package/es/area/utils.mjs
CHANGED
@@ -37,13 +37,20 @@ function formatDataForCascade({
|
|
37
37
|
const getProvinceChildren = () => {
|
38
38
|
if (showCity) {
|
39
39
|
return placeholder.length ? [
|
40
|
-
makeOption(
|
40
|
+
makeOption(
|
41
|
+
placeholder[0],
|
42
|
+
AREA_EMPTY_CODE,
|
43
|
+
showCounty ? [] : void 0
|
44
|
+
)
|
41
45
|
] : [];
|
42
46
|
}
|
43
47
|
};
|
44
48
|
const provinceMap = /* @__PURE__ */ new Map();
|
45
49
|
Object.keys(province).forEach((code) => {
|
46
|
-
provinceMap.set(
|
50
|
+
provinceMap.set(
|
51
|
+
code.slice(0, 2),
|
52
|
+
makeOption(province[code], code, getProvinceChildren())
|
53
|
+
);
|
47
54
|
});
|
48
55
|
const cityMap = /* @__PURE__ */ new Map();
|
49
56
|
if (showCity) {
|
package/es/badge/Badge.d.ts
CHANGED
@@ -39,7 +39,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
39
39
|
type: PropType<BadgePosition>;
|
40
40
|
default: BadgePosition;
|
41
41
|
};
|
42
|
-
}, () => JSX.Element | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
42
|
+
}, () => JSX.Element | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
43
43
|
dot: BooleanConstructor;
|
44
44
|
max: (NumberConstructor | StringConstructor)[];
|
45
45
|
tag: {
|
package/es/badge/index.d.ts
CHANGED
@@ -16,7 +16,7 @@ export declare const Badge: import("../utils").WithInstall<import("vue").DefineC
|
|
16
16
|
type: import("vue").PropType<import("./Badge").BadgePosition>;
|
17
17
|
default: import("./Badge").BadgePosition;
|
18
18
|
};
|
19
|
-
}, () => JSX.Element | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
19
|
+
}, () => JSX.Element | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
20
20
|
dot: BooleanConstructor;
|
21
21
|
max: (NumberConstructor | StringConstructor)[];
|
22
22
|
tag: {
|
package/es/calendar/Calendar.mjs
CHANGED
@@ -78,7 +78,8 @@ var stdin_default = defineComponent({
|
|
78
78
|
const {
|
79
79
|
type,
|
80
80
|
minDate,
|
81
|
-
maxDate
|
81
|
+
maxDate,
|
82
|
+
allowSameDay
|
82
83
|
} = props;
|
83
84
|
if (defaultDate === null) {
|
84
85
|
return defaultDate;
|
@@ -88,8 +89,8 @@ var stdin_default = defineComponent({
|
|
88
89
|
if (!Array.isArray(defaultDate)) {
|
89
90
|
defaultDate = [];
|
90
91
|
}
|
91
|
-
const start = limitDateRange(defaultDate[0] || now, minDate, getPrevDay(maxDate));
|
92
|
-
const end = limitDateRange(defaultDate[1] || now, getNextDay(minDate));
|
92
|
+
const start = limitDateRange(defaultDate[0] || now, minDate, allowSameDay ? maxDate : getPrevDay(maxDate));
|
93
|
+
const end = limitDateRange(defaultDate[1] || now, allowSameDay ? minDate : getNextDay(minDate));
|
93
94
|
return [start, end];
|
94
95
|
}
|
95
96
|
if (type === "multiple") {
|
@@ -2,9 +2,15 @@ import "../../style/base.css";
|
|
2
2
|
import "../../badge/index.css";
|
3
3
|
import "../../icon/index.css";
|
4
4
|
import "../../loading/index.css";
|
5
|
-
import "../../picker/index.css";
|
6
5
|
import "../../button/index.css";
|
7
6
|
import "../../overlay/index.css";
|
8
7
|
import "../../popup/index.css";
|
9
8
|
import "../../toast/index.css";
|
9
|
+
import "../../sticky/index.css";
|
10
|
+
import "../../swipe/index.css";
|
11
|
+
import "../../swipe-item/index.css";
|
12
|
+
import "../../tabs/index.css";
|
13
|
+
import "../../tab/index.css";
|
14
|
+
import "../../picker/index.css";
|
15
|
+
import "../../picker-group/index.css";
|
10
16
|
import "../index.css";
|
package/es/cell/Cell.d.ts
CHANGED
@@ -81,7 +81,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
81
81
|
to: PropType<import("vue-router").RouteLocationRaw>;
|
82
82
|
url: StringConstructor;
|
83
83
|
replace: BooleanConstructor;
|
84
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
84
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
85
85
|
icon: StringConstructor;
|
86
86
|
size: PropType<CellSize>;
|
87
87
|
title: (NumberConstructor | StringConstructor)[];
|
package/es/cell/index.d.ts
CHANGED
@@ -25,7 +25,7 @@ export declare const Cell: import("../utils").WithInstall<import("vue").DefineCo
|
|
25
25
|
to: import("vue").PropType<import("vue-router").RouteLocationRaw>;
|
26
26
|
url: StringConstructor;
|
27
27
|
replace: BooleanConstructor;
|
28
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
28
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
29
29
|
icon: StringConstructor;
|
30
30
|
size: import("vue").PropType<import("./Cell").CellSize>;
|
31
31
|
title: (NumberConstructor | StringConstructor)[];
|
@@ -15,7 +15,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
15
15
|
type: BooleanConstructor;
|
16
16
|
default: true;
|
17
17
|
};
|
18
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
18
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
19
19
|
title: StringConstructor;
|
20
20
|
inset: BooleanConstructor;
|
21
21
|
border: {
|
package/es/cell-group/index.d.ts
CHANGED
@@ -5,7 +5,7 @@ export declare const CellGroup: import("../utils").WithInstall<import("vue").Def
|
|
5
5
|
type: BooleanConstructor;
|
6
6
|
default: true;
|
7
7
|
};
|
8
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
8
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
9
9
|
title: StringConstructor;
|
10
10
|
inset: BooleanConstructor;
|
11
11
|
border: {
|
package/es/col/Col.d.ts
CHANGED
@@ -21,7 +21,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
21
21
|
default: number;
|
22
22
|
};
|
23
23
|
offset: (NumberConstructor | StringConstructor)[];
|
24
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
24
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
25
25
|
tag: {
|
26
26
|
type: import("vue").PropType<keyof HTMLElementTagNameMap>;
|
27
27
|
default: keyof HTMLElementTagNameMap;
|
package/es/col/index.d.ts
CHANGED
@@ -8,7 +8,7 @@ export declare const Col: import("../utils").WithInstall<import("vue").DefineCom
|
|
8
8
|
default: number;
|
9
9
|
};
|
10
10
|
offset: (NumberConstructor | StringConstructor)[];
|
11
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
11
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
12
12
|
tag: {
|
13
13
|
type: import("vue").PropType<keyof HTMLElementTagNameMap>;
|
14
14
|
default: keyof HTMLElementTagNameMap;
|
@@ -71,7 +71,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
71
71
|
type: BooleanConstructor;
|
72
72
|
default: true;
|
73
73
|
};
|
74
|
-
}, (() => JSX.Element) | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
74
|
+
}, (() => JSX.Element) | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
75
75
|
icon: StringConstructor;
|
76
76
|
size: import("vue").PropType<import("../cell").CellSize>;
|
77
77
|
title: (NumberConstructor | StringConstructor)[];
|
@@ -33,7 +33,7 @@ export declare const CollapseItem: import("../utils").WithInstall<import("vue").
|
|
33
33
|
type: BooleanConstructor;
|
34
34
|
default: true;
|
35
35
|
};
|
36
|
-
}, (() => JSX.Element) | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
36
|
+
}, (() => JSX.Element) | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
37
37
|
icon: StringConstructor;
|
38
38
|
size: import("vue").PropType<import("..").CellSize>;
|
39
39
|
title: (NumberConstructor | StringConstructor)[];
|
@@ -1,11 +1,15 @@
|
|
1
1
|
import { ref, watch } from "vue";
|
2
2
|
function useLazyRender(show) {
|
3
3
|
const inited = ref(false);
|
4
|
-
watch(
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
4
|
+
watch(
|
5
|
+
show,
|
6
|
+
(value) => {
|
7
|
+
if (value) {
|
8
|
+
inited.value = value;
|
9
|
+
}
|
10
|
+
},
|
11
|
+
{ immediate: true }
|
12
|
+
);
|
9
13
|
return (render) => () => inited.value ? render() : null;
|
10
14
|
}
|
11
15
|
export {
|
@@ -11,7 +11,10 @@ function useLockScroll(rootRef, shouldLock) {
|
|
11
11
|
const onTouchMove = (event) => {
|
12
12
|
touch.move(event);
|
13
13
|
const direction = touch.deltaY.value > 0 ? DIRECTION_DOWN : DIRECTION_UP;
|
14
|
-
const el = getScrollParent(
|
14
|
+
const el = getScrollParent(
|
15
|
+
event.target,
|
16
|
+
rootRef.value
|
17
|
+
);
|
15
18
|
const { scrollHeight, offsetHeight, scrollTop } = el;
|
16
19
|
let status = "11";
|
17
20
|
if (scrollTop === 0) {
|
@@ -5,9 +5,12 @@ function useVisibilityChange(target, onChange) {
|
|
5
5
|
if (!inBrowser || !window.IntersectionObserver) {
|
6
6
|
return;
|
7
7
|
}
|
8
|
-
const observer = new IntersectionObserver(
|
9
|
-
|
10
|
-
|
8
|
+
const observer = new IntersectionObserver(
|
9
|
+
(entries) => {
|
10
|
+
onChange(entries[0].intersectionRatio > 0);
|
11
|
+
},
|
12
|
+
{ root: document.body }
|
13
|
+
);
|
11
14
|
const observe = () => {
|
12
15
|
if (target.value) {
|
13
16
|
observer.observe(target.value);
|
@@ -36,7 +36,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
36
36
|
themeVarsDark: ThemeVars;
|
37
37
|
themeVarsLight: ThemeVars;
|
38
38
|
iconPrefix: StringConstructor;
|
39
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
39
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
40
40
|
tag: {
|
41
41
|
type: PropType<keyof HTMLElementTagNameMap>;
|
42
42
|
default: keyof HTMLElementTagNameMap;
|
@@ -12,7 +12,7 @@ export declare const ConfigProvider: import("../utils").WithInstall<import("vue"
|
|
12
12
|
themeVarsDark: import("./ConfigProvider").ThemeVars;
|
13
13
|
themeVarsLight: import("./ConfigProvider").ThemeVars;
|
14
14
|
iconPrefix: StringConstructor;
|
15
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
15
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
16
16
|
tag: {
|
17
17
|
type: import("vue").PropType<keyof HTMLElementTagNameMap>;
|
18
18
|
default: keyof HTMLElementTagNameMap;
|
package/es/coupon/Coupon.d.ts
CHANGED
@@ -26,7 +26,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
26
26
|
type: PropType<string>;
|
27
27
|
default: string;
|
28
28
|
};
|
29
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
29
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
30
30
|
chosen: BooleanConstructor;
|
31
31
|
coupon: {
|
32
32
|
type: PropType<CouponInfo>;
|
package/es/coupon/index.d.ts
CHANGED
@@ -9,7 +9,7 @@ export declare const Coupon: import("../utils").WithInstall<import("vue").Define
|
|
9
9
|
type: import("vue").PropType<string>;
|
10
10
|
default: string;
|
11
11
|
};
|
12
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
12
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
13
13
|
chosen: BooleanConstructor;
|
14
14
|
coupon: {
|
15
15
|
type: import("vue").PropType<import("./Coupon").CouponInfo>;
|
package/es/coupon/utils.mjs
CHANGED
@@ -1,7 +1,9 @@
|
|
1
1
|
import { padZero } from "../utils/index.mjs";
|
2
2
|
function getDate(timeStamp) {
|
3
3
|
const date = new Date(timeStamp * 1e3);
|
4
|
-
return `${date.getFullYear()}.${padZero(date.getMonth() + 1)}.${padZero(
|
4
|
+
return `${date.getFullYear()}.${padZero(date.getMonth() + 1)}.${padZero(
|
5
|
+
date.getDate()
|
6
|
+
)}`;
|
5
7
|
}
|
6
8
|
const formatDiscount = (discount) => (discount / 10).toFixed(discount % 10 === 0 ? 0 : 1);
|
7
9
|
const formatAmount = (amount) => (amount / 100).toFixed(amount % 100 === 0 ? 0 : amount % 10 === 0 ? 1 : 2);
|
@@ -46,7 +46,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
46
46
|
type: (NumberConstructor | StringConstructor)[];
|
47
47
|
default: number;
|
48
48
|
};
|
49
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
49
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
50
50
|
title: StringConstructor;
|
51
51
|
border: {
|
52
52
|
type: BooleanConstructor;
|
@@ -20,7 +20,7 @@ export declare const CouponCell: import("../utils").WithInstall<import("vue").De
|
|
20
20
|
type: (NumberConstructor | StringConstructor)[];
|
21
21
|
default: number;
|
22
22
|
};
|
23
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
23
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
24
24
|
title: StringConstructor;
|
25
25
|
border: {
|
26
26
|
type: BooleanConstructor;
|