vft 0.0.89 → 0.0.91
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/attributes.json +1 -1
- package/es/comp-resolver.js +20 -29
- package/es/components/affix/affix.vue2.js +34 -34
- package/es/components/alert/alert.vue2.js +44 -44
- package/es/components/avatar/avatar.vue2.js +28 -28
- package/es/components/backtop/backtop.vue2.js +11 -11
- package/es/components/button/button-group.vue2.js +8 -8
- package/es/components/button/button.vue2.js +39 -39
- package/es/components/card/card.vue2.js +20 -20
- package/es/components/check-tag/check-tag.vue2.js +14 -14
- package/es/components/checkbox/checkbox-button.vue2.js +61 -61
- package/es/components/checkbox/checkbox-group.vue2.js +27 -27
- package/es/components/checkbox/checkbox.vue2.js +81 -81
- package/es/components/clamp/clamp.vue2.js +59 -59
- package/es/components/clamp-toggle/clamp-toggle.vue2.js +25 -25
- package/es/components/col/col.vue2.js +33 -33
- package/es/components/color-picker/color-picker.vue2.js +126 -126
- package/es/components/color-picker/components/alpha-slider.vue2.js +12 -12
- package/es/components/config-provider/config-provider.vue2.js +29 -29
- package/es/components/container/aside.vue2.js +9 -9
- package/es/components/container/container.vue2.js +11 -11
- package/es/components/container/footer.vue2.js +8 -8
- package/es/components/container/header.vue2.js +9 -9
- package/es/components/context-menu/context-menu.vue2.js +29 -29
- package/es/components/date-picker/date-picker-com/basic-date-table.vue2.js +53 -53
- package/es/components/date-picker/date-picker-com/basic-month-table.vue2.js +19 -19
- package/es/components/date-picker/date-picker-com/basic-year-table.vue2.js +32 -32
- package/es/components/date-picker/date-picker-com/panel-date-pick.vue2.js +168 -168
- package/es/components/date-picker/date-picker-com/panel-date-range.vue2.js +89 -89
- package/es/components/date-picker/date-picker-com/panel-month-range.vue2.js +38 -38
- package/es/components/descriptions/description-item.vue2.js +16 -16
- package/es/components/descriptions/description.vue2.js +54 -54
- package/es/components/descriptions/descriptions-row.vue2.js +24 -24
- package/es/components/dialog/dialog-content.vue2.js +30 -30
- package/es/components/dialog/dialog.vue2.js +64 -64
- package/es/components/divider/divider.vue2.js +20 -20
- package/es/components/dropdown/dropdown.vue.js +2 -127
- package/es/components/dropdown/dropdown.vue2.js +234 -181
- package/es/components/dropdown/index.js +10 -17
- package/es/components/dropdown/style/css.js +5 -0
- package/es/components/dropdown/style/index.js +5 -0
- package/es/components/dropdown/tokens.js +1 -1
- package/es/components/empty/empty.vue2.js +27 -27
- package/es/components/exception/exception.vue2.js +19 -19
- package/es/components/footer-layout/footer-layout.vue2.js +1 -1
- package/es/components/form/form-item.vue2.js +77 -77
- package/es/components/form/form.vue2.js +37 -37
- package/es/components/full-screen/full-screen.vue2.js +26 -15
- package/es/components/header-layout/header-layout.vue2.js +27 -27
- package/es/components/horizontal-menu/horizontal-menu.vue2.js +43 -43
- package/es/components/icon/icon.vue2.js +24 -24
- package/es/components/icon-text/icon-text.vue2.js +27 -27
- package/es/components/iframe-layout/iframe-layout.vue2.js +18 -18
- package/es/components/iframe-layout/iframe-page.vue2.js +11 -11
- package/es/components/image/image.vue2.js +73 -73
- package/es/components/image-viewer/image-viewer.vue2.js +109 -109
- package/es/components/index.js +145 -150
- package/es/components/input/input.vue2.js +175 -175
- package/es/components/link/link.vue2.js +27 -27
- package/es/components/list-cell/list-cell.vue2.js +8 -8
- package/es/components/logo/logo.vue2.js +27 -27
- package/es/components/md-container/md-container.vue2.js +1 -1
- package/es/components/md-vue-playground/md-vue-playground.vue2.js +16 -16
- package/es/components/menu/menu-item-group.vue2.js +15 -15
- package/es/components/menu/menu-item.vue2.js +56 -56
- package/es/components/menu/menu.vue2.js +20 -20
- package/es/components/menu/sub-menu.vue2.js +16 -16
- package/es/components/message/message.vue2.js +81 -81
- package/es/components/multiple-tabs/multiple-tabs.vue2.js +12 -12
- package/es/components/multiple-tabs/tab-content.vue2.js +16 -16
- package/es/components/overlay/overlay.vue2.js +14 -14
- package/es/components/page-wrapper/page-wrapper.vue2.js +12 -12
- package/es/components/pagination/components/jumper.vue2.js +22 -22
- package/es/components/pagination/components/next.vue2.js +12 -12
- package/es/components/pagination/components/pager.vue2.js +75 -75
- package/es/components/pagination/components/prev.vue2.js +13 -13
- package/es/components/pagination/components/sizes.vue2.js +11 -11
- package/es/components/pagination/components/total.vue2.js +8 -8
- package/es/components/pagination/pagination.vue2.js +28 -28
- package/es/components/popconfirm/popconfirm.vue2.js +50 -50
- package/es/components/popover/popover.vue2.js +44 -44
- package/es/components/popper/arrow.vue2.js +2 -2
- package/es/components/popper/content.vue2.js +34 -34
- package/es/components/popper/popper.vue2.js +5 -5
- package/es/components/popper/trigger.vue2.js +48 -48
- package/es/components/qrcode/qrcode.vue2.js +35 -35
- package/es/components/radio/radio-button.vue2.js +28 -28
- package/es/components/radio/radio-group.vue2.js +26 -26
- package/es/components/radio/radio.vue2.js +44 -44
- package/es/components/result/result.vue2.js +10 -10
- package/es/components/router-view-content/router-view-content.vue2.js +20 -20
- package/es/components/row/row.vue2.js +19 -19
- package/es/components/scrollbar/bar.vue2.js +19 -19
- package/es/components/scrollbar/scrollbar.vue2.js +67 -67
- package/es/components/scrollbar/thumb.vue2.js +41 -41
- package/es/components/search/search.vue2.js +65 -65
- package/es/components/side-menu/side-menu.vue2.js +36 -36
- package/es/components/skeleton/skeleton-item.vue2.js +13 -13
- package/es/components/skeleton/skeleton.vue2.js +19 -19
- package/es/components/switch/switch.vue2.js +128 -128
- package/es/components/table/index.js +5 -3
- package/es/components/table/table.vue2.js +70 -70
- package/es/components/tabs/tab-bar.vue2.js +15 -15
- package/es/components/tabs/tab-nav.vue2.js +33 -33
- package/es/components/tabs/tab-pane.vue2.js +21 -21
- package/es/components/tabs/tabs.vue2.js +64 -66
- package/es/components/tag/tag.vue2.js +7 -7
- package/es/components/time-picker/common/picker.vue2.js +14 -14
- package/es/components/time-picker/time-picker-com/basic-time-spinner.vue2.js +60 -60
- package/es/components/time-picker/time-picker-com/panel-time-pick.vue2.js +30 -30
- package/es/components/time-picker/time-picker-com/panel-time-range.vue2.js +57 -57
- package/es/components/time-select/time-select.vue2.js +29 -29
- package/es/components/tooltip/constants.js +1 -1
- package/es/components/tooltip/content.vue2.js +73 -73
- package/es/components/tooltip/tooltip.vue2.js +91 -91
- package/es/components/tooltip/trigger.vue2.js +33 -33
- package/es/components/verify-code/verify-code.vue2.js +25 -25
- package/es/index.js +208 -213
- package/es/package.json.js +1 -1
- package/lib/comp-resolver.cjs +1 -1
- package/lib/components/affix/affix.vue2.cjs +1 -1
- package/lib/components/alert/alert.vue2.cjs +1 -1
- package/lib/components/avatar/avatar.vue2.cjs +1 -1
- package/lib/components/backtop/backtop.vue2.cjs +1 -1
- package/lib/components/button/button-group.vue2.cjs +1 -1
- package/lib/components/button/button.vue2.cjs +1 -1
- package/lib/components/card/card.vue2.cjs +1 -1
- package/lib/components/check-tag/check-tag.vue2.cjs +1 -1
- package/lib/components/checkbox/checkbox-button.vue2.cjs +1 -1
- package/lib/components/checkbox/checkbox-group.vue2.cjs +1 -1
- package/lib/components/checkbox/checkbox.vue2.cjs +1 -1
- package/lib/components/clamp/clamp.vue2.cjs +1 -1
- package/lib/components/clamp-toggle/clamp-toggle.vue2.cjs +1 -1
- package/lib/components/col/col.vue2.cjs +1 -1
- package/lib/components/color-picker/color-picker.vue2.cjs +1 -1
- package/lib/components/color-picker/components/alpha-slider.vue2.cjs +1 -1
- package/lib/components/config-provider/config-provider.vue2.cjs +1 -1
- package/lib/components/container/aside.vue2.cjs +1 -1
- package/lib/components/container/container.vue2.cjs +1 -1
- package/lib/components/container/footer.vue2.cjs +1 -1
- package/lib/components/container/header.vue2.cjs +1 -1
- package/lib/components/context-menu/context-menu.vue2.cjs +1 -1
- package/lib/components/date-picker/date-picker-com/basic-date-table.vue2.cjs +1 -1
- package/lib/components/date-picker/date-picker-com/basic-month-table.vue2.cjs +1 -1
- package/lib/components/date-picker/date-picker-com/basic-year-table.vue2.cjs +1 -1
- package/lib/components/date-picker/date-picker-com/panel-date-pick.vue2.cjs +1 -1
- package/lib/components/date-picker/date-picker-com/panel-date-range.vue2.cjs +1 -1
- package/lib/components/date-picker/date-picker-com/panel-month-range.vue2.cjs +1 -1
- package/lib/components/descriptions/description-item.vue2.cjs +1 -1
- package/lib/components/descriptions/description.vue2.cjs +1 -1
- package/lib/components/descriptions/descriptions-row.vue2.cjs +1 -1
- package/lib/components/dialog/dialog-content.vue2.cjs +1 -1
- package/lib/components/dialog/dialog.vue2.cjs +1 -1
- package/lib/components/divider/divider.vue2.cjs +1 -1
- package/lib/components/dropdown/dropdown.vue.cjs +1 -1
- package/lib/components/dropdown/dropdown.vue2.cjs +1 -1
- package/lib/components/dropdown/index.cjs +1 -1
- package/lib/components/dropdown/style/css.cjs +1 -1
- package/lib/components/dropdown/style/index.cjs +1 -1
- package/lib/components/dropdown/tokens.cjs +1 -1
- package/lib/components/empty/empty.vue2.cjs +1 -1
- package/lib/components/exception/exception.vue2.cjs +1 -1
- package/lib/components/footer-layout/footer-layout.vue2.cjs +1 -1
- package/lib/components/form/form-item.vue2.cjs +1 -1
- package/lib/components/form/form.vue2.cjs +1 -1
- package/lib/components/full-screen/full-screen.vue2.cjs +1 -1
- package/lib/components/header-layout/header-layout.vue2.cjs +1 -1
- package/lib/components/horizontal-menu/horizontal-menu.vue2.cjs +1 -1
- package/lib/components/icon/icon.vue2.cjs +1 -1
- package/lib/components/icon-text/icon-text.vue2.cjs +1 -1
- package/lib/components/iframe-layout/iframe-layout.vue2.cjs +1 -1
- package/lib/components/iframe-layout/iframe-page.vue2.cjs +1 -1
- package/lib/components/image/image.vue2.cjs +1 -1
- package/lib/components/image-viewer/image-viewer.vue2.cjs +1 -1
- package/lib/components/index.cjs +1 -1
- package/lib/components/input/input.vue2.cjs +1 -1
- package/lib/components/link/link.vue2.cjs +1 -1
- package/lib/components/list-cell/list-cell.vue2.cjs +1 -1
- package/lib/components/logo/logo.vue2.cjs +1 -1
- package/lib/components/md-container/md-container.vue2.cjs +1 -1
- package/lib/components/md-vue-playground/md-vue-playground.vue2.cjs +1 -1
- package/lib/components/menu/menu-item-group.vue2.cjs +1 -1
- package/lib/components/menu/menu-item.vue2.cjs +1 -1
- package/lib/components/menu/menu.vue2.cjs +1 -1
- package/lib/components/menu/sub-menu.vue2.cjs +1 -1
- package/lib/components/message/message.vue2.cjs +1 -1
- package/lib/components/multiple-tabs/multiple-tabs.vue2.cjs +1 -1
- package/lib/components/multiple-tabs/tab-content.vue2.cjs +1 -1
- package/lib/components/overlay/overlay.vue2.cjs +1 -1
- package/lib/components/page-wrapper/page-wrapper.vue2.cjs +1 -1
- package/lib/components/pagination/components/jumper.vue2.cjs +1 -1
- package/lib/components/pagination/components/next.vue2.cjs +1 -1
- package/lib/components/pagination/components/pager.vue2.cjs +1 -1
- package/lib/components/pagination/components/prev.vue2.cjs +1 -1
- package/lib/components/pagination/components/sizes.vue2.cjs +1 -1
- package/lib/components/pagination/components/total.vue2.cjs +1 -1
- package/lib/components/pagination/pagination.vue2.cjs +1 -1
- package/lib/components/popconfirm/popconfirm.vue2.cjs +1 -1
- package/lib/components/popover/popover.vue2.cjs +1 -1
- package/lib/components/popper/arrow.vue2.cjs +1 -1
- package/lib/components/popper/content.vue2.cjs +1 -1
- package/lib/components/popper/trigger.vue2.cjs +1 -1
- package/lib/components/qrcode/qrcode.vue2.cjs +1 -1
- package/lib/components/radio/radio-button.vue2.cjs +1 -1
- package/lib/components/radio/radio-group.vue2.cjs +1 -1
- package/lib/components/radio/radio.vue2.cjs +1 -1
- package/lib/components/result/result.vue2.cjs +1 -1
- package/lib/components/router-view-content/router-view-content.vue2.cjs +1 -1
- package/lib/components/row/row.vue2.cjs +1 -1
- package/lib/components/scrollbar/bar.vue2.cjs +1 -1
- package/lib/components/scrollbar/scrollbar.vue2.cjs +1 -1
- package/lib/components/scrollbar/thumb.vue2.cjs +1 -1
- package/lib/components/search/search.vue2.cjs +1 -1
- package/lib/components/side-menu/side-menu.vue2.cjs +1 -1
- package/lib/components/skeleton/skeleton-item.vue2.cjs +1 -1
- package/lib/components/skeleton/skeleton.vue2.cjs +1 -1
- package/lib/components/switch/switch.vue2.cjs +1 -1
- package/lib/components/table/index.cjs +1 -1
- package/lib/components/table/table.vue2.cjs +1 -1
- package/lib/components/tabs/tab-bar.vue2.cjs +1 -1
- package/lib/components/tabs/tab-nav.vue2.cjs +1 -1
- package/lib/components/tabs/tab-pane.vue2.cjs +1 -1
- package/lib/components/tabs/tabs.vue2.cjs +1 -1
- package/lib/components/tag/tag.vue2.cjs +1 -1
- package/lib/components/time-picker/common/picker.vue2.cjs +1 -1
- package/lib/components/time-picker/time-picker-com/basic-time-spinner.vue2.cjs +1 -1
- package/lib/components/time-picker/time-picker-com/panel-time-pick.vue2.cjs +1 -1
- package/lib/components/time-picker/time-picker-com/panel-time-range.vue2.cjs +1 -1
- package/lib/components/time-select/time-select.vue2.cjs +1 -1
- package/lib/components/tooltip/constants.cjs +1 -1
- package/lib/components/tooltip/content.vue2.cjs +1 -1
- package/lib/components/tooltip/tooltip.vue2.cjs +1 -1
- package/lib/components/tooltip/trigger.vue2.cjs +1 -1
- package/lib/components/verify-code/verify-code.vue2.cjs +1 -1
- package/lib/index.cjs +1 -1
- package/lib/package.json.cjs +1 -1
- package/package.json +5 -5
- package/tags.json +1 -1
- package/web-types.json +1 -1
- package/theme-style/vft-back-top.css +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as G, getCurrentInstance as re, computed as r, inject as L, ref as
|
|
1
|
+
import { defineComponent as G, getCurrentInstance as re, computed as r, inject as L, ref as g, reactive as ie, watch as le, provide as ue, onMounted as ae, onBeforeUnmount as se, useSlots as pe, h as a, Fragment as me, withDirectives as ce, vShow as de } from "vue";
|
|
2
2
|
import "../divider/index.js";
|
|
3
3
|
import { VftIcon as U } from "../icon/index.js";
|
|
4
4
|
import "../avatar/index.js";
|
|
@@ -96,14 +96,14 @@ const z = (
|
|
|
96
96
|
}), tt = /* @__PURE__ */ G({
|
|
97
97
|
...Te,
|
|
98
98
|
props: {
|
|
99
|
-
index:
|
|
99
|
+
index: {},
|
|
100
100
|
showTimeout: {
|
|
101
101
|
default: 300
|
|
102
102
|
},
|
|
103
103
|
hideTimeout: {
|
|
104
104
|
default: 300
|
|
105
105
|
},
|
|
106
|
-
popperClass:
|
|
106
|
+
popperClass: {},
|
|
107
107
|
disabled: {
|
|
108
108
|
type: Boolean
|
|
109
109
|
},
|
|
@@ -116,13 +116,13 @@ const z = (
|
|
|
116
116
|
collapseIcon: {
|
|
117
117
|
default: {}
|
|
118
118
|
},
|
|
119
|
-
title:
|
|
120
|
-
icon:
|
|
119
|
+
title: {},
|
|
120
|
+
icon: {},
|
|
121
121
|
showArrow: {
|
|
122
122
|
type: Boolean,
|
|
123
123
|
default: !0
|
|
124
124
|
},
|
|
125
|
-
toolTipCfg:
|
|
125
|
+
toolTipCfg: {},
|
|
126
126
|
teleported: {
|
|
127
127
|
type: Boolean,
|
|
128
128
|
default: void 0
|
|
@@ -140,14 +140,14 @@ const z = (
|
|
|
140
140
|
e || q(z.b(), "can not inject root menu");
|
|
141
141
|
const u = L(`subMenu:${A.value.uid}`);
|
|
142
142
|
u || q(z.b(), "can not inject sub menu");
|
|
143
|
-
const w =
|
|
143
|
+
const w = g({});
|
|
144
144
|
let m;
|
|
145
|
-
const B =
|
|
145
|
+
const B = g(!1), K = g(), P = g(null), j = r(() => d.value === "horizontal" && C.value ? "bottom-start" : "right-start"), C = r(() => u.level === 0), y = r(() => o.teleported === void 0 ? C.value : o.teleported), Q = r(() => e.props.collapse ? `${p.namespace.value}-zoom-in-left` : `${p.namespace.value}-zoom-in-top`), W = r(() => d.value === "horizontal" && C.value ? ["bottom-start", "bottom-end", "top-start", "top-end", "right-start", "left-start"] : ["right-start", "left-start", "bottom-start", "bottom-end", "top-start", "top-end"]), c = r(() => e.openedMenus.includes(o.index)), M = r(() => {
|
|
146
146
|
let t = !1;
|
|
147
147
|
return Object.values(w.value).forEach((l) => {
|
|
148
148
|
l.active && (t = !0);
|
|
149
149
|
}), o.index === e.activeIndex && (t = !0), t;
|
|
150
|
-
}), F = r(() => e.props.backgroundColor || ""), $ = r(() => e.props.activeTextColor || ""), O = r(() => e.props.textColor || ""), d = r(() => e.props.mode),
|
|
150
|
+
}), F = r(() => e.props.backgroundColor || ""), $ = r(() => e.props.activeTextColor || ""), O = r(() => e.props.textColor || ""), d = r(() => e.props.mode), x = ie({
|
|
151
151
|
index: o.index,
|
|
152
152
|
indexPath: T,
|
|
153
153
|
active: M
|
|
@@ -186,7 +186,7 @@ const z = (
|
|
|
186
186
|
e.inSubMenuMouseEnterTimer && clearTimeout(e.inSubMenuMouseEnterTimer), e.inSubMenuMouseleaveTimer && clearTimeout(e.inSubMenuMouseleaveTimer), e.inSubMenuMouseleaveTimer = setTimeout(() => {
|
|
187
187
|
e.inSubMenu = !1;
|
|
188
188
|
}, o.hideTimeout - 10);
|
|
189
|
-
},
|
|
189
|
+
}, S = (t, l = !1) => {
|
|
190
190
|
var i, n;
|
|
191
191
|
e.props.menuTrigger === "click" && e.props.mode === "horizontal" || !e.props.collapse && e.props.mode === "vertical" || (m == null || m(), u.mouseInChild.value = !1, {
|
|
192
192
|
stop: m
|
|
@@ -204,7 +204,7 @@ const z = (
|
|
|
204
204
|
ue(`subMenu:${f.uid}`, {
|
|
205
205
|
addSubMenu: t,
|
|
206
206
|
removeSubMenu: l,
|
|
207
|
-
handleMouseleave:
|
|
207
|
+
handleMouseleave: S,
|
|
208
208
|
mouseInChild: B,
|
|
209
209
|
level: u.level + 1
|
|
210
210
|
});
|
|
@@ -212,9 +212,9 @@ const z = (
|
|
|
212
212
|
J({
|
|
213
213
|
opened: c
|
|
214
214
|
}), ae(() => {
|
|
215
|
-
e.addSubMenu(
|
|
215
|
+
e.addSubMenu(x), u.addSubMenu(x);
|
|
216
216
|
}), se(() => {
|
|
217
|
-
u.removeSubMenu(
|
|
217
|
+
u.removeSubMenu(x), e.removeSubMenu(x);
|
|
218
218
|
});
|
|
219
219
|
const v = pe(), D = r(() => I(o.icon, "icon")), oe = r(() => I(o.expandIcon, "icon")), te = r(() => I(o.collapseIcon, "icon")), ne = r(() => d.value === "horizontal" && C.value || d.value === "vertical" && !e.props.collapse ? {
|
|
220
220
|
icon: "ico-ep:arrow-down",
|
|
@@ -259,7 +259,7 @@ const z = (
|
|
|
259
259
|
return a("div", {
|
|
260
260
|
class: [p.m(d.value), p.m("popup-container"), o.popperClass],
|
|
261
261
|
onMouseenter: (h) => b(h, 100),
|
|
262
|
-
onMouseleave: (h) =>
|
|
262
|
+
onMouseleave: (h) => S(h, !0),
|
|
263
263
|
onFocus: (h) => b(h, 100)
|
|
264
264
|
}, [a("ul", {
|
|
265
265
|
class: [p.b(), p.m("popup"), p.m(`popup-${j.value}`)],
|
|
@@ -272,7 +272,7 @@ const z = (
|
|
|
272
272
|
backgroundColor: F.value
|
|
273
273
|
}],
|
|
274
274
|
onMouseenter: (n) => b(n),
|
|
275
|
-
onMouseleave: (n) =>
|
|
275
|
+
onMouseleave: (n) => S(n, !0),
|
|
276
276
|
onClick: (n) => R(n)
|
|
277
277
|
}, t)
|
|
278
278
|
}) : (
|
|
@@ -301,7 +301,7 @@ const z = (
|
|
|
301
301
|
ariaHaspopup: !0,
|
|
302
302
|
ariaExpanded: c.value,
|
|
303
303
|
onMouseenter: [_, (n) => b(n)],
|
|
304
|
-
onMouseleave: [ee, (n) =>
|
|
304
|
+
onMouseleave: [ee, (n) => S(n, !0)],
|
|
305
305
|
onFocus: b
|
|
306
306
|
}, [l]);
|
|
307
307
|
};
|
|
@@ -1,123 +1,123 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as V, ref as d, computed as s, onMounted as H, watch as $, openBlock as i, createBlock as D, Transition as F, unref as n, withCtx as j, withDirectives as P, createElementVNode as U, normalizeClass as r, normalizeStyle as Z, createElementBlock as u, createVNode as w, normalizeProps as A, guardReactiveProps as G, createCommentVNode as k, renderSlot as _, toDisplayString as q, withModifiers as J, vShow as K } from "vue";
|
|
2
2
|
import { EVENT_CODE as Q } from "@vft/constants";
|
|
3
3
|
import { isObject as W } from "@vft/utils";
|
|
4
4
|
import { useResizeObserver as X, useTimeoutFn as Y } from "@vueuse/core";
|
|
5
|
-
import { useEventListener as
|
|
5
|
+
import { useEventListener as x } from "@vft/use";
|
|
6
6
|
import "../config-provider/index.js";
|
|
7
|
-
import { getLastOffset as ee, getOffsetOrSpace as
|
|
8
|
-
import { VftIcon as
|
|
7
|
+
import { getLastOffset as ee, getOffsetOrSpace as oe } from "./instance.js";
|
|
8
|
+
import { VftIcon as B } from "../icon/index.js";
|
|
9
9
|
import { useGlobalComponentSettings as ne } from "../config-provider/hooks/use-global-config.js";
|
|
10
|
-
const
|
|
10
|
+
const te = ["id"], se = ["innerHTML"], ie = ["onClick"], ge = /* @__PURE__ */ V({
|
|
11
11
|
__name: "message",
|
|
12
12
|
props: {
|
|
13
|
-
customClass:
|
|
13
|
+
customClass: {},
|
|
14
14
|
center: { type: Boolean },
|
|
15
15
|
dangerouslyUseHTMLString: { type: Boolean },
|
|
16
|
-
duration:
|
|
17
|
-
icon:
|
|
18
|
-
id:
|
|
19
|
-
message: { type: [String,
|
|
16
|
+
duration: {},
|
|
17
|
+
icon: {},
|
|
18
|
+
id: {},
|
|
19
|
+
message: { type: [String, Object, Function] },
|
|
20
20
|
onClose: { type: Function },
|
|
21
21
|
showClose: { type: Boolean },
|
|
22
|
-
type:
|
|
23
|
-
offset:
|
|
24
|
-
zIndex:
|
|
22
|
+
type: {},
|
|
23
|
+
offset: {},
|
|
24
|
+
zIndex: {},
|
|
25
25
|
grouping: { type: Boolean },
|
|
26
|
-
repeatNum:
|
|
26
|
+
repeatNum: {}
|
|
27
27
|
},
|
|
28
28
|
emits: ["destroy"],
|
|
29
|
-
setup(
|
|
30
|
-
const
|
|
31
|
-
let
|
|
29
|
+
setup(b, { expose: M }) {
|
|
30
|
+
const o = b, { ns: t, zIndex: S } = ne("message"), { currentZIndex: L, nextZIndex: O } = S, f = d(), l = d(!1), g = d(0);
|
|
31
|
+
let c;
|
|
32
32
|
const T = /* @__PURE__ */ new Map([
|
|
33
33
|
["success", { icon: "ico-ep:success-filled" }],
|
|
34
34
|
["error", { icon: "ico-ep:circle-close-filled" }],
|
|
35
35
|
["warning", { icon: "ico-ep:warning-filled" }]
|
|
36
|
-
]), v =
|
|
37
|
-
const
|
|
38
|
-
return { [
|
|
39
|
-
}),
|
|
40
|
-
() =>
|
|
41
|
-
),
|
|
42
|
-
top: `${
|
|
36
|
+
]), v = s(() => (o.icon ? W(o.icon) ? o.icon : { icon: o.icon } : "") || T.get(o.type) || ""), z = s(() => {
|
|
37
|
+
const e = o.type;
|
|
38
|
+
return { [t.bm("icon", e)]: e };
|
|
39
|
+
}), E = s(() => ee(o.id)), y = s(
|
|
40
|
+
() => oe(o.id, o.offset) + E.value
|
|
41
|
+
), I = s(() => g.value + y.value), N = s(() => ({
|
|
42
|
+
top: `${y.value}px`,
|
|
43
43
|
zIndex: L.value
|
|
44
44
|
}));
|
|
45
|
-
function
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
},
|
|
45
|
+
function m() {
|
|
46
|
+
o.duration !== 0 && ({ stop: c } = Y(() => {
|
|
47
|
+
a();
|
|
48
|
+
}, o.duration));
|
|
49
49
|
}
|
|
50
|
-
function
|
|
51
|
-
|
|
50
|
+
function C() {
|
|
51
|
+
c == null || c();
|
|
52
52
|
}
|
|
53
|
-
function
|
|
54
|
-
|
|
53
|
+
function a() {
|
|
54
|
+
l.value = !1;
|
|
55
55
|
}
|
|
56
|
-
function
|
|
57
|
-
|
|
56
|
+
function R({ code: e }) {
|
|
57
|
+
e === Q.esc && a();
|
|
58
58
|
}
|
|
59
|
-
return
|
|
60
|
-
|
|
61
|
-
}),
|
|
62
|
-
() =>
|
|
59
|
+
return H(() => {
|
|
60
|
+
m(), O(), l.value = !0;
|
|
61
|
+
}), $(
|
|
62
|
+
() => o.repeatNum,
|
|
63
63
|
() => {
|
|
64
|
-
|
|
64
|
+
C(), m();
|
|
65
65
|
}
|
|
66
|
-
),
|
|
67
|
-
|
|
68
|
-
}),
|
|
69
|
-
visible:
|
|
70
|
-
bottom:
|
|
71
|
-
close:
|
|
72
|
-
}), (
|
|
73
|
-
name:
|
|
74
|
-
onBeforeLeave:
|
|
75
|
-
onAfterLeave:
|
|
66
|
+
), x(document, "keydown", R), X(f, () => {
|
|
67
|
+
g.value = f.value.getBoundingClientRect().height;
|
|
68
|
+
}), M({
|
|
69
|
+
visible: l,
|
|
70
|
+
bottom: I,
|
|
71
|
+
close: a
|
|
72
|
+
}), (e, h) => (i(), D(F, {
|
|
73
|
+
name: n(t).b("fade"),
|
|
74
|
+
onBeforeLeave: e.onClose,
|
|
75
|
+
onAfterLeave: h[0] || (h[0] = (p) => e.$emit("destroy"))
|
|
76
76
|
}, {
|
|
77
|
-
default:
|
|
78
|
-
var
|
|
77
|
+
default: j(() => {
|
|
78
|
+
var p;
|
|
79
79
|
return [
|
|
80
80
|
P(U("div", {
|
|
81
|
-
id:
|
|
81
|
+
id: e.id,
|
|
82
82
|
ref_key: "messageRef",
|
|
83
|
-
ref:
|
|
84
|
-
class:
|
|
85
|
-
|
|
86
|
-
{ [
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
83
|
+
ref: f,
|
|
84
|
+
class: r([
|
|
85
|
+
n(t).b(),
|
|
86
|
+
{ [n(t).m(e.type)]: e.type && !e.icon },
|
|
87
|
+
n(t).is("center", e.center),
|
|
88
|
+
n(t).is("closable", e.showClose),
|
|
89
|
+
e.customClass
|
|
90
90
|
]),
|
|
91
|
-
style: Z(
|
|
91
|
+
style: Z(N.value),
|
|
92
92
|
role: "alert",
|
|
93
|
-
onMouseenter:
|
|
94
|
-
onMouseleave:
|
|
93
|
+
onMouseenter: C,
|
|
94
|
+
onMouseleave: m
|
|
95
95
|
}, [
|
|
96
|
-
(
|
|
96
|
+
(p = v.value) != null && p.icon ? (i(), u("div", {
|
|
97
97
|
key: 0,
|
|
98
|
-
class:
|
|
98
|
+
class: r([n(t).e("icon"), z.value])
|
|
99
99
|
}, [
|
|
100
|
-
|
|
101
|
-
], 2)) :
|
|
102
|
-
|
|
103
|
-
|
|
100
|
+
w(n(B), A(G(v.value)), null, 16)
|
|
101
|
+
], 2)) : k("", !0),
|
|
102
|
+
_(e.$slots, "default", {}, () => [
|
|
103
|
+
e.dangerouslyUseHTMLString ? (i(), u("p", {
|
|
104
104
|
key: 1,
|
|
105
|
-
class:
|
|
106
|
-
innerHTML:
|
|
107
|
-
}, null, 10, se)) : (
|
|
105
|
+
class: r(n(t).e("content")),
|
|
106
|
+
innerHTML: e.message
|
|
107
|
+
}, null, 10, se)) : (i(), u("p", {
|
|
108
108
|
key: 0,
|
|
109
|
-
class:
|
|
110
|
-
}, q(
|
|
109
|
+
class: r(n(t).e("content"))
|
|
110
|
+
}, q(e.message), 3))
|
|
111
111
|
]),
|
|
112
|
-
|
|
112
|
+
e.showClose ? (i(), u("div", {
|
|
113
113
|
key: 1,
|
|
114
|
-
class:
|
|
115
|
-
onClick: J(
|
|
114
|
+
class: r(n(t).e("closeBtn")),
|
|
115
|
+
onClick: J(a, ["stop"])
|
|
116
116
|
}, [
|
|
117
|
-
|
|
118
|
-
], 10, ie)) :
|
|
119
|
-
], 46,
|
|
120
|
-
[K,
|
|
117
|
+
w(n(B), { icon: "ico-ep:circle-close" })
|
|
118
|
+
], 10, ie)) : k("", !0)
|
|
119
|
+
], 46, te), [
|
|
120
|
+
[K, l.value]
|
|
121
121
|
])
|
|
122
122
|
];
|
|
123
123
|
}),
|
|
@@ -126,5 +126,5 @@ const oe = ["id"], se = ["innerHTML"], ie = ["onClick"], ye = /* @__PURE__ */ R(
|
|
|
126
126
|
}
|
|
127
127
|
});
|
|
128
128
|
export {
|
|
129
|
-
|
|
129
|
+
ge as default
|
|
130
130
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as P, ref as
|
|
1
|
+
import { defineComponent as P, ref as b, getCurrentInstance as E, computed as h, watchEffect as H, unref as r, openBlock as x, createElementBlock as R, normalizeClass as K, normalizeStyle as $, createVNode as S, withCtx as C, Fragment as F, renderList as U, createBlock as j } from "vue";
|
|
2
2
|
import { useRouterHelper as q, getRouterKeyPath as f, listenerRouteChange as G } from "@vft/router";
|
|
3
3
|
import { useMultipleTabStore as J, useTabs as L } from "@vft/store";
|
|
4
4
|
import { useRefs as O } from "@vft/use";
|
|
@@ -99,14 +99,14 @@ const M = (
|
|
|
99
99
|
}), qe = /* @__PURE__ */ P({
|
|
100
100
|
...rt,
|
|
101
101
|
props: {
|
|
102
|
-
tabsStyle:
|
|
103
|
-
contextMenuStyle:
|
|
102
|
+
tabsStyle: {},
|
|
103
|
+
contextMenuStyle: {},
|
|
104
104
|
canDrag: { type: Boolean }
|
|
105
105
|
},
|
|
106
106
|
setup(d) {
|
|
107
107
|
const i = et();
|
|
108
108
|
d.canDrag && ot(i);
|
|
109
|
-
const
|
|
109
|
+
const u = J(), m = b(""), a = b(0), v = b(), s = E().appContext.config.globalProperties.$router, { go: g } = q(s), c = h(() => u.getTabList.filter((t) => {
|
|
110
110
|
var e;
|
|
111
111
|
return !((e = t.meta) != null && e.hideTab);
|
|
112
112
|
}));
|
|
@@ -117,17 +117,17 @@ const M = (
|
|
|
117
117
|
e === -1 ? a.value = ((t = c.value) == null ? void 0 : t.length) - 1 : a.value = e, a.value = a.value < (i == null ? void 0 : i.length) ? (i == null ? void 0 : i.length) - 1 : a.value;
|
|
118
118
|
}
|
|
119
119
|
}), W(() => {
|
|
120
|
-
|
|
120
|
+
v.value = r(s.currentRoute);
|
|
121
121
|
}), G((t) => {
|
|
122
122
|
var T;
|
|
123
123
|
if (!t || (T = t.meta) != null && T.hasTokenToRoot)
|
|
124
124
|
return;
|
|
125
125
|
const { meta: e = {} } = t, { currentActivePath: o, hideTab: n } = e, p = n ? o : null, l = f(t);
|
|
126
126
|
if (m.value !== l && (m.value = l), p) {
|
|
127
|
-
let y =
|
|
128
|
-
y &&
|
|
127
|
+
let y = s.getRoutes().find((D) => D.path === o);
|
|
128
|
+
y && u.addTab(y, r(v), a.value, t);
|
|
129
129
|
} else
|
|
130
|
-
|
|
130
|
+
u.addTab(r(t), r(v), a.value);
|
|
131
131
|
});
|
|
132
132
|
function k(t) {
|
|
133
133
|
var n, p;
|
|
@@ -139,7 +139,7 @@ const M = (
|
|
|
139
139
|
g(o || e.fullPath || e.path);
|
|
140
140
|
}
|
|
141
141
|
function B(t) {
|
|
142
|
-
|
|
142
|
+
u.closeTabByKey(t, s);
|
|
143
143
|
}
|
|
144
144
|
const [I, N] = O();
|
|
145
145
|
function w(t) {
|
|
@@ -171,7 +171,7 @@ const M = (
|
|
|
171
171
|
}));
|
|
172
172
|
return (t, e) => (x(), R("div", {
|
|
173
173
|
class: K(r(M).b()),
|
|
174
|
-
style: $(
|
|
174
|
+
style: $(V.value)
|
|
175
175
|
}, [
|
|
176
176
|
S(r(Y), {
|
|
177
177
|
showBar: !1,
|
|
@@ -182,7 +182,7 @@ const M = (
|
|
|
182
182
|
onTabContextMenu: w
|
|
183
183
|
}, {
|
|
184
184
|
default: C(() => [
|
|
185
|
-
(x(!0), R(F, null, U(
|
|
185
|
+
(x(!0), R(F, null, U(c.value, (o, n) => {
|
|
186
186
|
var p;
|
|
187
187
|
return x(), j(r(Z), {
|
|
188
188
|
key: r(f)(o) + n,
|
|
@@ -194,7 +194,7 @@ const M = (
|
|
|
194
194
|
var l;
|
|
195
195
|
return [
|
|
196
196
|
S(tt, {
|
|
197
|
-
contextMenuStyle:
|
|
197
|
+
contextMenuStyle: z.value,
|
|
198
198
|
affixNum: (l = r(i)) == null ? void 0 : l.length,
|
|
199
199
|
ref_for: !0,
|
|
200
200
|
ref: r(N)(n),
|
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as u, computed as r, openBlock as s, createElementBlock as c, withModifiers as f, toDisplayString as p } from "vue";
|
|
2
2
|
import "@vft/utils";
|
|
3
3
|
import "../context-menu/context-menu.vue2.js";
|
|
4
|
-
import { useContextMenu as
|
|
5
|
-
import { useTabDropdown as
|
|
4
|
+
import { useContextMenu as x } from "../context-menu/useContextMenu.js";
|
|
5
|
+
import { useTabDropdown as b } from "./use/use-tab-dropdown.js";
|
|
6
6
|
import "@vft/use";
|
|
7
7
|
import "vue-router";
|
|
8
8
|
import "@vft/store";
|
|
9
|
-
const
|
|
9
|
+
const d = ["title", "onContextmenu"], S = /* @__PURE__ */ u({
|
|
10
10
|
__name: "tab-content",
|
|
11
11
|
props: {
|
|
12
|
-
tabItem:
|
|
13
|
-
affixNum:
|
|
14
|
-
contextMenuStyle:
|
|
12
|
+
tabItem: {},
|
|
13
|
+
affixNum: {},
|
|
14
|
+
contextMenuStyle: {},
|
|
15
15
|
visible: { type: Boolean }
|
|
16
16
|
},
|
|
17
|
-
setup(t, { expose:
|
|
18
|
-
const [
|
|
17
|
+
setup(t, { expose: i }) {
|
|
18
|
+
const [m] = x(), n = r(() => t.tabItem.meta && t.tabItem.meta.title), { getDropMenuList: a, handleContextMenu: l } = b(t.tabItem, t.affixNum);
|
|
19
19
|
function o(e) {
|
|
20
|
-
|
|
20
|
+
l(t.tabItem)(e), m({
|
|
21
21
|
event: e,
|
|
22
22
|
styles: t.contextMenuStyle,
|
|
23
23
|
items: a.value
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
|
-
return
|
|
26
|
+
return i({
|
|
27
27
|
handleContext: o
|
|
28
|
-
}), (e,
|
|
29
|
-
title:
|
|
28
|
+
}), (e, C) => (s(), c("span", {
|
|
29
|
+
title: n.value,
|
|
30
30
|
class: "vft-multiple-tabs__title",
|
|
31
|
-
onContextmenu:
|
|
32
|
-
},
|
|
31
|
+
onContextmenu: f(o, ["stop"])
|
|
32
|
+
}, p(n.value), 41, d));
|
|
33
33
|
}
|
|
34
34
|
});
|
|
35
35
|
export {
|
|
36
|
-
|
|
36
|
+
S as default
|
|
37
37
|
};
|
|
@@ -4,7 +4,7 @@ import "@popperjs/core";
|
|
|
4
4
|
import "lodash";
|
|
5
5
|
import "../../hooks/use-z-index/index.js";
|
|
6
6
|
import "@vueuse/core";
|
|
7
|
-
import { noop as
|
|
7
|
+
import { noop as l } from "@vft/utils";
|
|
8
8
|
import "../../utils/ns-cover.js";
|
|
9
9
|
const i = (
|
|
10
10
|
/* hoist-static*/
|
|
@@ -17,24 +17,24 @@ const i = (
|
|
|
17
17
|
mask: { type: Boolean },
|
|
18
18
|
onlyNode: { type: Boolean },
|
|
19
19
|
customMaskEvent: { type: Boolean },
|
|
20
|
-
overlayClass:
|
|
21
|
-
zIndex:
|
|
20
|
+
overlayClass: {},
|
|
21
|
+
zIndex: {}
|
|
22
22
|
},
|
|
23
23
|
emits: ["click"],
|
|
24
24
|
setup(o, { emit: d }) {
|
|
25
|
-
const m = (
|
|
26
|
-
if (!
|
|
27
|
-
return { onClick:
|
|
28
|
-
let s = !1,
|
|
25
|
+
const m = (t) => {
|
|
26
|
+
if (!t)
|
|
27
|
+
return { onClick: l, onMousedown: l, onMouseup: l };
|
|
28
|
+
let s = !1, a = !1;
|
|
29
29
|
return { onClick: (e) => {
|
|
30
|
-
s &&
|
|
30
|
+
s && a && t(e), s = a = !1;
|
|
31
31
|
}, onMousedown: (e) => {
|
|
32
32
|
s = e.target === e.currentTarget;
|
|
33
33
|
}, onMouseup: (e) => {
|
|
34
|
-
|
|
34
|
+
a = e.target === e.currentTarget;
|
|
35
35
|
} };
|
|
36
|
-
},
|
|
37
|
-
d("click",
|
|
36
|
+
}, n = x(), p = (t) => {
|
|
37
|
+
d("click", t);
|
|
38
38
|
}, { onClick: f, onMousedown: M, onMouseup: k } = m(o.customMaskEvent ? void 0 : p);
|
|
39
39
|
return () => o.mask ? y(
|
|
40
40
|
"div",
|
|
@@ -47,13 +47,13 @@ const i = (
|
|
|
47
47
|
onMousedown: M,
|
|
48
48
|
onMouseup: k
|
|
49
49
|
},
|
|
50
|
-
[u(
|
|
50
|
+
[u(n, "default")],
|
|
51
51
|
14,
|
|
52
52
|
["onClick", "onMouseup", "onMousedown"]
|
|
53
53
|
) : o.onlyNode ? r(
|
|
54
54
|
"div",
|
|
55
55
|
{},
|
|
56
|
-
[u(
|
|
56
|
+
[u(n, "default")]
|
|
57
57
|
) : r(
|
|
58
58
|
"div",
|
|
59
59
|
{
|
|
@@ -67,7 +67,7 @@ const i = (
|
|
|
67
67
|
left: "0px"
|
|
68
68
|
}
|
|
69
69
|
},
|
|
70
|
-
[u(
|
|
70
|
+
[u(n, "default")]
|
|
71
71
|
);
|
|
72
72
|
}
|
|
73
73
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useNamespace as
|
|
1
|
+
import { defineComponent as p, openBlock as n, createElementBlock as i, normalizeClass as o, unref as e, createElementVNode as r, toDisplayString as l, renderSlot as m } from "vue";
|
|
2
|
+
import { useNamespace as c } from "../../hooks/use-namespace/index.js";
|
|
3
3
|
import "@popperjs/core";
|
|
4
4
|
import "lodash";
|
|
5
5
|
import "../../hooks/use-z-index/index.js";
|
|
@@ -9,17 +9,17 @@ import "../../utils/ns-cover.js";
|
|
|
9
9
|
import { useRouterHelper as d } from "@vft/router";
|
|
10
10
|
const t = (
|
|
11
11
|
/* hoist-static*/
|
|
12
|
-
|
|
13
|
-
),
|
|
12
|
+
c("page-wrapper")
|
|
13
|
+
), u = p({
|
|
14
14
|
name: t.b()
|
|
15
|
-
}), S = /* @__PURE__ */
|
|
16
|
-
...
|
|
15
|
+
}), S = /* @__PURE__ */ p({
|
|
16
|
+
...u,
|
|
17
17
|
props: {
|
|
18
|
-
title:
|
|
18
|
+
title: {}
|
|
19
19
|
},
|
|
20
|
-
setup(
|
|
21
|
-
const { getTitle:
|
|
22
|
-
return (
|
|
20
|
+
setup(f) {
|
|
21
|
+
const { getTitle: a } = d();
|
|
22
|
+
return (s, _) => (n(), i("div", {
|
|
23
23
|
class: o(e(t).b())
|
|
24
24
|
}, [
|
|
25
25
|
r("div", {
|
|
@@ -27,12 +27,12 @@ const t = (
|
|
|
27
27
|
}, [
|
|
28
28
|
r("span", {
|
|
29
29
|
class: o(e(t).e("title"))
|
|
30
|
-
},
|
|
30
|
+
}, l(s.title || e(a)), 3)
|
|
31
31
|
], 2),
|
|
32
32
|
r("div", {
|
|
33
33
|
class: o(e(t).e("content"))
|
|
34
34
|
}, [
|
|
35
|
-
|
|
35
|
+
m(s.$slots, "default")
|
|
36
36
|
], 2)
|
|
37
37
|
], 2));
|
|
38
38
|
}
|
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useNamespace as
|
|
1
|
+
import { defineComponent as c, ref as f, computed as g, openBlock as _, createElementBlock as v, normalizeClass as n, unref as e, createElementVNode as p, toDisplayString as b, createVNode as h } from "vue";
|
|
2
|
+
import { useNamespace as z } from "../../../hooks/use-namespace/index.js";
|
|
3
3
|
import "@popperjs/core";
|
|
4
4
|
import "lodash";
|
|
5
5
|
import "../../../hooks/use-z-index/index.js";
|
|
6
6
|
import "@vueuse/core";
|
|
7
7
|
import "@vft/utils";
|
|
8
8
|
import "../../../utils/ns-cover.js";
|
|
9
|
-
import { VftInput as
|
|
10
|
-
import { usePagination as
|
|
11
|
-
const I = ["disabled"], w = /* @__PURE__ */
|
|
9
|
+
import { VftInput as C } from "../../input/index.js";
|
|
10
|
+
import { usePagination as V } from "../usePagination.js";
|
|
11
|
+
const I = ["disabled"], w = /* @__PURE__ */ c({
|
|
12
12
|
__name: "jumper",
|
|
13
13
|
props: {
|
|
14
|
-
size:
|
|
14
|
+
size: {}
|
|
15
15
|
},
|
|
16
|
-
setup(
|
|
17
|
-
const
|
|
18
|
-
function
|
|
16
|
+
setup(N) {
|
|
17
|
+
const o = z("pagination"), { pageCount: r, disabled: l, currentPage: t, changeEvent: s } = V(), i = f(), m = g(() => i.value ?? (t == null ? void 0 : t.value));
|
|
18
|
+
function u(a) {
|
|
19
19
|
i.value = +a;
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function d(a) {
|
|
22
22
|
a = Math.trunc(+a), s == null || s(+a), i.value = void 0;
|
|
23
23
|
}
|
|
24
|
-
return (a,
|
|
25
|
-
class:
|
|
24
|
+
return (a, j) => (_(), v("span", {
|
|
25
|
+
class: n(e(o).e("jump")),
|
|
26
26
|
disabled: e(l)
|
|
27
27
|
}, [
|
|
28
28
|
p("span", {
|
|
29
|
-
class:
|
|
30
|
-
},
|
|
31
|
-
|
|
32
|
-
size:
|
|
33
|
-
class:
|
|
29
|
+
class: n([e(o).e("goto")])
|
|
30
|
+
}, b(a.t("el.pagination.goto")), 3),
|
|
31
|
+
h(e(C), {
|
|
32
|
+
size: a.size,
|
|
33
|
+
class: n([e(o).e("editor"), e(o).is("in-pagination")]),
|
|
34
34
|
min: 1,
|
|
35
|
-
max: e(
|
|
35
|
+
max: e(r),
|
|
36
36
|
disabled: e(l),
|
|
37
|
-
"model-value":
|
|
37
|
+
"model-value": m.value,
|
|
38
38
|
"validate-event": !1,
|
|
39
39
|
type: "number",
|
|
40
|
-
"onUpdate:modelValue":
|
|
41
|
-
onChange:
|
|
40
|
+
"onUpdate:modelValue": u,
|
|
41
|
+
onChange: d
|
|
42
42
|
}, null, 8, ["size", "class", "max", "disabled", "model-value"]),
|
|
43
43
|
p("span", {
|
|
44
|
-
class:
|
|
44
|
+
class: n([e(o).e("classifier")])
|
|
45
45
|
}, "页", 2)
|
|
46
46
|
], 10, I));
|
|
47
47
|
}
|