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/lib/index.d.ts
CHANGED
@@ -53,6 +53,7 @@ export * from "./overlay";
|
|
53
53
|
export * from "./pagination";
|
54
54
|
export * from "./password-input";
|
55
55
|
export * from "./picker";
|
56
|
+
export * from "./picker-group";
|
56
57
|
export * from "./popover";
|
57
58
|
export * from "./popup";
|
58
59
|
export * from "./progress";
|
@@ -92,4 +93,4 @@ declare namespace _default {
|
|
92
93
|
}
|
93
94
|
export default _default;
|
94
95
|
export function install(app: any): void;
|
95
|
-
export const version: "4.0.0-
|
96
|
+
export const version: "4.0.0-rc.0";
|
package/lib/index.js
CHANGED
@@ -77,6 +77,7 @@ var import_overlay = require("./overlay");
|
|
77
77
|
var import_pagination = require("./pagination");
|
78
78
|
var import_password_input = require("./password-input");
|
79
79
|
var import_picker = require("./picker");
|
80
|
+
var import_picker_group = require("./picker-group");
|
80
81
|
var import_popover = require("./popover");
|
81
82
|
var import_popup = require("./popup");
|
82
83
|
var import_progress = require("./progress");
|
@@ -165,6 +166,7 @@ __reExport(stdin_exports, require("./overlay"), module.exports);
|
|
165
166
|
__reExport(stdin_exports, require("./pagination"), module.exports);
|
166
167
|
__reExport(stdin_exports, require("./password-input"), module.exports);
|
167
168
|
__reExport(stdin_exports, require("./picker"), module.exports);
|
169
|
+
__reExport(stdin_exports, require("./picker-group"), module.exports);
|
168
170
|
__reExport(stdin_exports, require("./popover"), module.exports);
|
169
171
|
__reExport(stdin_exports, require("./popup"), module.exports);
|
170
172
|
__reExport(stdin_exports, require("./progress"), module.exports);
|
@@ -198,7 +200,7 @@ __reExport(stdin_exports, require("./time-picker"), module.exports);
|
|
198
200
|
__reExport(stdin_exports, require("./toast"), module.exports);
|
199
201
|
__reExport(stdin_exports, require("./tree-select"), module.exports);
|
200
202
|
__reExport(stdin_exports, require("./uploader"), module.exports);
|
201
|
-
const version = "4.0.0-
|
203
|
+
const version = "4.0.0-rc.0";
|
202
204
|
function install(app) {
|
203
205
|
const components = [
|
204
206
|
import_action_bar.ActionBar,
|
@@ -255,6 +257,7 @@ function install(app) {
|
|
255
257
|
import_pagination.Pagination,
|
256
258
|
import_password_input.PasswordInput,
|
257
259
|
import_picker.Picker,
|
260
|
+
import_picker_group.PickerGroup,
|
258
261
|
import_popover.Popover,
|
259
262
|
import_popup.Popup,
|
260
263
|
import_progress.Progress,
|
@@ -16,7 +16,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
16
16
|
}
|
17
17
|
return to;
|
18
18
|
};
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
20
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
21
|
+
mod
|
22
|
+
));
|
20
23
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
21
24
|
var stdin_exports = {};
|
22
25
|
__export(stdin_exports, {
|
@@ -31,7 +31,10 @@ var stdin_default = (lazy) => ({
|
|
31
31
|
},
|
32
32
|
emits: ["show"],
|
33
33
|
render() {
|
34
|
-
return (0, import_vue.h)(
|
34
|
+
return (0, import_vue.h)(
|
35
|
+
this.tag,
|
36
|
+
this.show && this.$slots.default ? this.$slots.default() : null
|
37
|
+
);
|
35
38
|
},
|
36
39
|
data() {
|
37
40
|
return {
|
@@ -39,13 +39,17 @@ class LazyContainer {
|
|
39
39
|
this.options = Object.assign({}, defaultOptions, binding.value);
|
40
40
|
const imgs = this.getImgs();
|
41
41
|
imgs.forEach((el2) => {
|
42
|
-
this.lazy.add(
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
42
|
+
this.lazy.add(
|
43
|
+
el2,
|
44
|
+
Object.assign({}, this.binding, {
|
45
|
+
value: {
|
46
|
+
src: "dataset" in el2 ? el2.dataset.src : el2.getAttribute("data-src"),
|
47
|
+
error: ("dataset" in el2 ? el2.dataset.error : el2.getAttribute("data-error")) || this.options.error,
|
48
|
+
loading: ("dataset" in el2 ? el2.dataset.loading : el2.getAttribute("data-loading")) || this.options.loading
|
49
|
+
}
|
50
|
+
}),
|
51
|
+
this.vnode
|
52
|
+
);
|
49
53
|
});
|
50
54
|
}
|
51
55
|
getImgs() {
|
@@ -32,11 +32,15 @@ var stdin_default = (lazyManager) => ({
|
|
32
32
|
}
|
33
33
|
},
|
34
34
|
render(h) {
|
35
|
-
return h(
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
35
|
+
return h(
|
36
|
+
this.tag,
|
37
|
+
{
|
38
|
+
attrs: {
|
39
|
+
src: this.renderSrc
|
40
|
+
}
|
41
|
+
},
|
42
|
+
this.$slots.default
|
43
|
+
);
|
40
44
|
},
|
41
45
|
data() {
|
42
46
|
return {
|
@@ -90,20 +94,26 @@ var stdin_default = (lazyManager) => ({
|
|
90
94
|
load(onFinish = import_utils.noop) {
|
91
95
|
if (this.state.attempt > this.options.attempt - 1 && this.state.error) {
|
92
96
|
if (process.env.NODE_ENV !== "production" && !lazyManager.options.silent) {
|
93
|
-
console.log(
|
97
|
+
console.log(
|
98
|
+
`[@vant/lazyload] ${this.options.src} tried too more than ${this.options.attempt} times`
|
99
|
+
);
|
94
100
|
}
|
95
101
|
onFinish();
|
96
102
|
return;
|
97
103
|
}
|
98
104
|
const { src } = this.options;
|
99
|
-
(0, import_util.loadImageAsync)(
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
105
|
+
(0, import_util.loadImageAsync)(
|
106
|
+
{ src },
|
107
|
+
({ src: src2 }) => {
|
108
|
+
this.renderSrc = src2;
|
109
|
+
this.state.loaded = true;
|
110
|
+
},
|
111
|
+
() => {
|
112
|
+
this.state.attempt++;
|
113
|
+
this.renderSrc = this.options.error;
|
114
|
+
this.state.error = true;
|
115
|
+
}
|
116
|
+
);
|
107
117
|
}
|
108
118
|
}
|
109
119
|
});
|
@@ -16,7 +16,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
16
16
|
}
|
17
17
|
return to;
|
18
18
|
};
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
20
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
21
|
+
mod
|
22
|
+
));
|
20
23
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
21
24
|
var stdin_exports = {};
|
22
25
|
__export(stdin_exports, {
|
@@ -83,7 +86,10 @@ function stdin_default() {
|
|
83
86
|
};
|
84
87
|
this.initEvent();
|
85
88
|
this.imageCache = new import_util.ImageCache({ max: 200 });
|
86
|
-
this.lazyLoadHandler = (0, import_util.throttle)(
|
89
|
+
this.lazyLoadHandler = (0, import_util.throttle)(
|
90
|
+
this.lazyLoadHandler.bind(this),
|
91
|
+
this.options.throttleWait
|
92
|
+
);
|
87
93
|
this.setMode(this.options.observer ? import_util.modeType.observer : import_util.modeType.event);
|
88
94
|
}
|
89
95
|
config(options = {}) {
|
@@ -238,7 +244,9 @@ function stdin_default() {
|
|
238
244
|
});
|
239
245
|
}
|
240
246
|
initListen(el, start) {
|
241
|
-
this.options.ListenEvents.forEach(
|
247
|
+
this.options.ListenEvents.forEach(
|
248
|
+
(evt) => (start ? import_util.on : import_util.off)(el, evt, this.lazyLoadHandler)
|
249
|
+
);
|
242
250
|
}
|
243
251
|
initEvent() {
|
244
252
|
this.Event = {
|
@@ -295,7 +303,10 @@ function stdin_default() {
|
|
295
303
|
if (!import_util.hasIntersectionObserver) {
|
296
304
|
return;
|
297
305
|
}
|
298
|
-
this.observer = new IntersectionObserver(
|
306
|
+
this.observer = new IntersectionObserver(
|
307
|
+
this.observerHandler.bind(this),
|
308
|
+
this.options.observerOptions
|
309
|
+
);
|
299
310
|
if (this.listeners.length) {
|
300
311
|
this.listeners.forEach((listener) => {
|
301
312
|
this.observer.observe(listener.el);
|
@@ -95,24 +95,32 @@ class ReactiveListener {
|
|
95
95
|
}
|
96
96
|
renderLoading(cb) {
|
97
97
|
this.state.loading = true;
|
98
|
-
(0, import_util.loadImageAsync)(
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
98
|
+
(0, import_util.loadImageAsync)(
|
99
|
+
{
|
100
|
+
src: this.loading,
|
101
|
+
cors: this.cors
|
102
|
+
},
|
103
|
+
() => {
|
104
|
+
this.render("loading", false);
|
105
|
+
this.state.loading = false;
|
106
|
+
cb();
|
107
|
+
},
|
108
|
+
() => {
|
109
|
+
cb();
|
110
|
+
this.state.loading = false;
|
111
|
+
if (process.env.NODE_ENV !== "production" && !this.options.silent)
|
112
|
+
console.warn(
|
113
|
+
`[@vant/lazyload] load failed with loading image(${this.loading})`
|
114
|
+
);
|
115
|
+
}
|
116
|
+
);
|
111
117
|
}
|
112
118
|
load(onFinish = import_utils.noop) {
|
113
119
|
if (this.attempt > this.options.attempt - 1 && this.state.error) {
|
114
120
|
if (process.env.NODE_ENV !== "production" && !this.options.silent) {
|
115
|
-
console.log(
|
121
|
+
console.log(
|
122
|
+
`[@vant/lazyload] ${this.src} tried too more than ${this.options.attempt} times`
|
123
|
+
);
|
116
124
|
}
|
117
125
|
onFinish();
|
118
126
|
return;
|
@@ -130,25 +138,29 @@ class ReactiveListener {
|
|
130
138
|
this.attempt++;
|
131
139
|
(_b = (_a = this.options.adapter).beforeLoad) == null ? void 0 : _b.call(_a, this, this.options);
|
132
140
|
this.record("loadStart");
|
133
|
-
(0, import_util.loadImageAsync)(
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
141
|
+
(0, import_util.loadImageAsync)(
|
142
|
+
{
|
143
|
+
src: this.src,
|
144
|
+
cors: this.cors
|
145
|
+
},
|
146
|
+
(data) => {
|
147
|
+
this.naturalHeight = data.naturalHeight;
|
148
|
+
this.naturalWidth = data.naturalWidth;
|
149
|
+
this.state.loaded = true;
|
150
|
+
this.state.error = false;
|
151
|
+
this.record("loadEnd");
|
152
|
+
this.render("loaded", false);
|
153
|
+
this.state.rendered = true;
|
154
|
+
this.imageCache.add(this.src);
|
155
|
+
onFinish();
|
156
|
+
},
|
157
|
+
(err) => {
|
158
|
+
!this.options.silent && console.error(err);
|
159
|
+
this.state.error = true;
|
160
|
+
this.state.loaded = false;
|
161
|
+
this.render("error", false);
|
162
|
+
}
|
163
|
+
);
|
152
164
|
});
|
153
165
|
}
|
154
166
|
render(state, cache) {
|
@@ -61,7 +61,10 @@ function getBestSelectionFromSrcset(el, scale) {
|
|
61
61
|
tmpWidth = 999998;
|
62
62
|
} else {
|
63
63
|
tmpSrc = item.substr(0, spaceIndex);
|
64
|
-
tmpWidth = parseInt(
|
64
|
+
tmpWidth = parseInt(
|
65
|
+
item.substr(spaceIndex + 1, item.length - spaceIndex - 2),
|
66
|
+
10
|
67
|
+
);
|
65
68
|
}
|
66
69
|
return [tmpWidth, tmpSrc];
|
67
70
|
});
|
package/lib/list/index.js
CHANGED
@@ -16,7 +16,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
16
16
|
}
|
17
17
|
return to;
|
18
18
|
};
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
20
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
21
|
+
mod
|
22
|
+
));
|
20
23
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
21
24
|
var stdin_exports = {};
|
22
25
|
__export(stdin_exports, {
|
package/lib/loading/Loading.d.ts
CHANGED
@@ -22,7 +22,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
22
22
|
vertical: BooleanConstructor;
|
23
23
|
textSize: (NumberConstructor | StringConstructor)[];
|
24
24
|
textColor: StringConstructor;
|
25
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
25
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
26
26
|
size: (NumberConstructor | StringConstructor)[];
|
27
27
|
type: {
|
28
28
|
type: import("vue").PropType<LoadingType>;
|
package/lib/loading/index.d.ts
CHANGED
@@ -8,7 +8,7 @@ export declare const Loading: import("../utils").WithInstall<import("vue").Defin
|
|
8
8
|
vertical: BooleanConstructor;
|
9
9
|
textSize: (NumberConstructor | StringConstructor)[];
|
10
10
|
textColor: 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
|
size: (NumberConstructor | StringConstructor)[];
|
13
13
|
type: {
|
14
14
|
type: import("vue").PropType<import("./Loading").LoadingType>;
|
package/lib/loading/index.js
CHANGED
@@ -16,7 +16,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
16
16
|
}
|
17
17
|
return to;
|
18
18
|
};
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
20
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
21
|
+
mod
|
22
|
+
));
|
20
23
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
21
24
|
var stdin_exports = {};
|
22
25
|
__export(stdin_exports, {
|
package/lib/locale/index.js
CHANGED
@@ -16,7 +16,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
16
16
|
}
|
17
17
|
return to;
|
18
18
|
};
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
20
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
21
|
+
mod
|
22
|
+
));
|
20
23
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
21
24
|
var stdin_exports = {};
|
22
25
|
__export(stdin_exports, {
|
package/lib/nav-bar/index.js
CHANGED
@@ -16,7 +16,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
16
16
|
}
|
17
17
|
return to;
|
18
18
|
};
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
20
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
21
|
+
mod
|
22
|
+
));
|
20
23
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
21
24
|
var stdin_exports = {};
|
22
25
|
__export(stdin_exports, {
|
package/lib/notice-bar/index.js
CHANGED
@@ -16,7 +16,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
16
16
|
}
|
17
17
|
return to;
|
18
18
|
};
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
20
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
21
|
+
mod
|
22
|
+
));
|
20
23
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
21
24
|
var stdin_exports = {};
|
22
25
|
__export(stdin_exports, {
|
@@ -16,7 +16,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
16
16
|
}
|
17
17
|
return to;
|
18
18
|
};
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
20
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
21
|
+
mod
|
22
|
+
));
|
20
23
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
21
24
|
var stdin_exports = {};
|
22
25
|
__export(stdin_exports, {
|
package/lib/notify/index.js
CHANGED
@@ -16,7 +16,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
16
16
|
}
|
17
17
|
return to;
|
18
18
|
};
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
20
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
21
|
+
mod
|
22
|
+
));
|
20
23
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
21
24
|
var stdin_exports = {};
|
22
25
|
__export(stdin_exports, {
|
@@ -92,7 +92,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
92
92
|
type: PropType<string | string[]>;
|
93
93
|
default: string;
|
94
94
|
};
|
95
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "blur" | "update:modelValue" | "
|
95
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "blur" | "update:modelValue" | "close" | "hide" | "show" | "delete")[], "input" | "blur" | "update:modelValue" | "close" | "hide" | "show" | "delete", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
96
96
|
show: BooleanConstructor;
|
97
97
|
title: StringConstructor;
|
98
98
|
theme: {
|
@@ -16,7 +16,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
16
16
|
}
|
17
17
|
return to;
|
18
18
|
};
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
20
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
21
|
+
mod
|
22
|
+
));
|
20
23
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
21
24
|
var stdin_exports = {};
|
22
25
|
__export(stdin_exports, {
|
@@ -43,7 +43,7 @@ export declare const NumberKeyboard: import("../utils").WithInstall<import("vue"
|
|
43
43
|
type: import("vue").PropType<string | string[]>;
|
44
44
|
default: string;
|
45
45
|
};
|
46
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "blur" | "update:modelValue" | "
|
46
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "blur" | "update:modelValue" | "close" | "hide" | "show" | "delete")[], "input" | "blur" | "update:modelValue" | "close" | "hide" | "show" | "delete", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
47
47
|
show: BooleanConstructor;
|
48
48
|
title: StringConstructor;
|
49
49
|
theme: {
|
@@ -16,7 +16,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
16
16
|
}
|
17
17
|
return to;
|
18
18
|
};
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
20
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
21
|
+
mod
|
22
|
+
));
|
20
23
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
21
24
|
var stdin_exports = {};
|
22
25
|
__export(stdin_exports, {
|
package/lib/overlay/Overlay.d.ts
CHANGED
@@ -29,7 +29,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
29
29
|
default: true;
|
30
30
|
};
|
31
31
|
customStyle: PropType<CSSProperties>;
|
32
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
32
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
33
33
|
show: BooleanConstructor;
|
34
34
|
zIndex: (NumberConstructor | StringConstructor)[];
|
35
35
|
duration: (NumberConstructor | StringConstructor)[];
|
package/lib/overlay/Overlay.js
CHANGED
@@ -23,6 +23,7 @@ module.exports = __toCommonJS(stdin_exports);
|
|
23
23
|
var import_vue = require("vue");
|
24
24
|
var import_vue2 = require("vue");
|
25
25
|
var import_utils = require("../utils");
|
26
|
+
var import_use = require("@vant/use");
|
26
27
|
var import_use_lazy_render = require("../composables/use-lazy-render");
|
27
28
|
const [name, bem] = (0, import_utils.createNamespace)("overlay");
|
28
29
|
const overlayProps = {
|
@@ -40,9 +41,12 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
40
41
|
setup(props, {
|
41
42
|
slots
|
42
43
|
}) {
|
44
|
+
const root = (0, import_vue2.ref)();
|
43
45
|
const lazyRender = (0, import_use_lazy_render.useLazyRender)(() => props.show || !props.lazyRender);
|
44
|
-
const
|
45
|
-
(
|
46
|
+
const onTouchMove = (event) => {
|
47
|
+
if (props.lockScroll) {
|
48
|
+
(0, import_utils.preventDefault)(event, true);
|
49
|
+
}
|
46
50
|
};
|
47
51
|
const renderOverlay = lazyRender(() => {
|
48
52
|
var _a;
|
@@ -51,11 +55,14 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
51
55
|
style.animationDuration = `${props.duration}s`;
|
52
56
|
}
|
53
57
|
return (0, import_vue.withDirectives)((0, import_vue.createVNode)("div", {
|
58
|
+
"ref": root,
|
54
59
|
"style": style,
|
55
|
-
"class": [bem(), props.className]
|
56
|
-
"onTouchmove": props.lockScroll ? preventTouchMove : import_utils.noop
|
60
|
+
"class": [bem(), props.className]
|
57
61
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]), [[import_vue.vShow, props.show]]);
|
58
62
|
});
|
63
|
+
(0, import_use.useEventListener)("touchmove", onTouchMove, {
|
64
|
+
target: root
|
65
|
+
});
|
59
66
|
return () => (0, import_vue.createVNode)(import_vue2.Transition, {
|
60
67
|
"name": "van-fade",
|
61
68
|
"appear": true
|
package/lib/overlay/index.d.ts
CHANGED
@@ -12,7 +12,7 @@ export declare const Overlay: import("../utils").WithInstall<import("vue").Defin
|
|
12
12
|
default: true;
|
13
13
|
};
|
14
14
|
customStyle: import("vue").PropType<import("vue").CSSProperties>;
|
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
|
show: BooleanConstructor;
|
17
17
|
zIndex: (NumberConstructor | StringConstructor)[];
|
18
18
|
duration: (NumberConstructor | StringConstructor)[];
|
package/lib/overlay/index.js
CHANGED
@@ -16,7 +16,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
16
16
|
}
|
17
17
|
return to;
|
18
18
|
};
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
20
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
21
|
+
mod
|
22
|
+
));
|
20
23
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
21
24
|
var stdin_exports = {};
|
22
25
|
__export(stdin_exports, {
|
package/lib/pagination/index.js
CHANGED
@@ -16,7 +16,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
16
16
|
}
|
17
17
|
return to;
|
18
18
|
};
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
20
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
21
|
+
mod
|
22
|
+
));
|
20
23
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
21
24
|
var stdin_exports = {};
|
22
25
|
__export(stdin_exports, {
|
@@ -16,7 +16,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
16
16
|
}
|
17
17
|
return to;
|
18
18
|
};
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
20
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
21
|
+
mod
|
22
|
+
));
|
20
23
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
21
24
|
var stdin_exports = {};
|
22
25
|
__export(stdin_exports, {
|