vft 0.0.96 → 0.0.98
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/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 +36 -37
- 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 +7 -7
- package/theme-style/index.css +1 -1
- package/theme-style/src/table.scss +20 -15
- package/theme-style/vft-table.css +1 -1
- package/web-types.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as $, ref as E, computed as r, openBlock as s, createBlock as u, unref as n, withCtx as f, normalizeClass as S, createCommentVNode as h, createElementBlock as w, Fragment as H, renderList as N } from "vue";
|
|
2
2
|
import d from "dayjs";
|
|
3
3
|
import O from "dayjs/plugin/customParseFormat.js";
|
|
4
4
|
import b from "../select-v2/index.js";
|
|
@@ -12,45 +12,44 @@ import "@vueuse/core";
|
|
|
12
12
|
import "@vft/utils";
|
|
13
13
|
import "../../utils/ns-cover.js";
|
|
14
14
|
import { timeSelectProps as D } from "./time-select.js";
|
|
15
|
-
import { parseTime as a, formatTime as
|
|
15
|
+
import { parseTime as a, formatTime as m, compareTime as p, nextTime as L } from "./utils.js";
|
|
16
16
|
import { useFormDisabled as U } from "../form/hooks/use-form-common-props.js";
|
|
17
|
-
const
|
|
18
|
-
name: "ElTimeSelect"
|
|
19
|
-
|
|
20
|
-
...q,
|
|
17
|
+
const re = /* @__PURE__ */ $({
|
|
18
|
+
name: "ElTimeSelect",
|
|
19
|
+
__name: "time-select",
|
|
21
20
|
props: D,
|
|
22
21
|
emits: ["change", "blur", "focus", "update:modelValue"],
|
|
23
|
-
setup(
|
|
24
|
-
const o =
|
|
22
|
+
setup(v, { expose: T }) {
|
|
23
|
+
const o = v;
|
|
25
24
|
d.extend(O);
|
|
26
|
-
const { Option:
|
|
25
|
+
const { Option: k } = b, V = j("input"), i = E(), C = U(), I = r(() => o.modelValue), g = r(() => {
|
|
27
26
|
const e = a(o.start);
|
|
28
|
-
return e ?
|
|
27
|
+
return e ? m(e) : null;
|
|
29
28
|
}), c = r(() => {
|
|
30
29
|
const e = a(o.end);
|
|
31
|
-
return e ?
|
|
32
|
-
}),
|
|
30
|
+
return e ? m(e) : null;
|
|
31
|
+
}), y = r(() => {
|
|
33
32
|
const e = a(o.step);
|
|
34
|
-
return e ?
|
|
35
|
-
}),
|
|
33
|
+
return e ? m(e) : null;
|
|
34
|
+
}), z = r(() => {
|
|
36
35
|
const e = a(o.minTime || "");
|
|
37
|
-
return e ?
|
|
38
|
-
}),
|
|
36
|
+
return e ? m(e) : null;
|
|
37
|
+
}), B = r(() => {
|
|
39
38
|
const e = a(o.maxTime || "");
|
|
40
|
-
return e ?
|
|
41
|
-
}),
|
|
39
|
+
return e ? m(e) : null;
|
|
40
|
+
}), F = r(() => {
|
|
42
41
|
const e = [];
|
|
43
42
|
if (o.start && o.end && o.step) {
|
|
44
|
-
let l =
|
|
43
|
+
let l = g.value, t;
|
|
45
44
|
for (; l && c.value && p(l, c.value) <= 0; )
|
|
46
45
|
t = d(l, "HH:mm").format(o.format), e.push({
|
|
47
46
|
value: t,
|
|
48
|
-
disabled: p(l,
|
|
49
|
-
}), l = L(l,
|
|
47
|
+
disabled: p(l, z.value || "-1:-1") <= 0 || p(l, B.value || "100:100") >= 0
|
|
48
|
+
}), l = L(l, y.value);
|
|
50
49
|
}
|
|
51
50
|
return e;
|
|
52
51
|
});
|
|
53
|
-
return
|
|
52
|
+
return T({
|
|
54
53
|
blur: () => {
|
|
55
54
|
var e, l;
|
|
56
55
|
(l = (e = i.value) == null ? void 0 : e.blur) == null || l.call(e);
|
|
@@ -59,11 +58,11 @@ const q = v({
|
|
|
59
58
|
var e, l;
|
|
60
59
|
(l = (e = i.value) == null ? void 0 : e.focus) == null || l.call(e);
|
|
61
60
|
}
|
|
62
|
-
}), (e, l) => (
|
|
61
|
+
}), (e, l) => (s(), u(n(b), {
|
|
63
62
|
ref_key: "select",
|
|
64
63
|
ref: i,
|
|
65
|
-
"model-value":
|
|
66
|
-
disabled: n(
|
|
64
|
+
"model-value": I.value,
|
|
65
|
+
disabled: n(C),
|
|
67
66
|
clearable: e.clearable,
|
|
68
67
|
"clear-icon": e.clearIcon,
|
|
69
68
|
size: e.size,
|
|
@@ -77,14 +76,14 @@ const q = v({
|
|
|
77
76
|
onFocus: l[3] || (l[3] = (t) => e.$emit("focus", t))
|
|
78
77
|
}, {
|
|
79
78
|
prefix: f(() => [
|
|
80
|
-
e.prefixIcon ? (
|
|
79
|
+
e.prefixIcon ? (s(), u(n(P), {
|
|
81
80
|
key: 0,
|
|
82
81
|
icon: e.prefixIcon,
|
|
83
|
-
class: S(n(
|
|
82
|
+
class: S(n(V).e("prefix-icon"))
|
|
84
83
|
}, null, 8, ["icon", "class"])) : h("", !0)
|
|
85
84
|
]),
|
|
86
85
|
default: f(() => [
|
|
87
|
-
(
|
|
86
|
+
(s(!0), w(H, null, N(F.value, (t) => (s(), u(n(k), {
|
|
88
87
|
key: t.value,
|
|
89
88
|
label: t.value,
|
|
90
89
|
value: t.value,
|
|
@@ -96,5 +95,5 @@ const q = v({
|
|
|
96
95
|
}
|
|
97
96
|
});
|
|
98
97
|
export {
|
|
99
|
-
|
|
98
|
+
re as default
|
|
100
99
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as U, ref as v, inject as W, computed as n, onBeforeUnmount as Y, unref as t, watch as y, openBlock as b, createBlock as h, Teleport as q, createVNode as F, Transition as G, withCtx as C, withDirectives as Q, mergeProps as X, renderSlot as Z, createCommentVNode as B, vShow as x } from "vue";
|
|
2
2
|
import { useNamespace as _ } from "../../hooks/use-namespace/index.js";
|
|
3
3
|
import "@popperjs/core";
|
|
4
4
|
import "lodash";
|
|
@@ -11,11 +11,10 @@ import { usePopperContainerId as te } from "../../hooks/use-popper-container/ind
|
|
|
11
11
|
import "../popper/index.js";
|
|
12
12
|
import { TOOLTIP_INJECTION_KEY as oe } from "./constants.js";
|
|
13
13
|
import ne from "../popper/content.vue2.js";
|
|
14
|
-
const
|
|
14
|
+
const ye = /* @__PURE__ */ U({
|
|
15
15
|
name: "VftTooltipContent",
|
|
16
|
-
inheritAttrs: !1
|
|
17
|
-
|
|
18
|
-
...re,
|
|
16
|
+
inheritAttrs: !1,
|
|
17
|
+
__name: "content",
|
|
19
18
|
props: {
|
|
20
19
|
boundariesPadding: { default: 0 },
|
|
21
20
|
fallbackPlacements: {},
|
|
@@ -50,38 +49,38 @@ const re = E({
|
|
|
50
49
|
teleported: { type: Boolean, default: !0 },
|
|
51
50
|
disabled: { type: Boolean }
|
|
52
51
|
},
|
|
53
|
-
setup(o, { expose:
|
|
54
|
-
const { selector:
|
|
52
|
+
setup(o, { expose: E }) {
|
|
53
|
+
const { selector: k } = te(), P = _("tooltip"), a = v(null), d = v(!1), {
|
|
55
54
|
controlled: c,
|
|
56
|
-
id:
|
|
55
|
+
id: w,
|
|
57
56
|
open: l,
|
|
58
57
|
trigger: i,
|
|
59
58
|
onClose: s,
|
|
60
|
-
onOpen:
|
|
61
|
-
onShow:
|
|
62
|
-
onHide:
|
|
59
|
+
onOpen: O,
|
|
60
|
+
onShow: A,
|
|
61
|
+
onHide: N,
|
|
63
62
|
onBeforeShow: u,
|
|
64
63
|
onBeforeHide: f
|
|
65
|
-
} = W(oe, void 0),
|
|
64
|
+
} = W(oe, void 0), S = n(() => o.transition ?? `${P.namespace.value}-fade-in-linear`), L = n(() => process.env.NODE_ENV === "test" ? !0 : o.persistent);
|
|
66
65
|
Y(() => {
|
|
67
66
|
d.value = !0;
|
|
68
67
|
});
|
|
69
|
-
const
|
|
70
|
-
|
|
68
|
+
const I = n(() => t(L) ? !0 : t(l)), m = n(() => o.disabled ? !1 : t(l)), $ = n(() => o.appendTo || k.value), M = n(() => o.style ?? {}), R = n(() => !t(l)), z = () => {
|
|
69
|
+
N();
|
|
71
70
|
}, g = () => {
|
|
72
71
|
if (t(c))
|
|
73
72
|
return !0;
|
|
74
|
-
},
|
|
75
|
-
o.enterable && t(i) === "hover" &&
|
|
76
|
-
}),
|
|
73
|
+
}, V = T(g, () => {
|
|
74
|
+
o.enterable && t(i) === "hover" && O();
|
|
75
|
+
}), D = T(g, () => {
|
|
77
76
|
t(i) === "hover" && s();
|
|
78
|
-
}),
|
|
77
|
+
}), j = () => {
|
|
79
78
|
var e, r;
|
|
80
79
|
(r = (e = a.value) == null ? void 0 : e.updatePopper) == null || r.call(e), u == null || u();
|
|
81
|
-
},
|
|
80
|
+
}, H = () => {
|
|
82
81
|
f == null || f();
|
|
83
|
-
},
|
|
84
|
-
|
|
82
|
+
}, J = () => {
|
|
83
|
+
A(), p = ee(
|
|
85
84
|
n(() => {
|
|
86
85
|
var e;
|
|
87
86
|
return (e = a.value) == null ? void 0 : e.popperContentRef;
|
|
@@ -92,7 +91,7 @@ const re = E({
|
|
|
92
91
|
t(i) !== "hover" && s();
|
|
93
92
|
}
|
|
94
93
|
);
|
|
95
|
-
},
|
|
94
|
+
}, K = () => {
|
|
96
95
|
o.virtualTriggering || s();
|
|
97
96
|
};
|
|
98
97
|
let p;
|
|
@@ -110,31 +109,31 @@ const re = E({
|
|
|
110
109
|
var e, r;
|
|
111
110
|
(r = (e = a.value) == null ? void 0 : e.updatePopper) == null || r.call(e);
|
|
112
111
|
}
|
|
113
|
-
),
|
|
112
|
+
), E({
|
|
114
113
|
/**
|
|
115
114
|
* @description el-popper-content component instance
|
|
116
115
|
*/
|
|
117
116
|
contentRef: a
|
|
118
117
|
}), (e, r) => (b(), h(q, {
|
|
119
118
|
disabled: !e.teleported,
|
|
120
|
-
to:
|
|
119
|
+
to: $.value
|
|
121
120
|
}, [
|
|
122
121
|
F(G, {
|
|
123
|
-
name:
|
|
124
|
-
onAfterLeave:
|
|
125
|
-
onBeforeEnter:
|
|
126
|
-
onAfterEnter:
|
|
127
|
-
onBeforeLeave:
|
|
122
|
+
name: S.value,
|
|
123
|
+
onAfterLeave: z,
|
|
124
|
+
onBeforeEnter: j,
|
|
125
|
+
onAfterEnter: J,
|
|
126
|
+
onBeforeLeave: H
|
|
128
127
|
}, {
|
|
129
128
|
default: C(() => [
|
|
130
|
-
|
|
129
|
+
I.value ? Q((b(), h(t(ne), X({
|
|
131
130
|
key: 0,
|
|
132
|
-
id: t(
|
|
131
|
+
id: t(w),
|
|
133
132
|
ref_key: "contentRef",
|
|
134
133
|
ref: a
|
|
135
134
|
}, e.$attrs, {
|
|
136
135
|
"aria-label": e.ariaLabel,
|
|
137
|
-
"aria-hidden":
|
|
136
|
+
"aria-hidden": R.value,
|
|
138
137
|
"boundaries-padding": e.boundariesPadding,
|
|
139
138
|
"fallback-placements": e.fallbackPlacements,
|
|
140
139
|
"gpu-acceleration": e.gpuAcceleration,
|
|
@@ -146,14 +145,14 @@ const re = E({
|
|
|
146
145
|
enterable: e.enterable,
|
|
147
146
|
pure: e.pure,
|
|
148
147
|
"popper-class": e.popperClass,
|
|
149
|
-
"popper-style": [e.popperStyle,
|
|
148
|
+
"popper-style": [e.popperStyle, M.value],
|
|
150
149
|
"reference-el": e.referenceEl,
|
|
151
150
|
"trigger-target-el": e.triggerTargetEl,
|
|
152
151
|
visible: m.value,
|
|
153
152
|
"z-index": e.zIndex,
|
|
154
|
-
onMouseenter: t(
|
|
155
|
-
onMouseleave: t(
|
|
156
|
-
onBlur:
|
|
153
|
+
onMouseenter: t(V),
|
|
154
|
+
onMouseleave: t(D),
|
|
155
|
+
onBlur: K,
|
|
157
156
|
onClose: t(s)
|
|
158
157
|
}), {
|
|
159
158
|
default: C(() => [
|
|
@@ -170,5 +169,5 @@ const re = E({
|
|
|
170
169
|
}
|
|
171
170
|
});
|
|
172
171
|
export {
|
|
173
|
-
|
|
172
|
+
ye as default
|
|
174
173
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as P, ref as l, computed as I, provide as S, readonly as M, unref as p, watch as N, onDeactivated as $, openBlock as i, createBlock as h, withCtx as m, createVNode as b, renderSlot as w, createCommentVNode as v, createElementBlock as B, toDisplayString as H } from "vue";
|
|
2
2
|
import { EVENT_CODE as C } from "@vft/constants";
|
|
3
3
|
import { VftPopper as L } from "../popper/index.js";
|
|
4
4
|
import { isBoolean as z } from "@vft/utils";
|
|
@@ -16,10 +16,9 @@ import J from "./trigger.vue2.js";
|
|
|
16
16
|
import U from "./content.vue2.js";
|
|
17
17
|
import { useTooltipModelToggle as Y } from "./utils.js";
|
|
18
18
|
import j from "../popper/arrow.vue2.js";
|
|
19
|
-
const q = ["innerHTML"], G = { key: 1 },
|
|
20
|
-
name: "vft-tooltip"
|
|
21
|
-
|
|
22
|
-
...Q,
|
|
19
|
+
const q = ["innerHTML"], G = { key: 1 }, ue = /* @__PURE__ */ P({
|
|
20
|
+
name: "vft-tooltip",
|
|
21
|
+
__name: "tooltip",
|
|
23
22
|
props: {
|
|
24
23
|
role: { default: "tooltip" },
|
|
25
24
|
showArrow: { type: Boolean, default: !0 },
|
|
@@ -70,24 +69,24 @@ const q = ["innerHTML"], G = { key: 1 }, Q = k({
|
|
|
70
69
|
triggerKeys: { default: [C.enter, C.space] }
|
|
71
70
|
},
|
|
72
71
|
emits: ["before-show", "before-hide", "show", "hide", "open", "close"],
|
|
73
|
-
setup(r, { expose:
|
|
72
|
+
setup(r, { expose: k, emit: a }) {
|
|
74
73
|
K();
|
|
75
|
-
const
|
|
74
|
+
const T = D(), s = l(), f = l(), c = () => {
|
|
76
75
|
var t;
|
|
77
76
|
const e = p(s);
|
|
78
77
|
e && ((t = e.popperInstanceRef) == null || t.update());
|
|
79
|
-
}, o = l(!1), n = l(), { show:
|
|
78
|
+
}, o = l(!1), n = l(), { show: A, hide: d, hasUpdateHandler: E } = Y({
|
|
80
79
|
indicator: o,
|
|
81
80
|
toggleReason: n
|
|
82
81
|
}), { onOpen: u, onClose: g } = V({
|
|
83
82
|
showAfter: r.showAfter,
|
|
84
83
|
hideAfter: r.hideAfter,
|
|
85
|
-
open:
|
|
84
|
+
open: A,
|
|
86
85
|
close: d
|
|
87
|
-
}),
|
|
86
|
+
}), O = I(() => z(r.visible) && !E.value);
|
|
88
87
|
S(F, {
|
|
89
|
-
controlled:
|
|
90
|
-
id:
|
|
88
|
+
controlled: O,
|
|
89
|
+
id: T,
|
|
91
90
|
open: M(o),
|
|
92
91
|
trigger: r.trigger,
|
|
93
92
|
onOpen: (e) => {
|
|
@@ -118,12 +117,12 @@ const q = ["innerHTML"], G = { key: 1 }, Q = k({
|
|
|
118
117
|
e && o.value && (o.value = !1);
|
|
119
118
|
}
|
|
120
119
|
);
|
|
121
|
-
const
|
|
120
|
+
const R = () => {
|
|
122
121
|
var t, y;
|
|
123
122
|
const e = (y = (t = f.value) == null ? void 0 : t.contentRef) == null ? void 0 : y.popperContentRef;
|
|
124
123
|
return e && e.contains(document.activeElement);
|
|
125
124
|
};
|
|
126
|
-
return $(() => o.value && d()),
|
|
125
|
+
return $(() => o.value && d()), k({
|
|
127
126
|
/**
|
|
128
127
|
* @description el-popper component instance
|
|
129
128
|
*/
|
|
@@ -135,7 +134,7 @@ const q = ["innerHTML"], G = { key: 1 }, Q = k({
|
|
|
135
134
|
/**
|
|
136
135
|
* @description validate current focus event is trigger inside el-tooltip-content
|
|
137
136
|
*/
|
|
138
|
-
isFocusInsideContent:
|
|
137
|
+
isFocusInsideContent: R,
|
|
139
138
|
/**
|
|
140
139
|
* @description update el-popper component instance
|
|
141
140
|
*/
|
|
@@ -220,5 +219,5 @@ const q = ["innerHTML"], G = { key: 1 }, Q = k({
|
|
|
220
219
|
}
|
|
221
220
|
});
|
|
222
221
|
export {
|
|
223
|
-
|
|
222
|
+
ue as default
|
|
224
223
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { EVENT_CODE as
|
|
1
|
+
import { defineComponent as E, inject as K, ref as O, openBlock as w, createBlock as x, unref as o, normalizeClass as b, withCtx as D, renderSlot as N } from "vue";
|
|
2
|
+
import { EVENT_CODE as a } from "@vft/constants";
|
|
3
3
|
import "../popper/index.js";
|
|
4
4
|
import "@vft/utils";
|
|
5
5
|
import "lodash";
|
|
6
6
|
import "@vueuse/core";
|
|
7
|
-
import { composeEventHandlers as
|
|
7
|
+
import { composeEventHandlers as n } from "../../utils/event.js";
|
|
8
8
|
import "../../utils/ns-cover.js";
|
|
9
9
|
import { useNamespace as F } from "../../hooks/use-namespace/index.js";
|
|
10
10
|
import "@popperjs/core";
|
|
@@ -12,71 +12,70 @@ import "../../hooks/use-z-index/index.js";
|
|
|
12
12
|
import { TOOLTIP_INJECTION_KEY as I } from "./constants.js";
|
|
13
13
|
import { whenTrigger as i } from "./utils.js";
|
|
14
14
|
import R from "../popper/trigger.vue2.js";
|
|
15
|
-
const
|
|
16
|
-
name: "VftTooltipTrigger"
|
|
17
|
-
|
|
18
|
-
...V,
|
|
15
|
+
const Q = /* @__PURE__ */ E({
|
|
16
|
+
name: "VftTooltipTrigger",
|
|
17
|
+
__name: "trigger",
|
|
19
18
|
props: {
|
|
20
19
|
disabled: { type: Boolean },
|
|
21
20
|
trigger: { default: "hover" },
|
|
22
|
-
triggerKeys: { default: [
|
|
21
|
+
triggerKeys: { default: [a.enter, a.space] },
|
|
23
22
|
virtualRef: {},
|
|
24
23
|
virtualTriggering: { type: Boolean }
|
|
25
24
|
},
|
|
26
|
-
setup(t, { expose:
|
|
27
|
-
const m = F("tooltip"), { controlled:
|
|
25
|
+
setup(t, { expose: c }) {
|
|
26
|
+
const m = F("tooltip"), { controlled: f, id: d, open: p, onOpen: s, onClose: u, onToggle: l } = K(
|
|
28
27
|
I,
|
|
29
28
|
void 0
|
|
30
|
-
),
|
|
31
|
-
if (o(
|
|
29
|
+
), v = O(null), r = () => {
|
|
30
|
+
if (o(f) || t.disabled)
|
|
32
31
|
return !0;
|
|
33
|
-
},
|
|
34
|
-
|
|
32
|
+
}, C = n(
|
|
33
|
+
r,
|
|
35
34
|
i(t.trigger, "hover", s)
|
|
36
|
-
),
|
|
37
|
-
|
|
35
|
+
), T = n(
|
|
36
|
+
r,
|
|
38
37
|
i(t.trigger, "hover", u)
|
|
39
|
-
),
|
|
40
|
-
|
|
38
|
+
), h = n(
|
|
39
|
+
r,
|
|
41
40
|
i(t.trigger, "click", (e) => {
|
|
42
41
|
e.button === 0 && l(e);
|
|
43
42
|
})
|
|
44
|
-
),
|
|
45
|
-
|
|
43
|
+
), y = n(
|
|
44
|
+
r,
|
|
46
45
|
i(t.trigger, "focus", s)
|
|
47
|
-
),
|
|
48
|
-
|
|
46
|
+
), B = n(
|
|
47
|
+
r,
|
|
49
48
|
i(t.trigger, "focus", u)
|
|
50
|
-
),
|
|
51
|
-
|
|
49
|
+
), M = n(
|
|
50
|
+
r,
|
|
52
51
|
i(t.trigger, "contextmenu", (e) => {
|
|
53
52
|
e.preventDefault(), l(e);
|
|
54
53
|
})
|
|
55
|
-
),
|
|
56
|
-
|
|
54
|
+
), k = n(
|
|
55
|
+
r,
|
|
57
56
|
(e) => {
|
|
58
57
|
const { code: g } = e;
|
|
59
58
|
t.triggerKeys.includes(g) && (e.preventDefault(), l(e));
|
|
60
59
|
}
|
|
61
60
|
);
|
|
62
|
-
return
|
|
61
|
+
return c({
|
|
63
62
|
/**
|
|
64
63
|
* @description trigger element
|
|
65
64
|
*/
|
|
66
|
-
triggerRef:
|
|
65
|
+
triggerRef: v
|
|
67
66
|
}), (e, g) => (w(), x(o(R), {
|
|
68
|
-
id: o(
|
|
67
|
+
id: o(d),
|
|
69
68
|
"virtual-ref": e.virtualRef,
|
|
70
|
-
open: o(
|
|
69
|
+
open: o(p),
|
|
71
70
|
"virtual-triggering": e.virtualTriggering,
|
|
72
71
|
class: b(o(m).e("trigger")),
|
|
73
|
-
onBlur: o(
|
|
74
|
-
onClick: o(
|
|
75
|
-
onContextmenu: o(
|
|
76
|
-
onFocus: o(
|
|
77
|
-
onMouseenter: o(
|
|
78
|
-
onMouseleave: o(
|
|
79
|
-
onKeydown: o(
|
|
72
|
+
onBlur: o(B),
|
|
73
|
+
onClick: o(h),
|
|
74
|
+
onContextmenu: o(M),
|
|
75
|
+
onFocus: o(y),
|
|
76
|
+
onMouseenter: o(C),
|
|
77
|
+
onMouseleave: o(T),
|
|
78
|
+
onKeydown: o(k)
|
|
80
79
|
}, {
|
|
81
80
|
default: D(() => [
|
|
82
81
|
N(e.$slots, "default")
|
|
@@ -86,5 +85,5 @@ const V = a({
|
|
|
86
85
|
}
|
|
87
86
|
});
|
|
88
87
|
export {
|
|
89
|
-
|
|
88
|
+
Q as default
|
|
90
89
|
};
|
|
@@ -1,46 +1,45 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useNamespace as
|
|
1
|
+
import { defineComponent as f, computed as p, openBlock as c, createElementBlock as l, normalizeStyle as u, createElementVNode as g, unref as r } from "vue";
|
|
2
|
+
import { useNamespace as y } from "../../hooks/use-namespace/index.js";
|
|
3
3
|
import "@popperjs/core";
|
|
4
4
|
import "lodash";
|
|
5
5
|
import "../../hooks/use-z-index/index.js";
|
|
6
6
|
import "@vueuse/core";
|
|
7
7
|
import { addUnit as m } from "@vft/utils";
|
|
8
8
|
import "../../utils/ns-cover.js";
|
|
9
|
-
import
|
|
10
|
-
const
|
|
9
|
+
import w from "./useImageVerify.js";
|
|
10
|
+
const v = ["width", "height"], k = (
|
|
11
11
|
/* hoist-static*/
|
|
12
|
-
|
|
13
|
-
),
|
|
14
|
-
name: k.b()
|
|
15
|
-
|
|
16
|
-
...v,
|
|
12
|
+
y("verify-code")
|
|
13
|
+
), x = /* @__PURE__ */ f({
|
|
14
|
+
name: k.b(),
|
|
15
|
+
__name: "verify-code",
|
|
17
16
|
props: {
|
|
18
17
|
height: { default: 40 },
|
|
19
18
|
width: { default: 150 }
|
|
20
19
|
},
|
|
21
|
-
setup(t, { expose:
|
|
22
|
-
const
|
|
20
|
+
setup(t, { expose: n }) {
|
|
21
|
+
const d = p(() => ({
|
|
23
22
|
width: m(t.width),
|
|
24
23
|
height: m(t.height)
|
|
25
|
-
})), { domRef:
|
|
26
|
-
return
|
|
24
|
+
})), { domRef: s, imgCode: h, getImgCode: e } = w();
|
|
25
|
+
return n({
|
|
27
26
|
getImgCode: e,
|
|
28
|
-
code:
|
|
29
|
-
}), (o, i) => (
|
|
30
|
-
style: u(
|
|
27
|
+
code: h
|
|
28
|
+
}), (o, i) => (c(), l("div", {
|
|
29
|
+
style: u(d.value)
|
|
31
30
|
}, [
|
|
32
31
|
g("canvas", {
|
|
33
32
|
ref_key: "domRef",
|
|
34
|
-
ref:
|
|
33
|
+
ref: s,
|
|
35
34
|
width: o.width,
|
|
36
35
|
height: o.height,
|
|
37
36
|
class: "cursor-pointer",
|
|
38
37
|
onClick: i[0] || (i[0] = //@ts-ignore
|
|
39
|
-
(...
|
|
40
|
-
}, null, 8,
|
|
38
|
+
(...a) => r(e) && r(e)(...a))
|
|
39
|
+
}, null, 8, v)
|
|
41
40
|
], 4));
|
|
42
41
|
}
|
|
43
42
|
});
|
|
44
43
|
export {
|
|
45
|
-
|
|
44
|
+
x as default
|
|
46
45
|
};
|
package/es/constants/date.js
CHANGED
package/es/package.json.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),f=require("@vueuse/core"),z=require("@vft/utils"),$=require("../../utils/error.cjs");require("lodash");require("../../utils/ns-cover.cjs");const C=require("../../utils/dom/scroll.cjs"),B=require("../../hooks/use-namespace/index.cjs");require("@popperjs/core");require("../../hooks/use-z-index/index.cjs");const E=require("./affix.cjs"),q="ElAffix",M=e.defineComponent({name:q,__name:"affix",props:E.affixProps,emits:E.affixEmits,setup(S,{expose:y,emit:d}){const t=S,p=B.useNamespace("affix"),a=e.shallowRef(),c=e.shallowRef(),r=e.shallowRef(),{height:s}=f.useWindowSize(),{height:n,width:m,top:h,bottom:g,update:v}=f.useElementBounding(c,{windowScroll:!1}),u=f.useElementBounding(a),l=e.ref(!1),x=e.ref(0),i=e.ref(0),_=e.computed(()=>({height:l.value?`${n.value}px`:"",width:l.value?`${m.value}px`:""})),b=e.computed(()=>{if(!l.value)return{};const o=t.offset?z.addUnit(t.offset):0;return{height:`${n.value}px`,width:`${m.value}px`,top:t.position==="top"?o:"",bottom:t.position==="bottom"?o:"",transform:i.value?`translateY(${i.value}px)`:"",zIndex:t.zIndex}}),w=()=>{if(r.value)if(x.value=r.value instanceof Window?document.documentElement.scrollTop:r.value.scrollTop||0,t.position==="top")if(t.target){const o=u.bottom.value-t.offset-n.value;l.value=t.offset>h.value&&u.bottom.value>0,i.value=o<0?o:0}else l.value=t.offset>h.value;else if(t.target){const o=s.value-u.top.value-t.offset-n.value;l.value=s.value-t.offset<g.value&&s.value>u.top.value,i.value=o<0?-o:0}else l.value=s.value-t.offset<g.value},T=()=>{v(),d("scroll",{scrollTop:x.value,fixed:l.value})};return e.watch(l,o=>d("change",o)),e.onMounted(()=>{t.target?(a.value=document.querySelector(t.target)??void 0,a.value||$.throwError(q,`Target is not existed: ${t.target}`)):a.value=document.documentElement,r.value=C.getScrollContainer(c.value,!0),v()}),f.useEventListener(r,"scroll",T),e.watchEffect(w),y({update:w,updateRoot:v}),(o,N)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"root",ref:c,class:e.normalizeClass(e.unref(p).b()),style:e.normalizeStyle(_.value)},[e.createElementVNode("div",{class:e.normalizeClass({[e.unref(p).m("fixed")]:l.value}),style:e.normalizeStyle(b.value)},[e.renderSlot(o.$slots,"default")],6)],6))}});exports.default=M;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("../icon/index.cjs"),f=require("../../hooks/use-namespace/index.cjs");require("@popperjs/core");require("lodash");require("../../hooks/use-z-index/index.cjs");require("@vueuse/core");require("@vft/utils");require("../../utils/ns-cover.cjs");const o=f.useNamespace("alert"),m=e.defineComponent({name:o.b()
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("../icon/index.cjs"),f=require("../../hooks/use-namespace/index.cjs");require("@popperjs/core");require("lodash");require("../../hooks/use-z-index/index.cjs");require("@vueuse/core");require("@vft/utils");require("../../utils/ns-cover.cjs");const o=f.useNamespace("alert"),m=e.defineComponent({name:o.b(),__name:"alert",props:{title:{default:""},description:{default:""},type:{default:"info"},closable:{type:Boolean,default:!0},closeText:{default:""},showIcon:{type:Boolean},center:{type:Boolean},effect:{default:"light"}},emits:{close:l=>l instanceof MouseEvent},setup(l,{emit:i}){const n=e.useSlots(),s=e.ref(!0),r=e.computed(()=>l.type),u=e.computed(()=>[o.e("icon"),{[o.is("big")]:!!l.description||!!n.default}]),d=e.computed(()=>({[o.is("bold")]:l.description||n.default})),a=t=>{s.value=!1,i("close",t)};return(t,p)=>(e.openBlock(),e.createBlock(e.Transition,{name:e.unref(o).b("fade")},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass([e.unref(o).b(),e.unref(o).m(t.type),e.unref(o).is("center",t.center),e.unref(o).is(t.effect)]),role:"alert"},[t.showIcon&&r.value?(e.openBlock(),e.createBlock(e.unref(c.VftIcon),{key:0,class:e.normalizeClass(u.value),icon:r.value},null,8,["class","icon"])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(e.unref(o).e("content"))},[t.title||t.$slots.title?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass([e.unref(o).e("title"),d.value])},[e.renderSlot(t.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(t.title),1)])],2)):e.createCommentVNode("",!0),t.$slots.default||t.description?(e.openBlock(),e.createElementBlock("p",{key:1,class:e.normalizeClass(e.unref(o).e("description"))},[e.renderSlot(t.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(t.description),1)])],2)):e.createCommentVNode("",!0),t.closable?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[t.closeText?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([e.unref(o).e("close-btn"),e.unref(o).is("customed")]),onClick:a},e.toDisplayString(t.closeText),3)):(e.openBlock(),e.createBlock(e.unref(c.VftIcon),{key:1,class:e.normalizeClass(e.unref(o).e("close-btn")),onClick:a,icon:t.CloseIcon},null,8,["class","icon"]))],64)):e.createCommentVNode("",!0)],2)],2),[[e.vShow,s.value]])]),_:3},8,["name"]))}});exports.default=m;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),m=require("@vft/utils");require("../divider/index.cjs");const d=require("../icon/index.cjs");require("../avatar/index.cjs");require("../empty/index.cjs");require("../result/index.cjs");require("../tabs/index.cjs");require("../popper/index.cjs");require("../collapse-transition/index.cjs");require("../tooltip/index.cjs");require("../popover/index.cjs");require("../menu/index.cjs");require("../context-menu/context-menu.vue2.cjs");require("../multiple-tabs/index.cjs");require("../header-layout/index.cjs");require("../footer-layout/index.cjs");require("../iframe-layout/index.cjs");require("../router-view-content/index.cjs");require("../logo/index.cjs");require("./index.cjs");require("../container/index.cjs");require("../config-provider/index.cjs");require("../descriptions/index.cjs");require("../full-screen/index.cjs");require("../icon-text/index.cjs");require("../image/index.cjs");require("../input/index.cjs");require("../link/index.cjs");require("../pagination/index.cjs");require("../tag/index.cjs");require("../side-menu/index.cjs");require("../qrcode/index.cjs");require("../overlay/index.cjs");require("../clamp/index.cjs");require("../clamp-toggle/index.cjs");require("../page-wrapper/index.cjs");require("../exception/index.cjs");require("../search/index.cjs");require("../form/index.cjs");require("../button/index.cjs");require("../checkbox/index.cjs");require("../radio/index.cjs");require("../switch/index.cjs");require("../color-picker/index.cjs");require("../scrollbar/index.cjs");require("../dropdown/index.cjs");require("../virtual-list/components/fixed-size-list.cjs");require("../virtual-list/components/dynamic-size-list.cjs");require("../virtual-list/components/fixed-size-grid.cjs");require("../virtual-list/components/dynamic-size-grid.cjs");require("../virtual-list/props.cjs");require("../select-v2/index.cjs");require("../select/index.cjs");require("../tree-select/index.cjs");require("../verify-code/index.cjs");require("../table/index.cjs");require("../image-viewer/index.cjs");require("../list-cell/index.cjs");require("../dialog/index.cjs");require("../date-time-select/index.cjs");require("../col/index.cjs");require("../row/index.cjs");require("../horizontal-menu/index.cjs");require("../time-picker/index.cjs");require("../date-picker/index.cjs");require("../check-tag/index.cjs");require("../tree/index.cjs");require("../skeleton/index.cjs");require("../space/index.cjs");require("../card/index.cjs");require("../popconfirm/index.cjs");require("../alert/index.cjs");require("../md-container/index.cjs");require("../md-comment/index.cjs");require("../md-tabs/index.cjs");require("../md-vue-playground/index.cjs");require("../md-code-demo/index.cjs");require("../md-code-tabs/index.cjs");require("../message/index.cjs");const p=require("../../hooks/use-namespace/index.cjs");require("@popperjs/core");require("lodash");require("../../hooks/use-z-index/index.cjs");require("@vueuse/core");require("../../utils/ns-cover.cjs");const f=require("./use-backtop.cjs"),i=p.useNamespace("backtop"),k=e.defineComponent({name:i.b(),__name:"backtop",props:{visibilityHeight:{default:200},target:{},right:{default:40},bottom:{default:40},icon:{default:"ico-bx:arrow-to-top"},scrollTargetKey:{}},emits:["click"],setup(u,{emit:n}){const c=e.getCurrentInstance(),{handleClick:q,visible:a}=f.useBackTop(c.props,n,i.b()),l=e.computed(()=>({right:`${u.right}px`,bottom:`${u.bottom}px`})),t=e.computed(()=>m.singleAttrToObj(u.icon,"icon",{size:25}));return(s,o)=>(e.openBlock(),e.createBlock(e.Transition,{name:`${e.unref(i).namespace}-fade-in`},{default:e.withCtx(()=>[e.unref(a)?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.value),class:e.normalizeClass(e.unref(i).b()),onClick:o[0]||(o[0]=e.withModifiers((...r)=>e.unref(q)&&e.unref(q)(...r),["stop"]))},[e.renderSlot(s.$slots,"default",{},()=>{var r;return[(r=t.value)!=null&&r.icon?(e.openBlock(),e.createBlock(e.unref(d.VftIcon),e.normalizeProps(e.mergeProps({key:0},t.value)),null,16)):e.createCommentVNode("",!0)]})],6)):e.createCommentVNode("",!0)]),_:3},8,["name"]))}});exports.default=k;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("../../hooks/use-namespace/index.cjs");require("@popperjs/core");require("lodash");require("../../hooks/use-z-index/index.cjs");require("@vueuse/core");require("@vft/utils");require("../../utils/ns-cover.cjs");const s=require("./constants.cjs"),i=e.defineComponent({name:"VtfButtonGroup",__name:"button-group",props:{size:{},type:{}},setup(r){const t=r;e.provide(s.buttonGroupContextKey,e.reactive({size:e.toRef(t,"size"),type:e.toRef(t,"type")}));const o=n.useNamespace("button");return(u,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`${e.unref(o).b("group")}`)},[e.renderSlot(u.$slots,"default")],2))}});exports.default=i;
|