vft 0.0.451 → 0.0.454
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/attributes.json +1 -1
- package/dist/index.css +1 -1
- package/es/components/affix/affix.vue2.js +1 -1
- package/es/components/alert/alert.vue.d.ts +2 -1
- package/es/components/alert/alert.vue2.js +1 -1
- package/es/components/autocomplete/autocomplete.vue.d.ts +3 -2
- package/es/components/autocomplete/autocomplete.vue2.js +18 -18
- package/es/components/avatar/avatar.vue.d.ts +1 -1
- package/es/components/button/button-group.vue.d.ts +1 -1
- package/es/components/button/button-group.vue2.js +1 -1
- package/es/components/carousel/carousel.vue2.js +1 -1
- package/es/components/carousel/use-carousel.js +1 -1
- package/es/components/cascader/cascader.vue2.js +4 -7
- package/es/components/cascader-panel/node.vue2.js +1 -1
- package/es/components/check-tag/check-tag.vue2.js +2 -2
- package/es/components/checkbox/checkbox-group.vue.d.ts +1 -1
- package/es/components/clamp-toggle/clamp-toggle.vue2.js +1 -1
- package/es/components/col/col.vue2.js +6 -6
- package/es/components/color-picker/color-picker.vue.d.ts +1 -1
- package/es/components/color-picker/components/hue-slider.vue.js +4 -4
- package/es/components/color-picker/components/sv-panel.vue.js +4 -4
- package/es/components/context-menu/context-menu.vue.d.ts +1 -1
- package/es/components/context-menu/context-menu.vue2.js +15 -18
- package/es/components/date-picker/date-picker-com/basic-year-table.vue2.js +2 -2
- package/es/components/date-picker/date-picker-com/panel-date-pick.vue2.js +1 -1
- package/es/components/date-time-select/date-time-select.vue2.js +38 -39
- package/es/components/dialog/dialog.vue.d.ts +1 -1
- package/es/components/drawer/drawer.vue.d.ts +1 -1
- package/es/components/dropdown/dropdown.vue.d.ts +1 -1
- package/es/components/dropdown/dropdown.vue2.js +1 -1
- package/es/components/full-screen/full-screen.vue.d.ts +1 -1
- package/es/components/header-layout/header-layout.vue.d.ts +1 -1
- package/es/components/horizontal-menu/horizontal-menu.vue.d.ts +2 -2
- package/es/components/horizontal-menu/horizontal-menu.vue2.js +15 -15
- package/es/components/icon/icon.vue.d.ts +1 -1
- package/es/components/icon-text/icon-text.vue2.js +12 -12
- package/es/components/iframe-layout/iframe-layout.vue.d.ts +1 -1
- package/es/components/image/image.vue2.js +1 -1
- package/es/components/image-viewer/image-viewer.vue2.js +1 -1
- package/es/components/input/input.vue2.js +4 -4
- package/es/components/input-number/input-number.vue2.js +1 -1
- package/es/components/input-tag/composables/use-input-tag.js +1 -1
- package/es/components/link/link.vue2.js +10 -11
- package/es/components/list-cell/list-cell.vue.d.ts +1 -1
- package/es/components/list-cell/list-cell.vue2.js +1 -1
- package/es/components/modal/modal.vue.d.ts +1 -8
- package/es/components/modal/types.d.ts +42 -11
- package/es/components/multiple-tabs/multiple-tabs.vue.d.ts +1 -1
- package/es/components/multiple-tabs/multiple-tabs.vue2.js +11 -13
- package/es/components/multiple-tabs/tab-content.vue.d.ts +1 -1
- package/es/components/multiple-tabs/tab-content.vue2.js +7 -8
- package/es/components/overlay/overlay.vue2.js +5 -5
- package/es/components/pagination/components/jumper.vue.d.ts +1 -1
- package/es/components/pagination/components/pager.vue2.js +2 -12
- package/es/components/pagination/pagination.vue2.js +1 -1
- package/es/components/popconfirm/popconfirm.vue.d.ts +2 -2
- package/es/components/popper/trigger.vue2.js +13 -13
- package/es/components/progress/index.d.ts +3 -3
- package/es/components/qrcode/qrcode.vue.d.ts +1 -1
- package/es/components/radio/radio-button.vue2.js +4 -4
- package/es/components/radio/radio-group.vue.d.ts +1 -1
- package/es/components/radio/radio.vue2.js +1 -1
- package/es/components/rate/rate.vue2.js +4 -4
- package/es/components/result/result.vue.d.ts +1 -1
- package/es/components/router-view-content/index.d.ts +0 -18
- package/es/components/router-view-content/router-view-content.vue.d.ts +0 -4
- package/es/components/router-view-content/router-view-content.vue2.js +24 -28
- package/es/components/scrollbar/scrollbar.vue2.js +16 -16
- package/es/components/skeleton/skeleton-item.vue.d.ts +1 -1
- package/es/components/slider/button.vue.d.ts +1 -1
- package/es/components/slider/button.vue2.js +1 -1
- package/es/components/slider/slider.vue.d.ts +1 -1
- package/es/components/slider/slider.vue2.js +1 -1
- package/es/components/super-form/super-form-item.vue2.js +1 -1
- package/es/components/super-form/super-form.vue2.js +1 -1
- package/es/components/switch/switch.vue2.js +1 -1
- package/es/components/table/index.d.ts +9 -0
- package/es/components/table/table.vue2.js +36 -32
- package/es/components/table/types.d.ts +1 -0
- package/es/components/tabs/tab-bar.vue.d.ts +1 -1
- package/es/components/tabs/tab-nav.vue.d.ts +1 -1
- package/es/components/tabs/tabs.vue.d.ts +3 -3
- package/es/components/tag/tag.vue.d.ts +1 -1
- package/es/components/time-picker/time-picker-com/basic-time-spinner.vue2.js +25 -25
- package/es/components/time-picker/time-picker-com/panel-time-pick.vue2.js +2 -3
- package/es/components/time-picker/time-picker-com/panel-time-range.vue2.js +2 -3
- package/es/components/time-select/time-select.vue2.js +2 -1
- package/es/components/timeline/timeline-item.vue.d.ts +1 -1
- package/es/components/tooltip/trigger.vue.d.ts +1 -1
- package/es/components/tree/tree-node.vue.js +1 -1
- package/es/components/upload/upload-content.vue2.js +3 -1
- package/es/components/upload/upload.vue2.js +1 -1
- package/es/components/watermark/watermark.vue2.js +2 -2
- package/es/hooks/use-z-index/index.js +3 -3
- package/es/package.json.d.ts +1 -1
- package/es/package.json.js +1 -1
- package/es/utils/vue/vnode.js +1 -1
- package/lib/components/affix/affix.vue2.cjs +1 -1
- package/lib/components/alert/alert.vue.d.ts +2 -1
- package/lib/components/alert/alert.vue2.cjs +1 -1
- package/lib/components/autocomplete/autocomplete.vue.d.ts +3 -2
- package/lib/components/autocomplete/autocomplete.vue2.cjs +1 -1
- package/lib/components/avatar/avatar.vue.d.ts +1 -1
- package/lib/components/button/button-group.vue.d.ts +1 -1
- package/lib/components/button/button-group.vue2.cjs +1 -1
- package/lib/components/carousel/carousel.vue2.cjs +1 -1
- package/lib/components/cascader/cascader.vue2.cjs +1 -1
- package/lib/components/cascader-panel/node.vue2.cjs +1 -1
- package/lib/components/check-tag/check-tag.vue2.cjs +1 -1
- package/lib/components/checkbox/checkbox-group.vue.d.ts +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/color-picker/color-picker.vue.d.ts +1 -1
- package/lib/components/color-picker/components/hue-slider.vue.cjs +1 -1
- package/lib/components/color-picker/components/sv-panel.vue.cjs +1 -1
- package/lib/components/context-menu/context-menu.vue.d.ts +1 -1
- package/lib/components/context-menu/context-menu.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-time-select/date-time-select.vue2.cjs +1 -1
- package/lib/components/dialog/dialog.vue.d.ts +1 -1
- package/lib/components/drawer/drawer.vue.d.ts +1 -1
- package/lib/components/dropdown/dropdown.vue.d.ts +1 -1
- package/lib/components/dropdown/dropdown.vue2.cjs +1 -1
- package/lib/components/full-screen/full-screen.vue.d.ts +1 -1
- package/lib/components/header-layout/header-layout.vue.d.ts +1 -1
- package/lib/components/horizontal-menu/horizontal-menu.vue.d.ts +2 -2
- package/lib/components/horizontal-menu/horizontal-menu.vue2.cjs +1 -1
- package/lib/components/icon/icon.vue.d.ts +1 -1
- package/lib/components/icon-text/icon-text.vue2.cjs +1 -1
- package/lib/components/iframe-layout/iframe-layout.vue.d.ts +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/input/input.vue2.cjs +1 -1
- package/lib/components/input-number/input-number.vue2.cjs +1 -1
- package/lib/components/link/link.vue2.cjs +1 -1
- package/lib/components/list-cell/list-cell.vue.d.ts +1 -1
- package/lib/components/list-cell/list-cell.vue2.cjs +1 -1
- package/lib/components/modal/modal.vue.d.ts +1 -8
- package/lib/components/modal/types.d.ts +42 -11
- package/lib/components/multiple-tabs/multiple-tabs.vue.d.ts +1 -1
- package/lib/components/multiple-tabs/multiple-tabs.vue2.cjs +1 -1
- package/lib/components/multiple-tabs/tab-content.vue.d.ts +1 -1
- package/lib/components/multiple-tabs/tab-content.vue2.cjs +1 -1
- package/lib/components/overlay/overlay.vue2.cjs +1 -1
- package/lib/components/pagination/components/jumper.vue.d.ts +1 -1
- package/lib/components/pagination/components/pager.vue2.cjs +1 -1
- package/lib/components/pagination/pagination.vue2.cjs +1 -1
- package/lib/components/popconfirm/popconfirm.vue.d.ts +2 -2
- package/lib/components/progress/index.d.ts +3 -3
- package/lib/components/qrcode/qrcode.vue.d.ts +1 -1
- package/lib/components/radio/radio-button.vue2.cjs +1 -1
- package/lib/components/radio/radio-group.vue.d.ts +1 -1
- package/lib/components/radio/radio.vue2.cjs +1 -1
- package/lib/components/rate/rate.vue2.cjs +1 -1
- package/lib/components/result/result.vue.d.ts +1 -1
- package/lib/components/router-view-content/index.d.ts +0 -18
- package/lib/components/router-view-content/router-view-content.vue.d.ts +0 -4
- package/lib/components/router-view-content/router-view-content.vue2.cjs +1 -1
- package/lib/components/scrollbar/scrollbar.vue2.cjs +1 -1
- package/lib/components/skeleton/skeleton-item.vue.d.ts +1 -1
- package/lib/components/slider/button.vue.d.ts +1 -1
- package/lib/components/slider/button.vue2.cjs +1 -1
- package/lib/components/slider/slider.vue.d.ts +1 -1
- package/lib/components/slider/slider.vue2.cjs +1 -1
- package/lib/components/super-form/super-form.vue2.cjs +1 -1
- package/lib/components/switch/switch.vue2.cjs +1 -1
- package/lib/components/table/index.d.ts +9 -0
- package/lib/components/table/table.vue2.cjs +1 -1
- package/lib/components/table/types.d.ts +1 -0
- package/lib/components/tabs/tab-bar.vue.d.ts +1 -1
- package/lib/components/tabs/tab-nav.vue.d.ts +1 -1
- package/lib/components/tabs/tabs.vue.d.ts +3 -3
- package/lib/components/tag/tag.vue.d.ts +1 -1
- package/lib/components/time-picker/time-picker-com/basic-time-spinner.vue2.cjs +1 -1
- package/lib/components/time-picker/time-picker-com/panel-time-pick.vue2.cjs +1 -1
- package/lib/components/time-picker/time-picker-com/panel-time-range.vue2.cjs +1 -1
- package/lib/components/time-select/time-select.vue2.cjs +1 -1
- package/lib/components/timeline/timeline-item.vue.d.ts +1 -1
- package/lib/components/tooltip/trigger.vue.d.ts +1 -1
- package/lib/components/tree/tree-node.vue.cjs +1 -1
- package/lib/components/upload/upload.vue2.cjs +1 -1
- package/lib/components/watermark/watermark.vue2.cjs +1 -1
- package/lib/package.json.cjs +1 -1
- package/lib/package.json.d.ts +1 -1
- package/package.json +4 -4
- package/tags.json +1 -1
- package/theme-style/index.css +1 -1
- package/theme-style/src/common/var.scss +2 -2
- package/theme-style/src/dialog.scss +3 -3
- package/theme-style/vft-dialog.css +1 -1
- package/web-types.json +1 -1
|
@@ -65,7 +65,7 @@ const D = b({
|
|
|
65
65
|
expose: x,
|
|
66
66
|
emit: k
|
|
67
67
|
}) {
|
|
68
|
-
const u = j("pagination"),
|
|
68
|
+
const o = k, u = j("pagination"), y = E(), g = M().vnode.props || {}, C = "onUpdate:currentPage" in g || "onUpdate:current-page" in g || "onCurrentChange" in g, d = "onUpdate:pageSize" in g || "onUpdate:page-size" in g || "onSizeChange" in g, T = c(() => {
|
|
69
69
|
if (!t(e.total) && !t(e.pageCount) || t(e.currentPage) && !C) return !1;
|
|
70
70
|
if (e.layout.includes("sizes")) {
|
|
71
71
|
if (t(e.pageCount)) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { ButtonType } from 'vft/es/components/button';
|
|
2
|
+
import type { IconProps } from 'vft/es/components/icon';
|
|
3
3
|
interface Props {
|
|
4
4
|
title?: string;
|
|
5
5
|
confirmButtonText?: string;
|
|
@@ -28,20 +28,20 @@ const O = g({
|
|
|
28
28
|
id: {},
|
|
29
29
|
open: { type: Boolean }
|
|
30
30
|
},
|
|
31
|
-
setup(
|
|
31
|
+
setup(o, { expose: b }) {
|
|
32
32
|
const h = C(), { role: i, triggerRef: n } = y(K, void 0);
|
|
33
33
|
I(n);
|
|
34
|
-
const p = s(() => u.value ?
|
|
34
|
+
const p = s(() => u.value ? o.id : void 0), c = s(() => {
|
|
35
35
|
if (i && i.value === "tooltip")
|
|
36
|
-
return
|
|
36
|
+
return o.open && o.id ? o.id : void 0;
|
|
37
37
|
}), u = s(() => {
|
|
38
38
|
if (i && i.value !== "tooltip")
|
|
39
39
|
return i.value;
|
|
40
|
-
}), m = s(() => u.value ? `${
|
|
40
|
+
}), m = s(() => u.value ? `${o.open}` : void 0);
|
|
41
41
|
let a;
|
|
42
42
|
return x(() => {
|
|
43
43
|
l(
|
|
44
|
-
() =>
|
|
44
|
+
() => o.virtualRef,
|
|
45
45
|
(e) => {
|
|
46
46
|
e && (n.value = L(e));
|
|
47
47
|
},
|
|
@@ -59,25 +59,25 @@ const O = g({
|
|
|
59
59
|
"onFocus",
|
|
60
60
|
"onBlur",
|
|
61
61
|
"onContextmenu"
|
|
62
|
-
].forEach((
|
|
63
|
-
const t = h.props[
|
|
62
|
+
].forEach((r) => {
|
|
63
|
+
const t = h.props[r];
|
|
64
64
|
t && (e.addEventListener(
|
|
65
|
-
|
|
65
|
+
r.slice(2).toLowerCase(),
|
|
66
66
|
t
|
|
67
67
|
), d?.removeEventListener?.(
|
|
68
|
-
|
|
68
|
+
r.slice(2).toLowerCase(),
|
|
69
69
|
t
|
|
70
70
|
));
|
|
71
71
|
}), a = l(
|
|
72
72
|
[p, c, u, m],
|
|
73
|
-
(
|
|
73
|
+
(r) => {
|
|
74
74
|
[
|
|
75
75
|
"aria-controls",
|
|
76
76
|
"aria-describedby",
|
|
77
77
|
"aria-haspopup",
|
|
78
78
|
"aria-expanded"
|
|
79
79
|
].forEach((t, f) => {
|
|
80
|
-
F(
|
|
80
|
+
F(r[f]) ? e.removeAttribute(t) : e.setAttribute(t, r[f]);
|
|
81
81
|
});
|
|
82
82
|
},
|
|
83
83
|
{ immediate: !0 }
|
|
@@ -86,7 +86,7 @@ const O = g({
|
|
|
86
86
|
"aria-describedby",
|
|
87
87
|
"aria-haspopup",
|
|
88
88
|
"aria-expanded"
|
|
89
|
-
].forEach((
|
|
89
|
+
].forEach((r) => d.removeAttribute(r));
|
|
90
90
|
},
|
|
91
91
|
{
|
|
92
92
|
immediate: !0
|
|
@@ -99,7 +99,7 @@ const O = g({
|
|
|
99
99
|
* @description trigger element
|
|
100
100
|
*/
|
|
101
101
|
triggerRef: n
|
|
102
|
-
}), (e, d) =>
|
|
102
|
+
}), (e, d) => o.virtualTriggering ? w("", !0) : (A(), B(M(k), P({ key: 0 }, e.$attrs, {
|
|
103
103
|
"aria-controls": p.value,
|
|
104
104
|
"aria-describedby": c.value,
|
|
105
105
|
"aria-expanded": m.value,
|
|
@@ -32,7 +32,7 @@ export declare const VftProgress: import("vft/es/utils").SFCWithInstall<{
|
|
|
32
32
|
type: import("vue").PropType<boolean>;
|
|
33
33
|
};
|
|
34
34
|
color: {
|
|
35
|
-
type: import("vue").PropType<string | import("./types").
|
|
35
|
+
type: import("vue").PropType<string | import("./types").ProgressColor[] | import("./types").ProgressFn>;
|
|
36
36
|
};
|
|
37
37
|
striped: {
|
|
38
38
|
type: import("vue").PropType<boolean>;
|
|
@@ -82,7 +82,7 @@ export declare const VftProgress: import("vft/es/utils").SFCWithInstall<{
|
|
|
82
82
|
type: import("vue").PropType<boolean>;
|
|
83
83
|
};
|
|
84
84
|
color: {
|
|
85
|
-
type: import("vue").PropType<string | import("./types").
|
|
85
|
+
type: import("vue").PropType<string | import("./types").ProgressColor[] | import("./types").ProgressFn>;
|
|
86
86
|
};
|
|
87
87
|
striped: {
|
|
88
88
|
type: import("vue").PropType<boolean>;
|
|
@@ -129,7 +129,7 @@ export declare const VftProgress: import("vft/es/utils").SFCWithInstall<{
|
|
|
129
129
|
type: import("vue").PropType<boolean>;
|
|
130
130
|
};
|
|
131
131
|
color: {
|
|
132
|
-
type: import("vue").PropType<string | import("./types").
|
|
132
|
+
type: import("vue").PropType<string | import("./types").ProgressColor[] | import("./types").ProgressFn>;
|
|
133
133
|
};
|
|
134
134
|
striped: {
|
|
135
135
|
type: import("vue").PropType<boolean>;
|
|
@@ -24,7 +24,7 @@ const F = ["value", "name", "disabled"], G = f({
|
|
|
24
24
|
},
|
|
25
25
|
emits: ["click"],
|
|
26
26
|
setup(n, { emit: v }) {
|
|
27
|
-
const t = E("radio"),
|
|
27
|
+
const y = n, c = v, t = E("radio"), { radioRef: k, focus: a, size: B, disabled: d, modelValue: i, radioGroup: l, actualValue: s } = M(y), S = C(() => ({
|
|
28
28
|
backgroundColor: l?.fill || "",
|
|
29
29
|
borderColor: l?.fill || "",
|
|
30
30
|
boxShadow: l?.fill ? `-1px 0 0 0 ${l.fill}` : "",
|
|
@@ -36,12 +36,12 @@ const F = ["value", "name", "disabled"], G = f({
|
|
|
36
36
|
e(t).is("active", e(i) === e(s)),
|
|
37
37
|
e(t).is("disabled", e(d)),
|
|
38
38
|
e(t).is("focus", e(a)),
|
|
39
|
-
e(t).bm("button", e(
|
|
39
|
+
e(t).bm("button", e(B))
|
|
40
40
|
])
|
|
41
41
|
}, [
|
|
42
42
|
V(p("input", {
|
|
43
43
|
ref_key: "radioRef",
|
|
44
|
-
ref:
|
|
44
|
+
ref: k,
|
|
45
45
|
"onUpdate:modelValue": o[0] || (o[0] = (r) => $(i) ? i.value = r : null),
|
|
46
46
|
class: u(e(t).be("button", "original-radio")),
|
|
47
47
|
value: e(s),
|
|
@@ -56,7 +56,7 @@ const F = ["value", "name", "disabled"], G = f({
|
|
|
56
56
|
[R, e(i)]
|
|
57
57
|
]),
|
|
58
58
|
p("span", {
|
|
59
|
-
onClick: o[4] || (o[4] = (r) =>
|
|
59
|
+
onClick: o[4] || (o[4] = (r) => c("click", m.$props)),
|
|
60
60
|
class: u(e(t).be("button", "inner")),
|
|
61
61
|
style: w(e(i) === e(s) ? S.value : {}),
|
|
62
62
|
onKeydown: o[5] || (o[5] = b(() => {
|
|
@@ -17,7 +17,7 @@ const h = ["value", "name", "disabled", "checked"], F = f({
|
|
|
17
17
|
props: M,
|
|
18
18
|
emits: ["click", "change", "update:modelValue"],
|
|
19
19
|
setup(c, { emit: k }) {
|
|
20
|
-
const
|
|
20
|
+
const v = c, d = k, o = S("radio"), { radioRef: b, radioGroup: g, focus: p, size: C, disabled: m, modelValue: s, actualValue: t } = T(v, d);
|
|
21
21
|
function V() {
|
|
22
22
|
E(() => d("change", s.value));
|
|
23
23
|
}
|
|
@@ -3,7 +3,6 @@ import { EVENT_CODE as b } from "../../constants/aria.js";
|
|
|
3
3
|
import { UPDATE_MODEL_EVENT as M, CHANGE_EVENT as q } from "../../constants/event.js";
|
|
4
4
|
import { isArray as S, isObject as G, isString as U, hasClass as X } from "@vft/utils";
|
|
5
5
|
import "../form/index.js";
|
|
6
|
-
import "../icon/index.js";
|
|
7
6
|
import "@vueuse/core";
|
|
8
7
|
import "../config-provider/hooks/use-global-config.js";
|
|
9
8
|
import "lodash-es";
|
|
@@ -17,11 +16,12 @@ import { useFormSize as be } from "../form/hooks/use-form-common-props.js";
|
|
|
17
16
|
import { useFormItemInputId as Ce } from "../form/hooks/use-form-item.js";
|
|
18
17
|
const ye = ["id", "aria-label", "aria-labelledby", "aria-valuenow", "aria-valuetext", "aria-valuemax"], Ie = ["onMousemove", "onClick"], _e = J({
|
|
19
18
|
name: "ElRate"
|
|
20
|
-
}),
|
|
19
|
+
}), ze = /* @__PURE__ */ J({
|
|
21
20
|
..._e,
|
|
22
21
|
props: Ve,
|
|
23
22
|
emits: he,
|
|
24
23
|
setup(Q, { expose: Y, emit: Z }) {
|
|
24
|
+
const e = Q, p = Z;
|
|
25
25
|
function C(l, o) {
|
|
26
26
|
const a = (n) => G(n), u = Object.keys(o).map((n) => +n).filter((n) => {
|
|
27
27
|
const V = o[n];
|
|
@@ -29,7 +29,7 @@ const ye = ["id", "aria-label", "aria-labelledby", "aria-valuenow", "aria-valuet
|
|
|
29
29
|
}).sort((n, V) => n - V), h = o[u[0]];
|
|
30
30
|
return a(h) && h.value || h;
|
|
31
31
|
}
|
|
32
|
-
const
|
|
32
|
+
const ee = j(we, void 0), T = j(xe, void 0), le = be(), r = pe("rate"), { inputId: oe, isLabeledByFormItem: H } = Ce(e, {
|
|
33
33
|
formItemContext: T
|
|
34
34
|
}), t = I(e.modelValue), y = I(-1), m = I(!0), ae = s(() => [r.b(), r.m(le.value)]), d = s(() => e.disabled || ee?.disabled), te = s(() => r.cssVarBlock({
|
|
35
35
|
"void-color": e.voidColor,
|
|
@@ -182,5 +182,5 @@ const ye = ["id", "aria-label", "aria-labelledby", "aria-valuenow", "aria-valuet
|
|
|
182
182
|
}
|
|
183
183
|
});
|
|
184
184
|
export {
|
|
185
|
-
|
|
185
|
+
ze as default
|
|
186
186
|
};
|
|
@@ -16,15 +16,6 @@ export declare const VftRouterViewContent: import("vft/es/utils").SFCWithInstall
|
|
|
16
16
|
type: import("vue").PropType<boolean>;
|
|
17
17
|
required: true;
|
|
18
18
|
};
|
|
19
|
-
pageErrorStatus: {
|
|
20
|
-
type: import("vue").PropType<boolean>;
|
|
21
|
-
};
|
|
22
|
-
enableErrorHandle: {
|
|
23
|
-
type: import("vue").PropType<boolean>;
|
|
24
|
-
};
|
|
25
|
-
exceptionComp: {
|
|
26
|
-
type: import("vue").PropType<import("vue").Component>;
|
|
27
|
-
};
|
|
28
19
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
29
20
|
cacheList: {
|
|
30
21
|
type: import("vue").PropType<string[]>;
|
|
@@ -43,14 +34,5 @@ export declare const VftRouterViewContent: import("vft/es/utils").SFCWithInstall
|
|
|
43
34
|
type: import("vue").PropType<boolean>;
|
|
44
35
|
required: true;
|
|
45
36
|
};
|
|
46
|
-
pageErrorStatus: {
|
|
47
|
-
type: import("vue").PropType<boolean>;
|
|
48
|
-
};
|
|
49
|
-
enableErrorHandle: {
|
|
50
|
-
type: import("vue").PropType<boolean>;
|
|
51
|
-
};
|
|
52
|
-
exceptionComp: {
|
|
53
|
-
type: import("vue").PropType<import("vue").Component>;
|
|
54
|
-
};
|
|
55
37
|
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>> & Record<string, any>;
|
|
56
38
|
export default VftRouterViewContent;
|
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
import { type Component } from 'vue';
|
|
2
1
|
interface LayoutConentProps {
|
|
3
2
|
cacheList: string[];
|
|
4
3
|
transitionName?: string;
|
|
5
4
|
transitionAttr?: Record<string, any>;
|
|
6
5
|
openKeepAlive?: boolean;
|
|
7
6
|
isReloadFlag: boolean;
|
|
8
|
-
pageErrorStatus?: boolean;
|
|
9
|
-
enableErrorHandle?: boolean;
|
|
10
|
-
exceptionComp?: Component;
|
|
11
7
|
}
|
|
12
8
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<LayoutConentProps>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<LayoutConentProps>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
13
9
|
export default _default;
|
|
@@ -1,55 +1,51 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as v, computed as s, resolveComponent as A, createBlock as t, openBlock as n, withCtx as c, createVNode as d, unref as o, KeepAlive as k, createCommentVNode as g, resolveDynamicComponent as f, Transition as x, mergeProps as C } from "vue";
|
|
2
2
|
import { getRouterKeyPath as N } from "@vft/router";
|
|
3
|
-
import "vue-router";
|
|
4
3
|
import { createReusableTemplate as R } from "@vueuse/core";
|
|
5
|
-
const K =
|
|
4
|
+
const K = v({
|
|
6
5
|
name: "vft-router-view-content"
|
|
7
|
-
}),
|
|
6
|
+
}), T = /* @__PURE__ */ v({
|
|
8
7
|
...K,
|
|
9
8
|
props: {
|
|
10
9
|
cacheList: {},
|
|
11
10
|
transitionName: {},
|
|
12
11
|
transitionAttr: {},
|
|
13
12
|
openKeepAlive: { type: Boolean, default: !0 },
|
|
14
|
-
isReloadFlag: { type: Boolean }
|
|
15
|
-
pageErrorStatus: { type: Boolean },
|
|
16
|
-
enableErrorHandle: { type: Boolean },
|
|
17
|
-
exceptionComp: {}
|
|
13
|
+
isReloadFlag: { type: Boolean }
|
|
18
14
|
},
|
|
19
15
|
setup(e) {
|
|
20
|
-
const
|
|
21
|
-
let
|
|
22
|
-
return
|
|
23
|
-
}), [
|
|
24
|
-
return (
|
|
25
|
-
const
|
|
26
|
-
return
|
|
27
|
-
default: c(({ Component:
|
|
28
|
-
|
|
16
|
+
const p = s(() => e.openKeepAlive ? e.cacheList : []), h = s(() => (a) => {
|
|
17
|
+
let l = a.name;
|
|
18
|
+
return a.meta?.currentActivePath && (l = a.matched?.filter((r) => r.path === a.meta?.currentActivePath)?.[0].name), e.isReloadFlag ? void 0 : l;
|
|
19
|
+
}), [y, m] = R();
|
|
20
|
+
return (a, l) => {
|
|
21
|
+
const r = A("router-view");
|
|
22
|
+
return n(), t(r, null, {
|
|
23
|
+
default: c(({ Component: u, route: i }) => [
|
|
24
|
+
d(o(y), null, {
|
|
29
25
|
default: c(() => [
|
|
30
|
-
e.openKeepAlive ? (
|
|
26
|
+
e.openKeepAlive ? (n(), t(k, {
|
|
31
27
|
key: 0,
|
|
32
|
-
include:
|
|
33
|
-
exclude:
|
|
28
|
+
include: p.value,
|
|
29
|
+
exclude: h.value(i)
|
|
34
30
|
}, [
|
|
35
|
-
e.isReloadFlag ? (
|
|
36
|
-
key:
|
|
37
|
-
})) :
|
|
38
|
-
], 1032, ["include", "exclude"])) : (
|
|
31
|
+
e.isReloadFlag ? (n(), t(f(u), {
|
|
32
|
+
key: o(N)(i)
|
|
33
|
+
})) : g("", !0)
|
|
34
|
+
], 1032, ["include", "exclude"])) : (n(), t(f(u), {
|
|
39
35
|
key: i.fullPath
|
|
40
36
|
}))
|
|
41
37
|
]),
|
|
42
38
|
_: 2
|
|
43
39
|
}, 1024),
|
|
44
|
-
e.transitionName ? (
|
|
40
|
+
e.transitionName ? (n(), t(x, C({
|
|
45
41
|
key: 0,
|
|
46
42
|
name: e.transitionName
|
|
47
43
|
}, e.transitionAttr), {
|
|
48
44
|
default: c(() => [
|
|
49
|
-
|
|
45
|
+
d(o(m))
|
|
50
46
|
]),
|
|
51
47
|
_: 1
|
|
52
|
-
}, 16, ["name"])) : (
|
|
48
|
+
}, 16, ["name"])) : (n(), t(o(m), { key: 1 }))
|
|
53
49
|
]),
|
|
54
50
|
_: 1
|
|
55
51
|
});
|
|
@@ -57,5 +53,5 @@ const K = p({
|
|
|
57
53
|
}
|
|
58
54
|
});
|
|
59
55
|
export {
|
|
60
|
-
|
|
56
|
+
T as default
|
|
61
57
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as W, ref as o, computed as h, watch as k, nextTick as T, provide as D, reactive as G, onMounted as X, onUpdated as Y, createElementBlock as q, openBlock as y, normalizeClass as w, unref as F, createElementVNode as I, createBlock as B, createCommentVNode as J, normalizeStyle as E, resolveDynamicComponent as Q, withCtx as Z, renderSlot as _ } from "vue";
|
|
2
|
-
import { isNumber as
|
|
2
|
+
import { isNumber as i, isObject as ee } from "@vft/utils";
|
|
3
3
|
import { useResizeObserver as te, useEventListener as le } from "@vueuse/core";
|
|
4
4
|
import { debugWarn as N } from "../../utils/error.js";
|
|
5
5
|
import { addUnit as O } from "../../utils/helper.js";
|
|
@@ -10,12 +10,12 @@ import "../../hooks/use-model-toggle/index.js";
|
|
|
10
10
|
import "@popperjs/core";
|
|
11
11
|
import "../../hooks/use-z-index/index.js";
|
|
12
12
|
import oe from "./bar.vue2.js";
|
|
13
|
-
import { scrollbarContextKey as
|
|
13
|
+
import { scrollbarContextKey as re } from "./constants.js";
|
|
14
14
|
import { GAP as f } from "./util.js";
|
|
15
|
-
const L = "ElScrollbar",
|
|
15
|
+
const L = "ElScrollbar", ie = W({
|
|
16
16
|
name: "vft-scrollbar"
|
|
17
17
|
}), xe = /* @__PURE__ */ W({
|
|
18
|
-
...
|
|
18
|
+
...ie,
|
|
19
19
|
props: {
|
|
20
20
|
height: { default: "" },
|
|
21
21
|
maxHeight: { default: "" },
|
|
@@ -33,10 +33,10 @@ const L = "ElScrollbar", re = W({
|
|
|
33
33
|
scroll: ({
|
|
34
34
|
scrollTop: t,
|
|
35
35
|
scrollLeft: u
|
|
36
|
-
}) => [t, u].every(
|
|
36
|
+
}) => [t, u].every(i)
|
|
37
37
|
},
|
|
38
38
|
setup(t, { expose: u, emit: M }) {
|
|
39
|
-
const s = ae("scrollbar")
|
|
39
|
+
const A = M, s = ae("scrollbar");
|
|
40
40
|
let b, g;
|
|
41
41
|
const S = o(), l = o(), x = o(), z = o("0"), p = o("0"), m = o(), C = o(1), R = o(1), $ = h(() => {
|
|
42
42
|
const e = {};
|
|
@@ -52,21 +52,21 @@ const L = "ElScrollbar", re = W({
|
|
|
52
52
|
}));
|
|
53
53
|
};
|
|
54
54
|
function P(e, a) {
|
|
55
|
-
ee(e) ? l.value.scrollTo(e) :
|
|
55
|
+
ee(e) ? l.value.scrollTo(e) : i(e) && i(a) && l.value.scrollTo(e, a);
|
|
56
56
|
}
|
|
57
57
|
const U = (e) => {
|
|
58
|
-
if (!
|
|
58
|
+
if (!i(e)) {
|
|
59
59
|
N(L, "value must be a number");
|
|
60
60
|
return;
|
|
61
61
|
}
|
|
62
62
|
l.value.scrollTop = e;
|
|
63
63
|
}, V = (e) => {
|
|
64
|
-
if (!
|
|
64
|
+
if (!i(e)) {
|
|
65
65
|
N(L, "value must be a number");
|
|
66
66
|
return;
|
|
67
67
|
}
|
|
68
68
|
l.value.scrollLeft = e;
|
|
69
|
-
},
|
|
69
|
+
}, r = () => {
|
|
70
70
|
if (!l.value) return;
|
|
71
71
|
const e = l.value.offsetHeight - f, a = l.value.offsetWidth - f, v = e ** 2 / l.value.scrollHeight, d = a ** 2 / l.value.scrollWidth, n = Math.max(v, t.minSize), c = Math.max(d, t.minSize);
|
|
72
72
|
C.value = v / (e - v) / (n / (e - n)), R.value = d / (a - d) / (c / (a - c)), p.value = n + f < e ? `${n}px` : "", z.value = c + f < a ? `${c}px` : "";
|
|
@@ -74,31 +74,31 @@ const L = "ElScrollbar", re = W({
|
|
|
74
74
|
return k(
|
|
75
75
|
() => t.noresize,
|
|
76
76
|
(e) => {
|
|
77
|
-
e ? (b?.(), g?.()) : ({ stop: b } = te(x,
|
|
77
|
+
e ? (b?.(), g?.()) : ({ stop: b } = te(x, r), g = le("resize", r));
|
|
78
78
|
},
|
|
79
79
|
{ immediate: !0 }
|
|
80
80
|
), k(
|
|
81
81
|
() => [t.maxHeight, t.height],
|
|
82
82
|
() => {
|
|
83
83
|
t.native || T(() => {
|
|
84
|
-
|
|
84
|
+
r(), l.value && m.value?.handleScroll(l.value);
|
|
85
85
|
});
|
|
86
86
|
}
|
|
87
87
|
), D(
|
|
88
|
-
|
|
88
|
+
re,
|
|
89
89
|
G({
|
|
90
90
|
scrollbarElement: S,
|
|
91
91
|
wrapElement: l
|
|
92
92
|
})
|
|
93
93
|
), X(() => {
|
|
94
94
|
t.native || T(() => {
|
|
95
|
-
|
|
95
|
+
r();
|
|
96
96
|
});
|
|
97
|
-
}), Y(() =>
|
|
97
|
+
}), Y(() => r()), u({
|
|
98
98
|
/** @description scrollbar wrap ref */
|
|
99
99
|
wrapRef: l,
|
|
100
100
|
/** @description update scrollbar state manually */
|
|
101
|
-
update:
|
|
101
|
+
update: r,
|
|
102
102
|
/** @description scrolls to a particular set of coordinates */
|
|
103
103
|
scrollTo: P,
|
|
104
104
|
/** @description set distance to scroll top */
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { defineComponent as b, reactive as N, getCurrentInstance as S, toRefs as T, createElementBlock as P, openBlock as z, unref as t, normalizeStyle as K, normalizeClass as d, createVNode as L, withCtx as f, createElementVNode as g, toDisplayString as X } from "vue";
|
|
2
|
-
import "@popperjs/core";
|
|
3
2
|
import { isNumber as Y } from "@vft/utils";
|
|
4
3
|
import { VftTooltip as A } from "../tooltip/index.js";
|
|
5
4
|
import { UPDATE_MODEL_EVENT as F } from "../../constants/event.js";
|
|
@@ -9,6 +8,7 @@ import "lodash-es";
|
|
|
9
8
|
import "../form/index.js";
|
|
10
9
|
import { useNamespace as I } from "../../hooks/use-namespace/index.js";
|
|
11
10
|
import "../../hooks/use-model-toggle/index.js";
|
|
11
|
+
import "@popperjs/core";
|
|
12
12
|
import "../../hooks/use-z-index/index.js";
|
|
13
13
|
import { useSliderButton as O } from "./composables/use-slider-button.js";
|
|
14
14
|
const R = ["tabindex"], U = b({
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { defineComponent as $, reactive as oe, getCurrentInstance as ie, computed as d, toRefs as D, provide as re, createElementBlock as r, openBlock as o, unref as e, normalizeClass as u, createElementVNode as V, createBlock as I, createCommentVNode as S, normalizeStyle as p, createVNode as ne, Fragment as k, renderList as B } from "vue";
|
|
2
|
-
import "@popperjs/core";
|
|
3
2
|
import "../form/index.js";
|
|
4
3
|
import { VftInputNumber as ue } from "../input-number/index.js";
|
|
5
4
|
import "@vueuse/core";
|
|
@@ -8,6 +7,7 @@ import "../config-provider/hooks/use-global-config.js";
|
|
|
8
7
|
import "lodash-es";
|
|
9
8
|
import { useNamespace as se } from "../../hooks/use-namespace/index.js";
|
|
10
9
|
import "../../hooks/use-model-toggle/index.js";
|
|
10
|
+
import "@popperjs/core";
|
|
11
11
|
import "../../hooks/use-z-index/index.js";
|
|
12
12
|
import M from "./button.vue2.js";
|
|
13
13
|
import { useLifecycle as me } from "./composables/use-lifecycle.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as X, computed as j, ref as re, unref as c, useSlots as oe, createVNode as a, mergeProps as q, withDirectives as ie, vShow as ne,
|
|
1
|
+
import { defineComponent as X, computed as j, ref as re, unref as c, useSlots as oe, createVNode as a, mergeProps as q, withDirectives as ie, vShow as ne, createTextVNode as O, isVNode as le, resolveComponent as N } from "vue";
|
|
2
2
|
import "../alert/index.js";
|
|
3
3
|
import "../avatar/index.js";
|
|
4
4
|
import "../avatar-stack/index.js";
|
|
@@ -152,7 +152,7 @@ const Ve = j({
|
|
|
152
152
|
expose: Q,
|
|
153
153
|
emit: X
|
|
154
154
|
}) {
|
|
155
|
-
const
|
|
155
|
+
const P = J, b = X, Y = Se("super-form"), Z = se(), r = le({}), g = i({}), p = i(!1), d = i({}), V = i(), F = i(null), I = i(), t = c(() => ({
|
|
156
156
|
...P,
|
|
157
157
|
...o(d)
|
|
158
158
|
})), m = c(() => ({
|
|
@@ -42,7 +42,7 @@ const ne = ["id", "aria-checked", "aria-disabled", "name", "true-value", "false-
|
|
|
42
42
|
},
|
|
43
43
|
emits: [E, N, P],
|
|
44
44
|
setup(a, { expose: U, emit: j }) {
|
|
45
|
-
const
|
|
45
|
+
const e = a, d = j, t = ae("switch"), { formItem: S } = te(), G = le(), { inputId: H } = ie(e, {
|
|
46
46
|
formItemContext: S
|
|
47
47
|
}), m = s(
|
|
48
48
|
() => O(e.activeIcon, "icon")
|
|
@@ -48,6 +48,9 @@ export declare const VftTable: import("vft/es/utils").SFCWithInstall<{
|
|
|
48
48
|
showPager: {
|
|
49
49
|
type: import("vue").PropType<boolean>;
|
|
50
50
|
};
|
|
51
|
+
addMaxHeight: {
|
|
52
|
+
type: import("vue").PropType<boolean>;
|
|
53
|
+
};
|
|
51
54
|
pagination: {
|
|
52
55
|
type: import("vue").PropType<Partial<import("vft/es/vft").PaginationProps> & {
|
|
53
56
|
pagePlacement?: "bottom-left" | "bottom-right" | "top-left" | "top-right";
|
|
@@ -958,6 +961,9 @@ export declare const VftTable: import("vft/es/utils").SFCWithInstall<{
|
|
|
958
961
|
showPager: {
|
|
959
962
|
type: import("vue").PropType<boolean>;
|
|
960
963
|
};
|
|
964
|
+
addMaxHeight: {
|
|
965
|
+
type: import("vue").PropType<boolean>;
|
|
966
|
+
};
|
|
961
967
|
pagination: {
|
|
962
968
|
type: import("vue").PropType<Partial<import("vft/es/vft").PaginationProps> & {
|
|
963
969
|
pagePlacement?: "bottom-left" | "bottom-right" | "top-left" | "top-right";
|
|
@@ -1752,6 +1758,9 @@ export declare const VftTable: import("vft/es/utils").SFCWithInstall<{
|
|
|
1752
1758
|
showPager: {
|
|
1753
1759
|
type: import("vue").PropType<boolean>;
|
|
1754
1760
|
};
|
|
1761
|
+
addMaxHeight: {
|
|
1762
|
+
type: import("vue").PropType<boolean>;
|
|
1763
|
+
};
|
|
1755
1764
|
pagination: {
|
|
1756
1765
|
type: import("vue").PropType<Partial<import("vft/es/vft").PaginationProps> & {
|
|
1757
1766
|
pagePlacement?: "bottom-left" | "bottom-right" | "top-left" | "top-right";
|