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,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as v, ref as y, onMounted as E, computed as I, provide as g, reactive as _, toRefs as h, watch as B, openBlock as k, createElementBlock as C, unref as t, normalizeClass as G, renderSlot as N, nextTick as V } from "vue";
|
|
2
2
|
import "../form/index.js";
|
|
3
3
|
import { UPDATE_MODEL_EVENT as m, CHANGE_EVENT as x } from "../../constants/event.js";
|
|
4
4
|
import { useNamespace as A } from "../../hooks/use-namespace/index.js";
|
|
@@ -12,10 +12,9 @@ import { debugWarn as T } from "../../utils/error.js";
|
|
|
12
12
|
import "../../utils/ns-cover.js";
|
|
13
13
|
import { radioGroupKey as F } from "./constants.js";
|
|
14
14
|
import { useFormItem as L, useFormItemInputId as S } from "../form/hooks/use-form-item.js";
|
|
15
|
-
const z = ["id", "aria-label", "aria-labelledby"],
|
|
16
|
-
name: "VftRadioGroup"
|
|
17
|
-
|
|
18
|
-
...D,
|
|
15
|
+
const z = ["id", "aria-label", "aria-labelledby"], X = /* @__PURE__ */ v({
|
|
16
|
+
name: "VftRadioGroup",
|
|
17
|
+
__name: "radio-group",
|
|
19
18
|
props: {
|
|
20
19
|
id: {},
|
|
21
20
|
size: {},
|
|
@@ -28,23 +27,23 @@ const z = ["id", "aria-label", "aria-labelledby"], D = p({
|
|
|
28
27
|
validateEvent: { type: Boolean, default: !0 }
|
|
29
28
|
},
|
|
30
29
|
emits: [m, x],
|
|
31
|
-
setup(
|
|
32
|
-
const o =
|
|
30
|
+
setup(p, { emit: l }) {
|
|
31
|
+
const o = p, s = A("radio"), u = R(), n = y(), { formItem: r } = L(), { inputId: c, isLabeledByFormItem: d } = S(o, {
|
|
33
32
|
formItemContext: r
|
|
34
|
-
}),
|
|
33
|
+
}), f = (e) => {
|
|
35
34
|
l(m, e), V(() => l("change", e));
|
|
36
35
|
};
|
|
37
|
-
|
|
36
|
+
E(() => {
|
|
38
37
|
const e = n.value.querySelectorAll("[type=radio]"), i = e[0];
|
|
39
38
|
!Array.from(e).some((a) => a.checked) && i && (i.tabIndex = 0);
|
|
40
39
|
});
|
|
41
|
-
const
|
|
42
|
-
return
|
|
40
|
+
const b = I(() => o.name || u.value);
|
|
41
|
+
return g(
|
|
43
42
|
F,
|
|
44
|
-
|
|
43
|
+
_({
|
|
45
44
|
...h(o),
|
|
46
|
-
changeEvent:
|
|
47
|
-
name:
|
|
45
|
+
changeEvent: f,
|
|
46
|
+
name: b
|
|
48
47
|
})
|
|
49
48
|
), B(
|
|
50
49
|
() => o.modelValue,
|
|
@@ -54,10 +53,10 @@ const z = ["id", "aria-label", "aria-labelledby"], D = p({
|
|
|
54
53
|
), (e, i) => {
|
|
55
54
|
var a;
|
|
56
55
|
return k(), C("div", {
|
|
57
|
-
id: t(
|
|
56
|
+
id: t(c),
|
|
58
57
|
ref_key: "radioGroupRef",
|
|
59
58
|
ref: n,
|
|
60
|
-
class: G(t(
|
|
59
|
+
class: G(t(s).b("group")),
|
|
61
60
|
role: "radiogroup",
|
|
62
61
|
"aria-label": t(d) ? void 0 : e.label || "radio-group",
|
|
63
62
|
"aria-labelledby": t(d) ? (a = t(r)) == null ? void 0 : a.labelId : void 0
|
|
@@ -68,5 +67,5 @@ const z = ["id", "aria-label", "aria-labelledby"], D = p({
|
|
|
68
67
|
}
|
|
69
68
|
});
|
|
70
69
|
export {
|
|
71
|
-
|
|
70
|
+
X as default
|
|
72
71
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as y, openBlock as N, createElementBlock as g, normalizeClass as s, unref as e, createElementVNode as i, withDirectives as B, isRef as V, vModelRadio as k, withModifiers as C, renderSlot as R, createTextVNode as T, toDisplayString as D, nextTick as S } from "vue";
|
|
2
2
|
import { UPDATE_MODEL_EVENT as w, CHANGE_EVENT as z } from "../../constants/event.js";
|
|
3
3
|
import { useNamespace as M } from "../../hooks/use-namespace/index.js";
|
|
4
4
|
import "@popperjs/core";
|
|
@@ -11,10 +11,9 @@ import { useRadio as $ } from "./use-radio.js";
|
|
|
11
11
|
const h = ["value", "name", "disabled"], o = (
|
|
12
12
|
/* hoist-static*/
|
|
13
13
|
M("radio")
|
|
14
|
-
),
|
|
15
|
-
name: o.b()
|
|
16
|
-
|
|
17
|
-
...A,
|
|
14
|
+
), q = /* @__PURE__ */ y({
|
|
15
|
+
name: o.b(),
|
|
16
|
+
__name: "radio",
|
|
18
17
|
props: {
|
|
19
18
|
size: {},
|
|
20
19
|
disabled: { type: Boolean },
|
|
@@ -24,16 +23,16 @@ const h = ["value", "name", "disabled"], o = (
|
|
|
24
23
|
border: { type: Boolean }
|
|
25
24
|
},
|
|
26
25
|
emits: [w, z],
|
|
27
|
-
setup(
|
|
28
|
-
const
|
|
29
|
-
|
|
30
|
-
|
|
26
|
+
setup(u, { emit: m }) {
|
|
27
|
+
const b = u, { radioRef: f, radioGroup: v, focus: r, size: E, disabled: t, modelValue: n } = $(
|
|
28
|
+
b,
|
|
29
|
+
m
|
|
31
30
|
);
|
|
32
|
-
function
|
|
33
|
-
S(() =>
|
|
31
|
+
function c() {
|
|
32
|
+
S(() => m("change", n.value));
|
|
34
33
|
}
|
|
35
34
|
return (a, l) => {
|
|
36
|
-
var
|
|
35
|
+
var p;
|
|
37
36
|
return N(), g("label", {
|
|
38
37
|
class: s([
|
|
39
38
|
e(o).b(),
|
|
@@ -53,16 +52,16 @@ const h = ["value", "name", "disabled"], o = (
|
|
|
53
52
|
}, [
|
|
54
53
|
B(i("input", {
|
|
55
54
|
ref_key: "radioRef",
|
|
56
|
-
ref:
|
|
55
|
+
ref: f,
|
|
57
56
|
"onUpdate:modelValue": l[0] || (l[0] = (d) => V(n) ? n.value = d : null),
|
|
58
57
|
class: s(e(o).e("original")),
|
|
59
58
|
value: a.label,
|
|
60
|
-
name: a.name || ((
|
|
59
|
+
name: a.name || ((p = e(v)) == null ? void 0 : p.name),
|
|
61
60
|
disabled: e(t),
|
|
62
61
|
type: "radio",
|
|
63
62
|
onFocus: l[1] || (l[1] = (d) => r.value = !0),
|
|
64
63
|
onBlur: l[2] || (l[2] = (d) => r.value = !1),
|
|
65
|
-
onChange:
|
|
64
|
+
onChange: c
|
|
66
65
|
}, null, 42, h), [
|
|
67
66
|
[k, e(n)]
|
|
68
67
|
]),
|
|
@@ -84,5 +83,5 @@ const h = ["value", "name", "disabled"], o = (
|
|
|
84
83
|
}
|
|
85
84
|
});
|
|
86
85
|
export {
|
|
87
|
-
|
|
86
|
+
q as default
|
|
88
87
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { singleAttrToObj as
|
|
1
|
+
import { defineComponent as l, getCurrentInstance as d, useSlots as f, computed as v, h as o } from "vue";
|
|
2
|
+
import { singleAttrToObj as b, renderTNode as _ } from "@vft/utils";
|
|
3
3
|
import { useNamespace as x } from "../../hooks/use-namespace/index.js";
|
|
4
4
|
import "@popperjs/core";
|
|
5
5
|
import "lodash";
|
|
@@ -87,27 +87,26 @@ import "../message/index.js";
|
|
|
87
87
|
const i = (
|
|
88
88
|
/* hoist-static*/
|
|
89
89
|
x("result")
|
|
90
|
-
),
|
|
91
|
-
name: i.b()
|
|
92
|
-
|
|
93
|
-
...I,
|
|
90
|
+
), Zt = /* @__PURE__ */ l({
|
|
91
|
+
name: i.b(),
|
|
92
|
+
__name: "result",
|
|
94
93
|
props: {
|
|
95
94
|
title: {},
|
|
96
95
|
subTitle: {},
|
|
97
96
|
icon: {}
|
|
98
97
|
},
|
|
99
|
-
setup(
|
|
98
|
+
setup(c) {
|
|
100
99
|
var e, n;
|
|
101
|
-
const
|
|
100
|
+
const u = d(), t = f(), m = v(() => b(c.icon, "icon")), a = (e = m.value) != null && e.icon ? o("div", {
|
|
102
101
|
class: i.e("icon")
|
|
103
102
|
}, [o(C, { ...m.value })]) : (n = t.default) == null ? void 0 : n.call(t), p = (r) => {
|
|
104
|
-
const
|
|
105
|
-
return
|
|
103
|
+
const s = _(u, r);
|
|
104
|
+
return s ? o(
|
|
106
105
|
"div",
|
|
107
106
|
{
|
|
108
107
|
class: i.e(r)
|
|
109
108
|
},
|
|
110
|
-
[o("p", {}, { default: () =>
|
|
109
|
+
[o("p", {}, { default: () => s })]
|
|
111
110
|
) : null;
|
|
112
111
|
};
|
|
113
112
|
return () => o(
|
|
@@ -115,7 +114,7 @@ const i = (
|
|
|
115
114
|
{ class: i.b() },
|
|
116
115
|
{
|
|
117
116
|
default: () => [
|
|
118
|
-
|
|
117
|
+
a,
|
|
119
118
|
p("title"),
|
|
120
119
|
p("sub-title"),
|
|
121
120
|
t.extra ? o("div", { class: i.e("extra") }, { default: () => {
|
|
@@ -128,5 +127,5 @@ const i = (
|
|
|
128
127
|
}
|
|
129
128
|
});
|
|
130
129
|
export {
|
|
131
|
-
|
|
130
|
+
Zt as default
|
|
132
131
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as f, computed as u, resolveComponent as h, openBlock as a, createBlock as l, withCtx as y, KeepAlive as C, resolveDynamicComponent as p, unref as g, createCommentVNode as x } from "vue";
|
|
2
2
|
import { getRouterKeyPath as A } from "@vft/router";
|
|
3
3
|
import { useNamespace as B } from "../../hooks/use-namespace/index.js";
|
|
4
4
|
import "@popperjs/core";
|
|
@@ -10,10 +10,9 @@ import "../../utils/ns-cover.js";
|
|
|
10
10
|
const k = (
|
|
11
11
|
/* hoist-static*/
|
|
12
12
|
B("router-view-content")
|
|
13
|
-
),
|
|
14
|
-
name: k.b()
|
|
15
|
-
|
|
16
|
-
...K,
|
|
13
|
+
), L = /* @__PURE__ */ f({
|
|
14
|
+
name: k.b(),
|
|
15
|
+
__name: "router-view-content",
|
|
17
16
|
props: {
|
|
18
17
|
cacheList: {},
|
|
19
18
|
openKeepAlive: { type: Boolean, default: !0 },
|
|
@@ -23,12 +22,12 @@ const k = (
|
|
|
23
22
|
exceptionComp: {}
|
|
24
23
|
},
|
|
25
24
|
setup(t) {
|
|
26
|
-
const
|
|
25
|
+
const s = u(() => t.openKeepAlive ? t.cacheList : []), c = u(() => (e) => t.enableErrorHandle && t.pageErrorStatus && t.exceptionComp || e), d = u(() => (e) => {
|
|
27
26
|
var o, r, n;
|
|
28
27
|
let i = e.name;
|
|
29
|
-
return (o = e.meta) != null && o.currentActivePath && (i = (n = (r = e.matched) == null ? void 0 : r.filter((
|
|
28
|
+
return (o = e.meta) != null && o.currentActivePath && (i = (n = (r = e.matched) == null ? void 0 : r.filter((v) => {
|
|
30
29
|
var m;
|
|
31
|
-
return
|
|
30
|
+
return v.path === ((m = e.meta) == null ? void 0 : m.currentActivePath);
|
|
32
31
|
})) == null ? void 0 : n[0].name), t.isReloadFlag ? void 0 : i;
|
|
33
32
|
});
|
|
34
33
|
return (e, i) => {
|
|
@@ -37,8 +36,8 @@ const k = (
|
|
|
37
36
|
default: y(({ Component: r, route: n }) => [
|
|
38
37
|
e.openKeepAlive ? (a(), l(C, {
|
|
39
38
|
key: 0,
|
|
40
|
-
include:
|
|
41
|
-
exclude:
|
|
39
|
+
include: s.value,
|
|
40
|
+
exclude: d.value(n)
|
|
42
41
|
}, [
|
|
43
42
|
e.isReloadFlag ? (a(), l(p(c.value(r)), {
|
|
44
43
|
key: g(A)(n)
|
|
@@ -53,5 +52,5 @@ const k = (
|
|
|
53
52
|
}
|
|
54
53
|
});
|
|
55
54
|
export {
|
|
56
|
-
|
|
55
|
+
L as default
|
|
57
56
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { rowContextKey as
|
|
3
|
-
import { useNamespace as
|
|
1
|
+
import { defineComponent as l, computed as r, provide as u, openBlock as m, createBlock as p, resolveDynamicComponent as f, normalizeClass as c, normalizeStyle as g, withCtx as d, renderSlot as y } from "vue";
|
|
2
|
+
import { rowContextKey as v } from "./constants.js";
|
|
3
|
+
import { useNamespace as w } from "../../hooks/use-namespace/index.js";
|
|
4
4
|
import "@popperjs/core";
|
|
5
5
|
import "lodash";
|
|
6
6
|
import "../../hooks/use-z-index/index.js";
|
|
@@ -9,33 +9,32 @@ import "@vft/utils";
|
|
|
9
9
|
import "../../utils/ns-cover.js";
|
|
10
10
|
const o = (
|
|
11
11
|
/* hoist-static*/
|
|
12
|
-
|
|
13
|
-
),
|
|
14
|
-
name: o.b()
|
|
15
|
-
|
|
16
|
-
...C,
|
|
12
|
+
w("row")
|
|
13
|
+
), K = /* @__PURE__ */ l({
|
|
14
|
+
name: o.b(),
|
|
15
|
+
__name: "row",
|
|
17
16
|
props: {
|
|
18
17
|
tag: { default: "div" },
|
|
19
18
|
gutter: { default: 0 },
|
|
20
19
|
justify: { default: "start" },
|
|
21
20
|
align: { default: "top" }
|
|
22
21
|
},
|
|
23
|
-
setup(
|
|
24
|
-
const t =
|
|
25
|
-
u(
|
|
26
|
-
gutter:
|
|
22
|
+
setup(s) {
|
|
23
|
+
const t = s, a = r(() => t.gutter);
|
|
24
|
+
u(v, {
|
|
25
|
+
gutter: a
|
|
27
26
|
});
|
|
28
|
-
const
|
|
27
|
+
const n = r(() => {
|
|
29
28
|
const e = {};
|
|
30
29
|
return t.gutter && (e.marginRight = e.marginLeft = `-${t.gutter / 2}px`), e;
|
|
31
|
-
}),
|
|
30
|
+
}), i = r(() => [
|
|
32
31
|
o.b(),
|
|
33
32
|
o.is(`justify-${t.justify}`, t.justify !== "start"),
|
|
34
33
|
o.is(`align-${t.align}`, t.align !== "top")
|
|
35
34
|
]);
|
|
36
|
-
return (e,
|
|
37
|
-
class: c(
|
|
38
|
-
style: g(
|
|
35
|
+
return (e, C) => (m(), p(f(e.tag), {
|
|
36
|
+
class: c(i.value),
|
|
37
|
+
style: g(n.value)
|
|
39
38
|
}, {
|
|
40
39
|
default: d(() => [
|
|
41
40
|
y(e.$slots, "default")
|
|
@@ -45,5 +44,5 @@ const o = (
|
|
|
45
44
|
}
|
|
46
45
|
});
|
|
47
46
|
export {
|
|
48
|
-
|
|
47
|
+
K as default
|
|
49
48
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as V, ref as o, computed as w, watch as T, nextTick as E, provide as j, reactive as D, onMounted as G, onUpdated as X, openBlock as g, createElementBlock as Y, normalizeClass as b, unref as q, createElementVNode as F, normalizeStyle as N, createBlock as R, resolveDynamicComponent as I, withCtx as J, renderSlot as Q, createCommentVNode as Z } from "vue";
|
|
2
2
|
import { useResizeObserver as _, useEventListener as ee } from "@vueuse/core";
|
|
3
|
-
import { isNumber as
|
|
3
|
+
import { isNumber as i, addUnit as B, isObject as te } from "@vft/utils";
|
|
4
4
|
import { useNamespace as le } from "../../hooks/use-namespace/index.js";
|
|
5
5
|
import "@popperjs/core";
|
|
6
6
|
import "lodash";
|
|
@@ -13,10 +13,9 @@ import { scrollbarContextKey as oe } from "./constants.js";
|
|
|
13
13
|
const M = "ElScrollbar", s = (
|
|
14
14
|
/* hoist-static*/
|
|
15
15
|
le("scrollbar")
|
|
16
|
-
),
|
|
17
|
-
name: s.b()
|
|
18
|
-
|
|
19
|
-
...ie,
|
|
16
|
+
), we = /* @__PURE__ */ V({
|
|
17
|
+
name: s.b(),
|
|
18
|
+
__name: "scrollbar",
|
|
20
19
|
props: {
|
|
21
20
|
height: { default: "" },
|
|
22
21
|
maxHeight: { default: "" },
|
|
@@ -34,40 +33,40 @@ const M = "ElScrollbar", s = (
|
|
|
34
33
|
scroll: ({
|
|
35
34
|
scrollTop: l,
|
|
36
35
|
scrollLeft: v
|
|
37
|
-
}) => [l, v].every(
|
|
36
|
+
}) => [l, v].every(i)
|
|
38
37
|
},
|
|
39
|
-
setup(l, { expose: v, emit:
|
|
38
|
+
setup(l, { expose: v, emit: L }) {
|
|
40
39
|
let n, c;
|
|
41
|
-
const S = o(), t = o(), p = o(), x = o("0"), z = o("0"), d = o(), C = o(1), H = o(1),
|
|
40
|
+
const S = o(), t = o(), p = o(), x = o("0"), z = o("0"), d = o(), C = o(1), H = o(1), $ = w(() => {
|
|
42
41
|
const e = {};
|
|
43
42
|
return l.height && (e.height = B(l.height)), l.maxHeight && (e.maxHeight = B(l.maxHeight)), [l.wrapStyle, e];
|
|
44
|
-
}),
|
|
43
|
+
}), K = w(() => [
|
|
45
44
|
l.wrapClass,
|
|
46
45
|
s.e("wrap"),
|
|
47
46
|
{ [s.em("wrap", "hidden-default")]: !l.native }
|
|
48
|
-
]),
|
|
47
|
+
]), O = w(() => [s.e("view"), l.viewClass]), k = () => {
|
|
49
48
|
var e;
|
|
50
|
-
t.value && ((e = d.value) == null || e.handleScroll(t.value),
|
|
49
|
+
t.value && ((e = d.value) == null || e.handleScroll(t.value), L("scroll", {
|
|
51
50
|
scrollTop: t.value.scrollTop,
|
|
52
51
|
scrollLeft: t.value.scrollLeft
|
|
53
52
|
}));
|
|
54
53
|
};
|
|
55
|
-
function
|
|
56
|
-
te(e) ? t.value.scrollTo(e) :
|
|
54
|
+
function A(e, a) {
|
|
55
|
+
te(e) ? t.value.scrollTo(e) : i(e) && i(a) && t.value.scrollTo(e, a);
|
|
57
56
|
}
|
|
58
|
-
const
|
|
59
|
-
if (!
|
|
57
|
+
const P = (e) => {
|
|
58
|
+
if (!i(e)) {
|
|
60
59
|
W(M, "value must be a number");
|
|
61
60
|
return;
|
|
62
61
|
}
|
|
63
62
|
t.value.scrollTop = e;
|
|
64
|
-
},
|
|
65
|
-
if (!
|
|
63
|
+
}, U = (e) => {
|
|
64
|
+
if (!i(e)) {
|
|
66
65
|
W(M, "value must be a number");
|
|
67
66
|
return;
|
|
68
67
|
}
|
|
69
68
|
t.value.scrollLeft = e;
|
|
70
|
-
},
|
|
69
|
+
}, r = () => {
|
|
71
70
|
if (!t.value)
|
|
72
71
|
return;
|
|
73
72
|
const e = t.value.offsetHeight - m, a = t.value.offsetWidth - m, h = e ** 2 / t.value.scrollHeight, y = a ** 2 / t.value.scrollWidth, f = Math.max(h, l.minSize), u = Math.max(y, l.minSize);
|
|
@@ -76,7 +75,7 @@ const M = "ElScrollbar", s = (
|
|
|
76
75
|
return T(
|
|
77
76
|
() => l.noresize,
|
|
78
77
|
(e) => {
|
|
79
|
-
e ? (n == null || n(), c == null || c()) : ({ stop: n } = _(p,
|
|
78
|
+
e ? (n == null || n(), c == null || c()) : ({ stop: n } = _(p, r), c = ee("resize", r));
|
|
80
79
|
},
|
|
81
80
|
{ immediate: !0 }
|
|
82
81
|
), T(
|
|
@@ -84,7 +83,7 @@ const M = "ElScrollbar", s = (
|
|
|
84
83
|
() => {
|
|
85
84
|
l.native || E(() => {
|
|
86
85
|
var e;
|
|
87
|
-
|
|
86
|
+
r(), t.value && ((e = d.value) == null || e.handleScroll(t.value));
|
|
88
87
|
});
|
|
89
88
|
}
|
|
90
89
|
), j(
|
|
@@ -95,19 +94,19 @@ const M = "ElScrollbar", s = (
|
|
|
95
94
|
})
|
|
96
95
|
), G(() => {
|
|
97
96
|
l.native || E(() => {
|
|
98
|
-
|
|
97
|
+
r();
|
|
99
98
|
});
|
|
100
|
-
}), X(() =>
|
|
99
|
+
}), X(() => r()), v({
|
|
101
100
|
/** @description scrollbar wrap ref */
|
|
102
101
|
wrapRef: t,
|
|
103
102
|
/** @description update scrollbar state manually */
|
|
104
|
-
update:
|
|
103
|
+
update: r,
|
|
105
104
|
/** @description scrolls to a particular set of coordinates */
|
|
106
|
-
scrollTo:
|
|
105
|
+
scrollTo: A,
|
|
107
106
|
/** @description set distance to scroll top */
|
|
108
|
-
setScrollTop:
|
|
107
|
+
setScrollTop: P,
|
|
109
108
|
/** @description set distance to scroll left */
|
|
110
|
-
setScrollLeft:
|
|
109
|
+
setScrollLeft: U,
|
|
111
110
|
/** @description handle scroll event */
|
|
112
111
|
handleScroll: k
|
|
113
112
|
}), (e, a) => (g(), Y("div", {
|
|
@@ -118,14 +117,14 @@ const M = "ElScrollbar", s = (
|
|
|
118
117
|
F("div", {
|
|
119
118
|
ref_key: "wrapRef",
|
|
120
119
|
ref: t,
|
|
121
|
-
class: b(
|
|
122
|
-
style: N(
|
|
120
|
+
class: b(K.value),
|
|
121
|
+
style: N($.value),
|
|
123
122
|
onScroll: k
|
|
124
123
|
}, [
|
|
125
124
|
(g(), R(I(e.tag), {
|
|
126
125
|
ref_key: "resizeRef",
|
|
127
126
|
ref: p,
|
|
128
|
-
class: b(
|
|
127
|
+
class: b(O.value),
|
|
129
128
|
style: N(e.viewStyle)
|
|
130
129
|
}, {
|
|
131
130
|
default: J(() => [
|
|
@@ -148,5 +147,5 @@ const M = "ElScrollbar", s = (
|
|
|
148
147
|
}
|
|
149
148
|
});
|
|
150
149
|
export {
|
|
151
|
-
|
|
150
|
+
we as default
|
|
152
151
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as O, ref as a, computed as f, resolveDirective as j, openBlock as h, createElementBlock as w, Fragment as q, withDirectives as G, normalizeClass as g, unref as r, normalizeStyle as J, createVNode as Q, mergeProps as b, createSlots as T, withCtx as u, renderSlot as i, createBlock as X, createElementVNode as Y, createCommentVNode as Z } from "vue";
|
|
2
2
|
import { VftInput as _ } from "../input/index.js";
|
|
3
3
|
import { VftPopover as ee } from "../popover/index.js";
|
|
4
4
|
import { useNamespace as oe } from "../../hooks/use-namespace/index.js";
|
|
@@ -11,10 +11,9 @@ import { generateCssVars as $ } from "../../utils/ns-cover.js";
|
|
|
11
11
|
const c = (
|
|
12
12
|
/* hoist-static*/
|
|
13
13
|
oe("search")
|
|
14
|
-
),
|
|
15
|
-
name: c.b()
|
|
16
|
-
|
|
17
|
-
...te,
|
|
14
|
+
), ce = /* @__PURE__ */ O({
|
|
15
|
+
name: c.b(),
|
|
16
|
+
__name: "search",
|
|
18
17
|
props: {
|
|
19
18
|
width: { default: 200 },
|
|
20
19
|
activeWidth: {},
|
|
@@ -28,22 +27,22 @@ const c = (
|
|
|
28
27
|
clearIcon: {}
|
|
29
28
|
},
|
|
30
29
|
emits: ["update:modelValue", "blur", "focus", "clear", "enter", "prefixClick", "suffixClick", "mouseenter", "mouseleave", "keydown", "change"],
|
|
31
|
-
setup(o, { expose:
|
|
32
|
-
const k = a(), C = a(), y = a(), v = a(!1), p = a(!1), l = a(!1),
|
|
30
|
+
setup(o, { expose: P, emit: t }) {
|
|
31
|
+
const k = a(), C = a(), y = a(), v = a(!1), p = a(!1), l = a(!1), B = f(
|
|
33
32
|
() => $(
|
|
34
33
|
{
|
|
35
34
|
width: o.activeWidth && (l.value || o.modelValue) ? d(o.activeWidth) : d(o.width)
|
|
36
35
|
},
|
|
37
36
|
"input"
|
|
38
37
|
)
|
|
39
|
-
),
|
|
38
|
+
), R = f(
|
|
40
39
|
() => $(
|
|
41
40
|
{
|
|
42
41
|
"active-width": o.activeWidth ? d(o.activeWidth) : d(o.width)
|
|
43
42
|
},
|
|
44
43
|
"search"
|
|
45
44
|
)
|
|
46
|
-
),
|
|
45
|
+
), S = f(() => ({
|
|
47
46
|
"show-arrow": !1,
|
|
48
47
|
transition: "vft-zoom-in-top-fast",
|
|
49
48
|
placement: "bottom-start",
|
|
@@ -51,83 +50,83 @@ const c = (
|
|
|
51
50
|
offset: 3,
|
|
52
51
|
width: 500,
|
|
53
52
|
...o.popoverCfg
|
|
54
|
-
})),
|
|
53
|
+
})), x = (e) => {
|
|
55
54
|
t("update:modelValue", e);
|
|
56
|
-
},
|
|
55
|
+
}, I = () => {
|
|
57
56
|
m();
|
|
58
57
|
};
|
|
59
|
-
function
|
|
58
|
+
function W() {
|
|
60
59
|
l.value = !0;
|
|
61
60
|
}
|
|
62
61
|
function m() {
|
|
63
62
|
l.value = !1;
|
|
64
63
|
}
|
|
65
|
-
const
|
|
64
|
+
const E = () => {
|
|
66
65
|
s(), t("update:modelValue", ""), t("clear");
|
|
67
66
|
};
|
|
68
|
-
function
|
|
67
|
+
function F() {
|
|
69
68
|
p.value = !0, t("mouseenter", o.modelValue);
|
|
70
69
|
}
|
|
71
|
-
function
|
|
70
|
+
function M() {
|
|
72
71
|
p.value = !1, t("mouseleave", o.modelValue);
|
|
73
72
|
}
|
|
74
|
-
const
|
|
73
|
+
const N = () => {
|
|
75
74
|
l.value = !0, v.value = !0, t("focus");
|
|
76
75
|
};
|
|
77
|
-
function
|
|
76
|
+
function z() {
|
|
78
77
|
v.value = !1, t("blur");
|
|
79
78
|
}
|
|
80
|
-
function
|
|
79
|
+
function D() {
|
|
81
80
|
s(), t("prefixClick", o.modelValue);
|
|
82
81
|
}
|
|
83
|
-
function
|
|
82
|
+
function K() {
|
|
84
83
|
s(), t("suffixClick", o.modelValue);
|
|
85
84
|
}
|
|
86
|
-
function
|
|
85
|
+
function U() {
|
|
87
86
|
s(), t("enter", o.modelValue);
|
|
88
87
|
}
|
|
89
88
|
function s() {
|
|
90
89
|
o.usePopover && m(), y.value.blur();
|
|
91
90
|
}
|
|
92
|
-
const
|
|
91
|
+
const A = (e) => {
|
|
93
92
|
t("keydown", e);
|
|
94
|
-
},
|
|
93
|
+
}, H = f(() => {
|
|
95
94
|
var e, n;
|
|
96
95
|
return (n = (e = k.value) == null ? void 0 : e.popperRef) == null ? void 0 : n.contentRef;
|
|
97
96
|
});
|
|
98
|
-
return
|
|
97
|
+
return P({
|
|
99
98
|
isFocus: v,
|
|
100
99
|
isHover: p,
|
|
101
100
|
visible: l,
|
|
102
101
|
hidePopover: m,
|
|
103
|
-
showPopover:
|
|
102
|
+
showPopover: W
|
|
104
103
|
}), (e, n) => {
|
|
105
|
-
const
|
|
104
|
+
const L = j("click-outside");
|
|
106
105
|
return h(), w(q, null, [
|
|
107
106
|
G((h(), w("div", {
|
|
108
107
|
ref_key: "searchRef",
|
|
109
108
|
ref: C,
|
|
110
109
|
class: g([r(c).b(), r(c).is("active", l.value || e.modelValue)]),
|
|
111
|
-
style: J(
|
|
110
|
+
style: J(R.value)
|
|
112
111
|
}, [
|
|
113
112
|
Q(r(_), b({
|
|
114
113
|
ref_key: "inputRef",
|
|
115
114
|
ref: y
|
|
116
115
|
}, e.$props, {
|
|
117
|
-
inputStyle:
|
|
118
|
-
onInput:
|
|
119
|
-
onFocus:
|
|
120
|
-
onEnter:
|
|
121
|
-
onBlur:
|
|
122
|
-
onMouseenter:
|
|
123
|
-
onMouseleave:
|
|
124
|
-
onPrefixClick:
|
|
125
|
-
onSuffixClick:
|
|
116
|
+
inputStyle: B.value,
|
|
117
|
+
onInput: x,
|
|
118
|
+
onFocus: N,
|
|
119
|
+
onEnter: U,
|
|
120
|
+
onBlur: z,
|
|
121
|
+
onMouseenter: F,
|
|
122
|
+
onMouseleave: M,
|
|
123
|
+
onPrefixClick: D,
|
|
124
|
+
onSuffixClick: K,
|
|
126
125
|
onChange: n[0] || (n[0] = (V) => {
|
|
127
126
|
t("change", e.modelValue);
|
|
128
127
|
}),
|
|
129
|
-
onKeydown:
|
|
130
|
-
onClear:
|
|
128
|
+
onKeydown: A,
|
|
129
|
+
onClear: E
|
|
131
130
|
}), T({ _: 2 }, [
|
|
132
131
|
e.$slots.prefix ? {
|
|
133
132
|
name: "prefix",
|
|
@@ -159,13 +158,13 @@ const c = (
|
|
|
159
158
|
} : void 0
|
|
160
159
|
]), 1040, ["inputStyle"])
|
|
161
160
|
], 6)), [
|
|
162
|
-
[
|
|
161
|
+
[L, I, H.value]
|
|
163
162
|
]),
|
|
164
163
|
e.usePopover ? (h(), X(r(ee), b({
|
|
165
164
|
key: 0,
|
|
166
165
|
ref_key: "popoverRef",
|
|
167
166
|
ref: k
|
|
168
|
-
},
|
|
167
|
+
}, S.value, {
|
|
169
168
|
"virtual-ref": C.value,
|
|
170
169
|
visible: l.value,
|
|
171
170
|
"onUpdate:visible": n[1] || (n[1] = (V) => l.value = V),
|
|
@@ -185,5 +184,5 @@ const c = (
|
|
|
185
184
|
}
|
|
186
185
|
});
|
|
187
186
|
export {
|
|
188
|
-
|
|
187
|
+
ce as default
|
|
189
188
|
};
|