vft 0.0.511 → 0.0.513
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +1 -1
- package/es/components/autocomplete/autocomplete.vue.d.ts +2 -2
- package/es/components/autocomplete/index.d.ts +6 -6
- package/es/components/button/index.d.ts +9 -9
- package/es/components/cascader/cascader.vue2.js +202 -203
- package/es/components/cascader-panel/menu.vue2.js +49 -50
- package/es/components/clamp-toggle/clamp-toggle.vue2.js +18 -19
- package/es/components/color-picker/color-picker.vue2.js +133 -134
- package/es/components/config-provider/config-provider.vue.d.ts +0 -2
- package/es/components/config-provider/config-provider.vue2.js +4 -5
- package/es/components/config-provider/constants.d.ts +0 -1
- package/es/components/config-provider/constants.js +2 -3
- package/es/components/config-provider/hooks/use-global-config.js +30 -33
- package/es/components/config-provider/index.d.ts +0 -9
- package/es/components/config-provider/index.js +5 -6
- package/es/components/date-picker/composables/use-basic-date-table.js +82 -83
- package/es/components/date-picker/composables/use-month-range-header.js +14 -15
- package/es/components/date-picker/composables/use-panel-date-range.js +23 -24
- package/es/components/date-picker/date-picker-com/basic-month-table.vue2.js +38 -39
- package/es/components/date-picker/date-picker-com/basic-year-table.vue2.js +38 -39
- package/es/components/date-picker/date-picker-com/panel-date-pick.vue2.js +183 -184
- package/es/components/date-picker/date-picker-com/panel-date-range.vue2.js +224 -225
- package/es/components/date-time-select/date-time-select.vue2.js +36 -39
- package/es/components/dropdown/dropdown-item-impl.vue.d.ts +1 -1
- package/es/components/dropdown/dropdown-item.vue.d.ts +1 -1
- package/es/components/dropdown/dropdown.vue.d.ts +1 -1
- package/es/components/dropdown/dropdown.vue2.js +67 -68
- package/es/components/dropdown/index.d.ts +33 -33
- package/es/components/empty/empty.vue2.js +38 -39
- package/es/components/full-screen/full-screen.vue2.js +17 -18
- package/es/components/image/image.vue2.js +59 -60
- package/es/components/image-viewer/image-viewer.vue2.js +44 -45
- package/es/components/index.js +97 -98
- package/es/components/md-container/md-container.vue2.js +74 -75
- package/es/components/md-container/toc.js +36 -37
- package/es/components/message-box/message-box.vue2.js +3 -3
- package/es/components/message-box/method.js +47 -48
- package/es/components/modal/modal-footer-action.vue2.js +24 -25
- package/es/components/multiple-tabs/multiple-tabs.vue2.js +15 -16
- package/es/components/multiple-tabs/use/use-tab-dropdown.js +53 -54
- package/es/components/popconfirm/index.d.ts +15 -15
- package/es/components/popconfirm/popconfirm.vue.d.ts +1 -1
- package/es/components/popconfirm/popconfirm.vue2.js +39 -40
- package/es/components/search/search.vue2.js +50 -51
- package/es/components/select/index.d.ts +4 -4
- package/es/components/select/select.vue.d.ts +4 -4
- package/es/components/select/useSelect.d.ts +4 -4
- package/es/components/select/useSelect.js +231 -232
- package/es/components/time-picker/time-picker-com/panel-time-pick.vue2.js +65 -66
- package/es/components/time-picker/time-picker-com/panel-time-range.vue2.js +133 -134
- package/es/components/transfer/transfer-panel.vue2.js +56 -57
- package/es/components/transfer/transfer.vue2.js +69 -70
- package/es/components/tree/tree.vue2.js +59 -60
- package/es/components/upload/upload-content.vue2.js +49 -50
- package/es/components/upload/upload-list.vue2.js +45 -46
- package/es/components/upload/upload.vue2.js +99 -100
- package/es/hooks/use-z-index/index.js +3 -3
- package/es/index.d.ts +0 -1
- package/es/index.js +1 -5
- package/es/package.json.d.ts +1 -1
- package/es/package.json.js +1 -1
- package/lib/components/autocomplete/autocomplete.vue.d.ts +2 -2
- package/lib/components/autocomplete/index.d.ts +6 -6
- package/lib/components/button/index.d.ts +9 -9
- package/lib/components/cascader/cascader.vue2.cjs +1 -1
- package/lib/components/cascader-panel/menu.vue2.cjs +4 -4
- package/lib/components/clamp-toggle/clamp-toggle.vue2.cjs +1 -1
- package/lib/components/color-picker/color-picker.vue2.cjs +1 -1
- package/lib/components/config-provider/config-provider.vue.d.ts +0 -2
- package/lib/components/config-provider/config-provider.vue2.cjs +1 -1
- package/lib/components/config-provider/constants.cjs +1 -1
- package/lib/components/config-provider/constants.d.ts +0 -1
- package/lib/components/config-provider/hooks/use-global-config.cjs +1 -1
- package/lib/components/config-provider/index.cjs +1 -1
- package/lib/components/config-provider/index.d.ts +0 -9
- package/lib/components/date-picker/composables/use-basic-date-table.cjs +1 -1
- package/lib/components/date-picker/composables/use-month-range-header.cjs +1 -1
- package/lib/components/date-picker/composables/use-panel-date-range.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-time-select/date-time-select.vue2.cjs +1 -1
- package/lib/components/dropdown/dropdown-item-impl.vue.d.ts +1 -1
- package/lib/components/dropdown/dropdown-item.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/dropdown/index.d.ts +33 -33
- package/lib/components/empty/empty.vue2.cjs +1 -1
- package/lib/components/full-screen/full-screen.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/md-container/md-container.vue2.cjs +1 -1
- package/lib/components/md-container/toc.cjs +1 -1
- package/lib/components/message-box/message-box.vue2.cjs +1 -1
- package/lib/components/message-box/method.cjs +1 -1
- package/lib/components/modal/modal-footer-action.vue2.cjs +1 -1
- package/lib/components/multiple-tabs/multiple-tabs.vue2.cjs +1 -1
- package/lib/components/multiple-tabs/use/use-tab-dropdown.cjs +1 -1
- package/lib/components/popconfirm/index.d.ts +15 -15
- package/lib/components/popconfirm/popconfirm.vue.d.ts +1 -1
- package/lib/components/popconfirm/popconfirm.vue2.cjs +1 -1
- package/lib/components/search/search.vue2.cjs +1 -1
- package/lib/components/select/index.d.ts +4 -4
- package/lib/components/select/select.vue.d.ts +4 -4
- package/lib/components/select/useSelect.cjs +1 -1
- package/lib/components/select/useSelect.d.ts +4 -4
- 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/transfer/transfer-panel.vue2.cjs +1 -1
- package/lib/components/transfer/transfer.vue2.cjs +1 -1
- package/lib/components/tree/tree.vue2.cjs +1 -1
- package/lib/components/upload/upload-content.vue2.cjs +1 -1
- package/lib/components/upload/upload-list.vue2.cjs +1 -1
- package/lib/components/upload/upload.vue2.cjs +1 -1
- package/lib/index.cjs +1 -1
- package/lib/index.d.ts +0 -1
- package/lib/package.json.cjs +1 -1
- package/lib/package.json.d.ts +1 -1
- package/package.json +2 -2
- package/theme-style/index.css +1 -1
- package/theme-style/src/message-box.scss +2 -2
- package/theme-style/src/table.scss +2 -0
- package/theme-style/vft-message-box.css +1 -1
- package/theme-style/vft-table.css +1 -1
- package/web-types.json +1 -1
- package/es/locale/index.d.js +0 -1
- package/es/locale/index.d.ts +0 -26
- package/es/locale/index.js +0 -10
- package/es/locale/lang/en.d.ts +0 -183
- package/es/locale/lang/en.js +0 -241
- package/es/locale/lang/zh-cn.d.ts +0 -183
- package/es/locale/lang/zh-cn.js +0 -241
- package/es/locale/lang/zh-tw.d.ts +0 -183
- package/es/locale/lang/zh-tw.js +0 -241
- package/es/locale/use-locale.d.ts +0 -17
- package/es/locale/use-locale.js +0 -56
- package/lib/locale/index.cjs +0 -1
- package/lib/locale/index.d.cjs +0 -1
- package/lib/locale/index.d.ts +0 -26
- package/lib/locale/lang/en.cjs +0 -1
- package/lib/locale/lang/en.d.ts +0 -183
- package/lib/locale/lang/zh-cn.cjs +0 -1
- package/lib/locale/lang/zh-cn.d.ts +0 -183
- package/lib/locale/lang/zh-tw.cjs +0 -1
- package/lib/locale/lang/zh-tw.d.ts +0 -183
- package/lib/locale/use-locale.cjs +0 -1
- package/lib/locale/use-locale.d.ts +0 -17
|
@@ -7,14 +7,14 @@ export declare const VftPopconfirm: import("vft/es/utils").SFCWithInstall<{
|
|
|
7
7
|
type: import("vue").PropType<string | number>;
|
|
8
8
|
default: number;
|
|
9
9
|
};
|
|
10
|
-
icon: {
|
|
11
|
-
type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
|
|
12
|
-
default: string;
|
|
13
|
-
};
|
|
14
10
|
teleported: {
|
|
15
11
|
type: import("vue").PropType<boolean>;
|
|
16
12
|
default: boolean;
|
|
17
13
|
};
|
|
14
|
+
icon: {
|
|
15
|
+
type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
18
|
hideAfter: {
|
|
19
19
|
type: import("vue").PropType<number>;
|
|
20
20
|
default: number;
|
|
@@ -52,8 +52,8 @@ export declare const VftPopconfirm: import("vft/es/utils").SFCWithInstall<{
|
|
|
52
52
|
cancel: (val: MouseEvent) => void;
|
|
53
53
|
}, import("vue").PublicProps, {
|
|
54
54
|
width: string | number;
|
|
55
|
-
icon: string | import("vft/es/vft").IconProps;
|
|
56
55
|
teleported: boolean;
|
|
56
|
+
icon: string | import("vft/es/vft").IconProps;
|
|
57
57
|
hideAfter: number;
|
|
58
58
|
persistent: boolean;
|
|
59
59
|
confirmButtonType: import("vft/es/vft").ButtonType;
|
|
@@ -74,14 +74,14 @@ export declare const VftPopconfirm: import("vft/es/utils").SFCWithInstall<{
|
|
|
74
74
|
type: import("vue").PropType<string | number>;
|
|
75
75
|
default: number;
|
|
76
76
|
};
|
|
77
|
-
icon: {
|
|
78
|
-
type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
|
|
79
|
-
default: string;
|
|
80
|
-
};
|
|
81
77
|
teleported: {
|
|
82
78
|
type: import("vue").PropType<boolean>;
|
|
83
79
|
default: boolean;
|
|
84
80
|
};
|
|
81
|
+
icon: {
|
|
82
|
+
type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
|
|
83
|
+
default: string;
|
|
84
|
+
};
|
|
85
85
|
hideAfter: {
|
|
86
86
|
type: import("vue").PropType<number>;
|
|
87
87
|
default: number;
|
|
@@ -116,8 +116,8 @@ export declare const VftPopconfirm: import("vft/es/utils").SFCWithInstall<{
|
|
|
116
116
|
onConfirm?: ((val: MouseEvent) => any) | undefined;
|
|
117
117
|
}>, {}, {}, {}, {}, {
|
|
118
118
|
width: string | number;
|
|
119
|
-
icon: string | import("vft/es/vft").IconProps;
|
|
120
119
|
teleported: boolean;
|
|
120
|
+
icon: string | import("vft/es/vft").IconProps;
|
|
121
121
|
hideAfter: number;
|
|
122
122
|
persistent: boolean;
|
|
123
123
|
confirmButtonType: import("vft/es/vft").ButtonType;
|
|
@@ -135,14 +135,14 @@ export declare const VftPopconfirm: import("vft/es/utils").SFCWithInstall<{
|
|
|
135
135
|
type: import("vue").PropType<string | number>;
|
|
136
136
|
default: number;
|
|
137
137
|
};
|
|
138
|
-
icon: {
|
|
139
|
-
type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
|
|
140
|
-
default: string;
|
|
141
|
-
};
|
|
142
138
|
teleported: {
|
|
143
139
|
type: import("vue").PropType<boolean>;
|
|
144
140
|
default: boolean;
|
|
145
141
|
};
|
|
142
|
+
icon: {
|
|
143
|
+
type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
|
|
144
|
+
default: string;
|
|
145
|
+
};
|
|
146
146
|
hideAfter: {
|
|
147
147
|
type: import("vue").PropType<number>;
|
|
148
148
|
default: number;
|
|
@@ -180,8 +180,8 @@ export declare const VftPopconfirm: import("vft/es/utils").SFCWithInstall<{
|
|
|
180
180
|
cancel: (val: MouseEvent) => void;
|
|
181
181
|
}, string, {
|
|
182
182
|
width: string | number;
|
|
183
|
-
icon: string | import("vft/es/vft").IconProps;
|
|
184
183
|
teleported: boolean;
|
|
184
|
+
icon: string | import("vft/es/vft").IconProps;
|
|
185
185
|
hideAfter: number;
|
|
186
186
|
persistent: boolean;
|
|
187
187
|
confirmButtonType: import("vft/es/vft").ButtonType;
|
|
@@ -43,8 +43,8 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
43
43
|
onConfirm?: ((val: MouseEvent) => any) | undefined;
|
|
44
44
|
}>, {
|
|
45
45
|
width: string | number;
|
|
46
|
-
icon: string | IconProps;
|
|
47
46
|
teleported: boolean;
|
|
47
|
+
icon: string | IconProps;
|
|
48
48
|
hideAfter: number;
|
|
49
49
|
persistent: boolean;
|
|
50
50
|
confirmButtonType: ButtonType;
|
|
@@ -1,21 +1,20 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as h, ref as N, computed as r, openBlock as d, createBlock as y, unref as t, mergeProps as w, withCtx as l, renderSlot as $, createCommentVNode as B, createElementVNode as a, normalizeClass as c, normalizeStyle as b, createTextVNode as f, toDisplayString as s, createVNode as T } from "vue";
|
|
2
2
|
import "@vueuse/core";
|
|
3
3
|
import "@vft/utils";
|
|
4
|
-
import { addUnit as
|
|
4
|
+
import { addUnit as I } from "../../utils/helper.js";
|
|
5
5
|
import "lodash-es";
|
|
6
6
|
import "../form/index.js";
|
|
7
|
-
import { VftButton as
|
|
8
|
-
import { VftIcon as
|
|
9
|
-
import { VftTooltip as
|
|
10
|
-
import { useNamespace as
|
|
7
|
+
import { VftButton as x } from "../button/index.js";
|
|
8
|
+
import { VftIcon as P } from "../icon/index.js";
|
|
9
|
+
import { VftTooltip as S } from "../tooltip/index.js";
|
|
10
|
+
import { useNamespace as A } from "../../hooks/use-namespace/index.js";
|
|
11
11
|
import "../../hooks/use-model-toggle/index.js";
|
|
12
12
|
import "@popperjs/core";
|
|
13
13
|
import "../../hooks/use-z-index/index.js";
|
|
14
|
-
|
|
15
|
-
const D = v({
|
|
14
|
+
const R = h({
|
|
16
15
|
name: "VftPopconfirm"
|
|
17
|
-
}),
|
|
18
|
-
...
|
|
16
|
+
}), W = /* @__PURE__ */ h({
|
|
17
|
+
...R,
|
|
19
18
|
props: {
|
|
20
19
|
title: {},
|
|
21
20
|
confirmButtonText: {},
|
|
@@ -32,18 +31,18 @@ const D = v({
|
|
|
32
31
|
},
|
|
33
32
|
emits: ["confirm", "cancel"],
|
|
34
33
|
setup(e, { emit: C }) {
|
|
35
|
-
const i = e,
|
|
34
|
+
const i = e, m = C, n = A("popconfirm"), p = N(), u = () => {
|
|
36
35
|
p.value?.onClose?.();
|
|
37
36
|
}, k = r(() => ({
|
|
38
|
-
width:
|
|
39
|
-
})),
|
|
40
|
-
|
|
41
|
-
},
|
|
42
|
-
|
|
43
|
-
},
|
|
44
|
-
() => i.confirmButtonText ||
|
|
45
|
-
),
|
|
46
|
-
return (o,
|
|
37
|
+
width: I(i.width)
|
|
38
|
+
})), v = (o) => {
|
|
39
|
+
m("confirm", o), u();
|
|
40
|
+
}, V = (o) => {
|
|
41
|
+
m("cancel", o), u();
|
|
42
|
+
}, g = r(
|
|
43
|
+
() => i.confirmButtonText || "确认"
|
|
44
|
+
), z = r(() => i.cancelButtonText || "取消");
|
|
45
|
+
return (o, q) => (d(), y(t(S), w({
|
|
47
46
|
ref_key: "tooltipRef",
|
|
48
47
|
ref: p,
|
|
49
48
|
trigger: "click",
|
|
@@ -56,57 +55,57 @@ const D = v({
|
|
|
56
55
|
"hide-after": e.hideAfter,
|
|
57
56
|
persistent: e.persistent
|
|
58
57
|
}), {
|
|
59
|
-
content:
|
|
58
|
+
content: l(() => [
|
|
60
59
|
a("div", {
|
|
61
|
-
class:
|
|
60
|
+
class: c(t(n).b())
|
|
62
61
|
}, [
|
|
63
62
|
a("div", {
|
|
64
|
-
class:
|
|
63
|
+
class: c(t(n).e("main"))
|
|
65
64
|
}, [
|
|
66
|
-
!e.hideIcon && e.icon ? (
|
|
65
|
+
!e.hideIcon && e.icon ? (d(), y(t(P), {
|
|
67
66
|
key: 0,
|
|
68
67
|
icon: e.icon,
|
|
69
68
|
size: 20,
|
|
70
|
-
class:
|
|
71
|
-
style:
|
|
72
|
-
}, null, 8, ["icon", "class", "style"])) :
|
|
73
|
-
f(" " +
|
|
69
|
+
class: c(t(n).e("icon")),
|
|
70
|
+
style: b({ color: e.iconColor })
|
|
71
|
+
}, null, 8, ["icon", "class", "style"])) : B("", !0),
|
|
72
|
+
f(" " + s(e.title), 1)
|
|
74
73
|
], 2),
|
|
75
74
|
a("div", {
|
|
76
|
-
class:
|
|
75
|
+
class: c(t(n).e("action"))
|
|
77
76
|
}, [
|
|
78
|
-
|
|
77
|
+
T(t(x), {
|
|
79
78
|
size: "small",
|
|
80
79
|
type: e.cancelButtonType === "text" ? "" : e.cancelButtonType,
|
|
81
80
|
text: e.cancelButtonType === "text",
|
|
82
|
-
onClick:
|
|
81
|
+
onClick: V
|
|
83
82
|
}, {
|
|
84
|
-
default:
|
|
85
|
-
f(
|
|
83
|
+
default: l(() => [
|
|
84
|
+
f(s(z.value), 1)
|
|
86
85
|
]),
|
|
87
86
|
_: 1
|
|
88
87
|
}, 8, ["type", "text"]),
|
|
89
|
-
|
|
88
|
+
T(t(x), {
|
|
90
89
|
size: "small",
|
|
91
90
|
type: e.confirmButtonType === "text" ? "" : e.confirmButtonType,
|
|
92
91
|
text: e.confirmButtonType === "text",
|
|
93
|
-
onClick:
|
|
92
|
+
onClick: v
|
|
94
93
|
}, {
|
|
95
|
-
default:
|
|
96
|
-
f(
|
|
94
|
+
default: l(() => [
|
|
95
|
+
f(s(g.value), 1)
|
|
97
96
|
]),
|
|
98
97
|
_: 1
|
|
99
98
|
}, 8, ["type", "text"])
|
|
100
99
|
], 2)
|
|
101
100
|
], 2)
|
|
102
101
|
]),
|
|
103
|
-
default:
|
|
104
|
-
o.$slots.reference ?
|
|
102
|
+
default: l(() => [
|
|
103
|
+
o.$slots.reference ? $(o.$slots, "reference", { key: 0 }) : B("", !0)
|
|
105
104
|
]),
|
|
106
105
|
_: 3
|
|
107
106
|
}, 16, ["popper-class", "popper-style", "teleported", "hide-after", "persistent"]));
|
|
108
107
|
}
|
|
109
108
|
});
|
|
110
109
|
export {
|
|
111
|
-
|
|
110
|
+
W as default
|
|
112
111
|
};
|
|
@@ -1,22 +1,21 @@
|
|
|
1
|
-
import { defineComponent as g, computed as i, ref as l, openBlock as h, createElementBlock as V, Fragment as
|
|
2
|
-
import { VftInput as
|
|
3
|
-
import { VftPopover as
|
|
1
|
+
import { defineComponent as g, computed as i, ref as l, openBlock as h, createElementBlock as V, Fragment as X, withDirectives as Y, normalizeStyle as Z, normalizeClass as w, unref as a, createVNode as _, mergeProps as B, createSlots as ee, withCtx as r, renderSlot as s, createBlock as oe, createElementVNode as te, createCommentVNode as ne } from "vue";
|
|
2
|
+
import { VftInput as le } from "../input/index.js";
|
|
3
|
+
import { VftPopover as ae } from "../popover/index.js";
|
|
4
4
|
import "@vueuse/core";
|
|
5
5
|
import "@vft/utils";
|
|
6
6
|
import { addUnit as d } from "../../utils/helper.js";
|
|
7
7
|
import { generateCssVars as b } from "../../utils/ns-cover.js";
|
|
8
8
|
import "lodash-es";
|
|
9
9
|
import "../form/index.js";
|
|
10
|
-
import { useNamespace as
|
|
10
|
+
import { useNamespace as ie } from "../../hooks/use-namespace/index.js";
|
|
11
11
|
import "../../hooks/use-model-toggle/index.js";
|
|
12
12
|
import "@popperjs/core";
|
|
13
13
|
import "../../hooks/use-z-index/index.js";
|
|
14
|
-
import
|
|
15
|
-
|
|
16
|
-
const de = g({
|
|
14
|
+
import { ClickOutside as re } from "@vft/directives";
|
|
15
|
+
const se = g({
|
|
17
16
|
name: "vft-search"
|
|
18
|
-
}),
|
|
19
|
-
...
|
|
17
|
+
}), be = /* @__PURE__ */ g({
|
|
18
|
+
...se,
|
|
20
19
|
props: {
|
|
21
20
|
width: { default: 200 },
|
|
22
21
|
activeWidth: {},
|
|
@@ -49,51 +48,51 @@ const de = g({
|
|
|
49
48
|
},
|
|
50
49
|
emits: ["update:modelValue", "blur", "focus", "clear", "enter", "prefixClick", "suffixClick", "mouseenter", "mouseleave", "keydown", "change", "input", "compositionstart", "compositionupdate", "compositionend"],
|
|
51
50
|
setup(o, { expose: P, emit: x }) {
|
|
52
|
-
const
|
|
51
|
+
const t = x, f = ie("search"), R = i(() => o.placeholder || "请输入你要搜索的内容"), y = l(), C = l(), c = l(), p = l(!1), m = l(!1), n = l(!1), S = i(
|
|
53
52
|
() => b(
|
|
54
53
|
{
|
|
55
54
|
width: o.activeWidth && (n.value || o.modelValue) ? d(o.activeWidth) : d(o.width)
|
|
56
55
|
},
|
|
57
56
|
"input"
|
|
58
57
|
)
|
|
59
|
-
),
|
|
58
|
+
), $ = i(
|
|
60
59
|
() => b(
|
|
61
60
|
{
|
|
62
61
|
"active-width": o.activeWidth ? d(o.activeWidth) : d(o.width)
|
|
63
62
|
},
|
|
64
63
|
"search"
|
|
65
64
|
)
|
|
66
|
-
),
|
|
65
|
+
), E = i(() => ({
|
|
67
66
|
"show-arrow": !1,
|
|
68
67
|
transition: "vft-zoom-in-top",
|
|
69
68
|
placement: "bottom-start",
|
|
70
69
|
offset: 3,
|
|
71
70
|
width: 500,
|
|
72
71
|
...o.popoverCfg
|
|
73
|
-
})),
|
|
72
|
+
})), W = (e) => {
|
|
74
73
|
t("update:modelValue", e), t("input", e);
|
|
75
|
-
},
|
|
74
|
+
}, z = () => {
|
|
76
75
|
v();
|
|
77
76
|
};
|
|
78
|
-
function
|
|
77
|
+
function I() {
|
|
79
78
|
n.value = !0;
|
|
80
79
|
}
|
|
81
80
|
function v() {
|
|
82
81
|
n.value = !1;
|
|
83
82
|
}
|
|
84
|
-
const
|
|
83
|
+
const M = () => {
|
|
85
84
|
t("clear"), u(!1);
|
|
86
85
|
};
|
|
87
|
-
function
|
|
86
|
+
function U() {
|
|
88
87
|
m.value = !0, t("mouseenter", o.modelValue);
|
|
89
88
|
}
|
|
90
|
-
function
|
|
89
|
+
function F() {
|
|
91
90
|
m.value = !1, t("mouseleave", o.modelValue);
|
|
92
91
|
}
|
|
93
|
-
const
|
|
92
|
+
const N = () => {
|
|
94
93
|
n.value = !0, p.value = !0, t("focus");
|
|
95
94
|
};
|
|
96
|
-
function
|
|
95
|
+
function O() {
|
|
97
96
|
p.value = !1, t("blur");
|
|
98
97
|
}
|
|
99
98
|
function j() {
|
|
@@ -110,15 +109,15 @@ const de = g({
|
|
|
110
109
|
}
|
|
111
110
|
const K = (e) => {
|
|
112
111
|
t("keydown", e);
|
|
113
|
-
},
|
|
112
|
+
}, L = i(() => y.value?.popperRef?.contentRef), H = (e) => {
|
|
114
113
|
t("update:modelValue", e);
|
|
115
|
-
},
|
|
114
|
+
}, q = (e) => {
|
|
116
115
|
t("change", e);
|
|
117
|
-
},
|
|
116
|
+
}, G = (e) => {
|
|
118
117
|
t("compositionstart", e);
|
|
119
|
-
},
|
|
118
|
+
}, J = (e) => {
|
|
120
119
|
t("compositionupdate", e);
|
|
121
|
-
},
|
|
120
|
+
}, Q = (e) => {
|
|
122
121
|
t("compositionend", e);
|
|
123
122
|
};
|
|
124
123
|
return P({
|
|
@@ -126,37 +125,37 @@ const de = g({
|
|
|
126
125
|
isHover: m,
|
|
127
126
|
visible: n,
|
|
128
127
|
hidePopover: v,
|
|
129
|
-
showPopover:
|
|
128
|
+
showPopover: I,
|
|
130
129
|
inputRef: c
|
|
131
|
-
}), (e, k) => (h(), V(
|
|
132
|
-
|
|
130
|
+
}), (e, k) => (h(), V(X, null, [
|
|
131
|
+
Y((h(), V("div", {
|
|
133
132
|
ref_key: "searchRef",
|
|
134
133
|
ref: C,
|
|
135
134
|
class: w([a(f).b(), a(f).is("active", !!n.value || !!o.modelValue)]),
|
|
136
|
-
style:
|
|
135
|
+
style: Z($.value)
|
|
137
136
|
}, [
|
|
138
|
-
|
|
137
|
+
_(a(le), B({
|
|
139
138
|
ref_key: "inputRef",
|
|
140
139
|
ref: c
|
|
141
140
|
}, e.$props, {
|
|
142
|
-
placeholder:
|
|
143
|
-
"input-style":
|
|
144
|
-
onInput:
|
|
145
|
-
onFocus:
|
|
141
|
+
placeholder: R.value,
|
|
142
|
+
"input-style": S.value,
|
|
143
|
+
onInput: W,
|
|
144
|
+
onFocus: N,
|
|
146
145
|
onEnter: D,
|
|
147
|
-
onBlur:
|
|
148
|
-
onMouseenter:
|
|
149
|
-
"onUpdate:modelValue":
|
|
150
|
-
onMouseleave:
|
|
146
|
+
onBlur: O,
|
|
147
|
+
onMouseenter: U,
|
|
148
|
+
"onUpdate:modelValue": H,
|
|
149
|
+
onMouseleave: F,
|
|
151
150
|
onPrefixClick: j,
|
|
152
151
|
onSuffixClick: A,
|
|
153
|
-
onChange:
|
|
152
|
+
onChange: q,
|
|
154
153
|
onKeydown: K,
|
|
155
|
-
onClear:
|
|
156
|
-
onCompositionstart:
|
|
157
|
-
onCompositionupdate:
|
|
158
|
-
onCompositionend:
|
|
159
|
-
}),
|
|
154
|
+
onClear: M,
|
|
155
|
+
onCompositionstart: G,
|
|
156
|
+
onCompositionupdate: J,
|
|
157
|
+
onCompositionend: Q
|
|
158
|
+
}), ee({ _: 2 }, [
|
|
160
159
|
e.$slots.prefix ? {
|
|
161
160
|
name: "prefix",
|
|
162
161
|
fn: r(() => [
|
|
@@ -187,31 +186,31 @@ const de = g({
|
|
|
187
186
|
} : void 0
|
|
188
187
|
]), 1040, ["placeholder", "input-style"])
|
|
189
188
|
], 6)), [
|
|
190
|
-
[a(
|
|
189
|
+
[a(re), z, L.value]
|
|
191
190
|
]),
|
|
192
|
-
o.usePopover ? (h(),
|
|
191
|
+
o.usePopover ? (h(), oe(a(ae), B({
|
|
193
192
|
key: 0,
|
|
194
193
|
style: { "--vft-transition-duration": "3s" },
|
|
195
194
|
ref_key: "popoverRef",
|
|
196
195
|
ref: y
|
|
197
|
-
},
|
|
196
|
+
}, E.value, {
|
|
198
197
|
"virtual-ref": C.value,
|
|
199
198
|
visible: n.value,
|
|
200
|
-
"onUpdate:visible": k[0] || (k[0] = (
|
|
199
|
+
"onUpdate:visible": k[0] || (k[0] = (T) => n.value = T),
|
|
201
200
|
"virtual-triggering": ""
|
|
202
201
|
}), {
|
|
203
202
|
default: r(() => [
|
|
204
|
-
|
|
203
|
+
te("div", {
|
|
205
204
|
class: w(a(f).e("content"))
|
|
206
205
|
}, [
|
|
207
206
|
s(e.$slots, "default")
|
|
208
207
|
], 2)
|
|
209
208
|
]),
|
|
210
209
|
_: 3
|
|
211
|
-
}, 16, ["virtual-ref", "visible"])) :
|
|
210
|
+
}, 16, ["virtual-ref", "visible"])) : ne("", !0)
|
|
212
211
|
], 64));
|
|
213
212
|
}
|
|
214
213
|
});
|
|
215
214
|
export {
|
|
216
|
-
|
|
215
|
+
be as default
|
|
217
216
|
};
|
|
@@ -263,9 +263,9 @@ export declare const VftSelect: SFCWithInstall<import("vue").DefineComponent<imp
|
|
|
263
263
|
readonly placement?: import("@popperjs/core").Placement | undefined;
|
|
264
264
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
265
265
|
readonly effect?: "light" | "dark" | undefined;
|
|
266
|
-
readonly visible?: boolean | null | undefined;
|
|
267
266
|
readonly teleported?: boolean | undefined;
|
|
268
267
|
readonly open?: boolean | undefined;
|
|
268
|
+
readonly visible?: boolean | null | undefined;
|
|
269
269
|
readonly trigger?: import("vft/es/vft").TooltipTriggerType | undefined;
|
|
270
270
|
readonly arrowOffset?: number | undefined;
|
|
271
271
|
readonly gpuAcceleration?: boolean | undefined;
|
|
@@ -681,9 +681,9 @@ export declare const VftSelect: SFCWithInstall<import("vue").DefineComponent<imp
|
|
|
681
681
|
readonly placement?: import("@popperjs/core").Placement | undefined;
|
|
682
682
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
683
683
|
readonly effect?: "light" | "dark" | undefined;
|
|
684
|
-
readonly visible?: boolean | null | undefined;
|
|
685
684
|
readonly teleported?: boolean | undefined;
|
|
686
685
|
readonly open?: boolean | undefined;
|
|
686
|
+
readonly visible?: boolean | null | undefined;
|
|
687
687
|
readonly trigger?: import("vft/es/vft").TooltipTriggerType | undefined;
|
|
688
688
|
readonly arrowOffset?: number | undefined;
|
|
689
689
|
readonly gpuAcceleration?: boolean | undefined;
|
|
@@ -1100,9 +1100,9 @@ export declare const VftSelect: SFCWithInstall<import("vue").DefineComponent<imp
|
|
|
1100
1100
|
readonly placement?: import("@popperjs/core").Placement | undefined;
|
|
1101
1101
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
1102
1102
|
readonly effect?: "light" | "dark" | undefined;
|
|
1103
|
-
readonly visible?: boolean | null | undefined;
|
|
1104
1103
|
readonly teleported?: boolean | undefined;
|
|
1105
1104
|
readonly open?: boolean | undefined;
|
|
1105
|
+
readonly visible?: boolean | null | undefined;
|
|
1106
1106
|
readonly trigger?: import("vft/es/vft").TooltipTriggerType | undefined;
|
|
1107
1107
|
readonly arrowOffset?: number | undefined;
|
|
1108
1108
|
readonly gpuAcceleration?: boolean | undefined;
|
|
@@ -1518,9 +1518,9 @@ export declare const VftSelect: SFCWithInstall<import("vue").DefineComponent<imp
|
|
|
1518
1518
|
readonly placement?: import("@popperjs/core").Placement | undefined;
|
|
1519
1519
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
1520
1520
|
readonly effect?: "light" | "dark" | undefined;
|
|
1521
|
-
readonly visible?: boolean | null | undefined;
|
|
1522
1521
|
readonly teleported?: boolean | undefined;
|
|
1523
1522
|
readonly open?: boolean | undefined;
|
|
1523
|
+
readonly visible?: boolean | null | undefined;
|
|
1524
1524
|
readonly trigger?: import("vft/es/vft").TooltipTriggerType | undefined;
|
|
1525
1525
|
readonly arrowOffset?: number | undefined;
|
|
1526
1526
|
readonly gpuAcceleration?: boolean | undefined;
|
|
@@ -259,9 +259,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
259
259
|
readonly placement?: import("@popperjs/core").Placement | undefined;
|
|
260
260
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
261
261
|
readonly effect?: "light" | "dark" | undefined;
|
|
262
|
-
readonly visible?: boolean | null | undefined;
|
|
263
262
|
readonly teleported?: boolean | undefined;
|
|
264
263
|
readonly open?: boolean | undefined;
|
|
264
|
+
readonly visible?: boolean | null | undefined;
|
|
265
265
|
readonly trigger?: import("vft/es/components/tooltip").TooltipTriggerType | undefined;
|
|
266
266
|
readonly arrowOffset?: number | undefined;
|
|
267
267
|
readonly gpuAcceleration?: boolean | undefined;
|
|
@@ -677,9 +677,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
677
677
|
readonly placement?: import("@popperjs/core").Placement | undefined;
|
|
678
678
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
679
679
|
readonly effect?: "light" | "dark" | undefined;
|
|
680
|
-
readonly visible?: boolean | null | undefined;
|
|
681
680
|
readonly teleported?: boolean | undefined;
|
|
682
681
|
readonly open?: boolean | undefined;
|
|
682
|
+
readonly visible?: boolean | null | undefined;
|
|
683
683
|
readonly trigger?: import("vft/es/components/tooltip").TooltipTriggerType | undefined;
|
|
684
684
|
readonly arrowOffset?: number | undefined;
|
|
685
685
|
readonly gpuAcceleration?: boolean | undefined;
|
|
@@ -1096,9 +1096,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1096
1096
|
readonly placement?: import("@popperjs/core").Placement | undefined;
|
|
1097
1097
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
1098
1098
|
readonly effect?: "light" | "dark" | undefined;
|
|
1099
|
-
readonly visible?: boolean | null | undefined;
|
|
1100
1099
|
readonly teleported?: boolean | undefined;
|
|
1101
1100
|
readonly open?: boolean | undefined;
|
|
1101
|
+
readonly visible?: boolean | null | undefined;
|
|
1102
1102
|
readonly trigger?: import("vft/es/components/tooltip").TooltipTriggerType | undefined;
|
|
1103
1103
|
readonly arrowOffset?: number | undefined;
|
|
1104
1104
|
readonly gpuAcceleration?: boolean | undefined;
|
|
@@ -1514,9 +1514,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1514
1514
|
readonly placement?: import("@popperjs/core").Placement | undefined;
|
|
1515
1515
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
1516
1516
|
readonly effect?: "light" | "dark" | undefined;
|
|
1517
|
-
readonly visible?: boolean | null | undefined;
|
|
1518
1517
|
readonly teleported?: boolean | undefined;
|
|
1519
1518
|
readonly open?: boolean | undefined;
|
|
1519
|
+
readonly visible?: boolean | null | undefined;
|
|
1520
1520
|
readonly trigger?: import("vft/es/components/tooltip").TooltipTriggerType | undefined;
|
|
1521
1521
|
readonly arrowOffset?: number | undefined;
|
|
1522
1522
|
readonly gpuAcceleration?: boolean | undefined;
|
|
@@ -103,9 +103,9 @@ declare const useSelect: (props: SelectV2Props, emit: any) => {
|
|
|
103
103
|
readonly placement?: import("@popperjs/core").Placement | undefined;
|
|
104
104
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
105
105
|
readonly effect?: "light" | "dark" | undefined;
|
|
106
|
-
readonly visible?: boolean | null | undefined;
|
|
107
106
|
readonly teleported?: boolean | undefined;
|
|
108
107
|
readonly open?: boolean | undefined;
|
|
108
|
+
readonly visible?: boolean | null | undefined;
|
|
109
109
|
readonly trigger?: import("vft/es/components/tooltip").TooltipTriggerType | undefined;
|
|
110
110
|
readonly arrowOffset?: number | undefined;
|
|
111
111
|
readonly gpuAcceleration?: boolean | undefined;
|
|
@@ -521,9 +521,9 @@ declare const useSelect: (props: SelectV2Props, emit: any) => {
|
|
|
521
521
|
readonly placement?: import("@popperjs/core").Placement | undefined;
|
|
522
522
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
523
523
|
readonly effect?: "light" | "dark" | undefined;
|
|
524
|
-
readonly visible?: boolean | null | undefined;
|
|
525
524
|
readonly teleported?: boolean | undefined;
|
|
526
525
|
readonly open?: boolean | undefined;
|
|
526
|
+
readonly visible?: boolean | null | undefined;
|
|
527
527
|
readonly trigger?: import("vft/es/components/tooltip").TooltipTriggerType | undefined;
|
|
528
528
|
readonly arrowOffset?: number | undefined;
|
|
529
529
|
readonly gpuAcceleration?: boolean | undefined;
|
|
@@ -940,9 +940,9 @@ declare const useSelect: (props: SelectV2Props, emit: any) => {
|
|
|
940
940
|
readonly placement?: import("@popperjs/core").Placement | undefined;
|
|
941
941
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
942
942
|
readonly effect?: "light" | "dark" | undefined;
|
|
943
|
-
readonly visible?: boolean | null | undefined;
|
|
944
943
|
readonly teleported?: boolean | undefined;
|
|
945
944
|
readonly open?: boolean | undefined;
|
|
945
|
+
readonly visible?: boolean | null | undefined;
|
|
946
946
|
readonly trigger?: import("vft/es/components/tooltip").TooltipTriggerType | undefined;
|
|
947
947
|
readonly arrowOffset?: number | undefined;
|
|
948
948
|
readonly gpuAcceleration?: boolean | undefined;
|
|
@@ -1358,9 +1358,9 @@ declare const useSelect: (props: SelectV2Props, emit: any) => {
|
|
|
1358
1358
|
readonly placement?: import("@popperjs/core").Placement | undefined;
|
|
1359
1359
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
1360
1360
|
readonly effect?: "light" | "dark" | undefined;
|
|
1361
|
-
readonly visible?: boolean | null | undefined;
|
|
1362
1361
|
readonly teleported?: boolean | undefined;
|
|
1363
1362
|
readonly open?: boolean | undefined;
|
|
1363
|
+
readonly visible?: boolean | null | undefined;
|
|
1364
1364
|
readonly trigger?: import("vft/es/components/tooltip").TooltipTriggerType | undefined;
|
|
1365
1365
|
readonly arrowOffset?: number | undefined;
|
|
1366
1366
|
readonly gpuAcceleration?: boolean | undefined;
|