vft 0.0.39 → 0.0.40
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/components/avatar/avatar.vue2.mjs +2 -3
- package/es/components/avatar/index.mjs +3 -4
- package/es/components/back-top/back-top.vue2.mjs +2 -3
- package/es/components/back-top/index.mjs +3 -4
- package/es/components/back-top/use-back-top.mjs +1 -1
- package/es/components/clamp/clamp.vue2.mjs +9 -10
- package/es/components/clamp/index.mjs +3 -4
- package/es/components/clamp-toggle/clamp-toggle.vue2.mjs +2 -3
- package/es/components/clamp-toggle/index.mjs +3 -4
- package/es/components/collapse-transition/src/collapse-transition.vue2.mjs +5 -6
- package/es/components/config-provider/config-provider.vue2.mjs +2 -3
- package/es/components/config-provider/hooks/use-global-config.mjs +5 -6
- package/es/components/config-provider/index.mjs +10 -11
- package/es/components/context-menu/context-menu.vue2.mjs +2 -3
- package/es/components/descriptions/description-item.vue2.mjs +5 -6
- package/es/components/descriptions/description.vue2.mjs +14 -15
- package/es/components/descriptions/descriptions-cell.mjs +11 -12
- package/es/components/descriptions/descriptions-row.vue2.mjs +11 -12
- package/es/components/descriptions/index.mjs +5 -6
- package/es/components/divider/divider.vue2.mjs +5 -6
- package/es/components/divider/index.mjs +3 -4
- package/es/components/empty/empty.vue2.mjs +2 -3
- package/es/components/empty/index.mjs +5 -6
- package/es/components/exception/index.mjs +3 -4
- package/es/components/footer-layout/footer-layout.vue2.mjs +9 -10
- package/es/components/footer-layout/index.mjs +3 -4
- package/es/components/full-screen/full-screen.vue2.mjs +6 -7
- package/es/components/full-screen/index.mjs +3 -4
- package/es/components/header-layout/header-layout.vue2.mjs +2 -3
- package/es/components/header-layout/index.mjs +3 -4
- package/es/components/icon/icon.vue2.mjs +6 -7
- package/es/components/icon/index.mjs +4 -5
- package/es/components/icon-text/icon-text.vue2.mjs +9 -10
- package/es/components/icon-text/index.mjs +3 -4
- package/es/components/iframe-layout/iframe-layout.vue2.mjs +2 -3
- package/es/components/iframe-layout/iframe-page.vue2.mjs +2 -3
- package/es/components/iframe-layout/index.mjs +3 -4
- package/es/components/image/image.vue2.mjs +7 -8
- package/es/components/image/index.mjs +3 -4
- package/es/components/input/index.mjs +3 -4
- package/es/components/input/input.vue2.mjs +2 -3
- package/es/components/link/index.mjs +3 -4
- package/es/components/link/link.vue2.mjs +2 -3
- package/es/components/loading/directive.mjs +16 -17
- package/es/components/loading/loading.mjs +2 -3
- package/es/components/loading/service.mjs +2 -3
- package/es/components/logo/index.mjs +3 -4
- package/es/components/logo/logo.vue2.mjs +9 -10
- package/es/components/md-code-demo/index.mjs +3 -4
- package/es/components/md-code-demo/md-code-demo.mjs +2 -3
- package/es/components/md-code-tabs/index.mjs +3 -4
- package/es/components/md-comment/index.mjs +3 -4
- package/es/components/md-comment/md-comment.vue2.mjs +6 -7
- package/es/components/md-container/index.mjs +3 -4
- package/es/components/md-container/md-container.vue2.mjs +17 -18
- package/es/components/md-tabs/index.mjs +3 -4
- package/es/components/md-vue-playground/index.mjs +3 -4
- package/es/components/md-vue-playground/md-vue-playground.vue2.mjs +7 -8
- package/es/components/menu/index.mjs +8 -9
- package/es/components/menu/menu-collapse-transition.vue2.mjs +2 -3
- package/es/components/menu/menu-item-group.vue2.mjs +7 -8
- package/es/components/menu/menu-item.vue2.mjs +2 -3
- package/es/components/menu/menu.vue2.mjs +3 -4
- package/es/components/menu/sub-menu.vue2.mjs +2 -3
- package/es/components/menu/use-menu-css-var.mjs +2 -3
- package/es/components/message/index.mjs +7 -8
- package/es/components/message/message.vue2.mjs +4 -5
- package/es/components/message/method.mjs +0 -1
- package/es/components/multiple-tabs/multiple-tabs.vue2.mjs +2 -3
- package/es/components/multiple-tabs/tab-content.vue2.mjs +2 -3
- package/es/components/overlay/index.mjs +3 -4
- package/es/components/overlay/overlay.vue2.mjs +16 -17
- package/es/components/page-wrapper/index.mjs +3 -4
- package/es/components/page-wrapper/page-wrapper.vue2.mjs +5 -6
- package/es/components/pagination/components/jumper.vue2.mjs +14 -15
- package/es/components/pagination/components/pager.vue2.mjs +2 -3
- package/es/components/pagination/components/sizes.vue2.mjs +2 -3
- package/es/components/pagination/components/total.vue2.mjs +4 -5
- package/es/components/pagination/index.mjs +8 -9
- package/es/components/pagination/pagination.mjs +2 -3
- package/es/components/popover/index.mjs +3 -4
- package/es/components/popover/popover.vue2.mjs +2 -3
- package/es/components/popper/arrow.vue2.mjs +2 -3
- package/es/components/popper/composables/use-content-dom.mjs +2 -3
- package/es/components/popper/composables/use-content.mjs +2 -3
- package/es/components/popper/index.mjs +9 -10
- package/es/components/popper/trigger.vue2.mjs +2 -3
- package/es/components/qrcode/index.mjs +3 -4
- package/es/components/qrcode/qrcode.vue2.mjs +5 -6
- package/es/components/result/index.mjs +3 -4
- package/es/components/result/result.vue2.mjs +2 -3
- package/es/components/router-view-content/index.mjs +3 -4
- package/es/components/router-view-content/router-view-content.vue2.mjs +6 -7
- package/es/components/search/index.mjs +3 -4
- package/es/components/search/search.vue2.mjs +2 -3
- package/es/components/side-menu/index.mjs +3 -4
- package/es/components/side-menu/side-menu.vue2.mjs +2 -3
- package/es/components/slot/only-child.mjs +19 -20
- package/es/components/tabs/index.mjs +8 -9
- package/es/components/tabs/tab-bar.vue2.mjs +2 -3
- package/es/components/tabs/tab-nav.vue2.mjs +3 -4
- package/es/components/tabs/tab-pane.vue2.mjs +3 -4
- package/es/components/tabs/tabs.vue2.mjs +2 -3
- package/es/components/tag/index.mjs +3 -4
- package/es/components/tag/tag.vue2.mjs +2 -3
- package/es/components/tooltip/content.vue2.mjs +11 -12
- package/es/components/tooltip/index.mjs +3 -4
- package/es/components/tooltip/tooltip.vue2.mjs +10 -11
- package/es/components/tooltip/trigger.vue2.mjs +6 -7
- package/es/components/tooltip/utils.mjs +4 -5
- package/es/hooks/use-id/index.mjs +1 -1
- package/es/hooks/use-model-toggle/index.mjs +19 -20
- package/es/hooks/use-ordered-children/index.mjs +5 -6
- package/es/package.json.mjs +1 -1
- package/es/utils/vue/install.mjs +11 -11
- package/es/utils/vue/vnode.mjs +1 -1
- package/lib/components/avatar/avatar.vue2.cjs +1 -1
- package/lib/components/avatar/index.cjs +1 -1
- package/lib/components/back-top/back-top.vue2.cjs +1 -1
- package/lib/components/back-top/index.cjs +1 -1
- package/lib/components/back-top/use-back-top.cjs +1 -1
- package/lib/components/clamp/clamp.vue2.cjs +1 -1
- package/lib/components/clamp/index.cjs +1 -1
- package/lib/components/clamp-toggle/clamp-toggle.vue2.cjs +1 -1
- package/lib/components/clamp-toggle/index.cjs +1 -1
- package/lib/components/collapse-transition/src/collapse-transition.vue2.cjs +1 -1
- package/lib/components/config-provider/config-provider.vue2.cjs +1 -1
- package/lib/components/config-provider/hooks/use-global-config.cjs +1 -1
- package/lib/components/config-provider/index.cjs +1 -1
- package/lib/components/context-menu/context-menu.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-cell.cjs +1 -1
- package/lib/components/descriptions/descriptions-row.vue2.cjs +1 -1
- package/lib/components/descriptions/index.cjs +1 -1
- package/lib/components/divider/divider.vue2.cjs +1 -1
- package/lib/components/divider/index.cjs +1 -1
- package/lib/components/empty/empty.vue2.cjs +1 -1
- package/lib/components/empty/index.cjs +1 -1
- package/lib/components/exception/index.cjs +1 -1
- package/lib/components/footer-layout/footer-layout.vue2.cjs +1 -1
- package/lib/components/footer-layout/index.cjs +1 -1
- package/lib/components/full-screen/full-screen.vue2.cjs +1 -1
- package/lib/components/full-screen/index.cjs +1 -1
- package/lib/components/header-layout/header-layout.vue2.cjs +1 -1
- package/lib/components/header-layout/index.cjs +1 -1
- package/lib/components/icon/icon.vue2.cjs +1 -1
- package/lib/components/icon/index.cjs +1 -1
- package/lib/components/icon-text/icon-text.vue2.cjs +1 -1
- package/lib/components/icon-text/index.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/iframe-layout/index.cjs +1 -1
- package/lib/components/image/image.vue2.cjs +1 -1
- package/lib/components/image/index.cjs +1 -1
- package/lib/components/input/index.cjs +1 -1
- package/lib/components/input/input.vue2.cjs +1 -1
- package/lib/components/link/index.cjs +1 -1
- package/lib/components/link/link.vue2.cjs +1 -1
- package/lib/components/loading/directive.cjs +1 -1
- package/lib/components/loading/loading.cjs +1 -1
- package/lib/components/loading/service.cjs +1 -1
- package/lib/components/logo/index.cjs +1 -1
- package/lib/components/logo/logo.vue2.cjs +1 -1
- package/lib/components/md-code-demo/index.cjs +1 -1
- package/lib/components/md-code-demo/md-code-demo.cjs +1 -1
- package/lib/components/md-code-tabs/index.cjs +1 -1
- package/lib/components/md-comment/index.cjs +1 -1
- package/lib/components/md-comment/md-comment.vue2.cjs +1 -1
- package/lib/components/md-container/index.cjs +1 -1
- package/lib/components/md-container/md-container.vue2.cjs +1 -1
- package/lib/components/md-tabs/index.cjs +1 -1
- package/lib/components/md-vue-playground/index.cjs +1 -1
- package/lib/components/md-vue-playground/md-vue-playground.vue2.cjs +1 -1
- package/lib/components/menu/index.cjs +1 -1
- package/lib/components/menu/menu-collapse-transition.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/menu/use-menu-css-var.cjs +1 -1
- package/lib/components/message/index.cjs +1 -1
- package/lib/components/message/message.vue2.cjs +1 -1
- package/lib/components/message/method.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/index.cjs +1 -1
- package/lib/components/overlay/overlay.vue2.cjs +1 -1
- package/lib/components/page-wrapper/index.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/pager.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/index.cjs +1 -1
- package/lib/components/pagination/pagination.cjs +1 -1
- package/lib/components/popover/index.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/composables/use-content-dom.cjs +1 -1
- package/lib/components/popper/composables/use-content.cjs +1 -1
- package/lib/components/popper/index.cjs +1 -1
- package/lib/components/popper/trigger.vue2.cjs +1 -1
- package/lib/components/qrcode/index.cjs +1 -1
- package/lib/components/qrcode/qrcode.vue2.cjs +1 -1
- package/lib/components/result/index.cjs +1 -1
- package/lib/components/result/result.vue2.cjs +1 -1
- package/lib/components/router-view-content/index.cjs +1 -1
- package/lib/components/router-view-content/router-view-content.vue2.cjs +1 -1
- package/lib/components/search/index.cjs +1 -1
- package/lib/components/search/search.vue2.cjs +1 -1
- package/lib/components/side-menu/index.cjs +1 -1
- package/lib/components/side-menu/side-menu.vue2.cjs +1 -1
- package/lib/components/slot/only-child.cjs +1 -1
- package/lib/components/tabs/index.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/index.cjs +1 -1
- package/lib/components/tag/tag.vue2.cjs +1 -1
- package/lib/components/tooltip/content.vue2.cjs +1 -1
- package/lib/components/tooltip/index.cjs +1 -1
- package/lib/components/tooltip/tooltip.vue2.cjs +1 -1
- package/lib/components/tooltip/trigger.vue2.cjs +1 -1
- package/lib/components/tooltip/utils.cjs +1 -1
- package/lib/hooks/use-id/index.cjs +1 -1
- package/lib/hooks/use-model-toggle/index.cjs +1 -1
- package/lib/hooks/use-ordered-children/index.cjs +1 -1
- package/lib/package.json.cjs +1 -1
- package/lib/utils/vue/install.cjs +1 -1
- package/lib/utils/vue/vnode.cjs +1 -1
- package/package.json +1 -5
|
@@ -4,15 +4,14 @@ import "@popperjs/core";
|
|
|
4
4
|
import "lodash";
|
|
5
5
|
import "../../hooks/use-z-index/index.mjs";
|
|
6
6
|
import "@vueuse/core";
|
|
7
|
-
import "@vue/shared";
|
|
8
7
|
import "@vft/utils";
|
|
9
8
|
import "../../utils/ns-cover.mjs";
|
|
10
|
-
const
|
|
9
|
+
const f = (p, r) => {
|
|
11
10
|
const o = m("menu");
|
|
12
11
|
return t(() => o.cssVarBlock({
|
|
13
12
|
level: `${r}`
|
|
14
13
|
}));
|
|
15
14
|
};
|
|
16
15
|
export {
|
|
17
|
-
|
|
16
|
+
f as useMenuCssVar
|
|
18
17
|
};
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { withInstallFunction as s } from "../../utils/vue/install.mjs";
|
|
2
2
|
import "vue";
|
|
3
|
-
import "@vue/shared";
|
|
4
3
|
import "@vft/utils";
|
|
5
4
|
import "../../utils/ns-cover.mjs";
|
|
6
5
|
import e from "./method.mjs";
|
|
7
|
-
import { messageDefaults as
|
|
8
|
-
const
|
|
6
|
+
import { messageDefaults as g, messageTypes as l } from "./types.mjs";
|
|
7
|
+
const p = s(e, "$message");
|
|
9
8
|
export {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
p as Message,
|
|
10
|
+
p as VftMessage,
|
|
11
|
+
p as default,
|
|
12
|
+
g as messageDefaults,
|
|
13
|
+
l as messageTypes
|
|
15
14
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as E, ref as
|
|
1
|
+
import { defineComponent as E, ref as g, computed as i, onMounted as x, watch as O, openBlock as l, createBlock as R, Transition as V, unref as e, withCtx as H, withDirectives as I, createElementVNode as $, normalizeClass as c, normalizeStyle as D, createElementBlock as m, createVNode as w, normalizeProps as F, guardReactiveProps as P, createCommentVNode as k, renderSlot as U, toDisplayString as j, withModifiers as A, vShow as q } from "vue";
|
|
2
2
|
import { EVENT_CODE as G } from "@vft/constants";
|
|
3
3
|
import { isObject as J } from "@vft/utils";
|
|
4
4
|
import { useResizeObserver as K, useTimeoutFn as Q } from "@vueuse/core";
|
|
@@ -7,7 +7,6 @@ import { useNamespace as X } from "../../hooks/use-namespace/index.mjs";
|
|
|
7
7
|
import "@popperjs/core";
|
|
8
8
|
import "lodash";
|
|
9
9
|
import "../../hooks/use-z-index/index.mjs";
|
|
10
|
-
import "@vue/shared";
|
|
11
10
|
import "../../utils/ns-cover.mjs";
|
|
12
11
|
import { getLastOffset as Y } from "./instance.mjs";
|
|
13
12
|
import { VftIcon as B } from "../icon/index.mjs";
|
|
@@ -31,7 +30,7 @@ const Z = ["id"], _ = ["innerHTML"], ee = ["onClick"], ge = /* @__PURE__ */ E({
|
|
|
31
30
|
},
|
|
32
31
|
emits: ["destroy"],
|
|
33
32
|
setup(t, { expose: M }) {
|
|
34
|
-
const o = t, n = X("message"), f =
|
|
33
|
+
const o = t, n = X("message"), f = g(), r = g(!1), p = g(0);
|
|
35
34
|
let a;
|
|
36
35
|
const L = /* @__PURE__ */ new Map([
|
|
37
36
|
["success", { icon: "i-ep:success-filled" }],
|
|
@@ -40,7 +39,7 @@ const Z = ["id"], _ = ["innerHTML"], ee = ["onClick"], ge = /* @__PURE__ */ E({
|
|
|
40
39
|
]), y = i(() => (o.icon ? J(o.icon) ? o.icon : { icon: o.icon } : "") || L.get(o.type) || ""), b = i(() => {
|
|
41
40
|
const s = o.type;
|
|
42
41
|
return { [n.bm("icon", s)]: s };
|
|
43
|
-
}), S = i(() => Y(o.id)), v = i(() => o.offset + S.value), T = i(() =>
|
|
42
|
+
}), S = i(() => Y(o.id)), v = i(() => o.offset + S.value), T = i(() => p.value + v.value), z = i(() => ({
|
|
44
43
|
top: `${v.value}px`,
|
|
45
44
|
zIndex: o.zIndex
|
|
46
45
|
}));
|
|
@@ -66,7 +65,7 @@ const Z = ["id"], _ = ["innerHTML"], ee = ["onClick"], ge = /* @__PURE__ */ E({
|
|
|
66
65
|
C(), d();
|
|
67
66
|
}
|
|
68
67
|
), W(document, "keydown", N), K(f, () => {
|
|
69
|
-
|
|
68
|
+
p.value = f.value.getBoundingClientRect().height;
|
|
70
69
|
}), M({
|
|
71
70
|
visible: r,
|
|
72
71
|
bottom: T,
|
|
@@ -5,7 +5,6 @@ import "../config-provider/hooks/use-global-config.mjs";
|
|
|
5
5
|
import "@popperjs/core";
|
|
6
6
|
import "lodash";
|
|
7
7
|
import { useZIndex as C } from "../../hooks/use-z-index/index.mjs";
|
|
8
|
-
import "@vue/shared";
|
|
9
8
|
import { debugWarn as E } from "../../utils/error.mjs";
|
|
10
9
|
import "../../utils/ns-cover.mjs";
|
|
11
10
|
import _ from "./message.vue2.mjs";
|
|
@@ -10,7 +10,6 @@ import "@popperjs/core";
|
|
|
10
10
|
import "lodash";
|
|
11
11
|
import "../../hooks/use-z-index/index.mjs";
|
|
12
12
|
import "@vueuse/core";
|
|
13
|
-
import "@vue/shared";
|
|
14
13
|
import "../../utils/ns-cover.mjs";
|
|
15
14
|
import "../divider/index.mjs";
|
|
16
15
|
import "../icon/index.mjs";
|
|
@@ -60,7 +59,7 @@ const P = (
|
|
|
60
59
|
W("multiple-tabs")
|
|
61
60
|
), ot = _({
|
|
62
61
|
name: P.b()
|
|
63
|
-
}),
|
|
62
|
+
}), ie = /* @__PURE__ */ _({
|
|
64
63
|
...ot,
|
|
65
64
|
props: {
|
|
66
65
|
tabsStyle: null,
|
|
@@ -176,5 +175,5 @@ const P = (
|
|
|
176
175
|
}
|
|
177
176
|
});
|
|
178
177
|
export {
|
|
179
|
-
|
|
178
|
+
ie as default
|
|
180
179
|
};
|
|
@@ -51,10 +51,9 @@ import "@popperjs/core";
|
|
|
51
51
|
import "lodash";
|
|
52
52
|
import "../../hooks/use-z-index/index.mjs";
|
|
53
53
|
import "@vueuse/core";
|
|
54
|
-
import "@vue/shared";
|
|
55
54
|
import "../../utils/ns-cover.mjs";
|
|
56
55
|
import { useContextMenu as d } from "../context-menu/useContextMenu.mjs";
|
|
57
|
-
const C = ["title", "onContextmenu"],
|
|
56
|
+
const C = ["title", "onContextmenu"], It = /* @__PURE__ */ l({
|
|
58
57
|
__name: "tab-content",
|
|
59
58
|
props: {
|
|
60
59
|
tabItem: null,
|
|
@@ -80,5 +79,5 @@ const C = ["title", "onContextmenu"], yt = /* @__PURE__ */ l({
|
|
|
80
79
|
}
|
|
81
80
|
});
|
|
82
81
|
export {
|
|
83
|
-
|
|
82
|
+
It as default
|
|
84
83
|
};
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { withInstall as t } from "../../utils/vue/install.mjs";
|
|
2
2
|
import "vue";
|
|
3
|
-
import "@vue/shared";
|
|
4
3
|
import "@vft/utils";
|
|
5
4
|
import "../../utils/ns-cover.mjs";
|
|
6
5
|
import o from "./overlay.vue2.mjs";
|
|
7
|
-
const
|
|
6
|
+
const f = t(o);
|
|
8
7
|
export {
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
f as VftOverlay,
|
|
9
|
+
f as default
|
|
11
10
|
};
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as c, 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";
|
|
5
5
|
import "../../hooks/use-z-index/index.mjs";
|
|
6
6
|
import "@vueuse/core";
|
|
7
|
-
import {
|
|
8
|
-
import "@vft/utils";
|
|
7
|
+
import { noop as a } from "@vft/utils";
|
|
9
8
|
import "../../utils/ns-cover.mjs";
|
|
10
|
-
const
|
|
9
|
+
const i = (
|
|
11
10
|
/* hoist-static*/
|
|
12
11
|
v("overlay")
|
|
13
|
-
), C =
|
|
14
|
-
name:
|
|
15
|
-
}),
|
|
12
|
+
), C = c({
|
|
13
|
+
name: i.b()
|
|
14
|
+
}), V = /* @__PURE__ */ c({
|
|
16
15
|
...C,
|
|
17
16
|
props: {
|
|
18
17
|
mask: { type: Boolean },
|
|
@@ -23,24 +22,24 @@ const c = (
|
|
|
23
22
|
},
|
|
24
23
|
emits: ["click"],
|
|
25
24
|
setup(o, { emit: d }) {
|
|
26
|
-
const m = (
|
|
27
|
-
if (!
|
|
25
|
+
const m = (n) => {
|
|
26
|
+
if (!n)
|
|
28
27
|
return { onClick: a, onMousedown: a, onMouseup: a };
|
|
29
28
|
let s = !1, l = !1;
|
|
30
29
|
return { onClick: (e) => {
|
|
31
|
-
s && l &&
|
|
30
|
+
s && l && n(e), s = l = !1;
|
|
32
31
|
}, onMousedown: (e) => {
|
|
33
32
|
s = e.target === e.currentTarget;
|
|
34
33
|
}, onMouseup: (e) => {
|
|
35
34
|
l = e.target === e.currentTarget;
|
|
36
35
|
} };
|
|
37
|
-
},
|
|
38
|
-
d("click",
|
|
36
|
+
}, t = x(), p = (n) => {
|
|
37
|
+
d("click", n);
|
|
39
38
|
}, { onClick: f, onMousedown: M, onMouseup: k } = m(o.customMaskEvent ? void 0 : p);
|
|
40
39
|
return () => o.mask ? y(
|
|
41
40
|
"div",
|
|
42
41
|
{
|
|
43
|
-
class: [
|
|
42
|
+
class: [i.b(), o.overlayClass],
|
|
44
43
|
style: {
|
|
45
44
|
zIndex: o.zIndex
|
|
46
45
|
},
|
|
@@ -48,13 +47,13 @@ const c = (
|
|
|
48
47
|
onMousedown: M,
|
|
49
48
|
onMouseup: k
|
|
50
49
|
},
|
|
51
|
-
[u(
|
|
50
|
+
[u(t, "default")],
|
|
52
51
|
14,
|
|
53
52
|
["onClick", "onMouseup", "onMousedown"]
|
|
54
53
|
) : o.onlyNode ? r(
|
|
55
54
|
"div",
|
|
56
55
|
{},
|
|
57
|
-
[u(
|
|
56
|
+
[u(t, "default")]
|
|
58
57
|
) : r(
|
|
59
58
|
"div",
|
|
60
59
|
{
|
|
@@ -68,10 +67,10 @@ const c = (
|
|
|
68
67
|
left: "0px"
|
|
69
68
|
}
|
|
70
69
|
},
|
|
71
|
-
[u(
|
|
70
|
+
[u(t, "default")]
|
|
72
71
|
);
|
|
73
72
|
}
|
|
74
73
|
});
|
|
75
74
|
export {
|
|
76
|
-
|
|
75
|
+
V as default
|
|
77
76
|
};
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { withInstall as t } from "../../utils/vue/install.mjs";
|
|
2
2
|
import "vue";
|
|
3
|
-
import "@vue/shared";
|
|
4
3
|
import "@vft/utils";
|
|
5
4
|
import "../../utils/ns-cover.mjs";
|
|
6
5
|
import r from "./page-wrapper.vue2.mjs";
|
|
7
|
-
const
|
|
6
|
+
const f = t(r);
|
|
8
7
|
export {
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
f as VftPageWrapper,
|
|
9
|
+
f as default
|
|
11
10
|
};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { defineComponent as s, openBlock as
|
|
1
|
+
import { defineComponent as s, openBlock as p, 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";
|
|
5
5
|
import "../../hooks/use-z-index/index.mjs";
|
|
6
6
|
import "@vueuse/core";
|
|
7
|
-
import "@vue/shared";
|
|
8
7
|
import "@vft/utils";
|
|
9
8
|
import "../../utils/ns-cover.mjs";
|
|
10
9
|
import { useRouterHelper as d } from "@vft/router";
|
|
@@ -13,14 +12,14 @@ const t = (
|
|
|
13
12
|
u("page-wrapper")
|
|
14
13
|
), f = s({
|
|
15
14
|
name: t.b()
|
|
16
|
-
}),
|
|
15
|
+
}), S = /* @__PURE__ */ s({
|
|
17
16
|
...f,
|
|
18
17
|
props: {
|
|
19
18
|
title: null
|
|
20
19
|
},
|
|
21
20
|
setup(l) {
|
|
22
21
|
const { getTitle: n } = d();
|
|
23
|
-
return (
|
|
22
|
+
return (a, _) => (p(), i("div", {
|
|
24
23
|
class: o(e(t).b())
|
|
25
24
|
}, [
|
|
26
25
|
r("div", {
|
|
@@ -33,11 +32,11 @@ const t = (
|
|
|
33
32
|
r("div", {
|
|
34
33
|
class: o(e(t).e("content"))
|
|
35
34
|
}, [
|
|
36
|
-
c(
|
|
35
|
+
c(a.$slots, "default")
|
|
37
36
|
], 2)
|
|
38
37
|
], 2));
|
|
39
38
|
}
|
|
40
39
|
});
|
|
41
40
|
export {
|
|
42
|
-
|
|
41
|
+
S as default
|
|
43
42
|
};
|
|
@@ -1,37 +1,36 @@
|
|
|
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 o, 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";
|
|
5
5
|
import "../../../hooks/use-z-index/index.mjs";
|
|
6
6
|
import "@vueuse/core";
|
|
7
|
-
import "@vue/shared";
|
|
8
7
|
import "@vft/utils";
|
|
9
8
|
import "../../../utils/ns-cover.mjs";
|
|
10
9
|
import { VftInput as V } from "../../input/index.mjs";
|
|
11
10
|
import { usePagination as x } from "../usePagination.mjs";
|
|
12
|
-
const I = ["disabled"],
|
|
11
|
+
const I = ["disabled"], w = /* @__PURE__ */ f({
|
|
13
12
|
__name: "jumper",
|
|
14
13
|
props: {
|
|
15
14
|
size: null
|
|
16
15
|
},
|
|
17
16
|
setup(r) {
|
|
18
|
-
const
|
|
19
|
-
function d(
|
|
20
|
-
|
|
17
|
+
const n = C("pagination"), { pageCount: m, disabled: l, currentPage: t, changeEvent: s } = x(), i = g(), u = _(() => i.value ?? (t == null ? void 0 : t.value));
|
|
18
|
+
function d(a) {
|
|
19
|
+
i.value = +a;
|
|
21
20
|
}
|
|
22
|
-
function c(
|
|
23
|
-
|
|
21
|
+
function c(a) {
|
|
22
|
+
a = Math.trunc(+a), s == null || s(+a), i.value = void 0;
|
|
24
23
|
}
|
|
25
|
-
return (
|
|
26
|
-
class:
|
|
24
|
+
return (a, N) => (b(), h("span", {
|
|
25
|
+
class: o(e(n).e("jump")),
|
|
27
26
|
disabled: e(l)
|
|
28
27
|
}, [
|
|
29
28
|
p("span", {
|
|
30
|
-
class:
|
|
31
|
-
}, v(
|
|
29
|
+
class: o([e(n).e("goto")])
|
|
30
|
+
}, v(a.t("el.pagination.goto")), 3),
|
|
32
31
|
z(e(V), {
|
|
33
32
|
size: r.size,
|
|
34
|
-
class:
|
|
33
|
+
class: o([e(n).e("editor"), e(n).is("in-pagination")]),
|
|
35
34
|
min: 1,
|
|
36
35
|
max: e(m),
|
|
37
36
|
disabled: e(l),
|
|
@@ -42,11 +41,11 @@ const I = ["disabled"], A = /* @__PURE__ */ f({
|
|
|
42
41
|
onChange: c
|
|
43
42
|
}, null, 8, ["size", "class", "max", "disabled", "model-value"]),
|
|
44
43
|
p("span", {
|
|
45
|
-
class:
|
|
44
|
+
class: o([e(n).e("classifier")])
|
|
46
45
|
}, "页", 2)
|
|
47
46
|
], 10, I));
|
|
48
47
|
}
|
|
49
48
|
});
|
|
50
49
|
export {
|
|
51
|
-
|
|
50
|
+
w as default
|
|
52
51
|
};
|
|
@@ -4,11 +4,10 @@ import "@popperjs/core";
|
|
|
4
4
|
import "lodash";
|
|
5
5
|
import "../../../hooks/use-z-index/index.mjs";
|
|
6
6
|
import "@vueuse/core";
|
|
7
|
-
import "@vue/shared";
|
|
8
7
|
import "@vft/utils";
|
|
9
8
|
import "../../../utils/ns-cover.mjs";
|
|
10
9
|
import { VftIcon as v } from "../../icon/index.mjs";
|
|
11
|
-
const D = ["onKeyup"], O = ["aria-current", "tabindex"], S = ["tabindex"], j = ["aria-current", "tabindex"], G = ["tabindex"], J = ["aria-current", "tabindex"],
|
|
10
|
+
const D = ["onKeyup"], O = ["aria-current", "tabindex"], S = ["tabindex"], j = ["aria-current", "tabindex"], G = ["tabindex"], J = ["aria-current", "tabindex"], _ = /* @__PURE__ */ A({
|
|
12
11
|
__name: "pager",
|
|
13
12
|
props: {
|
|
14
13
|
currentPage: { default: 1 },
|
|
@@ -145,5 +144,5 @@ const D = ["onKeyup"], O = ["aria-current", "tabindex"], S = ["tabindex"], j = [
|
|
|
145
144
|
}
|
|
146
145
|
});
|
|
147
146
|
export {
|
|
148
|
-
|
|
147
|
+
_ as default
|
|
149
148
|
};
|
|
@@ -4,11 +4,10 @@ import { useNamespace as S } from "../../../hooks/use-namespace/index.mjs";
|
|
|
4
4
|
import "@popperjs/core";
|
|
5
5
|
import "../../../hooks/use-z-index/index.mjs";
|
|
6
6
|
import "@vueuse/core";
|
|
7
|
-
import "@vue/shared";
|
|
8
7
|
import "@vft/utils";
|
|
9
8
|
import "../../../utils/ns-cover.mjs";
|
|
10
9
|
import { usePagination as d } from "../usePagination.mjs";
|
|
11
|
-
const
|
|
10
|
+
const b = /* @__PURE__ */ p({
|
|
12
11
|
__name: "sizes",
|
|
13
12
|
props: {
|
|
14
13
|
pageSize: null,
|
|
@@ -41,5 +40,5 @@ const q = /* @__PURE__ */ p({
|
|
|
41
40
|
}
|
|
42
41
|
});
|
|
43
42
|
export {
|
|
44
|
-
|
|
43
|
+
b as default
|
|
45
44
|
};
|
|
@@ -1,26 +1,25 @@
|
|
|
1
|
-
import { defineComponent as i, openBlock as
|
|
1
|
+
import { defineComponent as i, openBlock as n, createElementBlock as r, 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";
|
|
5
5
|
import "../../../hooks/use-z-index/index.mjs";
|
|
6
6
|
import "@vueuse/core";
|
|
7
|
-
import "@vue/shared";
|
|
8
7
|
import "@vft/utils";
|
|
9
8
|
import "../../../utils/ns-cover.mjs";
|
|
10
9
|
import { usePagination as l } from "../usePagination.mjs";
|
|
11
|
-
const c = ["disabled"],
|
|
10
|
+
const c = ["disabled"], y = /* @__PURE__ */ i({
|
|
12
11
|
__name: "total",
|
|
13
12
|
props: {
|
|
14
13
|
total: { default: 1e3 }
|
|
15
14
|
},
|
|
16
15
|
setup(o) {
|
|
17
16
|
const e = m("pagination"), { disabled: a } = l();
|
|
18
|
-
return (d, f) => (
|
|
17
|
+
return (d, f) => (n(), r("span", {
|
|
19
18
|
class: s(t(e).e("total")),
|
|
20
19
|
disabled: t(a)
|
|
21
20
|
}, p(o.total), 11, c));
|
|
22
21
|
}
|
|
23
22
|
});
|
|
24
23
|
export {
|
|
25
|
-
|
|
24
|
+
y as default
|
|
26
25
|
};
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import { withInstall as t } from "../../utils/vue/install.mjs";
|
|
2
2
|
import "vue";
|
|
3
|
-
import "@vue/shared";
|
|
4
3
|
import "@vft/utils";
|
|
5
4
|
import "../../utils/ns-cover.mjs";
|
|
6
5
|
import o from "./pagination.mjs";
|
|
7
|
-
import { paginationEmits as
|
|
8
|
-
import { elPaginationKey as
|
|
9
|
-
const
|
|
6
|
+
import { paginationEmits as g } from "./pagination.mjs";
|
|
7
|
+
import { elPaginationKey as l, usePagination as P } from "./usePagination.mjs";
|
|
8
|
+
const p = t(o);
|
|
10
9
|
export {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
p as VftPagination,
|
|
11
|
+
p as default,
|
|
12
|
+
l as elPaginationKey,
|
|
13
|
+
g as paginationEmits,
|
|
14
|
+
P as usePagination
|
|
16
15
|
};
|
|
@@ -4,7 +4,6 @@ import "@popperjs/core";
|
|
|
4
4
|
import "lodash";
|
|
5
5
|
import "../../hooks/use-z-index/index.mjs";
|
|
6
6
|
import "@vueuse/core";
|
|
7
|
-
import "@vue/shared";
|
|
8
7
|
import { isNumber as g } from "@vft/utils";
|
|
9
8
|
import "../../utils/ns-cover.mjs";
|
|
10
9
|
import $ from "./components/jumper.vue2.mjs";
|
|
@@ -21,7 +20,7 @@ const n = (e) => typeof e != "number", K = {
|
|
|
21
20
|
"current-change": (e) => g(e),
|
|
22
21
|
"prev-click": (e) => g(e),
|
|
23
22
|
"next-click": (e) => g(e)
|
|
24
|
-
}, q = "VftPagination",
|
|
23
|
+
}, q = "VftPagination", ue = A({
|
|
25
24
|
name: q,
|
|
26
25
|
props: {
|
|
27
26
|
/**
|
|
@@ -246,6 +245,6 @@ const n = (e) => typeof e != "number", K = {
|
|
|
246
245
|
}
|
|
247
246
|
});
|
|
248
247
|
export {
|
|
249
|
-
|
|
248
|
+
ue as default,
|
|
250
249
|
K as paginationEmits
|
|
251
250
|
};
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { withInstall as o } from "../../utils/vue/install.mjs";
|
|
2
2
|
import "vue";
|
|
3
|
-
import "@vue/shared";
|
|
4
3
|
import "@vft/utils";
|
|
5
4
|
import "../../utils/ns-cover.mjs";
|
|
6
5
|
import t from "./popover.vue2.mjs";
|
|
7
|
-
const
|
|
6
|
+
const a = o(t);
|
|
8
7
|
export {
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
a as VftPopover,
|
|
9
|
+
a as default
|
|
11
10
|
};
|
|
@@ -5,7 +5,6 @@ import "@popperjs/core";
|
|
|
5
5
|
import "lodash";
|
|
6
6
|
import "../../hooks/use-z-index/index.mjs";
|
|
7
7
|
import "@vueuse/core";
|
|
8
|
-
import "@vue/shared";
|
|
9
8
|
import "../../utils/ns-cover.mjs";
|
|
10
9
|
import { VftTooltip as V } from "../tooltip/index.mjs";
|
|
11
10
|
const r = (
|
|
@@ -13,7 +12,7 @@ const r = (
|
|
|
13
12
|
N("popover")
|
|
14
13
|
), H = c({
|
|
15
14
|
name: r.b()
|
|
16
|
-
}),
|
|
15
|
+
}), G = /* @__PURE__ */ c({
|
|
17
16
|
...H,
|
|
18
17
|
props: {
|
|
19
18
|
trigger: { default: "hover" },
|
|
@@ -113,5 +112,5 @@ const r = (
|
|
|
113
112
|
}
|
|
114
113
|
});
|
|
115
114
|
export {
|
|
116
|
-
|
|
115
|
+
G as default
|
|
117
116
|
};
|
|
@@ -4,14 +4,13 @@ import "@popperjs/core";
|
|
|
4
4
|
import "lodash";
|
|
5
5
|
import "../../hooks/use-z-index/index.mjs";
|
|
6
6
|
import "@vueuse/core";
|
|
7
|
-
import "@vue/shared";
|
|
8
7
|
import "@vft/utils";
|
|
9
8
|
import "../../utils/ns-cover.mjs";
|
|
10
9
|
import { POPPER_CONTENT_INJECTION_KEY as O } from "./constants.mjs";
|
|
11
10
|
const v = t({
|
|
12
11
|
name: "vft-popper-arrow",
|
|
13
12
|
inheritAttrs: !1
|
|
14
|
-
}),
|
|
13
|
+
}), x = /* @__PURE__ */ t({
|
|
15
14
|
...v,
|
|
16
15
|
props: {
|
|
17
16
|
arrowOffset: { default: 5 }
|
|
@@ -43,5 +42,5 @@ const v = t({
|
|
|
43
42
|
}
|
|
44
43
|
});
|
|
45
44
|
export {
|
|
46
|
-
|
|
45
|
+
x as default
|
|
47
46
|
};
|
|
@@ -4,10 +4,9 @@ import "@popperjs/core";
|
|
|
4
4
|
import "lodash";
|
|
5
5
|
import { useZIndex as I } from "../../../hooks/use-z-index/index.mjs";
|
|
6
6
|
import "@vueuse/core";
|
|
7
|
-
import "@vue/shared";
|
|
8
7
|
import "@vft/utils";
|
|
9
8
|
import "../../../utils/ns-cover.mjs";
|
|
10
|
-
const
|
|
9
|
+
const g = (e, {
|
|
11
10
|
attributes: s,
|
|
12
11
|
styles: p,
|
|
13
12
|
role: a
|
|
@@ -39,5 +38,5 @@ const A = (e, {
|
|
|
39
38
|
};
|
|
40
39
|
};
|
|
41
40
|
export {
|
|
42
|
-
|
|
41
|
+
g as usePopperContentDOM
|
|
43
42
|
};
|
|
@@ -4,12 +4,11 @@ import "../../config-provider/hooks/use-global-config.mjs";
|
|
|
4
4
|
import { usePopper as _ } from "../../../hooks/use-popper/index.mjs";
|
|
5
5
|
import "../../../hooks/use-z-index/index.mjs";
|
|
6
6
|
import "@vueuse/core";
|
|
7
|
-
import "@vue/shared";
|
|
8
7
|
import "@vft/utils";
|
|
9
8
|
import "../../../utils/ns-cover.mjs";
|
|
10
9
|
import { POPPER_INJECTION_KEY as C } from "../constants.mjs";
|
|
11
10
|
import { buildPopperOptions as I, unwrapMeasurableEl as L } from "../utils.mjs";
|
|
12
|
-
const T = 0,
|
|
11
|
+
const T = 0, S = (r) => {
|
|
13
12
|
const { popperInstanceRef: m, contentRef: i, triggerRef: d, role: u } = F(
|
|
14
13
|
C,
|
|
15
14
|
void 0
|
|
@@ -61,5 +60,5 @@ const T = 0, W = (r) => {
|
|
|
61
60
|
};
|
|
62
61
|
};
|
|
63
62
|
export {
|
|
64
|
-
|
|
63
|
+
S as usePopperContent
|
|
65
64
|
};
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import { withInstall as r } from "../../utils/vue/install.mjs";
|
|
2
2
|
import "vue";
|
|
3
|
-
import "@vue/shared";
|
|
4
3
|
import "@vft/utils";
|
|
5
4
|
import "../../utils/ns-cover.mjs";
|
|
6
5
|
import t from "./popper.vue2.mjs";
|
|
7
|
-
import { default as
|
|
8
|
-
import { default as
|
|
9
|
-
import { default as
|
|
10
|
-
const
|
|
6
|
+
import { default as l } from "./arrow.vue2.mjs";
|
|
7
|
+
import { default as d } from "./trigger.vue2.mjs";
|
|
8
|
+
import { default as x } from "./content.vue2.mjs";
|
|
9
|
+
const a = r(t);
|
|
11
10
|
export {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
a as VftPopper,
|
|
12
|
+
l as VftPopperArrow,
|
|
13
|
+
x as VftPopperContent,
|
|
14
|
+
d as VftPopperTrigger,
|
|
15
|
+
a as default
|
|
17
16
|
};
|
|
@@ -6,14 +6,13 @@ import "../config-provider/hooks/use-global-config.mjs";
|
|
|
6
6
|
import "@popperjs/core";
|
|
7
7
|
import "../../hooks/use-z-index/index.mjs";
|
|
8
8
|
import { useForwardRef as $ } from "../../hooks/use-forward-ref/index.mjs";
|
|
9
|
-
import "@vue/shared";
|
|
10
9
|
import { isElement as b } from "@vft/utils";
|
|
11
10
|
import "../../utils/ns-cover.mjs";
|
|
12
11
|
import { POPPER_INJECTION_KEY as N } from "./constants.mjs";
|
|
13
12
|
const V = C({
|
|
14
13
|
name: "VftPopperTrigger",
|
|
15
14
|
inheritAttrs: !1
|
|
16
|
-
}),
|
|
15
|
+
}), G = /* @__PURE__ */ C({
|
|
17
16
|
...V,
|
|
18
17
|
props: {
|
|
19
18
|
virtualRef: null,
|
|
@@ -115,5 +114,5 @@ const V = C({
|
|
|
115
114
|
}
|
|
116
115
|
});
|
|
117
116
|
export {
|
|
118
|
-
|
|
117
|
+
G as default
|
|
119
118
|
};
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { withInstall as t } from "../../utils/vue/install.mjs";
|
|
2
2
|
import "vue";
|
|
3
|
-
import "@vue/shared";
|
|
4
3
|
import "@vft/utils";
|
|
5
4
|
import "../../utils/ns-cover.mjs";
|
|
6
5
|
import o from "./qrcode.vue2.mjs";
|
|
7
|
-
const
|
|
6
|
+
const a = t(o);
|
|
8
7
|
export {
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
a as VftQrcode,
|
|
9
|
+
a as default
|
|
11
10
|
};
|