vft 0.0.30 → 0.0.33
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/dist/index.css +1 -1
- package/es/components/avatar/avatar.vue.d.ts +2 -2
- package/es/components/avatar/avatar.vue2.mjs +3 -2
- package/es/components/avatar/index.d.ts +2 -2
- package/es/components/avatar/index.mjs +4 -3
- package/es/components/back-top/back-top.vue.d.ts +2 -2
- package/es/components/back-top/back-top.vue2.mjs +3 -2
- package/es/components/back-top/index.d.ts +2 -2
- package/es/components/back-top/index.mjs +4 -3
- package/es/components/back-top/use-back-top.mjs +11 -10
- package/es/components/clamp/clamp.vue2.mjs +10 -9
- package/es/components/clamp/index.mjs +4 -3
- package/es/components/clamp-toggle/clamp-toggle.vue2.mjs +3 -2
- package/es/components/clamp-toggle/index.mjs +4 -3
- package/es/components/collapse-transition/src/collapse-transition.vue2.mjs +6 -5
- package/es/components/config-provider/config-provider.vue2.mjs +3 -2
- package/es/components/config-provider/hooks/use-global-config.d.ts +1 -1
- package/es/components/config-provider/hooks/use-global-config.mjs +5 -4
- package/es/components/config-provider/index.mjs +11 -10
- package/es/components/context-menu/context-menu.vue2.mjs +4 -2
- package/es/components/descriptions/description-item.vue2.mjs +6 -5
- package/es/components/descriptions/description.vue2.mjs +14 -13
- package/es/components/descriptions/descriptions-cell.mjs +12 -11
- package/es/components/descriptions/descriptions-row.vue2.mjs +12 -11
- package/es/components/descriptions/index.mjs +6 -5
- package/es/components/divider/divider.vue2.mjs +6 -5
- package/es/components/divider/index.mjs +4 -3
- package/es/components/empty/empty.vue2.mjs +3 -2
- package/es/components/empty/index.mjs +6 -5
- package/es/components/exception/index.mjs +4 -3
- package/es/components/focus-trap/focus-trap.vue2.mjs +1 -1
- package/es/components/footer-layout/footer-layout.vue2.mjs +10 -9
- package/es/components/footer-layout/index.mjs +4 -3
- package/es/components/full-screen/full-screen.vue2.mjs +7 -6
- package/es/components/full-screen/index.mjs +4 -3
- package/es/components/header-layout/header-layout.vue2.mjs +3 -2
- package/es/components/header-layout/index.mjs +4 -3
- package/es/components/icon/icon.vue2.mjs +7 -6
- package/es/components/icon/index.mjs +5 -4
- package/es/components/icon-text/icon-text.vue.d.ts +2 -2
- package/es/components/icon-text/icon-text.vue2.mjs +10 -9
- package/es/components/icon-text/index.d.ts +2 -2
- package/es/components/icon-text/index.mjs +4 -3
- package/es/components/iframe-layout/iframe-layout.vue2.mjs +3 -2
- package/es/components/iframe-layout/iframe-page.vue2.mjs +3 -2
- package/es/components/iframe-layout/index.mjs +4 -3
- package/es/components/image/image.vue2.mjs +8 -7
- package/es/components/image/index.mjs +4 -3
- package/es/components/input/index.d.ts +2 -2
- package/es/components/input/index.mjs +4 -3
- package/es/components/input/input.vue.d.ts +2 -2
- package/es/components/input/input.vue2.mjs +3 -2
- package/es/components/link/index.mjs +4 -3
- package/es/components/link/link.vue2.mjs +3 -2
- package/es/components/loading/loading.mjs +56 -50
- package/es/components/loading/service.mjs +20 -19
- package/es/components/logo/index.mjs +4 -3
- package/es/components/logo/logo.vue2.mjs +10 -9
- package/es/components/md-code-demo/index.mjs +4 -3
- package/es/components/md-code-demo/md-code-demo.mjs +4 -2
- package/es/components/md-code-tabs/index.mjs +4 -3
- package/es/components/md-comment/index.mjs +4 -3
- package/es/components/md-comment/md-comment.vue2.mjs +7 -6
- package/es/components/md-container/index.mjs +4 -3
- package/es/components/md-container/md-container.vue2.mjs +43 -42
- package/es/components/md-tabs/index.mjs +4 -3
- package/es/components/md-vue-playground/index.mjs +4 -3
- package/es/components/md-vue-playground/md-vue-playground.vue2.mjs +11 -10
- package/es/components/menu/index.d.ts +4 -4
- package/es/components/menu/index.mjs +9 -8
- package/es/components/menu/menu-collapse-transition.vue2.mjs +3 -2
- package/es/components/menu/menu-item-group.vue2.mjs +8 -7
- package/es/components/menu/menu-item.vue.d.ts +2 -2
- package/es/components/menu/menu-item.vue2.mjs +3 -2
- package/es/components/menu/menu.vue2.mjs +3 -2
- package/es/components/menu/sub-menu.vue2.mjs +3 -2
- package/es/components/menu/use-menu-css-var.mjs +3 -2
- package/es/components/message/index.mjs +8 -7
- package/es/components/message/message.vue2.mjs +5 -4
- package/es/components/message/method.mjs +17 -15
- package/es/components/multiple-tabs/multiple-tabs.vue2.mjs +3 -2
- package/es/components/multiple-tabs/tab-content.vue2.mjs +4 -2
- package/es/components/multiple-tabs/use/use-tab-dropdown.mjs +16 -16
- package/es/components/overlay/index.mjs +4 -3
- package/es/components/overlay/overlay.vue2.mjs +16 -15
- package/es/components/page-wrapper/index.mjs +4 -3
- package/es/components/page-wrapper/page-wrapper.vue2.mjs +6 -5
- package/es/components/pagination/components/jumper.vue2.mjs +15 -14
- package/es/components/pagination/components/pager.vue2.mjs +3 -2
- package/es/components/pagination/components/sizes.vue2.mjs +3 -2
- package/es/components/pagination/components/total.vue2.mjs +5 -4
- package/es/components/pagination/index.mjs +9 -8
- package/es/components/pagination/pagination.mjs +19 -18
- package/es/components/popover/index.d.ts +2 -2
- package/es/components/popover/index.mjs +4 -3
- package/es/components/popover/popover.vue.d.ts +2 -2
- package/es/components/popover/popover.vue2.mjs +3 -2
- package/es/components/popper/arrow.vue2.mjs +3 -2
- package/es/components/popper/composables/use-content-dom.mjs +3 -2
- package/es/components/popper/composables/use-content.mjs +4 -2
- package/es/components/popper/index.mjs +10 -9
- package/es/components/popper/trigger.vue2.mjs +11 -9
- package/es/components/qrcode/index.mjs +4 -3
- package/es/components/qrcode/qrcode.vue2.mjs +6 -5
- package/es/components/result/index.mjs +4 -3
- package/es/components/result/result.vue2.mjs +3 -2
- package/es/components/router-view-content/index.d.ts +6 -6
- package/es/components/router-view-content/index.mjs +4 -3
- package/es/components/router-view-content/router-view-content.vue.d.ts +6 -6
- package/es/components/router-view-content/router-view-content.vue2.mjs +17 -16
- package/es/components/search/index.mjs +4 -3
- package/es/components/search/search.vue2.mjs +3 -2
- package/es/components/side-menu/index.mjs +4 -3
- package/es/components/side-menu/side-menu.vue2.mjs +14 -12
- package/es/components/slot/only-child.mjs +3 -2
- package/es/components/tabs/index.mjs +9 -8
- package/es/components/tabs/tab-bar.vue2.mjs +3 -2
- package/es/components/tabs/tab-nav.vue2.mjs +3 -2
- package/es/components/tabs/tab-pane.vue2.mjs +3 -2
- package/es/components/tabs/tabs.vue2.mjs +3 -2
- package/es/components/tag/index.d.ts +2 -2
- package/es/components/tag/index.mjs +4 -3
- package/es/components/tag/tag.vue.d.ts +2 -2
- package/es/components/tag/tag.vue2.mjs +3 -2
- package/es/components/tooltip/content.vue2.mjs +12 -11
- package/es/components/tooltip/index.d.ts +2 -2
- package/es/components/tooltip/index.mjs +4 -3
- package/es/components/tooltip/tooltip.vue.d.ts +2 -2
- package/es/components/tooltip/tooltip.vue2.mjs +12 -10
- package/es/components/tooltip/trigger.vue2.mjs +7 -6
- package/es/components/tooltip/utils.mjs +6 -4
- package/es/hooks/use-cursor/index.mjs +4 -4
- package/es/hooks/use-id/index.mjs +6 -5
- package/es/hooks/use-namespace/index.d.ts +1 -1
- package/es/hooks/use-namespace/index.mjs +27 -26
- package/es/hooks/use-ordered-children/index.mjs +5 -4
- package/es/index.mjs +53 -51
- package/es/package.json.mjs +1 -1
- package/es/utils/index.d.ts +1 -0
- package/es/utils/index.mjs +19 -17
- package/es/utils/ns-cover.d.ts +1 -0
- package/es/utils/ns-cover.mjs +7 -0
- package/lib/components/avatar/avatar.vue.d.ts +2 -2
- package/lib/components/avatar/avatar.vue2.js +1 -1
- package/lib/components/avatar/index.d.ts +2 -2
- package/lib/components/avatar/index.js +1 -1
- package/lib/components/back-top/back-top.vue.d.ts +2 -2
- package/lib/components/back-top/back-top.vue2.js +1 -1
- package/lib/components/back-top/index.d.ts +2 -2
- package/lib/components/back-top/index.js +1 -1
- package/lib/components/back-top/use-back-top.js +1 -1
- package/lib/components/clamp/clamp.vue2.js +1 -1
- package/lib/components/clamp/index.js +1 -1
- package/lib/components/clamp-toggle/clamp-toggle.vue2.js +1 -1
- package/lib/components/clamp-toggle/index.js +1 -1
- package/lib/components/collapse-transition/src/collapse-transition.vue2.js +1 -1
- package/lib/components/config-provider/config-provider.vue2.js +1 -1
- package/lib/components/config-provider/hooks/use-global-config.d.ts +1 -1
- package/lib/components/config-provider/hooks/use-global-config.js +1 -1
- package/lib/components/config-provider/index.js +1 -1
- package/lib/components/context-menu/context-menu.vue2.js +1 -1
- package/lib/components/descriptions/description-item.vue2.js +1 -1
- package/lib/components/descriptions/description.vue2.js +1 -1
- package/lib/components/descriptions/descriptions-cell.js +1 -1
- package/lib/components/descriptions/descriptions-row.vue2.js +1 -1
- package/lib/components/descriptions/index.js +1 -1
- package/lib/components/divider/divider.vue2.js +1 -1
- package/lib/components/divider/index.js +1 -1
- package/lib/components/empty/empty.vue2.js +1 -1
- package/lib/components/empty/index.js +1 -1
- package/lib/components/exception/index.js +1 -1
- package/lib/components/focus-trap/focus-trap.vue2.js +1 -1
- package/lib/components/footer-layout/footer-layout.vue2.js +1 -1
- package/lib/components/footer-layout/index.js +1 -1
- package/lib/components/full-screen/full-screen.vue2.js +1 -1
- package/lib/components/full-screen/index.js +1 -1
- package/lib/components/header-layout/header-layout.vue2.js +1 -1
- package/lib/components/header-layout/index.js +1 -1
- package/lib/components/icon/icon.vue2.js +1 -1
- package/lib/components/icon/index.js +1 -1
- package/lib/components/icon-text/icon-text.vue.d.ts +2 -2
- package/lib/components/icon-text/icon-text.vue2.js +1 -1
- package/lib/components/icon-text/index.d.ts +2 -2
- package/lib/components/icon-text/index.js +1 -1
- package/lib/components/iframe-layout/iframe-layout.vue2.js +1 -1
- package/lib/components/iframe-layout/iframe-page.vue2.js +1 -1
- package/lib/components/iframe-layout/index.js +1 -1
- package/lib/components/image/image.vue2.js +1 -1
- package/lib/components/image/index.js +1 -1
- package/lib/components/input/index.d.ts +2 -2
- package/lib/components/input/index.js +1 -1
- package/lib/components/input/input.vue.d.ts +2 -2
- package/lib/components/input/input.vue2.js +1 -1
- package/lib/components/link/index.js +1 -1
- package/lib/components/link/link.vue2.js +1 -1
- package/lib/components/loading/loading.js +1 -1
- package/lib/components/loading/service.js +1 -1
- package/lib/components/logo/index.js +1 -1
- package/lib/components/logo/logo.vue2.js +1 -1
- package/lib/components/md-code-demo/index.js +1 -1
- package/lib/components/md-code-demo/md-code-demo.js +1 -1
- package/lib/components/md-code-tabs/index.js +1 -1
- package/lib/components/md-comment/index.js +1 -1
- package/lib/components/md-comment/md-comment.vue2.js +1 -1
- package/lib/components/md-container/index.js +1 -1
- package/lib/components/md-container/md-container.vue2.js +1 -1
- package/lib/components/md-tabs/index.js +1 -1
- package/lib/components/md-vue-playground/index.js +1 -1
- package/lib/components/md-vue-playground/md-vue-playground.vue2.js +1 -1
- package/lib/components/menu/index.d.ts +4 -4
- package/lib/components/menu/index.js +1 -1
- package/lib/components/menu/menu-collapse-transition.vue2.js +1 -1
- package/lib/components/menu/menu-item-group.vue2.js +1 -1
- package/lib/components/menu/menu-item.vue.d.ts +2 -2
- package/lib/components/menu/menu-item.vue2.js +1 -1
- package/lib/components/menu/menu.vue2.js +1 -1
- package/lib/components/menu/sub-menu.vue2.js +1 -1
- package/lib/components/menu/use-menu-css-var.js +1 -1
- package/lib/components/message/index.js +1 -1
- package/lib/components/message/message.vue2.js +1 -1
- package/lib/components/message/method.js +1 -1
- package/lib/components/multiple-tabs/multiple-tabs.vue2.js +1 -1
- package/lib/components/multiple-tabs/tab-content.vue2.js +1 -1
- package/lib/components/multiple-tabs/use/use-tab-dropdown.js +1 -1
- package/lib/components/overlay/index.js +1 -1
- package/lib/components/overlay/overlay.vue2.js +1 -1
- package/lib/components/page-wrapper/index.js +1 -1
- package/lib/components/page-wrapper/page-wrapper.vue2.js +1 -1
- package/lib/components/pagination/components/jumper.vue2.js +1 -1
- package/lib/components/pagination/components/pager.vue2.js +1 -1
- package/lib/components/pagination/components/sizes.vue2.js +1 -1
- package/lib/components/pagination/components/total.vue2.js +1 -1
- package/lib/components/pagination/index.js +1 -1
- package/lib/components/pagination/pagination.js +1 -1
- package/lib/components/popover/index.d.ts +2 -2
- package/lib/components/popover/index.js +1 -1
- package/lib/components/popover/popover.vue.d.ts +2 -2
- package/lib/components/popover/popover.vue2.js +1 -1
- package/lib/components/popper/arrow.vue2.js +1 -1
- package/lib/components/popper/composables/use-content-dom.js +1 -1
- package/lib/components/popper/composables/use-content.js +1 -1
- package/lib/components/popper/index.js +1 -1
- package/lib/components/popper/trigger.vue2.js +1 -1
- package/lib/components/qrcode/index.js +1 -1
- package/lib/components/qrcode/qrcode.vue2.js +1 -1
- package/lib/components/result/index.js +1 -1
- package/lib/components/result/result.vue2.js +1 -1
- package/lib/components/router-view-content/index.d.ts +6 -6
- package/lib/components/router-view-content/index.js +1 -1
- package/lib/components/router-view-content/router-view-content.vue.d.ts +6 -6
- package/lib/components/router-view-content/router-view-content.vue2.js +1 -1
- package/lib/components/search/index.js +1 -1
- package/lib/components/search/search.vue2.js +1 -1
- package/lib/components/side-menu/index.js +1 -1
- package/lib/components/side-menu/side-menu.vue2.js +1 -1
- package/lib/components/slot/only-child.js +1 -1
- package/lib/components/tabs/index.js +1 -1
- package/lib/components/tabs/tab-bar.vue2.js +1 -1
- package/lib/components/tabs/tab-nav.vue2.js +1 -1
- package/lib/components/tabs/tab-pane.vue2.js +1 -1
- package/lib/components/tabs/tabs.vue2.js +1 -1
- package/lib/components/tag/index.d.ts +2 -2
- package/lib/components/tag/index.js +1 -1
- package/lib/components/tag/tag.vue.d.ts +2 -2
- package/lib/components/tag/tag.vue2.js +1 -1
- package/lib/components/tooltip/content.vue2.js +1 -1
- package/lib/components/tooltip/index.d.ts +2 -2
- package/lib/components/tooltip/index.js +1 -1
- package/lib/components/tooltip/tooltip.vue.d.ts +2 -2
- package/lib/components/tooltip/tooltip.vue2.js +1 -1
- package/lib/components/tooltip/trigger.vue2.js +1 -1
- package/lib/components/tooltip/utils.js +1 -1
- package/lib/hooks/use-cursor/index.js +1 -1
- package/lib/hooks/use-id/index.js +1 -1
- package/lib/hooks/use-namespace/index.d.ts +1 -1
- package/lib/hooks/use-namespace/index.js +1 -1
- package/lib/hooks/use-ordered-children/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/package.json.js +1 -1
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/index.js +1 -1
- package/lib/utils/ns-cover.d.ts +1 -0
- package/lib/utils/ns-cover.js +1 -0
- package/package.json +1 -1
- package/theme-style/index.css +1 -1
- package/theme-style/src/side-menu.scss +1 -0
- package/theme-style/vft-side-menu.css +1 -1
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { render as u, createVNode as v } from "vue";
|
|
2
2
|
import { isClient as b } from "@vueuse/core";
|
|
3
3
|
import { isNumber as y, isString as g, isVNode as h, isFunction as a, isElement as z } from "@vft/utils";
|
|
4
|
+
import "../config-provider/hooks/use-global-config.mjs";
|
|
4
5
|
import "@popperjs/core";
|
|
5
6
|
import "lodash";
|
|
6
7
|
import { useZIndex as C } from "../../hooks/use-z-index/index.mjs";
|
|
7
8
|
import "@vue/shared";
|
|
8
9
|
import { debugWarn as E } from "../../utils/error.mjs";
|
|
10
|
+
import "../../utils/ns-cover.mjs";
|
|
9
11
|
import _ from "./message.vue2.mjs";
|
|
10
12
|
import { messageTypes as I, messageDefaults as M } from "./types.mjs";
|
|
11
13
|
import { instances as r } from "./instance.mjs";
|
|
@@ -32,22 +34,22 @@ const T = (e) => {
|
|
|
32
34
|
const { handler: o } = e;
|
|
33
35
|
o.close();
|
|
34
36
|
}, A = ({ appendTo: e, ...n }, o) => {
|
|
35
|
-
const { nextZIndex: t } = C(), s = `message_${N++}`,
|
|
37
|
+
const { nextZIndex: t } = C(), s = `message_${N++}`, m = n.onClose, i = document.createElement("div"), c = {
|
|
36
38
|
...n,
|
|
37
39
|
zIndex: t() + n.zIndex,
|
|
38
40
|
id: s,
|
|
39
41
|
onClose: () => {
|
|
40
|
-
|
|
42
|
+
m == null || m(), V(f);
|
|
41
43
|
},
|
|
42
44
|
// 清除 message element 防止内存泄漏
|
|
43
45
|
onDestroy: () => {
|
|
44
46
|
u(null, i);
|
|
45
47
|
}
|
|
46
|
-
},
|
|
47
|
-
|
|
48
|
-
const d =
|
|
48
|
+
}, p = v(_, c, a(c.message) || h(c.message) ? { default: a(c.message) ? c.message : () => c.message } : null);
|
|
49
|
+
p.appContext = o || l._context, u(p, i), e.appendChild(i.firstElementChild);
|
|
50
|
+
const d = p.component, f = {
|
|
49
51
|
id: s,
|
|
50
|
-
vnode:
|
|
52
|
+
vnode: p,
|
|
51
53
|
vm: d,
|
|
52
54
|
handler: {
|
|
53
55
|
// instead of calling the onClose function directly,
|
|
@@ -57,10 +59,10 @@ const T = (e) => {
|
|
|
57
59
|
d.exposed.visible.value = !1;
|
|
58
60
|
}
|
|
59
61
|
},
|
|
60
|
-
props:
|
|
62
|
+
props: p.component.props
|
|
61
63
|
};
|
|
62
64
|
return f;
|
|
63
|
-
},
|
|
65
|
+
}, l = (e = {}, n) => {
|
|
64
66
|
if (!b)
|
|
65
67
|
return { close: () => {
|
|
66
68
|
} };
|
|
@@ -69,9 +71,9 @@ const T = (e) => {
|
|
|
69
71
|
} };
|
|
70
72
|
const o = T(e);
|
|
71
73
|
if (o.grouping && r.length) {
|
|
72
|
-
const s = r.find(({ vnode:
|
|
74
|
+
const s = r.find(({ vnode: m }) => {
|
|
73
75
|
var i;
|
|
74
|
-
return ((i =
|
|
76
|
+
return ((i = m.props) == null ? void 0 : i.message) === o.message;
|
|
75
77
|
});
|
|
76
78
|
if (s)
|
|
77
79
|
return s.props.repeatNum += 1, s.props.type = o.type, s.handler;
|
|
@@ -80,18 +82,18 @@ const T = (e) => {
|
|
|
80
82
|
return r.push(t), t.handler;
|
|
81
83
|
};
|
|
82
84
|
I.forEach((e) => {
|
|
83
|
-
|
|
85
|
+
l[e] = (n = {}, o) => {
|
|
84
86
|
const t = T(n);
|
|
85
|
-
return
|
|
87
|
+
return l({ ...t, type: e }, o);
|
|
86
88
|
};
|
|
87
89
|
});
|
|
88
90
|
function D(e) {
|
|
89
91
|
for (const n of r)
|
|
90
92
|
(!e || e === n.props.type) && n.handler.close();
|
|
91
93
|
}
|
|
92
|
-
|
|
93
|
-
|
|
94
|
+
l.closeAll = D;
|
|
95
|
+
l._context = null;
|
|
94
96
|
export {
|
|
95
97
|
D as closeAll,
|
|
96
|
-
|
|
98
|
+
l as default
|
|
97
99
|
};
|
|
@@ -11,6 +11,7 @@ import "lodash";
|
|
|
11
11
|
import "../../hooks/use-z-index/index.mjs";
|
|
12
12
|
import "@vueuse/core";
|
|
13
13
|
import "@vue/shared";
|
|
14
|
+
import "../../utils/ns-cover.mjs";
|
|
14
15
|
import "../divider/index.mjs";
|
|
15
16
|
import "../icon/index.mjs";
|
|
16
17
|
import "../avatar/index.mjs";
|
|
@@ -59,7 +60,7 @@ const P = (
|
|
|
59
60
|
W("multiple-tabs")
|
|
60
61
|
), ot = _({
|
|
61
62
|
name: P.b()
|
|
62
|
-
}),
|
|
63
|
+
}), ae = /* @__PURE__ */ _({
|
|
63
64
|
...ot,
|
|
64
65
|
props: {
|
|
65
66
|
tabsStyle: null,
|
|
@@ -175,5 +176,5 @@ const P = (
|
|
|
175
176
|
}
|
|
176
177
|
});
|
|
177
178
|
export {
|
|
178
|
-
|
|
179
|
+
ae as default
|
|
179
180
|
};
|
|
@@ -46,13 +46,15 @@ import "../md-vue-playground/index.mjs";
|
|
|
46
46
|
import "../md-code-demo/index.mjs";
|
|
47
47
|
import "../md-code-tabs/index.mjs";
|
|
48
48
|
import "../message/index.mjs";
|
|
49
|
+
import "../config-provider/hooks/use-global-config.mjs";
|
|
49
50
|
import "@popperjs/core";
|
|
50
51
|
import "lodash";
|
|
51
52
|
import "../../hooks/use-z-index/index.mjs";
|
|
52
53
|
import "@vueuse/core";
|
|
53
54
|
import "@vue/shared";
|
|
55
|
+
import "../../utils/ns-cover.mjs";
|
|
54
56
|
import { useContextMenu as d } from "../context-menu/useContextMenu.mjs";
|
|
55
|
-
const C = ["title", "onContextmenu"],
|
|
57
|
+
const C = ["title", "onContextmenu"], yt = /* @__PURE__ */ l({
|
|
56
58
|
__name: "tab-content",
|
|
57
59
|
props: {
|
|
58
60
|
tabItem: null,
|
|
@@ -78,5 +80,5 @@ const C = ["title", "onContextmenu"], ht = /* @__PURE__ */ l({
|
|
|
78
80
|
}
|
|
79
81
|
});
|
|
80
82
|
export {
|
|
81
|
-
|
|
83
|
+
yt as default
|
|
82
84
|
};
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { getRouterKeyPath as d } from "@vft/router";
|
|
2
|
-
import { reactive as
|
|
2
|
+
import { reactive as v, computed as C } from "vue";
|
|
3
3
|
import { useMultipleTabStore as D, useTabs as M } from "@vft/store";
|
|
4
4
|
function S(e, r) {
|
|
5
|
-
const i =
|
|
5
|
+
const i = v({
|
|
6
6
|
current: null,
|
|
7
7
|
currentIndex: 0
|
|
8
|
-
}), t = D(), { refreshPage: g, closeAll: a, close: h, closeLeft: u, closeOther: f, closeRight:
|
|
8
|
+
}), t = D(), { refreshPage: g, closeAll: a, close: h, closeLeft: u, closeOther: f, closeRight: b, newWinTab: p } = M(), x = C(() => {
|
|
9
9
|
if (!e)
|
|
10
10
|
return;
|
|
11
|
-
const { meta: o } = e, n = i.currentIndex,
|
|
11
|
+
const { meta: o } = e, n = i.currentIndex, c = n === 0 || n <= r, s = t.getTabList.length <= r || n === t.getTabList.length - 1 && t.getLastDragEndIndex >= 0, T = t.getTabList.length === r || t.getTabList.length === r + 1 && n === r, l = t.getTabList.length === r;
|
|
12
12
|
return [
|
|
13
13
|
{
|
|
14
|
-
iconCfg: { icon: "
|
|
14
|
+
iconCfg: { icon: "i-ic:sharp-refresh" },
|
|
15
15
|
text: "刷新",
|
|
16
16
|
handler: () => g(e)
|
|
17
17
|
},
|
|
18
18
|
{
|
|
19
|
-
iconCfg: { icon: "
|
|
19
|
+
iconCfg: { icon: "i-carbon:new-tab" },
|
|
20
20
|
text: "新页面打开",
|
|
21
|
-
handler: () =>
|
|
21
|
+
handler: () => p(e),
|
|
22
22
|
divider: !0
|
|
23
23
|
},
|
|
24
24
|
{
|
|
@@ -30,40 +30,40 @@ function S(e, r) {
|
|
|
30
30
|
{
|
|
31
31
|
iconCfg: { icon: "vi-close-left" },
|
|
32
32
|
text: "关闭左侧标签页",
|
|
33
|
-
disabled:
|
|
33
|
+
disabled: c,
|
|
34
34
|
handler: () => u(e)
|
|
35
35
|
},
|
|
36
36
|
{
|
|
37
37
|
iconCfg: { icon: "vi-close-right" },
|
|
38
38
|
text: "关闭右侧标签页",
|
|
39
|
-
disabled:
|
|
39
|
+
disabled: s,
|
|
40
40
|
divider: !0,
|
|
41
|
-
handler: () =>
|
|
41
|
+
handler: () => b(e)
|
|
42
42
|
},
|
|
43
43
|
{
|
|
44
44
|
iconCfg: { icon: "vi-close-other" },
|
|
45
45
|
text: "关闭其它标签页",
|
|
46
|
-
disabled:
|
|
46
|
+
disabled: T,
|
|
47
47
|
handler: () => f(e)
|
|
48
48
|
},
|
|
49
49
|
{
|
|
50
|
-
iconCfg: { icon: "
|
|
50
|
+
iconCfg: { icon: "i-codicon:close-all" },
|
|
51
51
|
text: "关闭所有标签页",
|
|
52
52
|
disabled: l,
|
|
53
53
|
handler: () => a()
|
|
54
54
|
}
|
|
55
55
|
];
|
|
56
56
|
});
|
|
57
|
-
function
|
|
57
|
+
function L(o) {
|
|
58
58
|
return (n) => {
|
|
59
59
|
if (!o)
|
|
60
60
|
return;
|
|
61
61
|
n == null || n.preventDefault();
|
|
62
|
-
const
|
|
63
|
-
i.current = o, i.currentIndex =
|
|
62
|
+
const c = t.getTabList.findIndex((s) => d(s) === d(o));
|
|
63
|
+
i.current = o, i.currentIndex = c;
|
|
64
64
|
};
|
|
65
65
|
}
|
|
66
|
-
return { getDropMenuList:
|
|
66
|
+
return { getDropMenuList: x, handleContextMenu: L };
|
|
67
67
|
}
|
|
68
68
|
export {
|
|
69
69
|
S as useTabDropdown
|
|
@@ -2,9 +2,10 @@ import { withInstall as t } from "../../utils/vue/install.mjs";
|
|
|
2
2
|
import "vue";
|
|
3
3
|
import "@vue/shared";
|
|
4
4
|
import "@vft/utils";
|
|
5
|
+
import "../../utils/ns-cover.mjs";
|
|
5
6
|
import o from "./overlay.vue2.mjs";
|
|
6
|
-
const
|
|
7
|
+
const l = t(o);
|
|
7
8
|
export {
|
|
8
|
-
|
|
9
|
-
|
|
9
|
+
l as VftOverlay,
|
|
10
|
+
l as default
|
|
10
11
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as i, useSlots as x, createVNode as y, renderSlot as u, h as r } from "vue";
|
|
2
2
|
import { useNamespace as v } from "../../hooks/use-namespace/index.mjs";
|
|
3
3
|
import "@popperjs/core";
|
|
4
4
|
import "lodash";
|
|
@@ -6,12 +6,13 @@ import "../../hooks/use-z-index/index.mjs";
|
|
|
6
6
|
import "@vueuse/core";
|
|
7
7
|
import { NOOP as a } from "@vue/shared";
|
|
8
8
|
import "@vft/utils";
|
|
9
|
-
|
|
9
|
+
import "../../utils/ns-cover.mjs";
|
|
10
|
+
const c = (
|
|
10
11
|
/* hoist-static*/
|
|
11
12
|
v("overlay")
|
|
12
|
-
), C =
|
|
13
|
-
name:
|
|
14
|
-
}),
|
|
13
|
+
), C = i({
|
|
14
|
+
name: c.b()
|
|
15
|
+
}), P = /* @__PURE__ */ i({
|
|
15
16
|
...C,
|
|
16
17
|
props: {
|
|
17
18
|
mask: { type: Boolean },
|
|
@@ -22,24 +23,24 @@ const i = (
|
|
|
22
23
|
},
|
|
23
24
|
emits: ["click"],
|
|
24
25
|
setup(o, { emit: d }) {
|
|
25
|
-
const m = (
|
|
26
|
-
if (!
|
|
26
|
+
const m = (t) => {
|
|
27
|
+
if (!t)
|
|
27
28
|
return { onClick: a, onMousedown: a, onMouseup: a };
|
|
28
29
|
let s = !1, l = !1;
|
|
29
30
|
return { onClick: (e) => {
|
|
30
|
-
s && l &&
|
|
31
|
+
s && l && t(e), s = l = !1;
|
|
31
32
|
}, onMousedown: (e) => {
|
|
32
33
|
s = e.target === e.currentTarget;
|
|
33
34
|
}, onMouseup: (e) => {
|
|
34
35
|
l = e.target === e.currentTarget;
|
|
35
36
|
} };
|
|
36
|
-
},
|
|
37
|
-
d("click",
|
|
37
|
+
}, n = x(), p = (t) => {
|
|
38
|
+
d("click", t);
|
|
38
39
|
}, { onClick: f, onMousedown: M, onMouseup: k } = m(o.customMaskEvent ? void 0 : p);
|
|
39
40
|
return () => o.mask ? y(
|
|
40
41
|
"div",
|
|
41
42
|
{
|
|
42
|
-
class: [
|
|
43
|
+
class: [c.b(), o.overlayClass],
|
|
43
44
|
style: {
|
|
44
45
|
zIndex: o.zIndex
|
|
45
46
|
},
|
|
@@ -47,13 +48,13 @@ const i = (
|
|
|
47
48
|
onMousedown: M,
|
|
48
49
|
onMouseup: k
|
|
49
50
|
},
|
|
50
|
-
[u(
|
|
51
|
+
[u(n, "default")],
|
|
51
52
|
14,
|
|
52
53
|
["onClick", "onMouseup", "onMousedown"]
|
|
53
54
|
) : o.onlyNode ? r(
|
|
54
55
|
"div",
|
|
55
56
|
{},
|
|
56
|
-
[u(
|
|
57
|
+
[u(n, "default")]
|
|
57
58
|
) : r(
|
|
58
59
|
"div",
|
|
59
60
|
{
|
|
@@ -67,10 +68,10 @@ const i = (
|
|
|
67
68
|
left: "0px"
|
|
68
69
|
}
|
|
69
70
|
},
|
|
70
|
-
[u(
|
|
71
|
+
[u(n, "default")]
|
|
71
72
|
);
|
|
72
73
|
}
|
|
73
74
|
});
|
|
74
75
|
export {
|
|
75
|
-
|
|
76
|
+
P as default
|
|
76
77
|
};
|
|
@@ -2,9 +2,10 @@ import { withInstall as t } from "../../utils/vue/install.mjs";
|
|
|
2
2
|
import "vue";
|
|
3
3
|
import "@vue/shared";
|
|
4
4
|
import "@vft/utils";
|
|
5
|
+
import "../../utils/ns-cover.mjs";
|
|
5
6
|
import r from "./page-wrapper.vue2.mjs";
|
|
6
|
-
const
|
|
7
|
+
const e = t(r);
|
|
7
8
|
export {
|
|
8
|
-
|
|
9
|
-
|
|
9
|
+
e as VftPageWrapper,
|
|
10
|
+
e as default
|
|
10
11
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as s, openBlock as
|
|
1
|
+
import { defineComponent as s, openBlock as a, createElementBlock as i, normalizeClass as o, unref as e, createElementVNode as r, toDisplayString as m, renderSlot as c } from "vue";
|
|
2
2
|
import { useNamespace as u } from "../../hooks/use-namespace/index.mjs";
|
|
3
3
|
import "@popperjs/core";
|
|
4
4
|
import "lodash";
|
|
@@ -6,20 +6,21 @@ import "../../hooks/use-z-index/index.mjs";
|
|
|
6
6
|
import "@vueuse/core";
|
|
7
7
|
import "@vue/shared";
|
|
8
8
|
import "@vft/utils";
|
|
9
|
+
import "../../utils/ns-cover.mjs";
|
|
9
10
|
import { useRouterHelper as d } from "@vft/router";
|
|
10
11
|
const t = (
|
|
11
12
|
/* hoist-static*/
|
|
12
13
|
u("page-wrapper")
|
|
13
14
|
), f = s({
|
|
14
15
|
name: t.b()
|
|
15
|
-
}),
|
|
16
|
+
}), w = /* @__PURE__ */ s({
|
|
16
17
|
...f,
|
|
17
18
|
props: {
|
|
18
19
|
title: null
|
|
19
20
|
},
|
|
20
21
|
setup(l) {
|
|
21
22
|
const { getTitle: n } = d();
|
|
22
|
-
return (
|
|
23
|
+
return (p, _) => (a(), i("div", {
|
|
23
24
|
class: o(e(t).b())
|
|
24
25
|
}, [
|
|
25
26
|
r("div", {
|
|
@@ -32,11 +33,11 @@ const t = (
|
|
|
32
33
|
r("div", {
|
|
33
34
|
class: o(e(t).e("content"))
|
|
34
35
|
}, [
|
|
35
|
-
c(
|
|
36
|
+
c(p.$slots, "default")
|
|
36
37
|
], 2)
|
|
37
38
|
], 2));
|
|
38
39
|
}
|
|
39
40
|
});
|
|
40
41
|
export {
|
|
41
|
-
|
|
42
|
+
w as default
|
|
42
43
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as f, ref as g, computed as _, openBlock as b, createElementBlock as h, normalizeClass as
|
|
1
|
+
import { defineComponent as f, ref as g, computed as _, openBlock as b, createElementBlock as h, normalizeClass as n, unref as e, createElementVNode as p, toDisplayString as v, createVNode as z } from "vue";
|
|
2
2
|
import { useNamespace as C } from "../../../hooks/use-namespace/index.mjs";
|
|
3
3
|
import "@popperjs/core";
|
|
4
4
|
import "lodash";
|
|
@@ -6,31 +6,32 @@ import "../../../hooks/use-z-index/index.mjs";
|
|
|
6
6
|
import "@vueuse/core";
|
|
7
7
|
import "@vue/shared";
|
|
8
8
|
import "@vft/utils";
|
|
9
|
+
import "../../../utils/ns-cover.mjs";
|
|
9
10
|
import { VftInput as V } from "../../input/index.mjs";
|
|
10
11
|
import { usePagination as x } from "../usePagination.mjs";
|
|
11
|
-
const I = ["disabled"],
|
|
12
|
+
const I = ["disabled"], A = /* @__PURE__ */ f({
|
|
12
13
|
__name: "jumper",
|
|
13
14
|
props: {
|
|
14
15
|
size: null
|
|
15
16
|
},
|
|
16
17
|
setup(r) {
|
|
17
|
-
const
|
|
18
|
-
function d(
|
|
19
|
-
|
|
18
|
+
const a = C("pagination"), { pageCount: m, disabled: l, currentPage: t, changeEvent: i } = x(), s = g(), u = _(() => s.value ?? (t == null ? void 0 : t.value));
|
|
19
|
+
function d(o) {
|
|
20
|
+
s.value = +o;
|
|
20
21
|
}
|
|
21
|
-
function c(
|
|
22
|
-
|
|
22
|
+
function c(o) {
|
|
23
|
+
o = Math.trunc(+o), i == null || i(+o), s.value = void 0;
|
|
23
24
|
}
|
|
24
|
-
return (
|
|
25
|
-
class:
|
|
25
|
+
return (o, N) => (b(), h("span", {
|
|
26
|
+
class: n(e(a).e("jump")),
|
|
26
27
|
disabled: e(l)
|
|
27
28
|
}, [
|
|
28
29
|
p("span", {
|
|
29
|
-
class:
|
|
30
|
-
}, v(
|
|
30
|
+
class: n([e(a).e("goto")])
|
|
31
|
+
}, v(o.t("el.pagination.goto")), 3),
|
|
31
32
|
z(e(V), {
|
|
32
33
|
size: r.size,
|
|
33
|
-
class:
|
|
34
|
+
class: n([e(a).e("editor"), e(a).is("in-pagination")]),
|
|
34
35
|
min: 1,
|
|
35
36
|
max: e(m),
|
|
36
37
|
disabled: e(l),
|
|
@@ -41,11 +42,11 @@ const I = ["disabled"], w = /* @__PURE__ */ f({
|
|
|
41
42
|
onChange: c
|
|
42
43
|
}, null, 8, ["size", "class", "max", "disabled", "model-value"]),
|
|
43
44
|
p("span", {
|
|
44
|
-
class:
|
|
45
|
+
class: n([e(a).e("classifier")])
|
|
45
46
|
}, "页", 2)
|
|
46
47
|
], 10, I));
|
|
47
48
|
}
|
|
48
49
|
});
|
|
49
50
|
export {
|
|
50
|
-
|
|
51
|
+
A as default
|
|
51
52
|
};
|
|
@@ -6,8 +6,9 @@ import "../../../hooks/use-z-index/index.mjs";
|
|
|
6
6
|
import "@vueuse/core";
|
|
7
7
|
import "@vue/shared";
|
|
8
8
|
import "@vft/utils";
|
|
9
|
+
import "../../../utils/ns-cover.mjs";
|
|
9
10
|
import { VftIcon as v } from "../../icon/index.mjs";
|
|
10
|
-
const D = ["onKeyup"], O = ["aria-current", "tabindex"], S = ["tabindex"], j = ["aria-current", "tabindex"], G = ["tabindex"], J = ["aria-current", "tabindex"],
|
|
11
|
+
const D = ["onKeyup"], O = ["aria-current", "tabindex"], S = ["tabindex"], j = ["aria-current", "tabindex"], G = ["tabindex"], J = ["aria-current", "tabindex"], ee = /* @__PURE__ */ A({
|
|
11
12
|
__name: "pager",
|
|
12
13
|
props: {
|
|
13
14
|
currentPage: { default: 1 },
|
|
@@ -144,5 +145,5 @@ const D = ["onKeyup"], O = ["aria-current", "tabindex"], S = ["tabindex"], j = [
|
|
|
144
145
|
}
|
|
145
146
|
});
|
|
146
147
|
export {
|
|
147
|
-
|
|
148
|
+
ee as default
|
|
148
149
|
};
|
|
@@ -6,8 +6,9 @@ import "../../../hooks/use-z-index/index.mjs";
|
|
|
6
6
|
import "@vueuse/core";
|
|
7
7
|
import "@vue/shared";
|
|
8
8
|
import "@vft/utils";
|
|
9
|
+
import "../../../utils/ns-cover.mjs";
|
|
9
10
|
import { usePagination as d } from "../usePagination.mjs";
|
|
10
|
-
const
|
|
11
|
+
const q = /* @__PURE__ */ p({
|
|
11
12
|
__name: "sizes",
|
|
12
13
|
props: {
|
|
13
14
|
pageSize: null,
|
|
@@ -40,5 +41,5 @@ const b = /* @__PURE__ */ p({
|
|
|
40
41
|
}
|
|
41
42
|
});
|
|
42
43
|
export {
|
|
43
|
-
|
|
44
|
+
q as default
|
|
44
45
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as i, openBlock as
|
|
1
|
+
import { defineComponent as i, openBlock as r, createElementBlock as n, normalizeClass as s, unref as t, toDisplayString as p } from "vue";
|
|
2
2
|
import { useNamespace as m } from "../../../hooks/use-namespace/index.mjs";
|
|
3
3
|
import "@popperjs/core";
|
|
4
4
|
import "lodash";
|
|
@@ -6,20 +6,21 @@ import "../../../hooks/use-z-index/index.mjs";
|
|
|
6
6
|
import "@vueuse/core";
|
|
7
7
|
import "@vue/shared";
|
|
8
8
|
import "@vft/utils";
|
|
9
|
+
import "../../../utils/ns-cover.mjs";
|
|
9
10
|
import { usePagination as l } from "../usePagination.mjs";
|
|
10
|
-
const c = ["disabled"],
|
|
11
|
+
const c = ["disabled"], z = /* @__PURE__ */ i({
|
|
11
12
|
__name: "total",
|
|
12
13
|
props: {
|
|
13
14
|
total: { default: 1e3 }
|
|
14
15
|
},
|
|
15
16
|
setup(o) {
|
|
16
17
|
const e = m("pagination"), { disabled: a } = l();
|
|
17
|
-
return (d, f) => (
|
|
18
|
+
return (d, f) => (r(), n("span", {
|
|
18
19
|
class: s(t(e).e("total")),
|
|
19
20
|
disabled: t(a)
|
|
20
21
|
}, p(o.total), 11, c));
|
|
21
22
|
}
|
|
22
23
|
});
|
|
23
24
|
export {
|
|
24
|
-
|
|
25
|
+
z as default
|
|
25
26
|
};
|
|
@@ -2,14 +2,15 @@ import { withInstall as t } from "../../utils/vue/install.mjs";
|
|
|
2
2
|
import "vue";
|
|
3
3
|
import "@vue/shared";
|
|
4
4
|
import "@vft/utils";
|
|
5
|
+
import "../../utils/ns-cover.mjs";
|
|
5
6
|
import o from "./pagination.mjs";
|
|
6
|
-
import { paginationEmits as
|
|
7
|
-
import { elPaginationKey as
|
|
8
|
-
const
|
|
7
|
+
import { paginationEmits as s } from "./pagination.mjs";
|
|
8
|
+
import { elPaginationKey as P, usePagination as x } from "./usePagination.mjs";
|
|
9
|
+
const e = t(o);
|
|
9
10
|
export {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
e as VftPagination,
|
|
12
|
+
e as default,
|
|
13
|
+
P as elPaginationKey,
|
|
14
|
+
s as paginationEmits,
|
|
15
|
+
x as usePagination
|
|
15
16
|
};
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
import { useNamespace as U } from "../../hooks/use-namespace/index.mjs";
|
|
1
|
+
import { useNamespace as w } from "../../hooks/use-namespace/index.mjs";
|
|
2
|
+
import { defineComponent as A, getCurrentInstance as E, computed as s, ref as y, watch as M, provide as U, h as l } from "vue";
|
|
4
3
|
import "@popperjs/core";
|
|
5
4
|
import "lodash";
|
|
6
5
|
import "../../hooks/use-z-index/index.mjs";
|
|
7
6
|
import "@vueuse/core";
|
|
8
7
|
import "@vue/shared";
|
|
9
|
-
import
|
|
8
|
+
import { isNumber as g } from "@vft/utils";
|
|
9
|
+
import "../../utils/ns-cover.mjs";
|
|
10
|
+
import $ from "./components/jumper.vue2.mjs";
|
|
10
11
|
import j from "./components/next.vue2.mjs";
|
|
11
|
-
import L from "./components/
|
|
12
|
-
import R from "./components/
|
|
13
|
-
import W from "./components/
|
|
14
|
-
import O from "./components/
|
|
12
|
+
import L from "./components/pager.vue2.mjs";
|
|
13
|
+
import R from "./components/prev.vue2.mjs";
|
|
14
|
+
import W from "./components/sizes.vue2.mjs";
|
|
15
|
+
import O from "./components/total.vue2.mjs";
|
|
15
16
|
import { elPaginationKey as V } from "./usePagination.mjs";
|
|
16
17
|
const n = (e) => typeof e != "number", K = {
|
|
17
18
|
"update:current-page": (e) => g(e),
|
|
@@ -20,7 +21,7 @@ const n = (e) => typeof e != "number", K = {
|
|
|
20
21
|
"current-change": (e) => g(e),
|
|
21
22
|
"prev-click": (e) => g(e),
|
|
22
23
|
"next-click": (e) => g(e)
|
|
23
|
-
}, q = "VftPagination",
|
|
24
|
+
}, q = "VftPagination", le = A({
|
|
24
25
|
name: q,
|
|
25
26
|
props: {
|
|
26
27
|
/**
|
|
@@ -123,7 +124,7 @@ const n = (e) => typeof e != "number", K = {
|
|
|
123
124
|
},
|
|
124
125
|
emits: K,
|
|
125
126
|
setup(e, { emit: o, slots: f }) {
|
|
126
|
-
const r =
|
|
127
|
+
const r = w("pagination"), c = E().vnode.props || {}, v = "onUpdate:currentPage" in c || "onUpdate:current-page" in c || "onCurrentChange" in c, p = "onUpdate:pageSize" in c || "onUpdate:page-size" in c || "onSizeChange" in c, _ = s(() => {
|
|
127
128
|
if (n(e.total) && n(e.pageCount) || !n(e.currentPage) && !v)
|
|
128
129
|
return !1;
|
|
129
130
|
if (e.layout.includes("sizes")) {
|
|
@@ -153,7 +154,7 @@ const n = (e) => typeof e != "number", K = {
|
|
|
153
154
|
a < 1 ? t = 1 : a > u.value && (t = u.value), n(e.currentPage) && (b.value = t), v && (o("update:current-page", t), o("current-change", t));
|
|
154
155
|
}
|
|
155
156
|
});
|
|
156
|
-
|
|
157
|
+
M(u, (a) => {
|
|
157
158
|
i.value > a && (i.value = a);
|
|
158
159
|
});
|
|
159
160
|
function z(a) {
|
|
@@ -173,7 +174,7 @@ const n = (e) => typeof e != "number", K = {
|
|
|
173
174
|
function m(a, t) {
|
|
174
175
|
a && (a.props || (a.props = {}), a.props.class = [a.props.class, t].join(" "));
|
|
175
176
|
}
|
|
176
|
-
return
|
|
177
|
+
return U(V, {
|
|
177
178
|
pageCount: u,
|
|
178
179
|
disabled: s(() => e.disabled),
|
|
179
180
|
currentPage: i,
|
|
@@ -184,17 +185,17 @@ const n = (e) => typeof e != "number", K = {
|
|
|
184
185
|
if (!_.value || !e.layout || e.hideOnSinglePage && u.value <= 1)
|
|
185
186
|
return null;
|
|
186
187
|
const a = [], t = [], B = l("div", { class: r.e("rightwrapper") }, t), S = {
|
|
187
|
-
prev: l(
|
|
188
|
+
prev: l(R, {
|
|
188
189
|
disabled: e.disabled,
|
|
189
190
|
currentPage: i.value,
|
|
190
191
|
prevText: e.prevText,
|
|
191
192
|
prevIcon: e.prevIcon,
|
|
192
193
|
onClick: k
|
|
193
194
|
}),
|
|
194
|
-
jumper: l(
|
|
195
|
+
jumper: l($, {
|
|
195
196
|
size: e.small ? "small" : "default"
|
|
196
197
|
}),
|
|
197
|
-
pager: l(
|
|
198
|
+
pager: l(L, {
|
|
198
199
|
currentPage: i.value,
|
|
199
200
|
pageCount: u.value,
|
|
200
201
|
pagerCount: e.pagerCount,
|
|
@@ -209,7 +210,7 @@ const n = (e) => typeof e != "number", K = {
|
|
|
209
210
|
nextIcon: e.nextIcon,
|
|
210
211
|
onClick: T
|
|
211
212
|
}),
|
|
212
|
-
sizes: l(
|
|
213
|
+
sizes: l(W, {
|
|
213
214
|
pageSize: C.value,
|
|
214
215
|
pageSizes: e.pageSizes,
|
|
215
216
|
popperClass: e.popperClass,
|
|
@@ -217,7 +218,7 @@ const n = (e) => typeof e != "number", K = {
|
|
|
217
218
|
size: e.small ? "small" : "default"
|
|
218
219
|
}),
|
|
219
220
|
slot: ((x = f == null ? void 0 : f.default) == null ? void 0 : x.call(f)) ?? null,
|
|
220
|
-
total: l(
|
|
221
|
+
total: l(O, { total: n(e.total) ? 0 : e.total })
|
|
221
222
|
}, I = e.layout.split(",").map((d) => d.trim());
|
|
222
223
|
let h = !1;
|
|
223
224
|
return I.forEach((d) => {
|
|
@@ -245,6 +246,6 @@ const n = (e) => typeof e != "number", K = {
|
|
|
245
246
|
}
|
|
246
247
|
});
|
|
247
248
|
export {
|
|
248
|
-
|
|
249
|
+
le as default,
|
|
249
250
|
K as paginationEmits
|
|
250
251
|
};
|
|
@@ -44,7 +44,7 @@ export declare const VftPopover: import("vft/es/utils").SFCWithInstall<import("v
|
|
|
44
44
|
required: false;
|
|
45
45
|
};
|
|
46
46
|
effect: {
|
|
47
|
-
type: import("vue").PropType<"
|
|
47
|
+
type: import("vue").PropType<"light" | "dark" | undefined>;
|
|
48
48
|
required: false;
|
|
49
49
|
};
|
|
50
50
|
teleported: {
|
|
@@ -132,7 +132,7 @@ export declare const VftPopover: import("vft/es/utils").SFCWithInstall<import("v
|
|
|
132
132
|
required: false;
|
|
133
133
|
};
|
|
134
134
|
effect: {
|
|
135
|
-
type: import("vue").PropType<"
|
|
135
|
+
type: import("vue").PropType<"light" | "dark" | undefined>;
|
|
136
136
|
required: false;
|
|
137
137
|
};
|
|
138
138
|
teleported: {
|