@varlet/ui 2.16.7 → 2.16.8-alpha.1695118057982
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-sheet/ActionSheet.mjs +97 -67
- package/es/action-sheet/index.mjs +43 -28
- package/es/action-sheet/props.mjs +39 -8
- package/es/app-bar/AppBar.mjs +129 -56
- package/es/app-bar/index.mjs +10 -5
- package/es/app-bar/props.mjs +6 -3
- package/es/avatar/Avatar.mjs +97 -87
- package/es/avatar/index.mjs +10 -5
- package/es/avatar/props.mjs +8 -5
- package/es/avatar-group/AvatarGroup.mjs +26 -20
- package/es/avatar-group/index.mjs +10 -5
- package/es/avatar-group/props.mjs +5 -2
- package/es/back-top/BackTop.mjs +71 -53
- package/es/back-top/index.mjs +10 -5
- package/es/back-top/props.mjs +6 -3
- package/es/badge/Badge.mjs +74 -46
- package/es/badge/index.mjs +10 -5
- package/es/badge/props.mjs +7 -4
- package/es/bottom-navigation/BottomNavigation.mjs +100 -97
- package/es/bottom-navigation/index.mjs +10 -5
- package/es/bottom-navigation/props.mjs +7 -4
- package/es/bottom-navigation/provide.mjs +13 -9
- package/es/bottom-navigation-item/BottomNavigationItem.mjs +93 -74
- package/es/bottom-navigation-item/index.mjs +10 -5
- package/es/bottom-navigation-item/props.mjs +7 -4
- package/es/bottom-navigation-item/provide.mjs +14 -11
- package/es/breadcrumb/Breadcrumb.mjs +51 -36
- package/es/breadcrumb/index.mjs +10 -5
- package/es/breadcrumb/props.mjs +6 -3
- package/es/breadcrumb/provide.mjs +12 -11
- package/es/breadcrumbs/Breadcrumbs.mjs +26 -24
- package/es/breadcrumbs/index.mjs +10 -5
- package/es/breadcrumbs/props.mjs +6 -3
- package/es/breadcrumbs/provide.mjs +11 -9
- package/es/button/Button.mjs +88 -90
- package/es/button/index.mjs +10 -5
- package/es/button/props.mjs +31 -10
- package/es/button/provide.mjs +8 -9
- package/es/button-group/ButtonGroup.mjs +38 -26
- package/es/button-group/index.mjs +8 -4
- package/es/button-group/props.mjs +8 -5
- package/es/button-group/provide.mjs +9 -9
- package/es/card/Card.mjs +292 -189
- package/es/card/index.mjs +10 -5
- package/es/card/props.mjs +9 -6
- package/es/cell/Cell.mjs +96 -52
- package/es/cell/index.mjs +10 -5
- package/es/cell/props.mjs +6 -3
- package/es/checkbox/Checkbox.mjs +136 -130
- package/es/checkbox/index.mjs +10 -5
- package/es/checkbox/props.mjs +9 -6
- package/es/checkbox/provide.mjs +10 -9
- package/es/checkbox-group/CheckboxGroup.mjs +63 -96
- package/es/checkbox-group/index.mjs +10 -5
- package/es/checkbox-group/props.mjs +9 -6
- package/es/checkbox-group/provide.mjs +11 -9
- package/es/chip/Chip.mjs +66 -50
- package/es/chip/index.mjs +10 -5
- package/es/chip/props.mjs +10 -7
- package/es/col/Col.mjs +60 -55
- package/es/col/index.mjs +10 -5
- package/es/col/props.mjs +7 -4
- package/es/col/provide.mjs +8 -9
- package/es/collapse/Collapse.mjs +70 -73
- package/es/collapse/index.mjs +10 -5
- package/es/collapse/props.mjs +7 -4
- package/es/collapse/provide.mjs +11 -9
- package/es/collapse-item/CollapseItem.mjs +156 -93
- package/es/collapse-item/index.mjs +10 -5
- package/es/collapse-item/props.mjs +6 -3
- package/es/collapse-item/provide.mjs +12 -11
- package/es/context/index.mjs +9 -5
- package/es/context/lock.mjs +18 -22
- package/es/context/zIndex.mjs +19 -16
- package/es/countdown/Countdown.mjs +73 -70
- package/es/countdown/index.mjs +10 -5
- package/es/countdown/props.mjs +7 -4
- package/es/counter/Counter.mjs +169 -173
- package/es/counter/index.mjs +10 -5
- package/es/counter/props.mjs +8 -5
- package/es/counter/provide.ts +3 -0
- package/es/date-picker/DatePicker.mjs +411 -304
- package/es/date-picker/index.mjs +10 -5
- package/es/date-picker/props.mjs +71 -45
- package/es/date-picker/src/day-picker-panel.mjs +270 -208
- package/es/date-picker/src/month-picker-panel.mjs +205 -175
- package/es/date-picker/src/panel-header.mjs +101 -83
- package/es/date-picker/src/year-picker-panel.mjs +64 -54
- package/es/dialog/Dialog.mjs +171 -106
- package/es/dialog/index.mjs +49 -33
- package/es/dialog/props.mjs +39 -9
- package/es/divider/Divider.mjs +56 -51
- package/es/divider/index.mjs +10 -5
- package/es/divider/props.mjs +5 -2
- package/es/drag/Drag.mjs +126 -144
- package/es/drag/index.mjs +10 -5
- package/es/drag/props.mjs +8 -5
- package/es/ellipsis/Ellipsis.mjs +81 -50
- package/es/ellipsis/index.mjs +8 -4
- package/es/ellipsis/props.mjs +5 -2
- package/es/fab/Fab.mjs +73 -75
- package/es/fab/index.mjs +8 -4
- package/es/fab/props.mjs +14 -11
- package/es/field-decorator/FieldDecorator.mjs +215 -110
- package/es/field-decorator/props.mjs +9 -6
- package/es/form/Form.mjs +69 -79
- package/es/form/index.mjs +11 -6
- package/es/form/props.mjs +6 -3
- package/es/form/provide.mjs +35 -22
- package/es/form-details/FormDetails.mjs +81 -39
- package/es/form-details/index.mjs +10 -5
- package/es/form-details/props.mjs +7 -4
- package/es/hover/index.mjs +37 -40
- package/es/hover-overlay/HoverOverlay.mjs +18 -14
- package/es/hover-overlay/index.mjs +13 -8
- package/es/hover-overlay/props.mjs +5 -2
- package/es/icon/Icon.mjs +50 -33
- package/es/icon/index.mjs +10 -5
- package/es/icon/props.mjs +7 -4
- package/es/image/Image.mjs +76 -82
- package/es/image/index.mjs +10 -5
- package/es/image/props.mjs +7 -4
- package/es/image-preview/ImagePreview.mjs +176 -193
- package/es/image-preview/index.mjs +44 -30
- package/es/image-preview/props.mjs +34 -9
- package/es/index-anchor/IndexAnchor.mjs +45 -42
- package/es/index-anchor/index.mjs +10 -5
- package/es/index-anchor/props.mjs +5 -2
- package/es/index-anchor/provide.mjs +12 -11
- package/es/index-bar/IndexBar.mjs +130 -131
- package/es/index-bar/index.mjs +10 -5
- package/es/index-bar/props.mjs +6 -3
- package/es/index-bar/provide.mjs +11 -9
- package/es/index.bundle.mjs +1 -1
- package/es/index.mjs +1 -1
- package/es/input/Input.mjs +231 -247
- package/es/input/index.mjs +10 -5
- package/es/input/props.mjs +38 -8
- package/es/input/provide.ts +3 -0
- package/es/lazy/index.mjs +94 -87
- package/es/link/Link.mjs +39 -45
- package/es/link/index.mjs +10 -5
- package/es/link/props.mjs +8 -5
- package/es/list/List.mjs +144 -97
- package/es/list/index.mjs +10 -5
- package/es/list/props.mjs +8 -5
- package/es/list/provide.mjs +8 -9
- package/es/loading/Loading.mjs +165 -72
- package/es/loading/index.mjs +10 -5
- package/es/loading/props.mjs +7 -4
- package/es/loading-bar/LoadingBar.mjs +19 -16
- package/es/loading-bar/index.mjs +37 -30
- package/es/loading-bar/props.mjs +5 -2
- package/es/locale/en-US.mjs +76 -73
- package/es/locale/index.mjs +52 -41
- package/es/locale/zh-CN.mjs +76 -73
- package/es/menu/Menu.mjs +76 -57
- package/es/menu/index.mjs +10 -5
- package/es/menu/props.mjs +11 -8
- package/es/menu/usePopover.mjs +214 -207
- package/es/option/Option.mjs +86 -70
- package/es/option/index.mjs +10 -5
- package/es/option/props.mjs +5 -2
- package/es/option/provide.mjs +10 -11
- package/es/overlay/Overlay.mjs +29 -31
- package/es/overlay/index.mjs +10 -5
- package/es/overlay/props.mjs +7 -4
- package/es/pagination/Pagination.mjs +334 -202
- package/es/pagination/index.mjs +10 -5
- package/es/pagination/props.mjs +8 -5
- package/es/paper/Paper.mjs +43 -31
- package/es/paper/index.mjs +10 -5
- package/es/paper/props.mjs +6 -3
- package/es/picker/Picker.mjs +288 -224
- package/es/picker/index.mjs +24 -23
- package/es/picker/props.mjs +37 -7
- package/es/popup/Popup.mjs +68 -58
- package/es/popup/index.mjs +10 -5
- package/es/popup/props.mjs +9 -6
- package/es/popup/provide.mjs +12 -15
- package/es/progress/Progress.mjs +186 -114
- package/es/progress/index.mjs +10 -5
- package/es/progress/props.mjs +7 -4
- package/es/pull-refresh/PullRefresh.mjs +136 -116
- package/es/pull-refresh/index.mjs +10 -5
- package/es/pull-refresh/props.mjs +8 -5
- package/es/radio/Radio.mjs +122 -118
- package/es/radio/index.mjs +10 -5
- package/es/radio/props.mjs +8 -5
- package/es/radio/provide.mjs +8 -9
- package/es/radio-group/RadioGroup.mjs +50 -58
- package/es/radio-group/index.mjs +10 -5
- package/es/radio-group/props.mjs +10 -7
- package/es/radio-group/provide.mjs +11 -9
- package/es/rate/Rate.mjs +103 -132
- package/es/rate/index.mjs +10 -5
- package/es/rate/props.mjs +10 -7
- package/es/rate/provide.ts +3 -0
- package/es/result/Empty.mjs +21 -12
- package/es/result/Error.mjs +18 -9
- package/es/result/Info.mjs +18 -9
- package/es/result/Question.mjs +18 -9
- package/es/result/Result.mjs +102 -55
- package/es/result/Success.mjs +84 -40
- package/es/result/Warning.mjs +18 -9
- package/es/result/index.mjs +10 -5
- package/es/result/props.mjs +6 -3
- package/es/ripple/index.mjs +89 -101
- package/es/row/Row.mjs +40 -45
- package/es/row/index.mjs +10 -5
- package/es/row/props.mjs +8 -5
- package/es/row/provide.mjs +9 -9
- package/es/select/Select.mjs +308 -298
- package/es/select/index.mjs +10 -5
- package/es/select/props.mjs +40 -10
- package/es/select/provide.mjs +9 -9
- package/es/skeleton/Skeleton.mjs +182 -71
- package/es/skeleton/index.mjs +10 -5
- package/es/skeleton/props.mjs +5 -2
- package/es/slider/Slider.mjs +310 -260
- package/es/slider/index.mjs +10 -5
- package/es/slider/props.mjs +15 -11
- package/es/slider/provide.ts +3 -0
- package/es/snackbar/Snackbar.mjs +47 -34
- package/es/snackbar/core.mjs +140 -77
- package/es/snackbar/index.mjs +111 -97
- package/es/snackbar/props.mjs +35 -14
- package/es/space/Space.mjs +30 -28
- package/es/space/index.mjs +10 -5
- package/es/space/margin.mjs +22 -23
- package/es/space/props.mjs +8 -5
- package/es/step/Step.mjs +96 -74
- package/es/step/index.mjs +10 -5
- package/es/step/props.mjs +6 -3
- package/es/step/provide.mjs +10 -11
- package/es/steps/Steps.mjs +31 -30
- package/es/steps/index.mjs +10 -5
- package/es/steps/props.mjs +7 -4
- package/es/steps/provide.mjs +9 -8
- package/es/sticky/Sticky.mjs +104 -92
- package/es/sticky/index.mjs +10 -5
- package/es/sticky/props.mjs +6 -3
- package/es/style-provider/StyleProvider.mjs +19 -18
- package/es/style-provider/index.mjs +15 -11
- package/es/style-provider/props.mjs +6 -3
- package/es/swipe/Swipe.mjs +281 -268
- package/es/swipe/index.mjs +10 -5
- package/es/swipe/props.mjs +6 -3
- package/es/swipe/provide.mjs +11 -9
- package/es/swipe-item/SwipeItem.mjs +29 -29
- package/es/swipe-item/index.mjs +8 -4
- package/es/swipe-item/provide.mjs +10 -11
- package/es/switch/Switch.mjs +143 -103
- package/es/switch/index.mjs +10 -5
- package/es/switch/props.mjs +7 -4
- package/es/switch/provide.ts +3 -0
- package/es/tab/Tab.mjs +48 -61
- package/es/tab/index.mjs +10 -5
- package/es/tab/props.mjs +6 -3
- package/es/tab/provide.mjs +10 -11
- package/es/tab-item/TabItem.mjs +27 -32
- package/es/tab-item/index.mjs +10 -5
- package/es/tab-item/props.mjs +5 -2
- package/es/tab-item/provide.mjs +17 -18
- package/es/table/Table.mjs +54 -25
- package/es/table/index.mjs +10 -5
- package/es/table/props.mjs +6 -3
- package/es/tabs/Tabs.mjs +162 -134
- package/es/tabs/index.mjs +10 -5
- package/es/tabs/props.mjs +15 -12
- package/es/tabs/provide.mjs +9 -9
- package/es/tabs-items/TabsItems.mjs +61 -65
- package/es/tabs-items/index.mjs +10 -5
- package/es/tabs-items/props.mjs +7 -4
- package/es/tabs-items/provide.mjs +11 -9
- package/es/themes/dark/actionSheet.mjs +8 -5
- package/es/themes/dark/appBar.mjs +6 -3
- package/es/themes/dark/avatar.mjs +7 -4
- package/es/themes/dark/badge.mjs +6 -3
- package/es/themes/dark/bottomNavigation.mjs +7 -4
- package/es/themes/dark/bottomNavigationItem.mjs +6 -3
- package/es/themes/dark/breadcrumb.mjs +6 -3
- package/es/themes/dark/button.mjs +7 -4
- package/es/themes/dark/card.mjs +10 -7
- package/es/themes/dark/cell.mjs +7 -4
- package/es/themes/dark/checkbox.mjs +7 -4
- package/es/themes/dark/chip.mjs +7 -4
- package/es/themes/dark/collapse.mjs +8 -5
- package/es/themes/dark/countdown.mjs +6 -3
- package/es/themes/dark/datePicker.mjs +10 -7
- package/es/themes/dark/dialog.mjs +8 -5
- package/es/themes/dark/divider.mjs +7 -4
- package/es/themes/dark/fieldDecorator.mjs +7 -4
- package/es/themes/dark/index.mjs +69 -51
- package/es/themes/dark/link.mjs +6 -3
- package/es/themes/dark/menu.mjs +6 -3
- package/es/themes/dark/option.mjs +6 -3
- package/es/themes/dark/pagination.mjs +11 -8
- package/es/themes/dark/paper.mjs +6 -3
- package/es/themes/dark/picker.mjs +11 -8
- package/es/themes/dark/popup.mjs +6 -3
- package/es/themes/dark/progress.mjs +6 -3
- package/es/themes/dark/pullRefresh.mjs +6 -3
- package/es/themes/dark/radio.mjs +7 -4
- package/es/themes/dark/result.mjs +12 -9
- package/es/themes/dark/select.mjs +6 -3
- package/es/themes/dark/skeleton.mjs +11 -6
- package/es/themes/dark/steps.mjs +8 -5
- package/es/themes/dark/switch.mjs +7 -4
- package/es/themes/dark/tab.mjs +6 -3
- package/es/themes/dark/table.mjs +12 -9
- package/es/themes/dark/tabs.mjs +6 -3
- package/es/themes/dark/timePicker.mjs +9 -6
- package/es/themes/dark/uploader.mjs +10 -7
- package/es/themes/dark/watermark.mjs +6 -3
- package/es/themes/index.mjs +7 -5
- package/es/time-picker/TimePicker.mjs +297 -232
- package/es/time-picker/clock.mjs +222 -172
- package/es/time-picker/index.mjs +10 -5
- package/es/time-picker/props.mjs +14 -8
- package/es/time-picker/utils.mjs +46 -86
- package/es/tooltip/Tooltip.mjs +82 -62
- package/es/tooltip/index.mjs +10 -5
- package/es/tooltip/props.mjs +12 -9
- package/es/uploader/Uploader.mjs +315 -308
- package/es/uploader/index.mjs +10 -5
- package/es/uploader/props.mjs +10 -7
- package/es/uploader/provide.ts +3 -0
- package/es/utils/components.mjs +158 -127
- package/es/utils/elements.mjs +106 -123
- package/es/utils/logger.mjs +9 -5
- package/es/utils/shared.mjs +25 -23
- package/es/utils/test.mjs +105 -93
- package/es/varlet.esm.js +12464 -13425
- package/es/watermark/Watermark.mjs +191 -109
- package/es/watermark/index.mjs +8 -4
- package/es/watermark/props.mjs +8 -5
- package/highlight/web-types.en-US.json +3 -3
- package/highlight/web-types.zh-CN.json +2 -2
- package/lib/varlet.cjs.js +9187 -10199
- package/package.json +7 -7
- package/umd/varlet.js +4 -4
- package/es/counter/provide.mjs +0 -1
- package/es/input/provide.mjs +0 -1
- package/es/rate/provide.mjs +0 -1
- package/es/slider/provide.mjs +0 -1
- package/es/switch/provide.mjs +0 -1
- package/es/uploader/provide.mjs +0 -1
|
@@ -1,117 +1,253 @@
|
|
|
1
|
-
import VarMenu from
|
|
2
|
-
import Ripple from
|
|
3
|
-
import VarIcon from
|
|
4
|
-
import VarCell from
|
|
5
|
-
import VarInput from
|
|
6
|
-
import { defineComponent, ref, computed, watch } from
|
|
7
|
-
import { props } from
|
|
8
|
-
import { isNumber, toNumber } from
|
|
9
|
-
import { pack } from
|
|
10
|
-
import { call, createNamespace, formatElevation } from
|
|
11
|
-
|
|
12
|
-
name,
|
|
13
|
-
n,
|
|
14
|
-
classes
|
|
15
|
-
} = createNamespace('pagination');
|
|
1
|
+
import VarMenu from "../menu/index.mjs";
|
|
2
|
+
import Ripple from "../ripple/index.mjs";
|
|
3
|
+
import VarIcon from "../icon/index.mjs";
|
|
4
|
+
import VarCell from "../cell/index.mjs";
|
|
5
|
+
import VarInput from "../input/index.mjs";
|
|
6
|
+
import { defineComponent, ref, computed, watch } from "vue";
|
|
7
|
+
import { props } from "./props.mjs";
|
|
8
|
+
import { isNumber, toNumber } from "@varlet/shared";
|
|
9
|
+
import { pack } from "../locale/index.mjs";
|
|
10
|
+
import { call, createNamespace, formatElevation } from "../utils/components.mjs";
|
|
11
|
+
const { name, n, classes } = createNamespace("pagination");
|
|
16
12
|
import { renderSlot as _renderSlot, resolveComponent as _resolveComponent, createVNode as _createVNode, normalizeClass as _normalizeClass, resolveDirective as _resolveDirective, openBlock as _openBlock, createElementBlock as _createElementBlock, withDirectives as _withDirectives, withKeys as _withKeys, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, createTextVNode as _createTextVNode, createCommentVNode as _createCommentVNode, renderList as _renderList, Fragment as _Fragment, withModifiers as _withModifiers, withCtx as _withCtx, createBlock as _createBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
const _withScopeId = (n2) => (_pushScopeId(""), n2 = n2(), _popScopeId(), n2);
|
|
14
|
+
const _hoisted_1 = ["item-mode", "onClick"];
|
|
19
15
|
function __render__(_ctx, _cache) {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
return _openBlock(), _createElementBlock(
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
16
|
+
const _component_var_icon = _resolveComponent("var-icon");
|
|
17
|
+
const _component_var_input = _resolveComponent("var-input");
|
|
18
|
+
const _component_var_cell = _resolveComponent("var-cell");
|
|
19
|
+
const _component_var_menu = _resolveComponent("var-menu");
|
|
20
|
+
const _directive_ripple = _resolveDirective("ripple");
|
|
21
|
+
return _openBlock(), _createElementBlock(
|
|
22
|
+
"ul",
|
|
23
|
+
{
|
|
24
|
+
class: _normalizeClass(_ctx.n())
|
|
25
|
+
},
|
|
26
|
+
[
|
|
27
|
+
_withDirectives((_openBlock(), _createElementBlock(
|
|
28
|
+
"li",
|
|
29
|
+
{
|
|
30
|
+
class: _normalizeClass(
|
|
31
|
+
_ctx.classes(
|
|
32
|
+
_ctx.n("item"),
|
|
33
|
+
_ctx.n("prev"),
|
|
34
|
+
[_ctx.current <= 1 || _ctx.disabled, _ctx.n("item--disabled")],
|
|
35
|
+
[_ctx.simple, _ctx.n("item--simple"), _ctx.formatElevation(_ctx.elevation, 2)]
|
|
36
|
+
)
|
|
37
|
+
),
|
|
38
|
+
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.clickItem("prev"))
|
|
39
|
+
},
|
|
40
|
+
[
|
|
41
|
+
_renderSlot(_ctx.$slots, "prev", {}, () => [
|
|
42
|
+
_createVNode(_component_var_icon, { name: "chevron-left" })
|
|
43
|
+
])
|
|
44
|
+
],
|
|
45
|
+
2
|
|
46
|
+
/* CLASS */
|
|
47
|
+
)), [
|
|
48
|
+
[_directive_ripple, { disabled: _ctx.current <= 1 || _ctx.disabled }]
|
|
49
|
+
]),
|
|
50
|
+
_ctx.simple ? (_openBlock(), _createElementBlock(
|
|
51
|
+
"li",
|
|
52
|
+
{
|
|
53
|
+
key: 0,
|
|
54
|
+
class: _normalizeClass(_ctx.classes(_ctx.n("simple"), [_ctx.disabled, _ctx.n("item--disabled")]))
|
|
55
|
+
},
|
|
56
|
+
[
|
|
57
|
+
_createVNode(_component_var_input, {
|
|
58
|
+
"var-pagination-cover": "",
|
|
59
|
+
hint: false,
|
|
60
|
+
disabled: _ctx.disabled,
|
|
61
|
+
modelValue: _ctx.simpleCurrentValue,
|
|
62
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => _ctx.simpleCurrentValue = $event),
|
|
63
|
+
onBlur: _cache[2] || (_cache[2] = ($event) => _ctx.setPage("simple", _ctx.simpleCurrentValue, $event)),
|
|
64
|
+
onKeydown: _cache[3] || (_cache[3] = _withKeys(($event) => _ctx.setPage("simple", _ctx.simpleCurrentValue, $event), ["enter"]))
|
|
65
|
+
}, null, 8, ["disabled", "modelValue"]),
|
|
66
|
+
_createElementVNode("span", null, [
|
|
67
|
+
_createTextVNode(
|
|
68
|
+
" / " + _toDisplayString(_ctx.pageCount) + " ",
|
|
69
|
+
1
|
|
70
|
+
/* TEXT */
|
|
71
|
+
),
|
|
72
|
+
_createElementVNode(
|
|
73
|
+
"div",
|
|
74
|
+
{
|
|
75
|
+
class: _normalizeClass(_ctx.n("simple-line"))
|
|
76
|
+
},
|
|
77
|
+
null,
|
|
78
|
+
2
|
|
79
|
+
/* CLASS */
|
|
80
|
+
)
|
|
81
|
+
])
|
|
82
|
+
],
|
|
83
|
+
2
|
|
84
|
+
/* CLASS */
|
|
85
|
+
)) : (_openBlock(true), _createElementBlock(
|
|
86
|
+
_Fragment,
|
|
87
|
+
{ key: 1 },
|
|
88
|
+
_renderList(_ctx.pageList, (item, index) => {
|
|
89
|
+
return _withDirectives((_openBlock(), _createElementBlock("li", {
|
|
90
|
+
key: index,
|
|
91
|
+
"item-mode": _ctx.getMode(item, index),
|
|
92
|
+
class: _normalizeClass(
|
|
93
|
+
_ctx.classes(
|
|
94
|
+
_ctx.n("item"),
|
|
95
|
+
_ctx.formatElevation(_ctx.elevation, 2),
|
|
96
|
+
[item === _ctx.current && !_ctx.disabled, _ctx.n("item--active")],
|
|
97
|
+
[_ctx.isHideEllipsis(item, index), _ctx.n("item--hide")],
|
|
98
|
+
[_ctx.disabled, _ctx.n("item--disabled")],
|
|
99
|
+
[item === _ctx.current && _ctx.disabled, _ctx.n("item--disabled--active")]
|
|
100
|
+
)
|
|
101
|
+
),
|
|
102
|
+
onClick: ($event) => _ctx.clickItem(item, index)
|
|
103
|
+
}, [
|
|
104
|
+
_createTextVNode(
|
|
105
|
+
_toDisplayString(item),
|
|
106
|
+
1
|
|
107
|
+
/* TEXT */
|
|
108
|
+
)
|
|
109
|
+
], 10, _hoisted_1)), [
|
|
110
|
+
[_directive_ripple, { disabled: _ctx.disabled }]
|
|
111
|
+
]);
|
|
112
|
+
}),
|
|
113
|
+
128
|
|
114
|
+
/* KEYED_FRAGMENT */
|
|
115
|
+
)),
|
|
116
|
+
_withDirectives((_openBlock(), _createElementBlock(
|
|
117
|
+
"li",
|
|
118
|
+
{
|
|
119
|
+
class: _normalizeClass(
|
|
120
|
+
_ctx.classes(
|
|
121
|
+
_ctx.n("item"),
|
|
122
|
+
_ctx.n("next"),
|
|
123
|
+
[_ctx.current >= _ctx.pageCount || _ctx.disabled, _ctx.n("item--disabled")],
|
|
124
|
+
[_ctx.simple, _ctx.n("item--simple"), _ctx.formatElevation(_ctx.elevation, 2)]
|
|
125
|
+
)
|
|
126
|
+
),
|
|
127
|
+
onClick: _cache[4] || (_cache[4] = ($event) => _ctx.clickItem("next"))
|
|
128
|
+
},
|
|
129
|
+
[
|
|
130
|
+
_renderSlot(_ctx.$slots, "next", {}, () => [
|
|
131
|
+
_createVNode(_component_var_icon, { name: "chevron-right" })
|
|
132
|
+
])
|
|
133
|
+
],
|
|
134
|
+
2
|
|
135
|
+
/* CLASS */
|
|
136
|
+
)), [
|
|
137
|
+
[_directive_ripple, { disabled: _ctx.current >= _ctx.pageCount || _ctx.disabled }]
|
|
138
|
+
]),
|
|
139
|
+
_ctx.showSizeChanger ? (_openBlock(), _createElementBlock(
|
|
140
|
+
"li",
|
|
141
|
+
{
|
|
142
|
+
key: 2,
|
|
143
|
+
class: _normalizeClass(_ctx.classes(_ctx.n("size"), [_ctx.disabled, _ctx.n("item--disabled")]))
|
|
144
|
+
},
|
|
145
|
+
[
|
|
146
|
+
_createVNode(_component_var_menu, {
|
|
147
|
+
placement: "cover-top",
|
|
148
|
+
disabled: _ctx.disabled,
|
|
149
|
+
show: _ctx.menuVisible,
|
|
150
|
+
"onUpdate:show": _cache[6] || (_cache[6] = ($event) => _ctx.menuVisible = $event)
|
|
151
|
+
}, {
|
|
152
|
+
menu: _withCtx(() => [
|
|
153
|
+
(_openBlock(true), _createElementBlock(
|
|
154
|
+
_Fragment,
|
|
155
|
+
null,
|
|
156
|
+
_renderList(_ctx.sizeOption, (option, index) => {
|
|
157
|
+
return _withDirectives((_openBlock(), _createBlock(_component_var_cell, {
|
|
158
|
+
class: _normalizeClass(_ctx.classes(_ctx.n("list"), [_ctx.size === option, _ctx.n("list--active")])),
|
|
159
|
+
key: index,
|
|
160
|
+
onClick: ($event) => _ctx.clickSize(option)
|
|
161
|
+
}, {
|
|
162
|
+
default: _withCtx(() => [
|
|
163
|
+
_createTextVNode(
|
|
164
|
+
_toDisplayString(option) + _toDisplayString(_ctx.pack.paginationItem) + " / " + _toDisplayString(_ctx.pack.paginationPage),
|
|
165
|
+
1
|
|
166
|
+
/* TEXT */
|
|
167
|
+
)
|
|
168
|
+
]),
|
|
169
|
+
_: 2
|
|
170
|
+
/* DYNAMIC */
|
|
171
|
+
}, 1032, ["class", "onClick"])), [
|
|
172
|
+
[_directive_ripple]
|
|
173
|
+
]);
|
|
174
|
+
}),
|
|
175
|
+
128
|
|
176
|
+
/* KEYED_FRAGMENT */
|
|
177
|
+
))
|
|
178
|
+
]),
|
|
179
|
+
default: _withCtx(() => [
|
|
180
|
+
_createElementVNode(
|
|
181
|
+
"div",
|
|
182
|
+
{
|
|
183
|
+
class: _normalizeClass(_ctx.classes(_ctx.n("size--open"), [_ctx.current <= 1 || _ctx.disabled, _ctx.n("size--open--disabled")])),
|
|
184
|
+
onClick: _cache[5] || (_cache[5] = _withModifiers((...args) => _ctx.showMenu && _ctx.showMenu(...args), ["stop"]))
|
|
185
|
+
},
|
|
186
|
+
[
|
|
187
|
+
_createElementVNode(
|
|
188
|
+
"span",
|
|
189
|
+
null,
|
|
190
|
+
_toDisplayString(_ctx.size) + _toDisplayString(_ctx.pack.paginationItem) + " / " + _toDisplayString(_ctx.pack.paginationPage),
|
|
191
|
+
1
|
|
192
|
+
/* TEXT */
|
|
193
|
+
),
|
|
194
|
+
_createVNode(_component_var_icon, {
|
|
195
|
+
class: _normalizeClass(_ctx.n("size--open-icon")),
|
|
196
|
+
"var-pagination-cover": "",
|
|
197
|
+
name: "menu-down"
|
|
198
|
+
}, null, 8, ["class"])
|
|
199
|
+
],
|
|
200
|
+
2
|
|
201
|
+
/* CLASS */
|
|
202
|
+
)
|
|
203
|
+
]),
|
|
204
|
+
_: 1
|
|
205
|
+
/* STABLE */
|
|
206
|
+
}, 8, ["disabled", "show"])
|
|
207
|
+
],
|
|
208
|
+
2
|
|
209
|
+
/* CLASS */
|
|
210
|
+
)) : _createCommentVNode("v-if", true),
|
|
211
|
+
_ctx.showQuickJumper && !_ctx.simple ? (_openBlock(), _createElementBlock(
|
|
212
|
+
"li",
|
|
213
|
+
{
|
|
214
|
+
key: 3,
|
|
215
|
+
class: _normalizeClass(_ctx.classes(_ctx.n("quickly"), [_ctx.disabled, _ctx.n("item--disabled")]))
|
|
216
|
+
},
|
|
217
|
+
[
|
|
218
|
+
_createTextVNode(
|
|
219
|
+
_toDisplayString(_ctx.pack.paginationJump) + " ",
|
|
220
|
+
1
|
|
221
|
+
/* TEXT */
|
|
222
|
+
),
|
|
223
|
+
_createVNode(_component_var_input, {
|
|
224
|
+
modelValue: _ctx.quickJumperValue,
|
|
225
|
+
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => _ctx.quickJumperValue = $event),
|
|
226
|
+
disabled: _ctx.disabled,
|
|
227
|
+
"var-pagination-cover": "",
|
|
228
|
+
onBlur: _cache[8] || (_cache[8] = ($event) => _ctx.setPage("quick", _ctx.quickJumperValue, $event)),
|
|
229
|
+
onKeydown: _cache[9] || (_cache[9] = _withKeys(($event) => _ctx.setPage("quick", _ctx.quickJumperValue, $event), ["enter"]))
|
|
230
|
+
}, null, 8, ["modelValue", "disabled"])
|
|
231
|
+
],
|
|
232
|
+
2
|
|
233
|
+
/* CLASS */
|
|
234
|
+
)) : _createCommentVNode("v-if", true),
|
|
235
|
+
_ctx.totalText ? (_openBlock(), _createElementBlock(
|
|
236
|
+
"li",
|
|
237
|
+
{
|
|
238
|
+
key: 4,
|
|
239
|
+
class: _normalizeClass(_ctx.classes(_ctx.n("total"), [_ctx.disabled, _ctx.n("item--disabled")]))
|
|
240
|
+
},
|
|
241
|
+
_toDisplayString(_ctx.totalText),
|
|
242
|
+
3
|
|
243
|
+
/* TEXT, CLASS */
|
|
244
|
+
)) : _createCommentVNode("v-if", true)
|
|
245
|
+
],
|
|
246
|
+
2
|
|
247
|
+
/* CLASS */
|
|
248
|
+
);
|
|
112
249
|
}
|
|
113
|
-
|
|
114
|
-
var __sfc__ = defineComponent({
|
|
250
|
+
const __sfc__ = defineComponent({
|
|
115
251
|
name,
|
|
116
252
|
components: {
|
|
117
253
|
VarMenu,
|
|
@@ -119,117 +255,110 @@ var __sfc__ = defineComponent({
|
|
|
119
255
|
VarCell,
|
|
120
256
|
VarInput
|
|
121
257
|
},
|
|
122
|
-
directives: {
|
|
123
|
-
Ripple
|
|
124
|
-
},
|
|
258
|
+
directives: { Ripple },
|
|
125
259
|
props,
|
|
126
|
-
setup(
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
260
|
+
setup(props2) {
|
|
261
|
+
const menuVisible = ref(false);
|
|
262
|
+
const quickJumperValue = ref("");
|
|
263
|
+
const simpleCurrentValue = ref("1");
|
|
264
|
+
const isHideEllipsisHead = ref(false);
|
|
265
|
+
const isHideEllipsisTail = ref(false);
|
|
266
|
+
const current = ref(toNumber(props2.current) || 1);
|
|
267
|
+
const size = ref(toNumber(props2.size) || 10);
|
|
268
|
+
const pageList = ref([]);
|
|
269
|
+
const activePosition = computed(() => Math.ceil(props2.maxPagerCount / 2));
|
|
270
|
+
const pageCount = computed(() => Math.ceil(toNumber(props2.total) / toNumber(size.value)));
|
|
271
|
+
const range = computed(() => {
|
|
272
|
+
const start = size.value * (current.value - 1) + 1;
|
|
273
|
+
const end = Math.min(size.value * current.value, toNumber(props2.total));
|
|
140
274
|
return [start, end];
|
|
141
275
|
});
|
|
142
|
-
|
|
143
|
-
if (!
|
|
144
|
-
return
|
|
276
|
+
const totalText = computed(() => {
|
|
277
|
+
if (!props2.showTotal) {
|
|
278
|
+
return "";
|
|
145
279
|
}
|
|
146
|
-
return
|
|
280
|
+
return props2.showTotal(toNumber(props2.total), range.value);
|
|
147
281
|
});
|
|
148
|
-
watch([() =>
|
|
149
|
-
var [newCurrent, newSize] = _ref;
|
|
282
|
+
watch([() => props2.current, () => props2.size], ([newCurrent, newSize]) => {
|
|
150
283
|
current.value = toNumber(newCurrent) || 1;
|
|
151
284
|
size.value = toNumber(newSize || 10);
|
|
152
285
|
});
|
|
153
|
-
watch(
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
if (newCount - 2 > maxPagerCount) {
|
|
166
|
-
if (oldCurrent === undefined || newCount !== oldCount) {
|
|
167
|
-
for (var i = 2; i < maxPagerCount + 2; i++) list.push(i);
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
// 左边不需要出现省略符号占位
|
|
171
|
-
if (newCurrent <= maxPagerCount && newCurrent < rEllipseSign) {
|
|
172
|
-
list = [];
|
|
173
|
-
for (var _i = 1; _i < maxPagerCount + 1; _i++) {
|
|
174
|
-
list.push(_i + 1);
|
|
286
|
+
watch(
|
|
287
|
+
[current, size, pageCount],
|
|
288
|
+
([newCurrent, newSize, newCount], [oldCurrent, oldSize]) => {
|
|
289
|
+
let list = [];
|
|
290
|
+
const { maxPagerCount, total, onChange } = props2;
|
|
291
|
+
const oldCount = Math.ceil(toNumber(total) / toNumber(oldSize));
|
|
292
|
+
const rEllipseSign = newCount - (maxPagerCount - activePosition.value) - 1;
|
|
293
|
+
simpleCurrentValue.value = `${newCurrent}`;
|
|
294
|
+
if (newCount - 2 > maxPagerCount) {
|
|
295
|
+
if (oldCurrent === void 0 || newCount !== oldCount) {
|
|
296
|
+
for (let i = 2; i < maxPagerCount + 2; i++)
|
|
297
|
+
list.push(i);
|
|
175
298
|
}
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
list.push(newCurrent + _i2 - activePosition.value);
|
|
299
|
+
if (newCurrent <= maxPagerCount && newCurrent < rEllipseSign) {
|
|
300
|
+
list = [];
|
|
301
|
+
for (let i = 1; i < maxPagerCount + 1; i++) {
|
|
302
|
+
list.push(i + 1);
|
|
303
|
+
}
|
|
304
|
+
isHideEllipsisHead.value = true;
|
|
305
|
+
isHideEllipsisTail.value = false;
|
|
184
306
|
}
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
list = [];
|
|
193
|
-
for (var _i3 = 1; _i3 < maxPagerCount + 1; _i3++) {
|
|
194
|
-
list.push(newCount - (maxPagerCount - _i3) - 1);
|
|
307
|
+
if (newCurrent > maxPagerCount && newCurrent < rEllipseSign) {
|
|
308
|
+
list = [];
|
|
309
|
+
for (let i = 1; i < maxPagerCount + 1; i++) {
|
|
310
|
+
list.push(newCurrent + i - activePosition.value);
|
|
311
|
+
}
|
|
312
|
+
isHideEllipsisHead.value = newCurrent === 2 && maxPagerCount === 1;
|
|
313
|
+
isHideEllipsisTail.value = false;
|
|
195
314
|
}
|
|
196
|
-
|
|
197
|
-
|
|
315
|
+
if (newCurrent >= rEllipseSign) {
|
|
316
|
+
list = [];
|
|
317
|
+
for (let i = 1; i < maxPagerCount + 1; i++) {
|
|
318
|
+
list.push(newCount - (maxPagerCount - i) - 1);
|
|
319
|
+
}
|
|
320
|
+
isHideEllipsisHead.value = false;
|
|
321
|
+
isHideEllipsisTail.value = true;
|
|
322
|
+
}
|
|
323
|
+
list = [1, "...", ...list, "...", newCount];
|
|
324
|
+
} else {
|
|
325
|
+
for (let i = 1; i <= newCount; i++)
|
|
326
|
+
list.push(i);
|
|
198
327
|
}
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
328
|
+
pageList.value = list;
|
|
329
|
+
if (oldCurrent != null && newCount > 0) {
|
|
330
|
+
call(onChange, newCurrent, newSize);
|
|
331
|
+
}
|
|
332
|
+
call(props2["onUpdate:current"], newCurrent);
|
|
333
|
+
call(props2["onUpdate:size"], newSize);
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
immediate: true
|
|
206
337
|
}
|
|
207
|
-
|
|
208
|
-
call(props['onUpdate:size'], newSize);
|
|
209
|
-
}, {
|
|
210
|
-
immediate: true
|
|
211
|
-
});
|
|
338
|
+
);
|
|
212
339
|
function isHideEllipsis(item, index) {
|
|
213
|
-
if (isNumber(item))
|
|
340
|
+
if (isNumber(item))
|
|
341
|
+
return false;
|
|
214
342
|
return index === 1 ? isHideEllipsisHead.value : isHideEllipsisTail.value;
|
|
215
343
|
}
|
|
216
344
|
function getMode(item, index) {
|
|
217
|
-
if (isNumber(item))
|
|
218
|
-
|
|
345
|
+
if (isNumber(item))
|
|
346
|
+
return "basic";
|
|
347
|
+
return index === 1 ? "head" : "tail";
|
|
219
348
|
}
|
|
220
349
|
function clickItem(item, index) {
|
|
221
|
-
if (item === current.value ||
|
|
350
|
+
if (item === current.value || props2.disabled) {
|
|
222
351
|
return;
|
|
223
352
|
}
|
|
224
|
-
if (item ===
|
|
225
|
-
current.value = index === 1 ? Math.max(current.value -
|
|
353
|
+
if (item === "...") {
|
|
354
|
+
current.value = index === 1 ? Math.max(current.value - props2.maxPagerCount, 1) : Math.min(current.value + props2.maxPagerCount, pageCount.value);
|
|
226
355
|
return;
|
|
227
356
|
}
|
|
228
|
-
if (item ===
|
|
357
|
+
if (item === "prev") {
|
|
229
358
|
current.value = ensureCurrentBoundary(current.value - 1);
|
|
230
359
|
return;
|
|
231
360
|
}
|
|
232
|
-
if (item ===
|
|
361
|
+
if (item === "next") {
|
|
233
362
|
current.value = ensureCurrentBoundary(current.value + 1);
|
|
234
363
|
return;
|
|
235
364
|
}
|
|
@@ -238,7 +367,7 @@ var __sfc__ = defineComponent({
|
|
|
238
367
|
}
|
|
239
368
|
}
|
|
240
369
|
function showMenu() {
|
|
241
|
-
if (
|
|
370
|
+
if (props2.disabled) {
|
|
242
371
|
return;
|
|
243
372
|
}
|
|
244
373
|
menuVisible.value = true;
|
|
@@ -246,7 +375,7 @@ var __sfc__ = defineComponent({
|
|
|
246
375
|
function clickSize(option) {
|
|
247
376
|
size.value = option;
|
|
248
377
|
menuVisible.value = false;
|
|
249
|
-
|
|
378
|
+
const targetCurrent = ensureCurrentBoundary(current.value);
|
|
250
379
|
simpleCurrentValue.value = String(targetCurrent);
|
|
251
380
|
current.value = targetCurrent;
|
|
252
381
|
}
|
|
@@ -262,11 +391,11 @@ var __sfc__ = defineComponent({
|
|
|
262
391
|
function setPage(type, page, event) {
|
|
263
392
|
;
|
|
264
393
|
event.target.blur();
|
|
265
|
-
|
|
394
|
+
const targetCurrent = ensureCurrentBoundary(toNumber(page));
|
|
266
395
|
simpleCurrentValue.value = String(targetCurrent);
|
|
267
396
|
current.value = targetCurrent;
|
|
268
|
-
if (type ===
|
|
269
|
-
quickJumperValue.value =
|
|
397
|
+
if (type === "quick") {
|
|
398
|
+
quickJumperValue.value = "";
|
|
270
399
|
}
|
|
271
400
|
}
|
|
272
401
|
return {
|
|
@@ -293,4 +422,7 @@ var __sfc__ = defineComponent({
|
|
|
293
422
|
}
|
|
294
423
|
});
|
|
295
424
|
__sfc__.render = __render__;
|
|
296
|
-
|
|
425
|
+
var stdin_default = __sfc__;
|
|
426
|
+
export {
|
|
427
|
+
stdin_default as default
|
|
428
|
+
};
|
package/es/pagination/index.mjs
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
import Pagination from
|
|
2
|
-
import { withInstall } from
|
|
1
|
+
import Pagination from "./Pagination.mjs";
|
|
2
|
+
import { withInstall } from "../utils/components.mjs";
|
|
3
3
|
withInstall(Pagination);
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
import { props } from "./props.mjs";
|
|
5
|
+
const _PaginationComponent = Pagination;
|
|
6
|
+
var stdin_default = Pagination;
|
|
7
|
+
export {
|
|
8
|
+
_PaginationComponent,
|
|
9
|
+
stdin_default as default,
|
|
10
|
+
props as paginationProps
|
|
11
|
+
};
|
package/es/pagination/props.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineListenerProp } from
|
|
2
|
-
|
|
1
|
+
import { defineListenerProp } from "../utils/components.mjs";
|
|
2
|
+
const props = {
|
|
3
3
|
current: [Number, String],
|
|
4
4
|
size: {
|
|
5
5
|
type: [Number, String],
|
|
@@ -33,6 +33,9 @@ export var props = {
|
|
|
33
33
|
},
|
|
34
34
|
showTotal: Function,
|
|
35
35
|
onChange: defineListenerProp(),
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
};
|
|
36
|
+
"onUpdate:current": defineListenerProp(),
|
|
37
|
+
"onUpdate:size": defineListenerProp()
|
|
38
|
+
};
|
|
39
|
+
export {
|
|
40
|
+
props
|
|
41
|
+
};
|