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,6 +1,7 @@
|
|
|
1
1
|
import { defineComponent as E, getCurrentInstance as Z, inject as _, ref as g, computed as I, watch as O, onMounted as tt, onUpdated as et, createVNode as r, nextTick as ot } from "vue";
|
|
2
2
|
import "@vue/shared";
|
|
3
3
|
import { throwError as nt } from "../../utils/error.mjs";
|
|
4
|
+
import "../../utils/ns-cover.mjs";
|
|
4
5
|
import "../divider/index.mjs";
|
|
5
6
|
import { VftIcon as T } from "../icon/index.mjs";
|
|
6
7
|
import "../avatar/index.mjs";
|
|
@@ -61,7 +62,7 @@ const V = (
|
|
|
61
62
|
K("tab-nav")
|
|
62
63
|
), ct = E({
|
|
63
64
|
name: V.b()
|
|
64
|
-
}),
|
|
65
|
+
}), be = /* @__PURE__ */ E({
|
|
65
66
|
...ct,
|
|
66
67
|
props: {
|
|
67
68
|
panes: null,
|
|
@@ -212,5 +213,5 @@ const V = (
|
|
|
212
213
|
}
|
|
213
214
|
});
|
|
214
215
|
export {
|
|
215
|
-
|
|
216
|
+
be as default
|
|
216
217
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { defineComponent as b, getCurrentInstance as y, useSlots as C, inject as B, ref as m, computed as d, watch as g, reactive as w, onMounted as N, onUnmounted as k, unref as t, withDirectives as x, openBlock as z, createElementBlock as R, normalizeClass as S, renderSlot as _, vShow as $, createCommentVNode as E } from "vue";
|
|
2
2
|
import "@vue/shared";
|
|
3
3
|
import { throwError as P } from "../../utils/error.mjs";
|
|
4
|
+
import "../../utils/ns-cover.mjs";
|
|
4
5
|
import { TabsRootContextKey as j } from "./types.mjs";
|
|
5
6
|
import { useNamespace as D } from "../../hooks/use-namespace/index.mjs";
|
|
6
7
|
import "@popperjs/core";
|
|
@@ -13,7 +14,7 @@ const I = ["id", "aria-hidden", "aria-labelledby"], i = (
|
|
|
13
14
|
D("tab-pane")
|
|
14
15
|
), K = b({
|
|
15
16
|
name: i.b()
|
|
16
|
-
}),
|
|
17
|
+
}), Q = /* @__PURE__ */ b({
|
|
17
18
|
...K,
|
|
18
19
|
props: {
|
|
19
20
|
label: null,
|
|
@@ -58,5 +59,5 @@ const I = ["id", "aria-hidden", "aria-labelledby"], i = (
|
|
|
58
59
|
}
|
|
59
60
|
});
|
|
60
61
|
export {
|
|
61
|
-
|
|
62
|
+
Q as default
|
|
62
63
|
};
|
|
@@ -6,6 +6,7 @@ import "../../hooks/use-z-index/index.mjs";
|
|
|
6
6
|
import "@vueuse/core";
|
|
7
7
|
import "@vue/shared";
|
|
8
8
|
import { isNumberish as f, isUndefined as I } from "@vft/utils";
|
|
9
|
+
import "../../utils/ns-cover.mjs";
|
|
9
10
|
import { useOrderedChildren as U } from "../../hooks/use-ordered-children/index.mjs";
|
|
10
11
|
import { UPDATE_MODEL_EVENT as $ } from "@vft/constants";
|
|
11
12
|
import K from "./tab-nav.vue2.mjs";
|
|
@@ -15,7 +16,7 @@ const r = (
|
|
|
15
16
|
O("tabs")
|
|
16
17
|
), j = y({
|
|
17
18
|
name: r.b()
|
|
18
|
-
}),
|
|
19
|
+
}), oe = /* @__PURE__ */ y({
|
|
19
20
|
...j,
|
|
20
21
|
props: {
|
|
21
22
|
type: {
|
|
@@ -150,5 +151,5 @@ const r = (
|
|
|
150
151
|
}
|
|
151
152
|
});
|
|
152
153
|
export {
|
|
153
|
-
|
|
154
|
+
oe as default
|
|
154
155
|
};
|
|
@@ -24,7 +24,7 @@ export declare const VftTag: import("vft/es/utils").SFCWithInstall<import("vue")
|
|
|
24
24
|
required: false;
|
|
25
25
|
};
|
|
26
26
|
effect: {
|
|
27
|
-
type: import("vue").PropType<"
|
|
27
|
+
type: import("vue").PropType<"light" | "dark" | "plain" | undefined>;
|
|
28
28
|
required: false;
|
|
29
29
|
};
|
|
30
30
|
round: {
|
|
@@ -57,7 +57,7 @@ export declare const VftTag: import("vft/es/utils").SFCWithInstall<import("vue")
|
|
|
57
57
|
required: false;
|
|
58
58
|
};
|
|
59
59
|
effect: {
|
|
60
|
-
type: import("vue").PropType<"
|
|
60
|
+
type: import("vue").PropType<"light" | "dark" | "plain" | undefined>;
|
|
61
61
|
required: false;
|
|
62
62
|
};
|
|
63
63
|
round: {
|
|
@@ -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 "./tag.vue2.mjs";
|
|
6
|
-
const
|
|
7
|
+
const s = t(o);
|
|
7
8
|
export {
|
|
8
|
-
|
|
9
|
-
|
|
9
|
+
s as VftTag,
|
|
10
|
+
s as default
|
|
10
11
|
};
|
|
@@ -27,7 +27,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
27
27
|
required: false;
|
|
28
28
|
};
|
|
29
29
|
effect: {
|
|
30
|
-
type: __PropType<"
|
|
30
|
+
type: __PropType<"light" | "dark" | "plain" | undefined>;
|
|
31
31
|
required: false;
|
|
32
32
|
};
|
|
33
33
|
round: {
|
|
@@ -60,7 +60,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
60
60
|
required: false;
|
|
61
61
|
};
|
|
62
62
|
effect: {
|
|
63
|
-
type: __PropType<"
|
|
63
|
+
type: __PropType<"light" | "dark" | "plain" | undefined>;
|
|
64
64
|
required: false;
|
|
65
65
|
};
|
|
66
66
|
round: {
|
|
@@ -8,10 +8,11 @@ import "../../hooks/use-z-index/index.mjs";
|
|
|
8
8
|
import "@vueuse/core";
|
|
9
9
|
import "@vue/shared";
|
|
10
10
|
import "@vft/utils";
|
|
11
|
+
import "../../utils/ns-cover.mjs";
|
|
11
12
|
function k(e) {
|
|
12
13
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !b(e);
|
|
13
14
|
}
|
|
14
|
-
const
|
|
15
|
+
const I = /* @__PURE__ */ m({
|
|
15
16
|
__name: "tag",
|
|
16
17
|
props: {
|
|
17
18
|
closable: {
|
|
@@ -71,5 +72,5 @@ const x = /* @__PURE__ */ m({
|
|
|
71
72
|
}
|
|
72
73
|
});
|
|
73
74
|
export {
|
|
74
|
-
|
|
75
|
+
I as default
|
|
75
76
|
};
|
|
@@ -7,6 +7,7 @@ import { onClickOutside as ee } from "@vueuse/core";
|
|
|
7
7
|
import "@vue/shared";
|
|
8
8
|
import "@vft/utils";
|
|
9
9
|
import { composeEventHandlers as T } from "../../utils/event.mjs";
|
|
10
|
+
import "../../utils/ns-cover.mjs";
|
|
10
11
|
import { usePopperContainerId as te } from "../../hooks/use-popper-container/index.mjs";
|
|
11
12
|
import "../popper/index.mjs";
|
|
12
13
|
import { TOOLTIP_INJECTION_KEY as ne } from "./constants.mjs";
|
|
@@ -14,7 +15,7 @@ import oe from "../popper/content.vue2.mjs";
|
|
|
14
15
|
const ae = E({
|
|
15
16
|
name: "VftTooltipContent",
|
|
16
17
|
inheritAttrs: !1
|
|
17
|
-
}),
|
|
18
|
+
}), he = /* @__PURE__ */ E({
|
|
18
19
|
...ae,
|
|
19
20
|
props: {
|
|
20
21
|
boundariesPadding: { default: 0 },
|
|
@@ -51,10 +52,10 @@ const ae = E({
|
|
|
51
52
|
disabled: { type: Boolean }
|
|
52
53
|
},
|
|
53
54
|
setup(e, { expose: k }) {
|
|
54
|
-
const { selector: P } = te(), w = _("tooltip"),
|
|
55
|
+
const { selector: P } = te(), w = _("tooltip"), r = v(null), c = v(!1), {
|
|
55
56
|
controlled: p,
|
|
56
57
|
id: O,
|
|
57
|
-
open:
|
|
58
|
+
open: l,
|
|
58
59
|
trigger: u,
|
|
59
60
|
onClose: i,
|
|
60
61
|
onOpen: A,
|
|
@@ -66,7 +67,7 @@ const ae = E({
|
|
|
66
67
|
W(() => {
|
|
67
68
|
c.value = !0;
|
|
68
69
|
});
|
|
69
|
-
const $ = o(() => t(I) ? !0 : t(
|
|
70
|
+
const $ = o(() => t(I) ? !0 : t(l)), m = o(() => e.disabled ? !1 : t(l)), x = o(() => e.appendTo || P.value), M = o(() => e.style ?? {}), R = o(() => !t(l)), z = () => {
|
|
70
71
|
S();
|
|
71
72
|
}, g = () => {
|
|
72
73
|
if (t(p))
|
|
@@ -77,14 +78,14 @@ const ae = E({
|
|
|
77
78
|
t(u) === "hover" && i();
|
|
78
79
|
}), j = () => {
|
|
79
80
|
var n, a;
|
|
80
|
-
(a = (n =
|
|
81
|
+
(a = (n = r.value) == null ? void 0 : n.updatePopper) == null || a.call(n), f == null || f();
|
|
81
82
|
}, H = () => {
|
|
82
83
|
d == null || d();
|
|
83
84
|
}, J = () => {
|
|
84
85
|
N(), s = ee(
|
|
85
86
|
o(() => {
|
|
86
87
|
var n;
|
|
87
|
-
return (n =
|
|
88
|
+
return (n = r.value) == null ? void 0 : n.popperContentRef;
|
|
88
89
|
}),
|
|
89
90
|
() => {
|
|
90
91
|
if (t(p))
|
|
@@ -97,7 +98,7 @@ const ae = E({
|
|
|
97
98
|
};
|
|
98
99
|
let s;
|
|
99
100
|
return y(
|
|
100
|
-
() => t(
|
|
101
|
+
() => t(l),
|
|
101
102
|
(n) => {
|
|
102
103
|
n || s == null || s();
|
|
103
104
|
},
|
|
@@ -108,13 +109,13 @@ const ae = E({
|
|
|
108
109
|
() => e.content,
|
|
109
110
|
() => {
|
|
110
111
|
var n, a;
|
|
111
|
-
(a = (n =
|
|
112
|
+
(a = (n = r.value) == null ? void 0 : n.updatePopper) == null || a.call(n);
|
|
112
113
|
}
|
|
113
114
|
), k({
|
|
114
115
|
/**
|
|
115
116
|
* @description el-popper-content component instance
|
|
116
117
|
*/
|
|
117
|
-
contentRef:
|
|
118
|
+
contentRef: r
|
|
118
119
|
}), (n, a) => (b(), h(Y, {
|
|
119
120
|
disabled: !e.teleported,
|
|
120
121
|
to: t(x)
|
|
@@ -131,7 +132,7 @@ const ae = E({
|
|
|
131
132
|
key: 0,
|
|
132
133
|
id: t(O),
|
|
133
134
|
ref_key: "contentRef",
|
|
134
|
-
ref:
|
|
135
|
+
ref: r
|
|
135
136
|
}, n.$attrs, {
|
|
136
137
|
"aria-label": e.ariaLabel,
|
|
137
138
|
"aria-hidden": t(R),
|
|
@@ -170,5 +171,5 @@ const ae = E({
|
|
|
170
171
|
}
|
|
171
172
|
});
|
|
172
173
|
export {
|
|
173
|
-
|
|
174
|
+
he as default
|
|
174
175
|
};
|
|
@@ -92,7 +92,7 @@ export declare const VftTooltip: import("vft/es/utils").SFCWithInstall<import("v
|
|
|
92
92
|
required: false;
|
|
93
93
|
};
|
|
94
94
|
effect: {
|
|
95
|
-
type: import("vue").PropType<"
|
|
95
|
+
type: import("vue").PropType<"light" | "dark" | undefined>;
|
|
96
96
|
required: false;
|
|
97
97
|
};
|
|
98
98
|
visible: {
|
|
@@ -289,7 +289,7 @@ export declare const VftTooltip: import("vft/es/utils").SFCWithInstall<import("v
|
|
|
289
289
|
required: false;
|
|
290
290
|
};
|
|
291
291
|
effect: {
|
|
292
|
-
type: import("vue").PropType<"
|
|
292
|
+
type: import("vue").PropType<"light" | "dark" | undefined>;
|
|
293
293
|
required: false;
|
|
294
294
|
};
|
|
295
295
|
visible: {
|
|
@@ -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 "./tooltip.vue2.mjs";
|
|
6
|
-
const
|
|
7
|
+
const l = t(o);
|
|
7
8
|
export {
|
|
8
|
-
|
|
9
|
-
|
|
9
|
+
l as VftTooltip,
|
|
10
|
+
l as default
|
|
10
11
|
};
|
|
@@ -146,7 +146,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
146
146
|
required: false;
|
|
147
147
|
};
|
|
148
148
|
effect: {
|
|
149
|
-
type: __PropType<"
|
|
149
|
+
type: __PropType<"light" | "dark" | undefined>;
|
|
150
150
|
required: false;
|
|
151
151
|
};
|
|
152
152
|
visible: {
|
|
@@ -364,7 +364,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
364
364
|
required: false;
|
|
365
365
|
};
|
|
366
366
|
effect: {
|
|
367
|
-
type: __PropType<"
|
|
367
|
+
type: __PropType<"light" | "dark" | undefined>;
|
|
368
368
|
required: false;
|
|
369
369
|
};
|
|
370
370
|
visible: {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { defineComponent as k, ref as
|
|
1
|
+
import { defineComponent as k, ref as a, computed as P, provide as I, readonly as S, unref as i, watch as M, onDeactivated as N, openBlock as f, createBlock as h, withCtx as g, createVNode as b, renderSlot as w, createCommentVNode as v, createElementBlock as B, toDisplayString as $ } from "vue";
|
|
2
2
|
import { EVENT_CODE as C } from "@vft/constants";
|
|
3
3
|
import { VftPopper as x } from "../popper/index.mjs";
|
|
4
4
|
import { isBoolean as H } from "@vft/utils";
|
|
5
|
+
import "../config-provider/hooks/use-global-config.mjs";
|
|
5
6
|
import "@popperjs/core";
|
|
6
7
|
import "lodash";
|
|
7
8
|
import "../../hooks/use-z-index/index.mjs";
|
|
@@ -10,6 +11,7 @@ import { usePopperContainer as z } from "../../hooks/use-popper-container/index.
|
|
|
10
11
|
import { useDelayedToggle as D } from "../../hooks/use-delayed-toggle/index.mjs";
|
|
11
12
|
import "@vueuse/core";
|
|
12
13
|
import "@vue/shared";
|
|
14
|
+
import "../../utils/ns-cover.mjs";
|
|
13
15
|
import { TOOLTIP_INJECTION_KEY as K } from "./constants.mjs";
|
|
14
16
|
import V from "./trigger.vue2.mjs";
|
|
15
17
|
import J from "./content.vue2.mjs";
|
|
@@ -17,7 +19,7 @@ import { useTooltipModelToggle as U } from "./utils.mjs";
|
|
|
17
19
|
import Y from "../popper/arrow.vue2.mjs";
|
|
18
20
|
const j = ["innerHTML"], q = { key: 1 }, G = k({
|
|
19
21
|
name: "vft-tooltip"
|
|
20
|
-
}),
|
|
22
|
+
}), ge = /* @__PURE__ */ k({
|
|
21
23
|
...G,
|
|
22
24
|
props: {
|
|
23
25
|
role: { default: "tooltip" },
|
|
@@ -69,13 +71,13 @@ const j = ["innerHTML"], q = { key: 1 }, G = k({
|
|
|
69
71
|
triggerKeys: { default: [C.enter, C.space] }
|
|
70
72
|
},
|
|
71
73
|
emits: ["before-show", "before-hide", "show", "hide", "open", "close"],
|
|
72
|
-
setup(e, { expose: T, emit:
|
|
74
|
+
setup(e, { expose: T, emit: r }) {
|
|
73
75
|
z();
|
|
74
|
-
const A = L(), u =
|
|
76
|
+
const A = L(), u = a(), d = a(), m = () => {
|
|
75
77
|
var o;
|
|
76
78
|
const t = i(u);
|
|
77
79
|
t && ((o = t.popperInstanceRef) == null || o.update());
|
|
78
|
-
}, n =
|
|
80
|
+
}, n = a(!1), l = a(), { show: E, hide: s, hasUpdateHandler: O } = U({
|
|
79
81
|
indicator: n,
|
|
80
82
|
toggleReason: l
|
|
81
83
|
}), { onOpen: c, onClose: p } = D({
|
|
@@ -99,16 +101,16 @@ const j = ["innerHTML"], q = { key: 1 }, G = k({
|
|
|
99
101
|
i(n) ? p(t) : c(t);
|
|
100
102
|
},
|
|
101
103
|
onShow: () => {
|
|
102
|
-
|
|
104
|
+
r("show", l.value);
|
|
103
105
|
},
|
|
104
106
|
onHide: () => {
|
|
105
|
-
|
|
107
|
+
r("hide", l.value);
|
|
106
108
|
},
|
|
107
109
|
onBeforeShow: () => {
|
|
108
|
-
|
|
110
|
+
r("before-show", l.value);
|
|
109
111
|
},
|
|
110
112
|
onBeforeHide: () => {
|
|
111
|
-
|
|
113
|
+
r("before-hide", l.value);
|
|
112
114
|
},
|
|
113
115
|
updatePopper: m
|
|
114
116
|
}), M(
|
|
@@ -219,5 +221,5 @@ const j = ["innerHTML"], q = { key: 1 }, G = k({
|
|
|
219
221
|
}
|
|
220
222
|
});
|
|
221
223
|
export {
|
|
222
|
-
|
|
224
|
+
ge as default
|
|
223
225
|
};
|
|
@@ -4,6 +4,7 @@ import "../popper/index.mjs";
|
|
|
4
4
|
import "@vue/shared";
|
|
5
5
|
import "@vft/utils";
|
|
6
6
|
import { composeEventHandlers as r } from "../../utils/event.mjs";
|
|
7
|
+
import "../../utils/ns-cover.mjs";
|
|
7
8
|
import { useNamespace as F } from "../../hooks/use-namespace/index.mjs";
|
|
8
9
|
import "@popperjs/core";
|
|
9
10
|
import "lodash";
|
|
@@ -14,7 +15,7 @@ import { whenTrigger as i } from "./utils.mjs";
|
|
|
14
15
|
import R from "../popper/trigger.vue2.mjs";
|
|
15
16
|
const V = a({
|
|
16
17
|
name: "VftTooltipTrigger"
|
|
17
|
-
}),
|
|
18
|
+
}), X = /* @__PURE__ */ a({
|
|
18
19
|
...V,
|
|
19
20
|
props: {
|
|
20
21
|
disabled: { type: Boolean },
|
|
@@ -23,8 +24,8 @@ const V = a({
|
|
|
23
24
|
virtualRef: null,
|
|
24
25
|
virtualTriggering: { type: Boolean }
|
|
25
26
|
},
|
|
26
|
-
setup(t, { expose:
|
|
27
|
-
const
|
|
27
|
+
setup(t, { expose: m }) {
|
|
28
|
+
const f = F("tooltip"), { controlled: d, id: v, open: p, onOpen: u, onClose: s, onToggle: l } = E(
|
|
28
29
|
I,
|
|
29
30
|
void 0
|
|
30
31
|
), C = K(null), n = () => {
|
|
@@ -59,7 +60,7 @@ const V = a({
|
|
|
59
60
|
t.triggerKeys.includes(c) && (o.preventDefault(), l(o));
|
|
60
61
|
}
|
|
61
62
|
);
|
|
62
|
-
return
|
|
63
|
+
return m({
|
|
63
64
|
/**
|
|
64
65
|
* @description trigger element
|
|
65
66
|
*/
|
|
@@ -69,7 +70,7 @@ const V = a({
|
|
|
69
70
|
"virtual-ref": t.virtualRef,
|
|
70
71
|
open: e(p),
|
|
71
72
|
"virtual-triggering": t.virtualTriggering,
|
|
72
|
-
class: b(e(
|
|
73
|
+
class: b(e(f).e("trigger")),
|
|
73
74
|
onBlur: e(M),
|
|
74
75
|
onClick: e(y),
|
|
75
76
|
onContextmenu: e(k),
|
|
@@ -86,5 +87,5 @@ const V = a({
|
|
|
86
87
|
}
|
|
87
88
|
});
|
|
88
89
|
export {
|
|
89
|
-
|
|
90
|
+
X as default
|
|
90
91
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import "../config-provider/hooks/use-global-config.mjs";
|
|
1
2
|
import { unref as t } from "vue";
|
|
2
3
|
import "@popperjs/core";
|
|
3
4
|
import "lodash";
|
|
@@ -5,14 +6,15 @@ import "../../hooks/use-z-index/index.mjs";
|
|
|
5
6
|
import "@vueuse/core";
|
|
6
7
|
import "@vue/shared";
|
|
7
8
|
import { isArray as m } from "@vft/utils";
|
|
9
|
+
import "../../utils/ns-cover.mjs";
|
|
8
10
|
import { createModelToggleComposable as p } from "../../hooks/use-model-toggle/index.mjs";
|
|
9
|
-
const l = (o, r) => m(o) ? o.includes(r) : o === r,
|
|
11
|
+
const l = (o, r) => m(o) ? o.includes(r) : o === r, b = (o, r, e) => (i) => {
|
|
10
12
|
l(t(o), r) && e(i);
|
|
11
13
|
}, {
|
|
12
|
-
useModelToggle:
|
|
14
|
+
useModelToggle: h
|
|
13
15
|
} = p("visible");
|
|
14
16
|
export {
|
|
15
17
|
l as isTriggerType,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
+
h as useTooltipModelToggle,
|
|
19
|
+
b as whenTrigger
|
|
18
20
|
};
|
|
@@ -2,10 +2,10 @@ import { ref as f } from "vue";
|
|
|
2
2
|
function d(r) {
|
|
3
3
|
const s = f();
|
|
4
4
|
function i() {
|
|
5
|
-
if (r.value
|
|
5
|
+
if (r.value === void 0)
|
|
6
6
|
return;
|
|
7
7
|
const { selectionStart: e, selectionEnd: t, value: o } = r.value;
|
|
8
|
-
if (e
|
|
8
|
+
if (e === null || t === null)
|
|
9
9
|
return;
|
|
10
10
|
const l = o.slice(0, Math.max(0, e)), n = o.slice(Math.max(0, t));
|
|
11
11
|
s.value = {
|
|
@@ -17,10 +17,10 @@ function d(r) {
|
|
|
17
17
|
};
|
|
18
18
|
}
|
|
19
19
|
function u() {
|
|
20
|
-
if (r.value
|
|
20
|
+
if (r.value === void 0 || s.value === void 0)
|
|
21
21
|
return;
|
|
22
22
|
const { value: e } = r.value, { beforeTxt: t, afterTxt: o, selectionStart: l } = s.value;
|
|
23
|
-
if (t
|
|
23
|
+
if (t === void 0 || o === void 0 || l === void 0)
|
|
24
24
|
return;
|
|
25
25
|
let n = e.length;
|
|
26
26
|
if (e.endsWith(o))
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { getCurrentInstance as
|
|
1
|
+
import { getCurrentInstance as n, inject as i, computed as c, unref as s } from "vue";
|
|
2
2
|
import { isClient as u } from "@vueuse/core";
|
|
3
3
|
import "@vue/shared";
|
|
4
4
|
import { debugWarn as d } from "../../utils/error.mjs";
|
|
5
|
+
import "../../utils/ns-cover.mjs";
|
|
5
6
|
import { useGetDerivedNamespace as p } from "../use-namespace/index.mjs";
|
|
6
7
|
const r = {
|
|
7
8
|
prefix: Math.floor(Math.random() * 1e4),
|
|
8
9
|
current: 0
|
|
9
|
-
}, m = Symbol("elIdInjection"), I = () =>
|
|
10
|
+
}, m = Symbol("elIdInjection"), I = () => n() ? i(m, r) : r, N = (o) => {
|
|
10
11
|
const e = I();
|
|
11
12
|
!u && e === r && d(
|
|
12
13
|
"IdInjection",
|
|
@@ -16,13 +17,13 @@ usage: app.provide(ID_INJECTION_KEY, {
|
|
|
16
17
|
current: number,
|
|
17
18
|
})`
|
|
18
19
|
);
|
|
19
|
-
const
|
|
20
|
+
const t = p();
|
|
20
21
|
return c(
|
|
21
|
-
() => s(
|
|
22
|
+
() => s(o) || `${t.value}-id-${e.prefix}-${e.current++}`
|
|
22
23
|
);
|
|
23
24
|
};
|
|
24
25
|
export {
|
|
25
26
|
m as ID_INJECTION_KEY,
|
|
26
|
-
|
|
27
|
+
N as useId,
|
|
27
28
|
I as useIdInjection
|
|
28
29
|
};
|
|
@@ -4,7 +4,7 @@ export declare const _bem: (namespace: string, block: string, blockSuffix: strin
|
|
|
4
4
|
export declare const namespaceContextKey: InjectionKey<Ref<string | undefined>>;
|
|
5
5
|
export declare const useGetDerivedNamespace: (namespaceOverrides?: Ref<string>) => import("vue").ComputedRef<string>;
|
|
6
6
|
export declare const useNamespace: (block: string, namespaceOverrides?: Ref<string>) => {
|
|
7
|
-
namespace:
|
|
7
|
+
namespace: Ref<string>;
|
|
8
8
|
b: (blockSuffix?: string) => string;
|
|
9
9
|
e: (element?: string) => string;
|
|
10
10
|
m: (modifier?: string) => string;
|
|
@@ -1,46 +1,47 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
},
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { useGlobalConfig as v } from "../../components/config-provider/hooks/use-global-config.mjs";
|
|
2
|
+
import { inject as p, ref as l, computed as N, unref as V } from "vue";
|
|
3
|
+
const $ = "vft", y = "is-", c = (t, o, a, u, m) => {
|
|
4
|
+
let r = `${t}-${o}`;
|
|
5
|
+
return a && (r += `-${a}`), u && (r += `__${u}`), m && (r += `--${m}`), r;
|
|
6
|
+
}, i = Symbol("localeContextKey"), P = (t) => {
|
|
7
|
+
const o = t || p(i, l($));
|
|
8
|
+
return N(() => V(o) || $);
|
|
9
|
+
}, q = (t, o) => {
|
|
10
|
+
const a = v("namespace", $);
|
|
10
11
|
return {
|
|
11
|
-
namespace:
|
|
12
|
-
b: (s = "") => c(
|
|
13
|
-
e: (s) => s ? c(
|
|
14
|
-
m: (s) => s ? c(
|
|
15
|
-
be: (s, e) => s && e ? c(
|
|
16
|
-
em: (s, e) => s && e ? c(
|
|
17
|
-
bm: (s, e) => s && e ? c(
|
|
18
|
-
bem: (s, e, n) => s && e && n ? c(
|
|
12
|
+
namespace: a,
|
|
13
|
+
b: (s = "") => c(a.value, t, s, "", ""),
|
|
14
|
+
e: (s) => s ? c(a.value, t, "", s, "") : "",
|
|
15
|
+
m: (s) => s ? c(a.value, t, "", "", s) : "",
|
|
16
|
+
be: (s, e) => s && e ? c(a.value, t, s, e, "") : "",
|
|
17
|
+
em: (s, e) => s && e ? c(a.value, t, "", s, e) : "",
|
|
18
|
+
bm: (s, e) => s && e ? c(a.value, t, s, "", e) : "",
|
|
19
|
+
bem: (s, e, n) => s && e && n ? c(a.value, t, s, e, n) : "",
|
|
19
20
|
is: (s, ...e) => {
|
|
20
21
|
const n = e.length >= 1 ? e[0] : !0;
|
|
21
|
-
return s && n ? `${
|
|
22
|
+
return s && n ? `${y}${s}` : "";
|
|
22
23
|
},
|
|
23
24
|
// css
|
|
24
25
|
cssVar: (s) => {
|
|
25
26
|
const e = {};
|
|
26
27
|
for (const n in s)
|
|
27
|
-
s[n] && (e[`--${
|
|
28
|
+
s[n] && (e[`--${a.value}-${n}`] = s[n]);
|
|
28
29
|
return e;
|
|
29
30
|
},
|
|
30
|
-
cssVarName: (s) => `--${
|
|
31
|
+
cssVarName: (s) => `--${a.value}-${s}`,
|
|
31
32
|
cssVarBlock: (s) => {
|
|
32
33
|
const e = {};
|
|
33
34
|
for (const n in s)
|
|
34
|
-
s[n] && (e[`--${
|
|
35
|
+
s[n] && (e[`--${a.value}-${t}-${n}`] = s[n]);
|
|
35
36
|
return e;
|
|
36
37
|
},
|
|
37
|
-
cssVarBlockName: (s) => `--${
|
|
38
|
+
cssVarBlockName: (s) => `--${a.value}-${t}-${s}`
|
|
38
39
|
};
|
|
39
40
|
};
|
|
40
41
|
export {
|
|
41
42
|
c as _bem,
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
43
|
+
$ as defaultNamespace,
|
|
44
|
+
i as namespaceContextKey,
|
|
45
|
+
P as useGetDerivedNamespace,
|
|
46
|
+
q as useNamespace
|
|
46
47
|
};
|
|
@@ -2,17 +2,18 @@ import { shallowRef as s, isVNode as m } from "vue";
|
|
|
2
2
|
import "@vue/shared";
|
|
3
3
|
import { flattedChildren as c } from "../../utils/vue/vnode.mjs";
|
|
4
4
|
import "@vft/utils";
|
|
5
|
-
|
|
5
|
+
import "../../utils/ns-cover.mjs";
|
|
6
|
+
const p = (t, i, d) => c(t.subTree).filter(
|
|
6
7
|
(e) => {
|
|
7
8
|
var r;
|
|
8
9
|
return m(e) && ((r = e.type) == null ? void 0 : r.name) === i && !!e.component;
|
|
9
10
|
}
|
|
10
|
-
).map((e) => e.component.uid).map((e) => d[e]).filter((e) => !!e),
|
|
11
|
+
).map((e) => e.component.uid).map((e) => d[e]).filter((e) => !!e), v = (t, i) => {
|
|
11
12
|
const d = {}, o = s([]);
|
|
12
13
|
return {
|
|
13
14
|
children: o,
|
|
14
15
|
addChild: (r) => {
|
|
15
|
-
d[r.uid] = r, o.value =
|
|
16
|
+
d[r.uid] = r, o.value = p(t, i, d);
|
|
16
17
|
},
|
|
17
18
|
removeChild: (r) => {
|
|
18
19
|
delete d[r], o.value = o.value.filter(
|
|
@@ -22,5 +23,5 @@ const u = (t, i, d) => c(t.subTree).filter(
|
|
|
22
23
|
};
|
|
23
24
|
};
|
|
24
25
|
export {
|
|
25
|
-
|
|
26
|
+
v as useOrderedChildren
|
|
26
27
|
};
|