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
|
@@ -6,9 +6,8 @@ import "@popperjs/core";
|
|
|
6
6
|
import "lodash";
|
|
7
7
|
import "../../hooks/use-z-index/index.mjs";
|
|
8
8
|
import "@vueuse/core";
|
|
9
|
-
import "@vue/shared";
|
|
10
9
|
import "../../utils/ns-cover.mjs";
|
|
11
|
-
const L = ["src", "alt", "srcset"],
|
|
10
|
+
const L = ["src", "alt", "srcset"], A = /* @__PURE__ */ h({
|
|
12
11
|
__name: "avatar",
|
|
13
12
|
props: {
|
|
14
13
|
size: { default: "" },
|
|
@@ -52,5 +51,5 @@ const L = ["src", "alt", "srcset"], D = /* @__PURE__ */ h({
|
|
|
52
51
|
}
|
|
53
52
|
});
|
|
54
53
|
export {
|
|
55
|
-
|
|
54
|
+
A as default
|
|
56
55
|
};
|
|
@@ -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 "./avatar.vue2.mjs";
|
|
7
|
-
const
|
|
6
|
+
const f = t(o);
|
|
8
7
|
export {
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
f as VftAvatar,
|
|
9
|
+
f as default
|
|
11
10
|
};
|
|
@@ -51,7 +51,6 @@ 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 { useBackTop as I } from "./use-back-top.mjs";
|
|
57
56
|
const i = (
|
|
@@ -59,7 +58,7 @@ const i = (
|
|
|
59
58
|
_("back-top")
|
|
60
59
|
), N = c({
|
|
61
60
|
name: i.b()
|
|
62
|
-
}),
|
|
61
|
+
}), Vt = /* @__PURE__ */ c({
|
|
63
62
|
...N,
|
|
64
63
|
props: {
|
|
65
64
|
visibilityHeight: { default: 200 },
|
|
@@ -101,5 +100,5 @@ const i = (
|
|
|
101
100
|
}
|
|
102
101
|
});
|
|
103
102
|
export {
|
|
104
|
-
|
|
103
|
+
Vt as default
|
|
105
104
|
};
|
|
@@ -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 "./back-top.vue2.mjs";
|
|
7
|
-
const
|
|
6
|
+
const f = t(o);
|
|
8
7
|
export {
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
f as VftBackTop,
|
|
9
|
+
f as default
|
|
11
10
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { shallowRef as u, ref as f, onMounted as m, watch as h, nextTick as T } from "vue";
|
|
2
2
|
import { useThrottleFn as g, useEventListener as b, useTimeoutFn as k } from "@vueuse/core";
|
|
3
|
-
import "@
|
|
3
|
+
import "@vft/utils";
|
|
4
4
|
import { throwError as a } from "../../utils/error.mjs";
|
|
5
5
|
import "../../utils/ns-cover.mjs";
|
|
6
6
|
const q = (t, c, i) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as T, ref as v, reactive as
|
|
1
|
+
import { defineComponent as T, ref as v, reactive as S, computed as r, watch as s, nextTick as E, onUnmounted as p, onMounted as F, openBlock as V, createElementBlock as q, normalizeStyle as D, unref as R, createElementVNode as B, renderSlot as M } from "vue";
|
|
2
2
|
import { addUnit as G } from "@vft/utils";
|
|
3
3
|
import { addListener as I, removeListener as J } from "resize-detector";
|
|
4
4
|
import { useNamespace as K } from "../../hooks/use-namespace/index.mjs";
|
|
@@ -6,14 +6,13 @@ import "@popperjs/core";
|
|
|
6
6
|
import "lodash";
|
|
7
7
|
import "../../hooks/use-z-index/index.mjs";
|
|
8
8
|
import "@vueuse/core";
|
|
9
|
-
import "@vue/shared";
|
|
10
9
|
import "../../utils/ns-cover.mjs";
|
|
11
10
|
const P = ["aria-label"], Q = (
|
|
12
11
|
/* hoist-static*/
|
|
13
12
|
K("clamp")
|
|
14
13
|
), W = T({
|
|
15
14
|
name: Q.b()
|
|
16
|
-
}),
|
|
15
|
+
}), ie = /* @__PURE__ */ T({
|
|
17
16
|
...W,
|
|
18
17
|
props: {
|
|
19
18
|
text: null,
|
|
@@ -26,7 +25,7 @@ const P = ["aria-label"], Q = (
|
|
|
26
25
|
},
|
|
27
26
|
emits: ["clamp-change", "update:expanded"],
|
|
28
27
|
setup(e, { emit: y }) {
|
|
29
|
-
const a = v(null), u = v(null), m = v(null), l =
|
|
28
|
+
const a = v(null), u = v(null), m = v(null), l = S({
|
|
30
29
|
offset: 0,
|
|
31
30
|
localExpanded: e.expanded,
|
|
32
31
|
unregisterResizeCallback: null
|
|
@@ -34,7 +33,7 @@ const P = ["aria-label"], Q = (
|
|
|
34
33
|
if (!l.localExpanded && e.maxHeight)
|
|
35
34
|
return G(e.maxHeight);
|
|
36
35
|
}), k = () => {
|
|
37
|
-
m.value && (m.value.textContent =
|
|
36
|
+
m.value && (m.value.textContent = N.value);
|
|
38
37
|
}, c = () => {
|
|
39
38
|
l.localExpanded || (k(), (d() || n.value) && g());
|
|
40
39
|
}, C = () => {
|
|
@@ -63,11 +62,11 @@ const P = ["aria-label"], Q = (
|
|
|
63
62
|
}, h = (t) => {
|
|
64
63
|
l.offset = t, k();
|
|
65
64
|
}, j = () => {
|
|
66
|
-
U(),
|
|
65
|
+
U(), A();
|
|
67
66
|
}, U = () => {
|
|
68
67
|
for (; (!d() || x() < 2) && l.offset < e.text.length; )
|
|
69
68
|
b(1);
|
|
70
|
-
},
|
|
69
|
+
}, A = () => {
|
|
71
70
|
for (; d() && x() > 1 && l.offset > 0; )
|
|
72
71
|
b(-1);
|
|
73
72
|
}, b = (t) => {
|
|
@@ -82,7 +81,7 @@ const P = ["aria-label"], Q = (
|
|
|
82
81
|
},
|
|
83
82
|
{ immediate: !0 }
|
|
84
83
|
);
|
|
85
|
-
const
|
|
84
|
+
const N = r(() => n.value ? O.value : e.text), O = r(() => {
|
|
86
85
|
if (e.location === "start")
|
|
87
86
|
return e.ellipsis + (e.text.slice(0, l.offset) || "").trim();
|
|
88
87
|
if (e.location === "middle") {
|
|
@@ -121,7 +120,7 @@ const P = ["aria-label"], Q = (
|
|
|
121
120
|
C();
|
|
122
121
|
});
|
|
123
122
|
}
|
|
124
|
-
),
|
|
123
|
+
), p(() => {
|
|
125
124
|
H();
|
|
126
125
|
}), F(() => {
|
|
127
126
|
C();
|
|
@@ -162,5 +161,5 @@ const P = ["aria-label"], Q = (
|
|
|
162
161
|
}
|
|
163
162
|
});
|
|
164
163
|
export {
|
|
165
|
-
|
|
164
|
+
ie as default
|
|
166
165
|
};
|
|
@@ -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 m from "./clamp.vue2.mjs";
|
|
7
|
-
const
|
|
6
|
+
const f = t(m);
|
|
8
7
|
export {
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
f as VftClamp,
|
|
9
|
+
f 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 { VftClamp as y } from "../clamp/index.mjs";
|
|
11
10
|
const h = ["onClick"], l = (
|
|
@@ -13,7 +12,7 @@ const h = ["onClick"], l = (
|
|
|
13
12
|
p("clamp-toggle")
|
|
14
13
|
), k = i({
|
|
15
14
|
name: l.b()
|
|
16
|
-
}),
|
|
15
|
+
}), j = /* @__PURE__ */ i({
|
|
17
16
|
...k,
|
|
18
17
|
props: {
|
|
19
18
|
text: null,
|
|
@@ -53,5 +52,5 @@ const h = ["onClick"], l = (
|
|
|
53
52
|
}
|
|
54
53
|
});
|
|
55
54
|
export {
|
|
56
|
-
|
|
55
|
+
j as default
|
|
57
56
|
};
|
|
@@ -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 "./clamp-toggle.vue2.mjs";
|
|
7
|
-
const
|
|
6
|
+
const f = t(o);
|
|
8
7
|
export {
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
f as VftClampToggle,
|
|
9
|
+
f as default
|
|
11
10
|
};
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import { defineComponent as o, openBlock as e, createBlock as s, Transition as i, mergeProps as n, unref as r, toHandlers as p, withCtx as
|
|
1
|
+
import { defineComponent as o, openBlock as e, createBlock as s, Transition as i, mergeProps as n, unref as r, toHandlers as p, withCtx as g, renderSlot as m } from "vue";
|
|
2
2
|
import { useNamespace as l } 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
|
const f = o({
|
|
11
10
|
name: "VtfCollapseTransition"
|
|
12
|
-
}),
|
|
11
|
+
}), _ = /* @__PURE__ */ o({
|
|
13
12
|
...f,
|
|
14
13
|
setup(y) {
|
|
15
14
|
const a = l("collapse-transition"), d = {
|
|
@@ -35,13 +34,13 @@ const f = o({
|
|
|
35
34
|
return (t, c) => (e(), s(i, n({
|
|
36
35
|
name: r(a).b()
|
|
37
36
|
}, p(d)), {
|
|
38
|
-
default:
|
|
39
|
-
|
|
37
|
+
default: g(() => [
|
|
38
|
+
m(t.$slots, "default")
|
|
40
39
|
]),
|
|
41
40
|
_: 3
|
|
42
41
|
}, 16, ["name"]));
|
|
43
42
|
}
|
|
44
43
|
});
|
|
45
44
|
export {
|
|
46
|
-
|
|
45
|
+
_ as default
|
|
47
46
|
};
|
|
@@ -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 { provideGlobalConfig as L } from "./hooks/use-global-config.mjs";
|
|
11
10
|
import { messageConfig as S } from "./constants.mjs";
|
|
@@ -14,7 +13,7 @@ const i = (
|
|
|
14
13
|
E("config-provider")
|
|
15
14
|
), T = s({
|
|
16
15
|
name: i.b()
|
|
17
|
-
}),
|
|
16
|
+
}), N = /* @__PURE__ */ s({
|
|
18
17
|
...T,
|
|
19
18
|
props: {
|
|
20
19
|
theme: { default: "light" },
|
|
@@ -72,5 +71,5 @@ const i = (
|
|
|
72
71
|
}
|
|
73
72
|
});
|
|
74
73
|
export {
|
|
75
|
-
|
|
74
|
+
N as default
|
|
76
75
|
};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { ref as v, getCurrentInstance as l, inject as p, computed as i, provide as g, unref as x } from "vue";
|
|
2
|
-
import "@
|
|
2
|
+
import { keysOf as a } from "@vft/utils";
|
|
3
3
|
import { debugWarn as C } from "../../../utils/error.mjs";
|
|
4
4
|
import "../../../utils/ns-cover.mjs";
|
|
5
|
-
import { keysOf as a } from "@vft/utils";
|
|
6
5
|
import { useNamespace as b, defaultNamespace as I, namespaceContextKey as y } from "../../../hooks/use-namespace/index.mjs";
|
|
7
6
|
import "@popperjs/core";
|
|
8
7
|
import "lodash";
|
|
@@ -17,7 +16,7 @@ function d(t, o = void 0) {
|
|
|
17
16
|
return ((n = r.value) == null ? void 0 : n[t]) ?? o;
|
|
18
17
|
}) : r;
|
|
19
18
|
}
|
|
20
|
-
function
|
|
19
|
+
function q(t) {
|
|
21
20
|
const o = d(), r = b(
|
|
22
21
|
t,
|
|
23
22
|
i(() => {
|
|
@@ -35,7 +34,7 @@ function A(t) {
|
|
|
35
34
|
zIndex: n
|
|
36
35
|
};
|
|
37
36
|
}
|
|
38
|
-
const
|
|
37
|
+
const A = (t, o, r = !1) => {
|
|
39
38
|
const n = !!l(), e = n ? d() : void 0, u = (o == null ? void 0 : o.provide) ?? (n ? g : void 0);
|
|
40
39
|
if (!u) {
|
|
41
40
|
C(
|
|
@@ -62,7 +61,7 @@ const B = (t, o, r = !1) => {
|
|
|
62
61
|
return n;
|
|
63
62
|
};
|
|
64
63
|
export {
|
|
65
|
-
|
|
66
|
-
|
|
64
|
+
A as provideGlobalConfig,
|
|
65
|
+
q as useGlobalComponentSettings,
|
|
67
66
|
d as useGlobalConfig
|
|
68
67
|
};
|
|
@@ -1,18 +1,17 @@
|
|
|
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 "./config-provider.vue2.mjs";
|
|
7
|
-
import { configProviderContextKey as
|
|
8
|
-
import { provideGlobalConfig as
|
|
9
|
-
const
|
|
6
|
+
import { configProviderContextKey as s, messageConfig as a } from "./constants.mjs";
|
|
7
|
+
import { provideGlobalConfig as C, useGlobalComponentSettings as d, useGlobalConfig as x } from "./hooks/use-global-config.mjs";
|
|
8
|
+
const n = o(t);
|
|
10
9
|
export {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
10
|
+
n as VftConfigProvider,
|
|
11
|
+
s as configProviderContextKey,
|
|
12
|
+
n as default,
|
|
13
|
+
a as messageConfig,
|
|
14
|
+
C as provideGlobalConfig,
|
|
15
|
+
d as useGlobalComponentSettings,
|
|
16
|
+
x as useGlobalConfig
|
|
18
17
|
};
|
|
@@ -51,9 +51,8 @@ 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
|
-
const H = { class: "vft-sub-menu" },
|
|
55
|
+
const H = { class: "vft-sub-menu" }, It = /* @__PURE__ */ w({
|
|
57
56
|
__name: "context-menu",
|
|
58
57
|
props: {
|
|
59
58
|
axis: null,
|
|
@@ -127,5 +126,5 @@ const H = { class: "vft-sub-menu" }, Lt = /* @__PURE__ */ w({
|
|
|
127
126
|
}
|
|
128
127
|
});
|
|
129
128
|
export {
|
|
130
|
-
|
|
129
|
+
It as default
|
|
131
130
|
};
|
|
@@ -4,16 +4,15 @@ 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
|
const o = (
|
|
11
10
|
/* hoist-static*/
|
|
12
11
|
n("descriptions-item")
|
|
13
|
-
),
|
|
12
|
+
), a = l({
|
|
14
13
|
name: o.b()
|
|
15
|
-
}),
|
|
16
|
-
...
|
|
14
|
+
}), b = /* @__PURE__ */ l({
|
|
15
|
+
...a,
|
|
17
16
|
props: {
|
|
18
17
|
label: null,
|
|
19
18
|
span: { default: 1 },
|
|
@@ -24,10 +23,10 @@ const o = (
|
|
|
24
23
|
className: null,
|
|
25
24
|
labelClassName: null
|
|
26
25
|
},
|
|
27
|
-
setup(
|
|
26
|
+
setup(r) {
|
|
28
27
|
return (t, s) => e(t.$slots, "default");
|
|
29
28
|
}
|
|
30
29
|
});
|
|
31
30
|
export {
|
|
32
|
-
|
|
31
|
+
b as default
|
|
33
32
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { defineComponent as N, useSlots as E, getCurrentInstance as w, provide as z, computed as V, openBlock as p, createElementBlock as d, normalizeClass as n, unref as i, createElementVNode as u, renderSlot as v, createTextVNode as k, toDisplayString as C, createCommentVNode as D, Fragment as I, renderList as K, createBlock as F } from "vue";
|
|
2
|
-
import "@vue/shared";
|
|
3
|
-
import { flattedChildren as L } from "../../utils/vue/vnode.mjs";
|
|
4
2
|
import "@vft/utils";
|
|
3
|
+
import { flattedChildren as L } from "../../utils/vue/vnode.mjs";
|
|
5
4
|
import "../../utils/ns-cover.mjs";
|
|
6
5
|
import { useNamespace as R } from "../../hooks/use-namespace/index.mjs";
|
|
7
6
|
import "@popperjs/core";
|
|
@@ -15,7 +14,7 @@ const o = (
|
|
|
15
14
|
R("descriptions")
|
|
16
15
|
), q = N({
|
|
17
16
|
name: o.b()
|
|
18
|
-
}),
|
|
17
|
+
}), Y = /* @__PURE__ */ N({
|
|
19
18
|
...q,
|
|
20
19
|
props: {
|
|
21
20
|
border: { type: Boolean, default: !1 },
|
|
@@ -28,24 +27,24 @@ const o = (
|
|
|
28
27
|
setup(s) {
|
|
29
28
|
const f = E(), S = w();
|
|
30
29
|
z(j, S.props);
|
|
31
|
-
const $ = V(() => [o.b(), o.m("small")]), h = (t, a, e,
|
|
30
|
+
const $ = V(() => [o.b(), o.m("small")]), h = (t, a, e, l = !1) => (t.props || (t.props = {}), a > e && (t.props.span = e), l && (t.props.span = a), t), x = () => {
|
|
32
31
|
var y;
|
|
33
32
|
const t = L((y = f.default) == null ? void 0 : y.call(f)).filter(
|
|
34
|
-
(
|
|
33
|
+
(r) => {
|
|
35
34
|
var c;
|
|
36
|
-
return ((c =
|
|
35
|
+
return ((c = r == null ? void 0 : r.type) == null ? void 0 : c.name) === "ElDescriptionsItem";
|
|
37
36
|
}
|
|
38
37
|
), a = [];
|
|
39
|
-
let e = [],
|
|
40
|
-
return t.forEach((
|
|
38
|
+
let e = [], l = s.column, b = 0;
|
|
39
|
+
return t.forEach((r, c) => {
|
|
41
40
|
var g;
|
|
42
|
-
const m = ((g =
|
|
43
|
-
if (c < t.length - 1 && (b += m >
|
|
41
|
+
const m = ((g = r == null ? void 0 : r.props) == null ? void 0 : g.span) || 1;
|
|
42
|
+
if (c < t.length - 1 && (b += m > l ? l : m), c === t.length - 1) {
|
|
44
43
|
const B = s.column - b % s.column;
|
|
45
|
-
e.push(h(
|
|
44
|
+
e.push(h(r, B, l, !0)), a.push(e);
|
|
46
45
|
return;
|
|
47
46
|
}
|
|
48
|
-
m <
|
|
47
|
+
m < l ? (l -= m, e.push(r)) : (e.push(h(r, m, l)), a.push(e), l = s.column, e = []);
|
|
49
48
|
}), a;
|
|
50
49
|
};
|
|
51
50
|
return (t, a) => (p(), d("div", {
|
|
@@ -77,8 +76,8 @@ const o = (
|
|
|
77
76
|
class: n([i(o).e("table"), i(o).is("bordered", s.border)])
|
|
78
77
|
}, [
|
|
79
78
|
u("tbody", null, [
|
|
80
|
-
(p(!0), d(I, null, K(x(), (e,
|
|
81
|
-
key:
|
|
79
|
+
(p(!0), d(I, null, K(x(), (e, l) => (p(), F(T, {
|
|
80
|
+
key: l,
|
|
82
81
|
row: e
|
|
83
82
|
}, null, 8, ["row"]))), 128))
|
|
84
83
|
])
|
|
@@ -88,5 +87,5 @@ const o = (
|
|
|
88
87
|
}
|
|
89
88
|
});
|
|
90
89
|
export {
|
|
91
|
-
|
|
90
|
+
Y as default
|
|
92
91
|
};
|
|
@@ -5,11 +5,10 @@ import "@popperjs/core";
|
|
|
5
5
|
import { isNil as A } from "lodash";
|
|
6
6
|
import "../../hooks/use-z-index/index.mjs";
|
|
7
7
|
import "@vueuse/core";
|
|
8
|
-
import "@vue/shared";
|
|
9
8
|
import { getNormalizedProps as j } from "../../utils/vue/vnode.mjs";
|
|
10
9
|
import "../../utils/ns-cover.mjs";
|
|
11
10
|
import { descriptionsKey as D } from "./token.mjs";
|
|
12
|
-
const
|
|
11
|
+
const q = S({
|
|
13
12
|
name: "VftDescriptionsCell",
|
|
14
13
|
props: {
|
|
15
14
|
cell: {
|
|
@@ -28,10 +27,10 @@ const B = S({
|
|
|
28
27
|
};
|
|
29
28
|
},
|
|
30
29
|
render() {
|
|
31
|
-
var h, n, g, f,
|
|
30
|
+
var h, n, g, f, c, u;
|
|
32
31
|
const e = j(
|
|
33
32
|
this.cell
|
|
34
|
-
), { border: p, direction: N } = this.descriptions, l = N === "vertical",
|
|
33
|
+
), { border: p, direction: N } = this.descriptions, l = N === "vertical", o = ((g = (n = (h = this.cell) == null ? void 0 : h.children) == null ? void 0 : n.label) == null ? void 0 : g.call(n)) || e.label, d = (u = (c = (f = this.cell) == null ? void 0 : f.children) == null ? void 0 : c.default) == null ? void 0 : u.call(c), i = e.span, a = e.align ? `is-${e.align}` : "", C = e.labelAlign ? `is-${e.labelAlign}` : a, m = e.className, b = e.labelClassName, r = {
|
|
35
34
|
width: y(e.width),
|
|
36
35
|
minWidth: y(e.minWidth)
|
|
37
36
|
}, t = w("descriptions");
|
|
@@ -51,7 +50,7 @@ const B = S({
|
|
|
51
50
|
],
|
|
52
51
|
colSpan: l ? i : 1
|
|
53
52
|
},
|
|
54
|
-
|
|
53
|
+
o
|
|
55
54
|
);
|
|
56
55
|
case "content":
|
|
57
56
|
return s(
|
|
@@ -64,11 +63,11 @@ const B = S({
|
|
|
64
63
|
t.is("bordered-content", p),
|
|
65
64
|
t.is("vertical-content", l),
|
|
66
65
|
a,
|
|
67
|
-
|
|
66
|
+
m
|
|
68
67
|
],
|
|
69
68
|
colSpan: l ? i : i * 2 - 1
|
|
70
69
|
},
|
|
71
|
-
|
|
70
|
+
d
|
|
72
71
|
);
|
|
73
72
|
default:
|
|
74
73
|
return s(
|
|
@@ -79,19 +78,19 @@ const B = S({
|
|
|
79
78
|
colSpan: i
|
|
80
79
|
},
|
|
81
80
|
[
|
|
82
|
-
A(
|
|
81
|
+
A(o) ? void 0 : s(
|
|
83
82
|
"span",
|
|
84
83
|
{
|
|
85
84
|
class: [t.e("label"), b]
|
|
86
85
|
},
|
|
87
|
-
|
|
86
|
+
o
|
|
88
87
|
),
|
|
89
88
|
s(
|
|
90
89
|
"span",
|
|
91
90
|
{
|
|
92
|
-
class: [t.e("content"),
|
|
91
|
+
class: [t.e("content"), m]
|
|
93
92
|
},
|
|
94
|
-
|
|
93
|
+
d
|
|
95
94
|
)
|
|
96
95
|
]
|
|
97
96
|
);
|
|
@@ -99,5 +98,5 @@ const B = S({
|
|
|
99
98
|
}
|
|
100
99
|
});
|
|
101
100
|
export {
|
|
102
|
-
|
|
101
|
+
q as default
|
|
103
102
|
};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { defineComponent as d, inject as y, unref as r, openBlock as t, createElementBlock as
|
|
1
|
+
import { defineComponent as d, inject as y, unref as r, openBlock as t, createElementBlock as n, Fragment as o, createElementVNode as m, renderList as u, createBlock as a, createVNode as s } from "vue";
|
|
2
2
|
import { useNamespace as f } 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 c from "./descriptions-cell.mjs";
|
|
@@ -14,16 +13,16 @@ const g = { key: 1 }, _ = (
|
|
|
14
13
|
f("descriptions-row")
|
|
15
14
|
), b = d({
|
|
16
15
|
name: _.b()
|
|
17
|
-
}),
|
|
16
|
+
}), F = /* @__PURE__ */ d({
|
|
18
17
|
...b,
|
|
19
18
|
props: {
|
|
20
19
|
row: { default: [] }
|
|
21
20
|
},
|
|
22
21
|
setup(i) {
|
|
23
|
-
const
|
|
24
|
-
return (w, h) => r(
|
|
22
|
+
const p = y(k, {});
|
|
23
|
+
return (w, h) => r(p).direction === "vertical" ? (t(), n(o, { key: 0 }, [
|
|
25
24
|
m("tr", null, [
|
|
26
|
-
(t(!0), o
|
|
25
|
+
(t(!0), n(o, null, u(i.row, (e, l) => (t(), a(r(c), {
|
|
27
26
|
key: `tr1-${l}`,
|
|
28
27
|
cell: e,
|
|
29
28
|
tag: "th",
|
|
@@ -31,18 +30,18 @@ const g = { key: 1 }, _ = (
|
|
|
31
30
|
}, null, 8, ["cell"]))), 128))
|
|
32
31
|
]),
|
|
33
32
|
m("tr", null, [
|
|
34
|
-
(t(!0), o
|
|
33
|
+
(t(!0), n(o, null, u(i.row, (e, l) => (t(), a(r(c), {
|
|
35
34
|
key: `tr2-${l}`,
|
|
36
35
|
cell: e,
|
|
37
36
|
tag: "td",
|
|
38
37
|
type: "content"
|
|
39
38
|
}, null, 8, ["cell"]))), 128))
|
|
40
39
|
])
|
|
41
|
-
], 64)) : (t(),
|
|
42
|
-
(t(!0), o
|
|
40
|
+
], 64)) : (t(), n("tr", g, [
|
|
41
|
+
(t(!0), n(o, null, u(i.row, (e, l) => (t(), n(o, {
|
|
43
42
|
key: `tr3-${l}`
|
|
44
43
|
}, [
|
|
45
|
-
r(
|
|
44
|
+
r(p).border ? (t(), n(o, { key: 0 }, [
|
|
46
45
|
s(r(c), {
|
|
47
46
|
cell: e,
|
|
48
47
|
tag: "td",
|
|
@@ -53,7 +52,7 @@ const g = { key: 1 }, _ = (
|
|
|
53
52
|
tag: "td",
|
|
54
53
|
type: "content"
|
|
55
54
|
}, null, 8, ["cell"])
|
|
56
|
-
], 64)) : (t(),
|
|
55
|
+
], 64)) : (t(), a(r(c), {
|
|
57
56
|
key: 1,
|
|
58
57
|
cell: e,
|
|
59
58
|
tag: "td",
|
|
@@ -64,5 +63,5 @@ const g = { key: 1 }, _ = (
|
|
|
64
63
|
}
|
|
65
64
|
});
|
|
66
65
|
export {
|
|
67
|
-
|
|
66
|
+
F as default
|
|
68
67
|
};
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { withInstall as o, withNoopInstall as i } 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 m from "./description.vue2.mjs";
|
|
7
6
|
import t from "./description-item.vue2.mjs";
|
|
8
|
-
const
|
|
7
|
+
const e = o(m, {
|
|
9
8
|
DescriptionsItem: t
|
|
10
|
-
}),
|
|
9
|
+
}), a = i(t);
|
|
11
10
|
export {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
e as VftDescriptions,
|
|
12
|
+
a as VftDescriptionsItem,
|
|
13
|
+
e as default
|
|
15
14
|
};
|