vft 0.0.97 → 0.0.99
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/affix/affix.vue2.js +25 -26
- package/es/components/alert/alert.vue2.js +17 -18
- package/es/components/backtop/backtop.vue2.js +14 -15
- package/es/components/button/button-group.vue2.js +14 -15
- package/es/components/button/button.vue2.js +24 -25
- package/es/components/card/card.vue2.js +10 -11
- package/es/components/check-tag/check-tag.vue2.js +10 -11
- package/es/components/checkbox/checkbox-button.vue2.js +13 -14
- package/es/components/checkbox/checkbox-group.vue2.js +15 -16
- package/es/components/checkbox/checkbox.vue2.js +24 -25
- package/es/components/clamp/clamp.vue2.js +16 -17
- package/es/components/clamp-toggle/clamp-toggle.vue2.js +13 -14
- package/es/components/col/col.vue2.js +20 -21
- package/es/components/collapse-transition/src/collapse-transition.vue2.js +12 -13
- package/es/components/collection/collection-item.vue2.js +6 -7
- package/es/components/collection/collection.vue2.js +5 -7
- package/es/components/color-picker/color-picker.vue2.js +45 -46
- package/es/components/color-picker/components/alpha-slider.vue2.js +20 -21
- package/es/components/config-provider/config-provider.vue2.js +22 -23
- package/es/components/container/aside.vue2.js +12 -13
- package/es/components/container/container.vue2.js +10 -11
- package/es/components/container/footer.vue2.js +11 -12
- package/es/components/container/header.vue2.js +10 -11
- package/es/components/container/main.vue2.js +12 -13
- package/es/components/context-menu/context-menu.vue2.js +18 -19
- package/es/components/date-picker/date-picker-com/basic-date-table.vue2.js +87 -87
- package/es/components/date-picker/date-picker-com/basic-month-table.vue2.js +1 -1
- package/es/components/date-picker/date-picker-com/basic-year-table.vue2.js +1 -1
- package/es/components/date-picker/date-picker-com/panel-date-pick.vue2.js +2 -2
- package/es/components/date-picker/date-picker-com/panel-month-range.vue2.js +39 -40
- package/es/components/date-time-select/date-time-select.vue2.js +20 -21
- package/es/components/descriptions/description-item.vue2.js +9 -10
- package/es/components/descriptions/description.vue2.js +20 -21
- package/es/components/descriptions/descriptions-row.vue2.js +15 -16
- package/es/components/dialog/dialog-content.vue2.js +12 -13
- package/es/components/dialog/dialog.vue2.js +40 -41
- package/es/components/divider/divider.vue2.js +10 -11
- package/es/components/dropdown/dropdown.vue2.js +38 -39
- package/es/components/empty/empty.vue2.js +11 -12
- package/es/components/footer-layout/footer-layout.vue2.js +7 -8
- package/es/components/form/form-item.vue2.js +43 -44
- package/es/components/form/form.vue2.js +28 -29
- package/es/components/full-screen/full-screen.vue2.js +15 -16
- package/es/components/header-layout/header-layout.vue2.js +21 -22
- package/es/components/horizontal-menu/horizontal-menu.vue2.js +50 -51
- package/es/components/icon/icon.vue2.js +12 -13
- package/es/components/icon-text/icon-text.vue2.js +13 -14
- package/es/components/iframe-layout/iframe-layout.vue2.js +15 -16
- package/es/components/iframe-layout/iframe-page.vue2.js +12 -13
- package/es/components/image/image.vue2.js +25 -26
- package/es/components/image-viewer/image-viewer.vue2.js +54 -55
- package/es/components/link/link.vue2.js +11 -12
- package/es/components/list-cell/list-cell.vue2.js +21 -22
- package/es/components/logo/logo.vue2.js +12 -13
- package/es/components/md-comment/md-comment.vue2.js +12 -13
- package/es/components/md-container/md-container.vue2.js +33 -34
- package/es/components/md-vue-playground/md-vue-playground.vue2.js +18 -19
- package/es/components/menu/menu-item-group.vue2.js +13 -14
- package/es/components/menu/menu-item.vue2.js +12 -13
- package/es/components/menu/menu.vue2.js +44 -45
- package/es/components/menu/sub-menu.vue2.js +30 -31
- package/es/components/multiple-tabs/multiple-tabs.vue2.js +35 -38
- package/es/components/overlay/overlay.vue2.js +23 -24
- package/es/components/page-wrapper/page-wrapper.vue2.js +17 -18
- package/es/components/pagination/pagination.vue2.js +17 -18
- package/es/components/popconfirm/popconfirm.vue2.js +17 -18
- package/es/components/popover/popover.vue2.js +31 -32
- package/es/components/popper/arrow.vue2.js +15 -16
- package/es/components/popper/content.vue2.js +38 -39
- package/es/components/popper/popper.vue2.js +13 -14
- package/es/components/popper/trigger.vue2.js +11 -12
- package/es/components/qrcode/qrcode.vue2.js +21 -22
- package/es/components/radio/radio-button.vue2.js +16 -17
- package/es/components/radio/radio-group.vue2.js +16 -17
- package/es/components/radio/radio.vue2.js +15 -16
- package/es/components/result/result.vue2.js +12 -13
- package/es/components/router-view-content/router-view-content.vue2.js +10 -11
- package/es/components/row/row.vue2.js +17 -18
- package/es/components/scrollbar/scrollbar.vue2.js +30 -31
- package/es/components/search/search.vue2.js +39 -40
- package/es/components/side-menu/side-menu.vue2.js +43 -45
- package/es/components/skeleton/skeleton-item.vue2.js +9 -10
- package/es/components/skeleton/skeleton.vue2.js +11 -12
- package/es/components/switch/switch.vue2.js +27 -28
- package/es/components/table/table.vue2.js +53 -50
- package/es/components/tabs/tab-nav.vue2.js +28 -29
- package/es/components/tabs/tab-pane.vue2.js +23 -24
- package/es/components/tabs/tabs.vue2.js +30 -31
- package/es/components/time-picker/common/picker.vue2.js +48 -49
- package/es/components/time-select/time-select.vue2.js +28 -29
- package/es/components/tooltip/content.vue2.js +36 -37
- package/es/components/tooltip/tooltip.vue2.js +15 -16
- package/es/components/tooltip/trigger.vue2.js +37 -38
- package/es/components/verify-code/verify-code.vue2.js +19 -20
- package/es/constants/date.js +7 -7
- package/es/package.json.js +1 -1
- package/lib/components/affix/affix.vue2.cjs +1 -1
- package/lib/components/alert/alert.vue2.cjs +1 -1
- package/lib/components/backtop/backtop.vue2.cjs +1 -1
- package/lib/components/button/button-group.vue2.cjs +1 -1
- package/lib/components/button/button.vue2.cjs +1 -1
- package/lib/components/card/card.vue2.cjs +1 -1
- package/lib/components/check-tag/check-tag.vue2.cjs +1 -1
- package/lib/components/checkbox/checkbox-button.vue2.cjs +1 -1
- package/lib/components/checkbox/checkbox-group.vue2.cjs +1 -1
- package/lib/components/checkbox/checkbox.vue2.cjs +1 -1
- package/lib/components/clamp/clamp.vue2.cjs +1 -1
- package/lib/components/clamp-toggle/clamp-toggle.vue2.cjs +1 -1
- package/lib/components/col/col.vue2.cjs +1 -1
- package/lib/components/collapse-transition/src/collapse-transition.vue2.cjs +1 -1
- package/lib/components/collection/collection-item.vue2.cjs +1 -1
- package/lib/components/collection/collection.vue2.cjs +1 -1
- package/lib/components/color-picker/color-picker.vue2.cjs +1 -1
- package/lib/components/color-picker/components/alpha-slider.vue2.cjs +1 -1
- package/lib/components/config-provider/config-provider.vue2.cjs +1 -1
- package/lib/components/container/aside.vue2.cjs +1 -1
- package/lib/components/container/container.vue2.cjs +1 -1
- package/lib/components/container/footer.vue2.cjs +1 -1
- package/lib/components/container/header.vue2.cjs +1 -1
- package/lib/components/container/main.vue2.cjs +1 -1
- package/lib/components/context-menu/context-menu.vue2.cjs +1 -1
- package/lib/components/date-picker/date-picker-com/basic-date-table.vue2.cjs +1 -1
- package/lib/components/date-picker/date-picker-com/basic-month-table.vue2.cjs +1 -1
- package/lib/components/date-picker/date-picker-com/basic-year-table.vue2.cjs +1 -1
- package/lib/components/date-picker/date-picker-com/panel-date-pick.vue2.cjs +1 -1
- package/lib/components/date-picker/date-picker-com/panel-month-range.vue2.cjs +1 -1
- package/lib/components/date-time-select/date-time-select.vue2.cjs +1 -1
- package/lib/components/descriptions/description-item.vue2.cjs +1 -1
- package/lib/components/descriptions/description.vue2.cjs +1 -1
- package/lib/components/descriptions/descriptions-row.vue2.cjs +1 -1
- package/lib/components/dialog/dialog-content.vue2.cjs +1 -1
- package/lib/components/dialog/dialog.vue2.cjs +1 -1
- package/lib/components/divider/divider.vue2.cjs +1 -1
- package/lib/components/dropdown/dropdown.vue2.cjs +1 -1
- package/lib/components/empty/empty.vue2.cjs +1 -1
- package/lib/components/footer-layout/footer-layout.vue2.cjs +1 -1
- package/lib/components/form/form-item.vue2.cjs +1 -1
- package/lib/components/form/form.vue2.cjs +1 -1
- package/lib/components/full-screen/full-screen.vue2.cjs +1 -1
- package/lib/components/header-layout/header-layout.vue2.cjs +1 -1
- package/lib/components/horizontal-menu/horizontal-menu.vue2.cjs +1 -1
- package/lib/components/icon/icon.vue2.cjs +1 -1
- package/lib/components/icon-text/icon-text.vue2.cjs +1 -1
- package/lib/components/iframe-layout/iframe-layout.vue2.cjs +1 -1
- package/lib/components/iframe-layout/iframe-page.vue2.cjs +1 -1
- package/lib/components/image/image.vue2.cjs +1 -1
- package/lib/components/image-viewer/image-viewer.vue2.cjs +1 -1
- package/lib/components/link/link.vue2.cjs +1 -1
- package/lib/components/list-cell/list-cell.vue2.cjs +1 -1
- package/lib/components/logo/logo.vue2.cjs +1 -1
- package/lib/components/md-comment/md-comment.vue2.cjs +1 -1
- package/lib/components/md-container/md-container.vue2.cjs +1 -1
- package/lib/components/md-vue-playground/md-vue-playground.vue2.cjs +1 -1
- package/lib/components/menu/menu-item-group.vue2.cjs +1 -1
- package/lib/components/menu/menu-item.vue2.cjs +1 -1
- package/lib/components/menu/menu.vue2.cjs +1 -1
- package/lib/components/menu/sub-menu.vue2.cjs +1 -1
- package/lib/components/multiple-tabs/multiple-tabs.vue2.cjs +1 -1
- package/lib/components/overlay/overlay.vue2.cjs +1 -1
- package/lib/components/page-wrapper/page-wrapper.vue2.cjs +1 -1
- package/lib/components/pagination/pagination.vue2.cjs +1 -1
- package/lib/components/popconfirm/popconfirm.vue2.cjs +1 -1
- package/lib/components/popover/popover.vue2.cjs +1 -1
- package/lib/components/popper/arrow.vue2.cjs +1 -1
- package/lib/components/popper/content.vue2.cjs +1 -1
- package/lib/components/popper/popper.vue2.cjs +1 -1
- package/lib/components/popper/trigger.vue2.cjs +1 -1
- package/lib/components/qrcode/qrcode.vue2.cjs +1 -1
- package/lib/components/radio/radio-button.vue2.cjs +1 -1
- package/lib/components/radio/radio-group.vue2.cjs +1 -1
- package/lib/components/radio/radio.vue2.cjs +1 -1
- package/lib/components/result/result.vue2.cjs +1 -1
- package/lib/components/router-view-content/router-view-content.vue2.cjs +1 -1
- package/lib/components/row/row.vue2.cjs +1 -1
- package/lib/components/scrollbar/scrollbar.vue2.cjs +1 -1
- package/lib/components/search/search.vue2.cjs +1 -1
- package/lib/components/side-menu/side-menu.vue2.cjs +1 -1
- package/lib/components/skeleton/skeleton-item.vue2.cjs +1 -1
- package/lib/components/skeleton/skeleton.vue2.cjs +1 -1
- package/lib/components/switch/switch.vue2.cjs +1 -1
- package/lib/components/table/table.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/time-picker/common/picker.vue2.cjs +1 -1
- package/lib/components/time-select/time-select.vue2.cjs +1 -1
- package/lib/components/tooltip/content.vue2.cjs +1 -1
- package/lib/components/tooltip/tooltip.vue2.cjs +1 -1
- package/lib/components/tooltip/trigger.vue2.cjs +1 -1
- package/lib/components/verify-code/verify-code.vue2.cjs +1 -1
- package/lib/constants/date.cjs +1 -1
- package/lib/package.json.cjs +1 -1
- package/package.json +8 -8
- package/web-types.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as t, renderSlot as
|
|
2
|
-
import { useNamespace as
|
|
1
|
+
import { defineComponent as t, renderSlot as i } from "vue";
|
|
2
|
+
import { useNamespace as o } from "../../hooks/use-namespace/index.js";
|
|
3
3
|
import "@popperjs/core";
|
|
4
4
|
import "lodash";
|
|
5
5
|
import "../../hooks/use-z-index/index.js";
|
|
@@ -8,11 +8,10 @@ import "@vft/utils";
|
|
|
8
8
|
import "../../utils/ns-cover.js";
|
|
9
9
|
const r = (
|
|
10
10
|
/* hoist-static*/
|
|
11
|
-
|
|
12
|
-
),
|
|
13
|
-
name: r.b()
|
|
14
|
-
|
|
15
|
-
...s,
|
|
11
|
+
o("descriptions-item")
|
|
12
|
+
), _ = /* @__PURE__ */ t({
|
|
13
|
+
name: r.b(),
|
|
14
|
+
__name: "description-item",
|
|
16
15
|
props: {
|
|
17
16
|
label: {},
|
|
18
17
|
span: { default: 1 },
|
|
@@ -23,10 +22,10 @@ const r = (
|
|
|
23
22
|
className: {},
|
|
24
23
|
labelClassName: {}
|
|
25
24
|
},
|
|
26
|
-
setup(
|
|
27
|
-
return (e,
|
|
25
|
+
setup(a) {
|
|
26
|
+
return (e, m) => i(e.$slots, "default");
|
|
28
27
|
}
|
|
29
28
|
});
|
|
30
29
|
export {
|
|
31
|
-
|
|
30
|
+
_ as default
|
|
32
31
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as E, useSlots as w, getCurrentInstance as z, provide as V, computed as D, openBlock as u, createElementBlock as d, normalizeClass as a, unref as i, createElementVNode as m, renderSlot as g, createTextVNode as k, toDisplayString as C, createCommentVNode as I, Fragment as K, renderList as F, createBlock as L } from "vue";
|
|
2
2
|
import "@vft/utils";
|
|
3
3
|
import { flattedChildren as R } from "../../utils/vue/vnode.js";
|
|
4
4
|
import "lodash";
|
|
@@ -12,10 +12,9 @@ import { descriptionsKey as q } from "./token.js";
|
|
|
12
12
|
const l = (
|
|
13
13
|
/* hoist-static*/
|
|
14
14
|
T("descriptions")
|
|
15
|
-
),
|
|
16
|
-
name: l.b()
|
|
17
|
-
|
|
18
|
-
...A,
|
|
15
|
+
), Y = /* @__PURE__ */ E({
|
|
16
|
+
name: l.b(),
|
|
17
|
+
__name: "description",
|
|
19
18
|
props: {
|
|
20
19
|
border: { type: Boolean, default: !1 },
|
|
21
20
|
column: { default: 3 },
|
|
@@ -24,10 +23,10 @@ const l = (
|
|
|
24
23
|
title: {},
|
|
25
24
|
extra: {}
|
|
26
25
|
},
|
|
27
|
-
setup(
|
|
28
|
-
const f = w(),
|
|
29
|
-
V(q,
|
|
30
|
-
const
|
|
26
|
+
setup(c) {
|
|
27
|
+
const f = w(), N = z();
|
|
28
|
+
V(q, N.props);
|
|
29
|
+
const S = D(() => [l.b(), l.m("small")]), h = (e, o, t, r = !1) => (e.props || (e.props = {}), o > t && (e.props.span = t), r && (e.props.span = o), e), $ = () => {
|
|
31
30
|
var y;
|
|
32
31
|
const e = R((y = f.default) == null ? void 0 : y.call(f)).filter(
|
|
33
32
|
(s) => {
|
|
@@ -35,33 +34,33 @@ const l = (
|
|
|
35
34
|
return ((n = s == null ? void 0 : s.type) == null ? void 0 : n.name) === "ElDescriptionsItem";
|
|
36
35
|
}
|
|
37
36
|
), o = [];
|
|
38
|
-
let t = [], r =
|
|
37
|
+
let t = [], r = c.column, b = 0;
|
|
39
38
|
return e.forEach((s, n) => {
|
|
40
39
|
var v;
|
|
41
40
|
const p = ((v = s == null ? void 0 : s.props) == null ? void 0 : v.span) || 1;
|
|
42
41
|
if (n < e.length - 1 && (b += p > r ? r : p), n === e.length - 1) {
|
|
43
|
-
const
|
|
44
|
-
t.push(h(s,
|
|
42
|
+
const B = c.column - b % c.column;
|
|
43
|
+
t.push(h(s, B, r, !0)), o.push(t);
|
|
45
44
|
return;
|
|
46
45
|
}
|
|
47
|
-
p < r ? (r -= p, t.push(s)) : (t.push(h(s, p, r)), o.push(t), r =
|
|
46
|
+
p < r ? (r -= p, t.push(s)) : (t.push(h(s, p, r)), o.push(t), r = c.column, t = []);
|
|
48
47
|
}), o;
|
|
49
48
|
};
|
|
50
49
|
return (e, o) => (u(), d("div", {
|
|
51
|
-
class: a(
|
|
50
|
+
class: a(S.value)
|
|
52
51
|
}, [
|
|
53
52
|
e.title || e.extra || e.$slots.title || e.$slots.extra ? (u(), d("div", {
|
|
54
53
|
key: 0,
|
|
55
54
|
class: a(i(l).e("header"))
|
|
56
55
|
}, [
|
|
57
|
-
|
|
56
|
+
m("div", {
|
|
58
57
|
class: a(i(l).e("title"))
|
|
59
58
|
}, [
|
|
60
59
|
g(e.$slots, "title", {}, () => [
|
|
61
60
|
k(C(e.title), 1)
|
|
62
61
|
])
|
|
63
62
|
], 2),
|
|
64
|
-
|
|
63
|
+
m("div", {
|
|
65
64
|
class: a(i(l).e("extra"))
|
|
66
65
|
}, [
|
|
67
66
|
g(e.$slots, "extra", {}, () => [
|
|
@@ -69,14 +68,14 @@ const l = (
|
|
|
69
68
|
])
|
|
70
69
|
], 2)
|
|
71
70
|
], 2)) : I("", !0),
|
|
72
|
-
|
|
71
|
+
m("div", {
|
|
73
72
|
class: a(i(l).e("body"))
|
|
74
73
|
}, [
|
|
75
|
-
|
|
74
|
+
m("table", {
|
|
76
75
|
class: a([i(l).e("table"), i(l).is("bordered", e.border)])
|
|
77
76
|
}, [
|
|
78
|
-
|
|
79
|
-
(u(!0), d(K, null, F(
|
|
77
|
+
m("tbody", null, [
|
|
78
|
+
(u(!0), d(K, null, F($(), (t, r) => (u(), L(j, {
|
|
80
79
|
key: r,
|
|
81
80
|
row: t
|
|
82
81
|
}, null, 8, ["row"]))), 128))
|
|
@@ -87,5 +86,5 @@ const l = (
|
|
|
87
86
|
}
|
|
88
87
|
});
|
|
89
88
|
export {
|
|
90
|
-
|
|
89
|
+
Y as default
|
|
91
90
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as d, inject as y, unref as r, openBlock as e, createElementBlock as o, Fragment as n, createElementVNode as a, renderList as
|
|
2
|
-
import { useNamespace as
|
|
1
|
+
import { defineComponent as d, inject as y, unref as r, openBlock as e, createElementBlock as o, Fragment as n, createElementVNode as a, renderList as c, createBlock as s, createVNode as m } from "vue";
|
|
2
|
+
import { useNamespace as k } from "../../hooks/use-namespace/index.js";
|
|
3
3
|
import "@popperjs/core";
|
|
4
4
|
import "lodash";
|
|
5
5
|
import "../../hooks/use-z-index/index.js";
|
|
@@ -7,22 +7,21 @@ import "@vueuse/core";
|
|
|
7
7
|
import "@vft/utils";
|
|
8
8
|
import "../../utils/ns-cover.js";
|
|
9
9
|
import p from "./descriptions-cell.js";
|
|
10
|
-
import { descriptionsKey as
|
|
10
|
+
import { descriptionsKey as f } from "./token.js";
|
|
11
11
|
const _ = { key: 1 }, g = (
|
|
12
12
|
/* hoist-static*/
|
|
13
|
-
|
|
14
|
-
),
|
|
15
|
-
name: g.b()
|
|
16
|
-
|
|
17
|
-
...b,
|
|
13
|
+
k("descriptions-row")
|
|
14
|
+
), F = /* @__PURE__ */ d({
|
|
15
|
+
name: g.b(),
|
|
16
|
+
__name: "descriptions-row",
|
|
18
17
|
props: {
|
|
19
18
|
row: { default: [] }
|
|
20
19
|
},
|
|
21
20
|
setup(w) {
|
|
22
|
-
const
|
|
23
|
-
return (
|
|
21
|
+
const u = y(f, {});
|
|
22
|
+
return (i, b) => r(u).direction === "vertical" ? (e(), o(n, { key: 0 }, [
|
|
24
23
|
a("tr", null, [
|
|
25
|
-
(e(!0), o(n, null, i
|
|
24
|
+
(e(!0), o(n, null, c(i.row, (t, l) => (e(), s(r(p), {
|
|
26
25
|
key: `tr1-${l}`,
|
|
27
26
|
cell: t,
|
|
28
27
|
tag: "th",
|
|
@@ -30,7 +29,7 @@ const _ = { key: 1 }, g = (
|
|
|
30
29
|
}, null, 8, ["cell"]))), 128))
|
|
31
30
|
]),
|
|
32
31
|
a("tr", null, [
|
|
33
|
-
(e(!0), o(n, null, i
|
|
32
|
+
(e(!0), o(n, null, c(i.row, (t, l) => (e(), s(r(p), {
|
|
34
33
|
key: `tr2-${l}`,
|
|
35
34
|
cell: t,
|
|
36
35
|
tag: "td",
|
|
@@ -38,10 +37,10 @@ const _ = { key: 1 }, g = (
|
|
|
38
37
|
}, null, 8, ["cell"]))), 128))
|
|
39
38
|
])
|
|
40
39
|
], 64)) : (e(), o("tr", _, [
|
|
41
|
-
(e(!0), o(n, null, i
|
|
40
|
+
(e(!0), o(n, null, c(i.row, (t, l) => (e(), o(n, {
|
|
42
41
|
key: `tr3-${l}`
|
|
43
42
|
}, [
|
|
44
|
-
r(
|
|
43
|
+
r(u).border ? (e(), o(n, { key: 0 }, [
|
|
45
44
|
m(r(p), {
|
|
46
45
|
cell: t,
|
|
47
46
|
tag: "td",
|
|
@@ -52,7 +51,7 @@ const _ = { key: 1 }, g = (
|
|
|
52
51
|
tag: "td",
|
|
53
52
|
type: "content"
|
|
54
53
|
}, null, 8, ["cell"])
|
|
55
|
-
], 64)) : (e(),
|
|
54
|
+
], 64)) : (e(), s(r(p), {
|
|
56
55
|
key: 1,
|
|
57
56
|
cell: t,
|
|
58
57
|
tag: "td",
|
|
@@ -63,5 +62,5 @@ const _ = { key: 1 }, g = (
|
|
|
63
62
|
}
|
|
64
63
|
});
|
|
65
64
|
export {
|
|
66
|
-
|
|
65
|
+
F as default
|
|
67
66
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as h, inject as m, computed as B, openBlock as s, createElementBlock as a, unref as e, normalizeClass as l, normalizeStyle as I, createElementVNode as r, renderSlot as n, toDisplayString as R, createVNode as k, createCommentVNode as c } from "vue";
|
|
2
2
|
import { VftIcon as N } from "../icon/index.js";
|
|
3
3
|
import "../focus-trap/focus-trap.vue2.js";
|
|
4
4
|
import { FOCUS_TRAP_INJECTION_KEY as $ } from "../focus-trap/tokens.js";
|
|
@@ -16,10 +16,9 @@ import { dialogInjectionKey as v } from "./constants.js";
|
|
|
16
16
|
const z = ["id"], D = (
|
|
17
17
|
/* hoist-static*/
|
|
18
18
|
E("dialog-content")
|
|
19
|
-
),
|
|
20
|
-
name: D.b()
|
|
21
|
-
|
|
22
|
-
...T,
|
|
19
|
+
), Q = /* @__PURE__ */ h({
|
|
20
|
+
name: D.b(),
|
|
21
|
+
__name: "dialog-content",
|
|
23
22
|
props: {
|
|
24
23
|
center: { type: Boolean, default: !1 },
|
|
25
24
|
alignCenter: { type: Boolean, default: !1 },
|
|
@@ -31,10 +30,10 @@ const z = ["id"], D = (
|
|
|
31
30
|
title: { default: "" }
|
|
32
31
|
},
|
|
33
32
|
emits: ["close"],
|
|
34
|
-
setup(
|
|
35
|
-
const { dialogRef: i, headerRef: d, bodyId:
|
|
36
|
-
return V(i, d,
|
|
37
|
-
ref: e(
|
|
33
|
+
setup(p) {
|
|
34
|
+
const { dialogRef: i, headerRef: d, bodyId: u, ns: t, style: g } = m(v), { focusTrapRef: y } = m($), b = S(y, i), C = B(() => p.draggable);
|
|
35
|
+
return V(i, d, C), (o, f) => (s(), a("div", {
|
|
36
|
+
ref: e(b),
|
|
38
37
|
class: l([
|
|
39
38
|
e(t).b(),
|
|
40
39
|
e(t).is("fullscreen", o.fullscreen),
|
|
@@ -43,7 +42,7 @@ const z = ["id"], D = (
|
|
|
43
42
|
{ [e(t).m("center")]: o.center },
|
|
44
43
|
o.customClass
|
|
45
44
|
]),
|
|
46
|
-
style: I(e(
|
|
45
|
+
style: I(e(g)),
|
|
47
46
|
tabindex: "-1"
|
|
48
47
|
}, [
|
|
49
48
|
r("header", {
|
|
@@ -61,7 +60,7 @@ const z = ["id"], D = (
|
|
|
61
60
|
key: 0,
|
|
62
61
|
class: l(e(t).e("headerbtn")),
|
|
63
62
|
type: "button",
|
|
64
|
-
onClick: f[0] || (f[0] = (
|
|
63
|
+
onClick: f[0] || (f[0] = (T) => o.$emit("close"))
|
|
65
64
|
}, [
|
|
66
65
|
k(e(N), {
|
|
67
66
|
class: l(e(t).e("close")),
|
|
@@ -71,7 +70,7 @@ const z = ["id"], D = (
|
|
|
71
70
|
], 2)) : c("", !0)
|
|
72
71
|
], 2),
|
|
73
72
|
r("div", {
|
|
74
|
-
id: e(
|
|
73
|
+
id: e(u),
|
|
75
74
|
class: l(e(t).e("body"))
|
|
76
75
|
}, [
|
|
77
76
|
n(o.$slots, "default")
|
|
@@ -86,5 +85,5 @@ const z = ["id"], D = (
|
|
|
86
85
|
}
|
|
87
86
|
});
|
|
88
87
|
export {
|
|
89
|
-
|
|
88
|
+
Q as default
|
|
90
89
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as V, ref as i, getCurrentInstance as z, provide as O, computed as P, openBlock as C, createBlock as b, Teleport as N, createVNode as f, Transition as q, unref as e, withCtx as a, withDirectives as j, createElementVNode as K, normalizeClass as U, normalizeStyle as G, mergeProps as H, createSlots as J, renderSlot as n, createCommentVNode as Q, vShow as W } from "vue";
|
|
2
2
|
import { VftOverlay as X } from "../overlay/index.js";
|
|
3
3
|
import { useNamespace as Y } from "../../hooks/use-namespace/index.js";
|
|
4
4
|
import "@popperjs/core";
|
|
@@ -17,11 +17,10 @@ import { useDialog as te } from "./hooks/use-dialog.js";
|
|
|
17
17
|
const ae = ["aria-label", "aria-labelledby", "aria-describedby"], d = (
|
|
18
18
|
/* hoist-static*/
|
|
19
19
|
Y("dialog")
|
|
20
|
-
),
|
|
20
|
+
), ke = /* @__PURE__ */ V({
|
|
21
21
|
name: d.b(),
|
|
22
|
-
inheritAttrs: !1
|
|
23
|
-
|
|
24
|
-
...se,
|
|
22
|
+
inheritAttrs: !1,
|
|
23
|
+
__name: "dialog",
|
|
25
24
|
props: {
|
|
26
25
|
appendToBody: { type: Boolean, default: !1 },
|
|
27
26
|
beforeClose: {},
|
|
@@ -56,54 +55,54 @@ const ae = ["aria-label", "aria-labelledby", "aria-describedby"], d = (
|
|
|
56
55
|
openAutoFocus: () => !0,
|
|
57
56
|
closeAutoFocus: () => !0
|
|
58
57
|
},
|
|
59
|
-
setup(r, { expose:
|
|
60
|
-
const p = i(),
|
|
58
|
+
setup(r, { expose: B }) {
|
|
59
|
+
const p = i(), k = i(), c = i(), A = z(), {
|
|
61
60
|
visible: u,
|
|
62
61
|
titleId: m,
|
|
63
62
|
bodyId: y,
|
|
64
|
-
style:
|
|
65
|
-
overlayDialogStyle:
|
|
66
|
-
rendered:
|
|
67
|
-
zIndex:
|
|
68
|
-
afterEnter:
|
|
69
|
-
afterLeave:
|
|
70
|
-
beforeLeave:
|
|
71
|
-
handleClose:
|
|
72
|
-
onModalClick:
|
|
73
|
-
onOpenAutoFocus:
|
|
74
|
-
onCloseAutoFocus:
|
|
75
|
-
onCloseRequested:
|
|
76
|
-
onFocusoutPrevented:
|
|
77
|
-
} = te(
|
|
63
|
+
style: F,
|
|
64
|
+
overlayDialogStyle: w,
|
|
65
|
+
rendered: g,
|
|
66
|
+
zIndex: R,
|
|
67
|
+
afterEnter: E,
|
|
68
|
+
afterLeave: T,
|
|
69
|
+
beforeLeave: h,
|
|
70
|
+
handleClose: v,
|
|
71
|
+
onModalClick: I,
|
|
72
|
+
onOpenAutoFocus: M,
|
|
73
|
+
onCloseAutoFocus: $,
|
|
74
|
+
onCloseRequested: D,
|
|
75
|
+
onFocusoutPrevented: L
|
|
76
|
+
} = te(A.props, p);
|
|
78
77
|
O(le, {
|
|
79
78
|
dialogRef: p,
|
|
80
|
-
headerRef:
|
|
79
|
+
headerRef: k,
|
|
81
80
|
bodyId: y,
|
|
82
81
|
ns: d,
|
|
83
|
-
rendered:
|
|
84
|
-
style:
|
|
82
|
+
rendered: g,
|
|
83
|
+
style: F
|
|
85
84
|
});
|
|
86
|
-
const l = x(
|
|
87
|
-
return
|
|
85
|
+
const l = x(I), S = P(() => r.draggable && !r.fullscreen);
|
|
86
|
+
return B({
|
|
88
87
|
/** @description whether the dialog is visible */
|
|
89
88
|
visible: u,
|
|
90
89
|
dialogContentRef: c
|
|
91
|
-
}), (o, t) => (
|
|
90
|
+
}), (o, t) => (C(), b(N, {
|
|
92
91
|
to: "body",
|
|
93
92
|
disabled: !o.appendToBody
|
|
94
93
|
}, [
|
|
95
94
|
f(q, {
|
|
96
95
|
name: "dialog-fade",
|
|
97
|
-
onAfterEnter: e(
|
|
98
|
-
onAfterLeave: e(
|
|
99
|
-
onBeforeLeave: e(
|
|
96
|
+
onAfterEnter: e(E),
|
|
97
|
+
onAfterLeave: e(T),
|
|
98
|
+
onBeforeLeave: e(h)
|
|
100
99
|
}, {
|
|
101
100
|
default: a(() => [
|
|
102
101
|
j(f(e(X), {
|
|
103
102
|
"custom-mask-event": "",
|
|
104
103
|
mask: o.modal,
|
|
105
104
|
"overlay-class": o.modalClass,
|
|
106
|
-
"z-index": e(
|
|
105
|
+
"z-index": e(R)
|
|
107
106
|
}, {
|
|
108
107
|
default: a(() => [
|
|
109
108
|
K("div", {
|
|
@@ -113,7 +112,7 @@ const ae = ["aria-label", "aria-labelledby", "aria-describedby"], d = (
|
|
|
113
112
|
"aria-labelledby": o.title ? void 0 : e(m),
|
|
114
113
|
"aria-describedby": e(y),
|
|
115
114
|
class: U(`${e(d).namespace.value}-overlay-dialog`),
|
|
116
|
-
style: G(e(
|
|
115
|
+
style: G(e(w)),
|
|
117
116
|
onClick: t[0] || (t[0] = //@ts-ignore
|
|
118
117
|
(...s) => e(l).onClick && e(l).onClick(...s)),
|
|
119
118
|
onMousedown: t[1] || (t[1] = //@ts-ignore
|
|
@@ -125,13 +124,13 @@ const ae = ["aria-label", "aria-labelledby", "aria-describedby"], d = (
|
|
|
125
124
|
loop: "",
|
|
126
125
|
trapped: e(u),
|
|
127
126
|
"focus-start-el": "container",
|
|
128
|
-
onFocusAfterTrapped: e(
|
|
129
|
-
onFocusAfterReleased: e(
|
|
130
|
-
onFocusoutPrevented: e(
|
|
131
|
-
onReleaseRequested: e(
|
|
127
|
+
onFocusAfterTrapped: e(M),
|
|
128
|
+
onFocusAfterReleased: e($),
|
|
129
|
+
onFocusoutPrevented: e(L),
|
|
130
|
+
onReleaseRequested: e(D)
|
|
132
131
|
}, {
|
|
133
132
|
default: a(() => [
|
|
134
|
-
e(
|
|
133
|
+
e(g) ? (C(), b(oe, H({
|
|
135
134
|
key: 0,
|
|
136
135
|
ref_key: "dialogContentRef",
|
|
137
136
|
ref: c
|
|
@@ -140,16 +139,16 @@ const ae = ["aria-label", "aria-labelledby", "aria-describedby"], d = (
|
|
|
140
139
|
center: o.center,
|
|
141
140
|
"align-center": o.alignCenter,
|
|
142
141
|
"close-icon": o.closeIcon,
|
|
143
|
-
draggable:
|
|
142
|
+
draggable: S.value,
|
|
144
143
|
fullscreen: o.fullscreen,
|
|
145
144
|
"show-close": o.showClose,
|
|
146
145
|
title: o.title,
|
|
147
|
-
onClose: e(
|
|
146
|
+
onClose: e(v)
|
|
148
147
|
}), J({
|
|
149
148
|
header: a(() => [
|
|
150
149
|
o.$slots.title ? n(o.$slots, "title", { key: 1 }) : n(o.$slots, "header", {
|
|
151
150
|
key: 0,
|
|
152
|
-
close: e(
|
|
151
|
+
close: e(v),
|
|
153
152
|
titleId: e(m),
|
|
154
153
|
titleClass: e(d).e("title")
|
|
155
154
|
})
|
|
@@ -183,5 +182,5 @@ const ae = ["aria-label", "aria-labelledby", "aria-describedby"], d = (
|
|
|
183
182
|
}
|
|
184
183
|
});
|
|
185
184
|
export {
|
|
186
|
-
|
|
185
|
+
ke as default
|
|
187
186
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as d, computed as m, openBlock as i, createElementBlock as n, normalizeClass as a, unref as t, normalizeStyle as s, renderSlot as c, createCommentVNode as u } from "vue";
|
|
2
2
|
import { useNamespace as f } from "../../hooks/use-namespace/index.js";
|
|
3
3
|
import "@popperjs/core";
|
|
4
4
|
import "lodash";
|
|
@@ -9,10 +9,9 @@ import "../../utils/ns-cover.js";
|
|
|
9
9
|
const e = (
|
|
10
10
|
/* hoist-static*/
|
|
11
11
|
f("divider")
|
|
12
|
-
),
|
|
13
|
-
name: e.b()
|
|
14
|
-
|
|
15
|
-
...p,
|
|
12
|
+
), B = /* @__PURE__ */ d({
|
|
13
|
+
name: e.b(),
|
|
14
|
+
__name: "divider",
|
|
16
15
|
props: {
|
|
17
16
|
direction: { default: "horizontal" },
|
|
18
17
|
contentPosition: { default: "center" },
|
|
@@ -22,7 +21,7 @@ const e = (
|
|
|
22
21
|
marginX: {}
|
|
23
22
|
},
|
|
24
23
|
setup(o) {
|
|
25
|
-
const
|
|
24
|
+
const l = m(() => ({
|
|
26
25
|
...e.cssVarBlock({
|
|
27
26
|
"border-style": o.borderStyle,
|
|
28
27
|
"border-color": o.borderColor,
|
|
@@ -30,14 +29,14 @@ const e = (
|
|
|
30
29
|
"margin-x": o.marginX
|
|
31
30
|
})
|
|
32
31
|
}));
|
|
33
|
-
return (r,
|
|
34
|
-
class:
|
|
35
|
-
style: s(
|
|
32
|
+
return (r, p) => (i(), n("div", {
|
|
33
|
+
class: a([t(e).b(), t(e).m(r.direction)]),
|
|
34
|
+
style: s(l.value),
|
|
36
35
|
role: "separator"
|
|
37
36
|
}, [
|
|
38
37
|
r.$slots.default && r.direction !== "vertical" ? (i(), n("div", {
|
|
39
38
|
key: 0,
|
|
40
|
-
class:
|
|
39
|
+
class: a([t(e).e("text"), t(e).is(r.contentPosition)])
|
|
41
40
|
}, [
|
|
42
41
|
c(r.$slots, "default")
|
|
43
42
|
], 2)) : u("", !0)
|
|
@@ -45,5 +44,5 @@ const e = (
|
|
|
45
44
|
}
|
|
46
45
|
});
|
|
47
46
|
export {
|
|
48
|
-
|
|
47
|
+
B as default
|
|
49
48
|
};
|