vft 0.0.89 → 0.0.91
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/es/comp-resolver.js +20 -29
- package/es/components/affix/affix.vue2.js +34 -34
- package/es/components/alert/alert.vue2.js +44 -44
- package/es/components/avatar/avatar.vue2.js +28 -28
- package/es/components/backtop/backtop.vue2.js +11 -11
- package/es/components/button/button-group.vue2.js +8 -8
- package/es/components/button/button.vue2.js +39 -39
- package/es/components/card/card.vue2.js +20 -20
- package/es/components/check-tag/check-tag.vue2.js +14 -14
- package/es/components/checkbox/checkbox-button.vue2.js +61 -61
- package/es/components/checkbox/checkbox-group.vue2.js +27 -27
- package/es/components/checkbox/checkbox.vue2.js +81 -81
- package/es/components/clamp/clamp.vue2.js +59 -59
- package/es/components/clamp-toggle/clamp-toggle.vue2.js +25 -25
- package/es/components/col/col.vue2.js +33 -33
- package/es/components/color-picker/color-picker.vue2.js +126 -126
- package/es/components/color-picker/components/alpha-slider.vue2.js +12 -12
- package/es/components/config-provider/config-provider.vue2.js +29 -29
- package/es/components/container/aside.vue2.js +9 -9
- package/es/components/container/container.vue2.js +11 -11
- package/es/components/container/footer.vue2.js +8 -8
- package/es/components/container/header.vue2.js +9 -9
- package/es/components/context-menu/context-menu.vue2.js +29 -29
- package/es/components/date-picker/date-picker-com/basic-date-table.vue2.js +53 -53
- package/es/components/date-picker/date-picker-com/basic-month-table.vue2.js +19 -19
- package/es/components/date-picker/date-picker-com/basic-year-table.vue2.js +32 -32
- package/es/components/date-picker/date-picker-com/panel-date-pick.vue2.js +168 -168
- package/es/components/date-picker/date-picker-com/panel-date-range.vue2.js +89 -89
- package/es/components/date-picker/date-picker-com/panel-month-range.vue2.js +38 -38
- package/es/components/descriptions/description-item.vue2.js +16 -16
- package/es/components/descriptions/description.vue2.js +54 -54
- package/es/components/descriptions/descriptions-row.vue2.js +24 -24
- package/es/components/dialog/dialog-content.vue2.js +30 -30
- package/es/components/dialog/dialog.vue2.js +64 -64
- package/es/components/divider/divider.vue2.js +20 -20
- package/es/components/dropdown/dropdown.vue.js +2 -127
- package/es/components/dropdown/dropdown.vue2.js +234 -181
- package/es/components/dropdown/index.js +10 -17
- package/es/components/dropdown/style/css.js +5 -0
- package/es/components/dropdown/style/index.js +5 -0
- package/es/components/dropdown/tokens.js +1 -1
- package/es/components/empty/empty.vue2.js +27 -27
- package/es/components/exception/exception.vue2.js +19 -19
- package/es/components/footer-layout/footer-layout.vue2.js +1 -1
- package/es/components/form/form-item.vue2.js +77 -77
- package/es/components/form/form.vue2.js +37 -37
- package/es/components/full-screen/full-screen.vue2.js +26 -15
- package/es/components/header-layout/header-layout.vue2.js +27 -27
- package/es/components/horizontal-menu/horizontal-menu.vue2.js +43 -43
- package/es/components/icon/icon.vue2.js +24 -24
- package/es/components/icon-text/icon-text.vue2.js +27 -27
- package/es/components/iframe-layout/iframe-layout.vue2.js +18 -18
- package/es/components/iframe-layout/iframe-page.vue2.js +11 -11
- package/es/components/image/image.vue2.js +73 -73
- package/es/components/image-viewer/image-viewer.vue2.js +109 -109
- package/es/components/index.js +145 -150
- package/es/components/input/input.vue2.js +175 -175
- package/es/components/link/link.vue2.js +27 -27
- package/es/components/list-cell/list-cell.vue2.js +8 -8
- package/es/components/logo/logo.vue2.js +27 -27
- package/es/components/md-container/md-container.vue2.js +1 -1
- package/es/components/md-vue-playground/md-vue-playground.vue2.js +16 -16
- package/es/components/menu/menu-item-group.vue2.js +15 -15
- package/es/components/menu/menu-item.vue2.js +56 -56
- package/es/components/menu/menu.vue2.js +20 -20
- package/es/components/menu/sub-menu.vue2.js +16 -16
- package/es/components/message/message.vue2.js +81 -81
- package/es/components/multiple-tabs/multiple-tabs.vue2.js +12 -12
- package/es/components/multiple-tabs/tab-content.vue2.js +16 -16
- package/es/components/overlay/overlay.vue2.js +14 -14
- package/es/components/page-wrapper/page-wrapper.vue2.js +12 -12
- package/es/components/pagination/components/jumper.vue2.js +22 -22
- package/es/components/pagination/components/next.vue2.js +12 -12
- package/es/components/pagination/components/pager.vue2.js +75 -75
- package/es/components/pagination/components/prev.vue2.js +13 -13
- package/es/components/pagination/components/sizes.vue2.js +11 -11
- package/es/components/pagination/components/total.vue2.js +8 -8
- package/es/components/pagination/pagination.vue2.js +28 -28
- package/es/components/popconfirm/popconfirm.vue2.js +50 -50
- package/es/components/popover/popover.vue2.js +44 -44
- package/es/components/popper/arrow.vue2.js +2 -2
- package/es/components/popper/content.vue2.js +34 -34
- package/es/components/popper/popper.vue2.js +5 -5
- package/es/components/popper/trigger.vue2.js +48 -48
- package/es/components/qrcode/qrcode.vue2.js +35 -35
- package/es/components/radio/radio-button.vue2.js +28 -28
- package/es/components/radio/radio-group.vue2.js +26 -26
- package/es/components/radio/radio.vue2.js +44 -44
- package/es/components/result/result.vue2.js +10 -10
- package/es/components/router-view-content/router-view-content.vue2.js +20 -20
- package/es/components/row/row.vue2.js +19 -19
- package/es/components/scrollbar/bar.vue2.js +19 -19
- package/es/components/scrollbar/scrollbar.vue2.js +67 -67
- package/es/components/scrollbar/thumb.vue2.js +41 -41
- package/es/components/search/search.vue2.js +65 -65
- package/es/components/side-menu/side-menu.vue2.js +36 -36
- package/es/components/skeleton/skeleton-item.vue2.js +13 -13
- package/es/components/skeleton/skeleton.vue2.js +19 -19
- package/es/components/switch/switch.vue2.js +128 -128
- package/es/components/table/index.js +5 -3
- package/es/components/table/table.vue2.js +70 -70
- package/es/components/tabs/tab-bar.vue2.js +15 -15
- package/es/components/tabs/tab-nav.vue2.js +33 -33
- package/es/components/tabs/tab-pane.vue2.js +21 -21
- package/es/components/tabs/tabs.vue2.js +64 -66
- package/es/components/tag/tag.vue2.js +7 -7
- package/es/components/time-picker/common/picker.vue2.js +14 -14
- package/es/components/time-picker/time-picker-com/basic-time-spinner.vue2.js +60 -60
- package/es/components/time-picker/time-picker-com/panel-time-pick.vue2.js +30 -30
- package/es/components/time-picker/time-picker-com/panel-time-range.vue2.js +57 -57
- package/es/components/time-select/time-select.vue2.js +29 -29
- package/es/components/tooltip/constants.js +1 -1
- package/es/components/tooltip/content.vue2.js +73 -73
- package/es/components/tooltip/tooltip.vue2.js +91 -91
- package/es/components/tooltip/trigger.vue2.js +33 -33
- package/es/components/verify-code/verify-code.vue2.js +25 -25
- package/es/index.js +208 -213
- package/es/package.json.js +1 -1
- package/lib/comp-resolver.cjs +1 -1
- package/lib/components/affix/affix.vue2.cjs +1 -1
- package/lib/components/alert/alert.vue2.cjs +1 -1
- package/lib/components/avatar/avatar.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/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/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-date-range.vue2.cjs +1 -1
- package/lib/components/date-picker/date-picker-com/panel-month-range.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.vue.cjs +1 -1
- package/lib/components/dropdown/dropdown.vue2.cjs +1 -1
- package/lib/components/dropdown/index.cjs +1 -1
- package/lib/components/dropdown/style/css.cjs +1 -1
- package/lib/components/dropdown/style/index.cjs +1 -1
- package/lib/components/dropdown/tokens.cjs +1 -1
- package/lib/components/empty/empty.vue2.cjs +1 -1
- package/lib/components/exception/exception.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/index.cjs +1 -1
- package/lib/components/input/input.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-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/message/message.vue2.cjs +1 -1
- package/lib/components/multiple-tabs/multiple-tabs.vue2.cjs +1 -1
- package/lib/components/multiple-tabs/tab-content.vue2.cjs +1 -1
- package/lib/components/overlay/overlay.vue2.cjs +1 -1
- package/lib/components/page-wrapper/page-wrapper.vue2.cjs +1 -1
- package/lib/components/pagination/components/jumper.vue2.cjs +1 -1
- package/lib/components/pagination/components/next.vue2.cjs +1 -1
- package/lib/components/pagination/components/pager.vue2.cjs +1 -1
- package/lib/components/pagination/components/prev.vue2.cjs +1 -1
- package/lib/components/pagination/components/sizes.vue2.cjs +1 -1
- package/lib/components/pagination/components/total.vue2.cjs +1 -1
- package/lib/components/pagination/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/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/bar.vue2.cjs +1 -1
- package/lib/components/scrollbar/scrollbar.vue2.cjs +1 -1
- package/lib/components/scrollbar/thumb.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/index.cjs +1 -1
- package/lib/components/table/table.vue2.cjs +1 -1
- package/lib/components/tabs/tab-bar.vue2.cjs +1 -1
- package/lib/components/tabs/tab-nav.vue2.cjs +1 -1
- package/lib/components/tabs/tab-pane.vue2.cjs +1 -1
- package/lib/components/tabs/tabs.vue2.cjs +1 -1
- package/lib/components/tag/tag.vue2.cjs +1 -1
- package/lib/components/time-picker/common/picker.vue2.cjs +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/tooltip/constants.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/index.cjs +1 -1
- package/lib/package.json.cjs +1 -1
- package/package.json +5 -5
- package/tags.json +1 -1
- package/web-types.json +1 -1
- package/theme-style/vft-back-top.css +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as P, ref as
|
|
1
|
+
import { defineComponent as P, 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";
|
|
@@ -6,115 +6,115 @@ import "@popperjs/core";
|
|
|
6
6
|
import "lodash";
|
|
7
7
|
import "../../hooks/use-z-index/index.js";
|
|
8
8
|
import "@vueuse/core";
|
|
9
|
-
import { addUnit as
|
|
9
|
+
import { addUnit as d } from "@vft/utils";
|
|
10
10
|
import { generateCssVars as $ } from "../../utils/ns-cover.js";
|
|
11
|
-
const
|
|
11
|
+
const c = (
|
|
12
12
|
/* hoist-static*/
|
|
13
13
|
oe("search")
|
|
14
14
|
), te = P({
|
|
15
|
-
name:
|
|
15
|
+
name: c.b()
|
|
16
16
|
}), ve = /* @__PURE__ */ P({
|
|
17
17
|
...te,
|
|
18
18
|
props: {
|
|
19
|
+
width: { default: 200 },
|
|
20
|
+
activeWidth: {},
|
|
21
|
+
usePopover: { type: Boolean, default: !0 },
|
|
22
|
+
popoverCfg: {},
|
|
19
23
|
modelValue: { default: "" },
|
|
20
|
-
placeholder: null,
|
|
21
24
|
clearable: { type: Boolean, default: !0 },
|
|
25
|
+
placeholder: {},
|
|
22
26
|
suffixIcon: { default: { icon: "ico-ep:search", color: "#8B8C8C", pointer: !0 } },
|
|
23
|
-
prefixIcon:
|
|
24
|
-
clearIcon:
|
|
25
|
-
width: { default: 200 },
|
|
26
|
-
activeWidth: null,
|
|
27
|
-
usePopover: { type: Boolean, default: !0 },
|
|
28
|
-
popoverCfg: null
|
|
27
|
+
prefixIcon: {},
|
|
28
|
+
clearIcon: {}
|
|
29
29
|
},
|
|
30
30
|
emits: ["update:modelValue", "blur", "focus", "clear", "enter", "prefixClick", "suffixClick", "mouseenter", "mouseleave", "keydown", "change"],
|
|
31
|
-
setup(
|
|
32
|
-
const k =
|
|
31
|
+
setup(o, { expose: B, emit: t }) {
|
|
32
|
+
const k = a(), C = a(), y = a(), v = a(!1), p = a(!1), n = a(!1), R = f(
|
|
33
33
|
() => $(
|
|
34
34
|
{
|
|
35
|
-
width:
|
|
35
|
+
width: o.activeWidth && (n.value || o.modelValue) ? d(o.activeWidth) : d(o.width)
|
|
36
36
|
},
|
|
37
37
|
"input"
|
|
38
38
|
)
|
|
39
|
-
),
|
|
39
|
+
), S = f(
|
|
40
40
|
() => $(
|
|
41
41
|
{
|
|
42
|
-
"active-width":
|
|
42
|
+
"active-width": o.activeWidth ? d(o.activeWidth) : d(o.width)
|
|
43
43
|
},
|
|
44
44
|
"search"
|
|
45
45
|
)
|
|
46
|
-
),
|
|
46
|
+
), x = f(() => ({
|
|
47
47
|
"show-arrow": !1,
|
|
48
48
|
transition: "vft-zoom-in-top-fast",
|
|
49
49
|
placement: "bottom-start",
|
|
50
50
|
"hide-after": 100,
|
|
51
51
|
offset: 3,
|
|
52
52
|
width: 500,
|
|
53
|
-
...
|
|
54
|
-
})), I = (
|
|
55
|
-
t("update:modelValue",
|
|
53
|
+
...o.popoverCfg
|
|
54
|
+
})), I = (e) => {
|
|
55
|
+
t("update:modelValue", e);
|
|
56
56
|
}, W = () => {
|
|
57
57
|
m();
|
|
58
58
|
};
|
|
59
59
|
function E() {
|
|
60
|
-
|
|
60
|
+
n.value = !0;
|
|
61
61
|
}
|
|
62
62
|
function m() {
|
|
63
|
-
|
|
63
|
+
n.value = !1;
|
|
64
64
|
}
|
|
65
65
|
const F = () => {
|
|
66
|
-
|
|
66
|
+
s(), t("clear");
|
|
67
67
|
};
|
|
68
68
|
function M() {
|
|
69
|
-
p.value = !0, t("mouseenter",
|
|
69
|
+
p.value = !0, t("mouseenter", o.modelValue);
|
|
70
70
|
}
|
|
71
71
|
function N() {
|
|
72
|
-
p.value = !1, t("mouseleave",
|
|
72
|
+
p.value = !1, t("mouseleave", o.modelValue);
|
|
73
73
|
}
|
|
74
74
|
const z = () => {
|
|
75
|
-
|
|
75
|
+
n.value = !0, v.value = !0, t("focus");
|
|
76
76
|
};
|
|
77
77
|
function D() {
|
|
78
78
|
v.value = !1, t("blur");
|
|
79
79
|
}
|
|
80
80
|
function K() {
|
|
81
|
-
|
|
81
|
+
s(), t("prefixClick", o.modelValue);
|
|
82
82
|
}
|
|
83
83
|
function U() {
|
|
84
|
-
|
|
84
|
+
s(), t("suffixClick", o.modelValue);
|
|
85
85
|
}
|
|
86
86
|
function A() {
|
|
87
|
-
|
|
87
|
+
s(), t("enter", o.modelValue);
|
|
88
88
|
}
|
|
89
|
-
function
|
|
90
|
-
|
|
89
|
+
function s() {
|
|
90
|
+
o.usePopover && m(), y.value.blur();
|
|
91
91
|
}
|
|
92
|
-
const H = (
|
|
93
|
-
t("keydown",
|
|
94
|
-
}, L =
|
|
95
|
-
var
|
|
96
|
-
return (
|
|
92
|
+
const H = (e) => {
|
|
93
|
+
t("keydown", e);
|
|
94
|
+
}, L = f(() => {
|
|
95
|
+
var e, l;
|
|
96
|
+
return (l = (e = k.value) == null ? void 0 : e.popperRef) == null ? void 0 : l.contentRef;
|
|
97
97
|
});
|
|
98
|
-
return
|
|
98
|
+
return B({
|
|
99
99
|
isFocus: v,
|
|
100
100
|
isHover: p,
|
|
101
|
-
visible:
|
|
101
|
+
visible: n,
|
|
102
102
|
hidePopover: m,
|
|
103
103
|
showPopover: E
|
|
104
|
-
}), (
|
|
104
|
+
}), (e, l) => {
|
|
105
105
|
const O = j("click-outside");
|
|
106
106
|
return h(), w(q, null, [
|
|
107
107
|
G((h(), w("div", {
|
|
108
108
|
ref_key: "searchRef",
|
|
109
109
|
ref: C,
|
|
110
|
-
class: g([
|
|
111
|
-
style: J(
|
|
110
|
+
class: g([r(c).b(), r(c).is("active", n.value || e.modelValue)]),
|
|
111
|
+
style: J(S.value)
|
|
112
112
|
}, [
|
|
113
|
-
Q(
|
|
113
|
+
Q(r(_), b({
|
|
114
114
|
ref_key: "inputRef",
|
|
115
115
|
ref: y
|
|
116
|
-
},
|
|
117
|
-
inputStyle:
|
|
116
|
+
}, e.$props, {
|
|
117
|
+
inputStyle: R.value,
|
|
118
118
|
onInput: I,
|
|
119
119
|
onFocus: z,
|
|
120
120
|
onEnter: A,
|
|
@@ -123,59 +123,59 @@ const d = (
|
|
|
123
123
|
onMouseleave: N,
|
|
124
124
|
onPrefixClick: K,
|
|
125
125
|
onSuffixClick: U,
|
|
126
|
-
onChange:
|
|
126
|
+
onChange: l[0] || (l[0] = (V) => {
|
|
127
127
|
t("change", e.modelValue);
|
|
128
128
|
}),
|
|
129
129
|
onKeydown: H,
|
|
130
130
|
onClear: F
|
|
131
131
|
}), T({ _: 2 }, [
|
|
132
|
-
|
|
132
|
+
e.$slots.prefix ? {
|
|
133
133
|
name: "prefix",
|
|
134
|
-
fn:
|
|
135
|
-
i(
|
|
134
|
+
fn: u(() => [
|
|
135
|
+
i(e.$slots, "prefix")
|
|
136
136
|
]),
|
|
137
137
|
key: "0"
|
|
138
138
|
} : void 0,
|
|
139
|
-
|
|
139
|
+
e.$slots.suffix ? {
|
|
140
140
|
name: "suffix",
|
|
141
|
-
fn:
|
|
142
|
-
i(
|
|
141
|
+
fn: u(() => [
|
|
142
|
+
i(e.$slots, "suffix")
|
|
143
143
|
]),
|
|
144
144
|
key: "1"
|
|
145
145
|
} : void 0,
|
|
146
|
-
|
|
146
|
+
e.$slots.prepend ? {
|
|
147
147
|
name: "prepend",
|
|
148
|
-
fn:
|
|
149
|
-
i(
|
|
148
|
+
fn: u(() => [
|
|
149
|
+
i(e.$slots, "prepend")
|
|
150
150
|
]),
|
|
151
151
|
key: "2"
|
|
152
152
|
} : void 0,
|
|
153
|
-
|
|
153
|
+
e.$slots.append ? {
|
|
154
154
|
name: "append",
|
|
155
|
-
fn:
|
|
156
|
-
i(
|
|
155
|
+
fn: u(() => [
|
|
156
|
+
i(e.$slots, "append")
|
|
157
157
|
]),
|
|
158
158
|
key: "3"
|
|
159
159
|
} : void 0
|
|
160
160
|
]), 1040, ["inputStyle"])
|
|
161
161
|
], 6)), [
|
|
162
|
-
[O, W,
|
|
162
|
+
[O, W, L.value]
|
|
163
163
|
]),
|
|
164
|
-
e.usePopover ? (h(), X(
|
|
164
|
+
e.usePopover ? (h(), X(r(ee), b({
|
|
165
165
|
key: 0,
|
|
166
166
|
ref_key: "popoverRef",
|
|
167
167
|
ref: k
|
|
168
|
-
},
|
|
168
|
+
}, x.value, {
|
|
169
169
|
"virtual-ref": C.value,
|
|
170
|
-
visible:
|
|
171
|
-
"onUpdate:visible":
|
|
170
|
+
visible: n.value,
|
|
171
|
+
"onUpdate:visible": l[1] || (l[1] = (V) => n.value = V),
|
|
172
172
|
"virtual-triggering": ""
|
|
173
173
|
}), {
|
|
174
|
-
default:
|
|
174
|
+
default: u(() => [
|
|
175
175
|
Y("div", {
|
|
176
|
-
class: g(
|
|
176
|
+
class: g(r(c).e("content"))
|
|
177
177
|
}, [
|
|
178
|
-
i(
|
|
178
|
+
i(e.$slots, "default")
|
|
179
179
|
], 2)
|
|
180
180
|
]),
|
|
181
181
|
_: 3
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as I, toRefs as
|
|
1
|
+
import { defineComponent as I, toRefs as ne, useSlots as le, getCurrentInstance as re, ref as C, computed as v, h as M, createVNode as f, onMounted as ie, nextTick as ae, watch as pe, isVNode as ue } from "vue";
|
|
2
2
|
import "../divider/index.js";
|
|
3
3
|
import { VftIcon as se } from "../icon/index.js";
|
|
4
4
|
import "../avatar/index.js";
|
|
@@ -96,14 +96,14 @@ function Ce(b) {
|
|
|
96
96
|
}
|
|
97
97
|
const Me = I({
|
|
98
98
|
name: u.b()
|
|
99
|
-
}),
|
|
99
|
+
}), no = /* @__PURE__ */ I({
|
|
100
100
|
...Me,
|
|
101
101
|
props: {
|
|
102
102
|
isFixedLeft: {
|
|
103
103
|
type: Boolean,
|
|
104
104
|
default: !0
|
|
105
105
|
},
|
|
106
|
-
menus:
|
|
106
|
+
menus: {},
|
|
107
107
|
width: {
|
|
108
108
|
default: 200
|
|
109
109
|
},
|
|
@@ -113,7 +113,7 @@ const Me = I({
|
|
|
113
113
|
collapseWidth: {
|
|
114
114
|
default: 50
|
|
115
115
|
},
|
|
116
|
-
attrMapping:
|
|
116
|
+
attrMapping: {},
|
|
117
117
|
menuTopBottomHeight: {
|
|
118
118
|
default: 0
|
|
119
119
|
},
|
|
@@ -121,7 +121,7 @@ const Me = I({
|
|
|
121
121
|
type: Boolean,
|
|
122
122
|
default: !1
|
|
123
123
|
},
|
|
124
|
-
dragOption:
|
|
124
|
+
dragOption: {},
|
|
125
125
|
dragWidthCfg: {
|
|
126
126
|
type: [Boolean, Object],
|
|
127
127
|
default: !1
|
|
@@ -153,8 +153,8 @@ const Me = I({
|
|
|
153
153
|
type: Boolean,
|
|
154
154
|
default: !1
|
|
155
155
|
},
|
|
156
|
-
defaultActive:
|
|
157
|
-
defaultOpeneds:
|
|
156
|
+
defaultActive: {},
|
|
157
|
+
defaultOpeneds: {}
|
|
158
158
|
},
|
|
159
159
|
emits: ["update:collapse", "update:width", "dragEnd", "dragWidthEnd", "select", "subMenuClick", "menuItemMouseenter", "menuItemMouseleave"],
|
|
160
160
|
setup(b, {
|
|
@@ -165,9 +165,9 @@ const Me = I({
|
|
|
165
165
|
defaultActive: S,
|
|
166
166
|
collapse: h,
|
|
167
167
|
uniqueOpened: P,
|
|
168
|
-
defaultOpeneds:
|
|
168
|
+
defaultOpeneds: x,
|
|
169
169
|
openMenuCollapse: H
|
|
170
|
-
} =
|
|
170
|
+
} = ne(t), r = le(), B = re(), _ = C(), a = v(() => ({
|
|
171
171
|
path: "path",
|
|
172
172
|
children: "children",
|
|
173
173
|
title: "title",
|
|
@@ -181,12 +181,12 @@ const Me = I({
|
|
|
181
181
|
!e || (o = e.meta) != null && o.hideSide && !t.useRouterJump || (_.value = e.path);
|
|
182
182
|
});
|
|
183
183
|
const U = (e) => {
|
|
184
|
-
var
|
|
184
|
+
var n;
|
|
185
185
|
const o = e.e;
|
|
186
186
|
if (t.autoScrollActiveDom && o) {
|
|
187
|
-
const p = fe(t.autoScrollActiveDom) ? t.autoScrollActiveDom : 0,
|
|
188
|
-
(
|
|
189
|
-
y.value.menu.scrollTop = y.value.menu.scrollTop + (
|
|
187
|
+
const p = fe(t.autoScrollActiveDom) ? t.autoScrollActiveDom : 0, l = o.target;
|
|
188
|
+
(n = y.value) != null && n.menu && l && setTimeout(() => {
|
|
189
|
+
y.value.menu.scrollTop = y.value.menu.scrollTop + (l.getBoundingClientRect().top - y.value.menu.getBoundingClientRect().top) + p;
|
|
190
190
|
}, 300);
|
|
191
191
|
}
|
|
192
192
|
c("subMenuClick", e);
|
|
@@ -195,8 +195,8 @@ const Me = I({
|
|
|
195
195
|
}, Z = (e) => {
|
|
196
196
|
c("menuItemMouseleave", e);
|
|
197
197
|
}, T = (e, o) => {
|
|
198
|
-
const
|
|
199
|
-
return
|
|
198
|
+
const n = e[a.value.path], p = e[a.value.title], l = e == null ? void 0 : e[a.value.children], m = e == null ? void 0 : e[a.value.index], s = e == null ? void 0 : e[a.value.icon], d = !!(e != null && e[a.value.disabled]), g = t.disabledJudgeTurnOver ? !d : d, N = m || n || o + p;
|
|
199
|
+
return l != null && l.length ? M(
|
|
200
200
|
// @ts-ignore
|
|
201
201
|
ce,
|
|
202
202
|
{
|
|
@@ -210,7 +210,7 @@ const Me = I({
|
|
|
210
210
|
popperClass: u.e("popper")
|
|
211
211
|
},
|
|
212
212
|
{
|
|
213
|
-
default: () =>
|
|
213
|
+
default: () => l == null ? void 0 : l.map((i, X) => {
|
|
214
214
|
var V;
|
|
215
215
|
const w = i[a.value.path], W = i[a.value.index], ee = i[a.value.icon], te = i[a.value.title], A = !!i[a.value.disabled], oe = t.disabledJudgeTurnOver ? !A : A;
|
|
216
216
|
return (V = i == null ? void 0 : i[a.value.children]) != null && V.length ? T(i, X) : (
|
|
@@ -234,10 +234,10 @@ const Me = I({
|
|
|
234
234
|
}
|
|
235
235
|
) : M(j, {
|
|
236
236
|
...e,
|
|
237
|
-
key: m ||
|
|
238
|
-
index: m ||
|
|
237
|
+
key: m || n,
|
|
238
|
+
index: m || n,
|
|
239
239
|
title: p,
|
|
240
|
-
route:
|
|
240
|
+
route: n,
|
|
241
241
|
icon: s,
|
|
242
242
|
disabled: t.openDisabled && g,
|
|
243
243
|
onMouseenter: () => F(e),
|
|
@@ -255,33 +255,33 @@ const Me = I({
|
|
|
255
255
|
} : {},
|
|
256
256
|
height: `calc(100% - ${t.menuTopBottomHeight}px)`
|
|
257
257
|
})), z = v(() => {
|
|
258
|
-
var o,
|
|
258
|
+
var o, n;
|
|
259
259
|
let e;
|
|
260
260
|
return M(f(de, {
|
|
261
261
|
ref: y,
|
|
262
262
|
onSelect: Y,
|
|
263
263
|
onOpen: U,
|
|
264
264
|
defaultActive: (S == null ? void 0 : S.value) || _.value,
|
|
265
|
-
defaultOpeneds:
|
|
266
|
-
class: [u.e("con"), (o = t.dragOption) != null && o.dragClassName ? u.e((
|
|
265
|
+
defaultOpeneds: x == null ? void 0 : x.value,
|
|
266
|
+
class: [u.e("con"), (o = t.dragOption) != null && o.dragClassName ? u.e((n = t.dragOption) == null ? void 0 : n.dragClassName) : ""],
|
|
267
267
|
style: $.value,
|
|
268
268
|
collapse: H.value ? h.value : !1,
|
|
269
269
|
uniqueOpened: P.value,
|
|
270
270
|
collapseTransition: !1
|
|
271
|
-
}, Ce(e = t.menus.map((p,
|
|
271
|
+
}, Ce(e = t.menus.map((p, l) => T(p, l))) ? e : {
|
|
272
272
|
default: () => [e]
|
|
273
273
|
}));
|
|
274
274
|
}), D = B.appContext.config.globalProperties.$router;
|
|
275
275
|
async function Y(e) {
|
|
276
|
-
var o,
|
|
276
|
+
var o, n, p;
|
|
277
277
|
if (t.useRouterJump) {
|
|
278
278
|
const {
|
|
279
|
-
go:
|
|
279
|
+
go: l
|
|
280
280
|
} = ve(D), m = e.route;
|
|
281
281
|
let s = e.route;
|
|
282
282
|
e.indexPath.some((g) => me(g)) && (s = e.indexPath.slice(-2).join("/"));
|
|
283
|
-
const d = (p = (
|
|
284
|
-
|
|
283
|
+
const d = (p = (n = (o = D.getRoutes().filter((g) => g.path === s)) == null ? void 0 : o[0]) == null ? void 0 : n.meta) == null ? void 0 : p.linkTarget;
|
|
284
|
+
l(d ? {
|
|
285
285
|
url: m,
|
|
286
286
|
winOpenOpt: {
|
|
287
287
|
target: d
|
|
@@ -292,10 +292,10 @@ const Me = I({
|
|
|
292
292
|
}
|
|
293
293
|
ie(() => {
|
|
294
294
|
ae(() => {
|
|
295
|
-
var e, o,
|
|
295
|
+
var e, o, n;
|
|
296
296
|
if ((e = t.dragOption) != null && e.dragClassName) {
|
|
297
|
-
const p = (
|
|
298
|
-
initSortable:
|
|
297
|
+
const p = (n = document.querySelectorAll("." + u.e((o = t.dragOption) == null ? void 0 : o.dragClassName))) == null ? void 0 : n[0], {
|
|
298
|
+
initSortable: l
|
|
299
299
|
} = be(p, {
|
|
300
300
|
draggable: ".vft-menu-item",
|
|
301
301
|
onEnd: (m) => {
|
|
@@ -307,11 +307,11 @@ const Me = I({
|
|
|
307
307
|
},
|
|
308
308
|
...t.dragOption
|
|
309
309
|
});
|
|
310
|
-
|
|
310
|
+
l();
|
|
311
311
|
}
|
|
312
312
|
});
|
|
313
313
|
});
|
|
314
|
-
const
|
|
314
|
+
const O = C(), R = C(), k = C(), G = v(() => ({
|
|
315
315
|
...t.collapseWidth === 0 && h.value ? {
|
|
316
316
|
borderRight: "none"
|
|
317
317
|
} : {},
|
|
@@ -320,16 +320,16 @@ const Me = I({
|
|
|
320
320
|
}));
|
|
321
321
|
pe(() => h.value, (e) => {
|
|
322
322
|
e ? c("update:width", t.collapseWidth) : c("update:width", k.value || t.width), k.value = t.width;
|
|
323
|
-
}), t.dragWidthCfg && ye(
|
|
323
|
+
}), t.dragWidthCfg && ye(O, R, B);
|
|
324
324
|
const K = v(() => ({
|
|
325
325
|
left: q(t.width)
|
|
326
326
|
})), Q = v(() => [u.b(), t.isFixedLeft ? u.m("fixed") : ""]);
|
|
327
327
|
return L({
|
|
328
|
-
sideRef:
|
|
328
|
+
sideRef: O
|
|
329
329
|
}), () => {
|
|
330
330
|
var e;
|
|
331
331
|
return f("div", {
|
|
332
|
-
ref:
|
|
332
|
+
ref: O,
|
|
333
333
|
class: Q.value,
|
|
334
334
|
style: G.value
|
|
335
335
|
}, [r.top ? f("div", {
|
|
@@ -354,5 +354,5 @@ const Me = I({
|
|
|
354
354
|
}
|
|
355
355
|
});
|
|
356
356
|
export {
|
|
357
|
-
|
|
357
|
+
no as default
|
|
358
358
|
};
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { defineComponent as m, openBlock as r, createElementBlock as n, normalizeClass as a, unref as e, createBlock as i, createCommentVNode as
|
|
2
|
-
import { useNamespace as
|
|
1
|
+
import { defineComponent as m, openBlock as r, createElementBlock as n, normalizeClass as a, unref as e, createBlock as i, createCommentVNode as p } from "vue";
|
|
2
|
+
import { useNamespace as c } 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 "@vft/utils";
|
|
8
8
|
import "../../utils/ns-cover.js";
|
|
9
|
-
import { VftIcon as
|
|
10
|
-
const
|
|
9
|
+
import { VftIcon as s } from "../icon/index.js";
|
|
10
|
+
const l = m({
|
|
11
11
|
name: "VftSkeletonItem"
|
|
12
|
-
}),
|
|
13
|
-
...
|
|
12
|
+
}), g = /* @__PURE__ */ m({
|
|
13
|
+
...l,
|
|
14
14
|
props: {
|
|
15
15
|
variant: { default: "text" }
|
|
16
16
|
},
|
|
17
|
-
setup(
|
|
18
|
-
const
|
|
19
|
-
return (
|
|
20
|
-
class: a([e(
|
|
17
|
+
setup(f) {
|
|
18
|
+
const t = c("skeleton");
|
|
19
|
+
return (o, u) => (r(), n("div", {
|
|
20
|
+
class: a([e(t).e("item"), e(t).e(o.variant)])
|
|
21
21
|
}, [
|
|
22
|
-
|
|
22
|
+
o.variant === "image" ? (r(), i(e(s), {
|
|
23
23
|
key: 0,
|
|
24
24
|
icon: "ico-ep:picture-filled"
|
|
25
|
-
})) :
|
|
25
|
+
})) : p("", !0)
|
|
26
26
|
], 2));
|
|
27
27
|
}
|
|
28
28
|
});
|
|
29
29
|
export {
|
|
30
|
-
|
|
30
|
+
g as default
|
|
31
31
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as k, computed as y, unref as t, openBlock as
|
|
1
|
+
import { defineComponent as k, computed as y, unref as t, openBlock as o, createElementBlock as a, mergeProps as u, Fragment as s, renderList as p, renderSlot as d, createVNode as h, normalizeClass as f, createBlock as B, createCommentVNode as $, normalizeProps as w } from "vue";
|
|
2
2
|
import { useNamespace as v } from "../../hooks/use-namespace/index.js";
|
|
3
3
|
import "@popperjs/core";
|
|
4
4
|
import "lodash";
|
|
@@ -7,12 +7,12 @@ import "@vueuse/core";
|
|
|
7
7
|
import "@vft/utils";
|
|
8
8
|
import "../../utils/ns-cover.js";
|
|
9
9
|
import { useThrottleRender as C } from "../../hooks/use-throttle-render/index.js";
|
|
10
|
-
import
|
|
11
|
-
const
|
|
10
|
+
import c from "./skeleton-item.vue2.js";
|
|
11
|
+
const r = (
|
|
12
12
|
/* hoist-static*/
|
|
13
13
|
v("skeleton")
|
|
14
14
|
), N = k({
|
|
15
|
-
name:
|
|
15
|
+
name: r.b()
|
|
16
16
|
}), q = /* @__PURE__ */ k({
|
|
17
17
|
...N,
|
|
18
18
|
props: {
|
|
@@ -20,34 +20,34 @@ const a = (
|
|
|
20
20
|
count: { default: 1 },
|
|
21
21
|
rows: { default: 3 },
|
|
22
22
|
loading: { type: Boolean, default: !0 },
|
|
23
|
-
throttle:
|
|
23
|
+
throttle: {}
|
|
24
24
|
},
|
|
25
|
-
setup(
|
|
26
|
-
const
|
|
25
|
+
setup(n, { expose: g }) {
|
|
26
|
+
const l = C(y(() => n.loading), n.throttle);
|
|
27
27
|
return g({
|
|
28
28
|
/** @description loading state */
|
|
29
|
-
uiLoading:
|
|
30
|
-
}), (
|
|
29
|
+
uiLoading: l
|
|
30
|
+
}), (e, b) => t(l) ? (o(), a("div", u({
|
|
31
31
|
key: 0,
|
|
32
|
-
class: [t(
|
|
33
|
-
},
|
|
34
|
-
(
|
|
35
|
-
e.loading ?
|
|
36
|
-
h(
|
|
37
|
-
class: f(t(
|
|
32
|
+
class: [t(r).b(), t(r).is("animated", e.animated)]
|
|
33
|
+
}, e.$attrs), [
|
|
34
|
+
(o(!0), a(s, null, p(e.count, (m) => (o(), a(s, { key: m }, [
|
|
35
|
+
e.loading ? d(e.$slots, "template", { key: m }, () => [
|
|
36
|
+
h(c, {
|
|
37
|
+
class: f(t(r).is("first")),
|
|
38
38
|
variant: "p"
|
|
39
39
|
}, null, 8, ["class"]),
|
|
40
|
-
(
|
|
40
|
+
(o(!0), a(s, null, p(e.rows, (i) => (o(), B(c, {
|
|
41
41
|
key: i,
|
|
42
42
|
class: f([
|
|
43
|
-
t(
|
|
44
|
-
t(
|
|
43
|
+
t(r).e("paragraph"),
|
|
44
|
+
t(r).is("last", i === e.rows && e.rows > 1)
|
|
45
45
|
]),
|
|
46
46
|
variant: "p"
|
|
47
47
|
}, null, 8, ["class"]))), 128))
|
|
48
48
|
]) : $("", !0)
|
|
49
49
|
], 64))), 128))
|
|
50
|
-
], 16)) :
|
|
50
|
+
], 16)) : d(e.$slots, "default", w(u({ key: 1 }, e.$attrs)));
|
|
51
51
|
}
|
|
52
52
|
});
|
|
53
53
|
export {
|