savor-ui 0.14.1 → 0.14.2
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/CHANGELOG.md +12 -0
- package/dist/es/components/src/cascader/cascader.vue_vue_type_script_setup_true_vapor_true_lang.mjs +4 -1
- package/dist/es/components/src/drawer/drawer.vue_vue_type_script_setup_true_vapor_true_lang.mjs +80 -78
- package/dist/es/components/src/dropdown/doption.d.ts +4 -2
- package/dist/es/components/src/dropdown/doption.vue_vue_type_script_setup_true_vapor_true_lang.mjs +11 -10
- package/dist/es/components/src/dropdown/dsubmenu.d.ts +4 -2
- package/dist/es/components/src/dropdown/dsubmenu.vue_vue_type_script_setup_true_vapor_true_lang.mjs +12 -11
- package/dist/es/components/src/dropdown/index.d.ts +6 -4
- package/dist/es/components/src/dropdown/types.d.ts +8 -0
- package/dist/es/components/src/input-number/input-number.vue_vue_type_script_setup_true_vapor_true_lang.mjs +5 -5
- package/dist/es/components/src/select/select.vue_vue_type_script_setup_true_vapor_true_lang.mjs +61 -59
- package/dist/es/theme/components/date-picker.scss +21 -5
- package/dist/es/theme/components/datetime-picker.scss +21 -5
- package/dist/es/theme/components/drawer.scss +1 -0
- package/dist/es/theme/components/input-number.scss +21 -8
- package/dist/es/theme/components/input-tag.scss +18 -5
- package/dist/es/theme/components/input.scss +9 -0
- package/dist/es/theme/components/select.scss +12 -3
- package/dist/es/theme/components/textarea.scss +18 -5
- package/dist/json/web-types.json +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
+
## [0.14.2](https://gitee.com/mach552/savor-ui/compare/v0.14.1...v0.14.2) (2026-07-31)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **cascader:** 修复无法清空值的问题 ([90e7667](https://gitee.com/mach552/savor-ui/commits/90e76674b1e7c8978f86875e57fd6140a8ea1a51))
|
|
11
|
+
* **drawer:** 修复关闭时transition找不到节点的问题 ([21344b9](https://gitee.com/mach552/savor-ui/commits/21344b9a98828ebf9913bf8ac5f825e0843df411))
|
|
12
|
+
* **drawer:** 修复宽度无法动态修改问题 ([dc08354](https://gitee.com/mach552/savor-ui/commits/dc08354549121186c983dccc70b81ac542a61a3e))
|
|
13
|
+
* **drawer:** 修复无法拖拽宽度的问题 ([1a67ae5](https://gitee.com/mach552/savor-ui/commits/1a67ae5ff31953713a1e51ecce4e49ba6606c47c))
|
|
14
|
+
* **dropdown:** 修复某些清空下选项点击后弹窗不关闭问题 ([2fdce57](https://gitee.com/mach552/savor-ui/commits/2fdce570fe7b417ea7830f3d5b02875d4bd656cd))
|
|
15
|
+
* **select:** 修复多选模式下大小失效的问题 ([982838e](https://gitee.com/mach552/savor-ui/commits/982838e3992f32cf2d95962309b42c9c9bd40ae0))
|
|
16
|
+
|
|
5
17
|
## [0.14.1](https://gitee.com/mach552/savor-ui/compare/v0.14.0...v0.14.1) (2026-07-26)
|
|
6
18
|
|
|
7
19
|
|
package/dist/es/components/src/cascader/cascader.vue_vue_type_script_setup_true_vapor_true_lang.mjs
CHANGED
|
@@ -101,7 +101,10 @@ var k = /*@__PURE__*/ p({
|
|
|
101
101
|
}
|
|
102
102
|
return n;
|
|
103
103
|
}, Z = () => {
|
|
104
|
-
if (A.value === void 0 || A.value === "")
|
|
104
|
+
if (A.value === void 0 || A.value === "") {
|
|
105
|
+
R.value = "", F.value = [], I.value = [], z.value = [];
|
|
106
|
+
return;
|
|
107
|
+
}
|
|
105
108
|
if (h.multiple) {
|
|
106
109
|
z.value = (Array.isArray(A.value) ? A.value : []).map((e) => {
|
|
107
110
|
if (h.pathMode && typeof e == "string") {
|
package/dist/es/components/src/drawer/drawer.vue_vue_type_script_setup_true_vapor_true_lang.mjs
CHANGED
|
@@ -7,13 +7,13 @@ import "../../../hooks/index.mjs";
|
|
|
7
7
|
import i from "../../../icons/src/close.vue.mjs";
|
|
8
8
|
import "../../../icons/index.mjs";
|
|
9
9
|
import a from "../button/button.vue.mjs";
|
|
10
|
-
import
|
|
11
|
-
import { STransition as
|
|
12
|
-
import { VaporTeleport as
|
|
10
|
+
import ee from "../scrollbar/scrollbar.vue.mjs";
|
|
11
|
+
import { STransition as o } from "../transition/index.mjs";
|
|
12
|
+
import { VaporTeleport as te, applyVShow as s, child as c, computed as l, createComponent as u, createIf as d, createInvoker as f, createSlot as p, createTemplateRefSetter as m, defineVaporComponent as h, delegateEvents as g, mergeModels as _, nextTick as v, onMounted as ne, onUnmounted as re, ref as y, renderEffect as b, setClass as x, setInsertionState as S, setStyle as C, setText as w, template as T, toDisplayString as E, txt as D, unref as O, useModel as ie, watch as k, watchEffect as ae } from "vue";
|
|
13
13
|
//#region ../components/src/drawer/drawer.vue?vue&type=script&setup=true&vapor=true&lang.ts
|
|
14
|
-
var
|
|
14
|
+
var A = T("<div>"), j = T("<div> "), M = T("<div><div><div></div>");
|
|
15
15
|
g("click", "mousedown");
|
|
16
|
-
var
|
|
16
|
+
var N = /*@__PURE__*/ h({
|
|
17
17
|
name: "SDrawer",
|
|
18
18
|
__name: "drawer",
|
|
19
19
|
props: /*@__PURE__*/ _({
|
|
@@ -74,42 +74,44 @@ var M = /*@__PURE__*/ h({
|
|
|
74
74
|
"closed"
|
|
75
75
|
], ["update:modelValue"]),
|
|
76
76
|
setup(h, { emit: g }) {
|
|
77
|
-
let _ = h,
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
77
|
+
let _ = h, T = g, N = t("drawer"), { nextZIndex: P } = r(), F = y(0), { lockScroll: I, unlockScroll: L } = n(), R = ie(h, "modelValue"), z = y(!1), B = y(!1), V = y(!1), H = y(""), U = y("");
|
|
78
|
+
ae(() => {
|
|
79
|
+
H.value = e(_.width), U.value = e(_.height);
|
|
80
|
+
});
|
|
81
|
+
let oe = l(() => ({
|
|
82
|
+
zIndex: F.value,
|
|
81
83
|
position: _.to === "body" ? "fixed" : "absolute"
|
|
82
|
-
})), W =
|
|
84
|
+
})), W = l(() => {
|
|
83
85
|
let e = { ..._.drawerStyle };
|
|
84
|
-
return (_.placement === "left" || _.placement === "right") && (e.width =
|
|
85
|
-
}),
|
|
86
|
-
|
|
87
|
-
},
|
|
88
|
-
|
|
89
|
-
Z.value && (Z.value.style.transition = "", Z.value.style.transform = ""),
|
|
86
|
+
return (_.placement === "left" || _.placement === "right") && (e.width = H.value), (_.placement === "top" || _.placement === "bottom") && (e.height = U.value), e;
|
|
87
|
+
}), se = () => {
|
|
88
|
+
T("opened");
|
|
89
|
+
}, ce = () => {
|
|
90
|
+
B.value = !1, T("closed"), v(() => {
|
|
91
|
+
Z.value && (Z.value.style.transition = "", Z.value.style.transform = ""), L();
|
|
90
92
|
});
|
|
91
93
|
}, G = () => {
|
|
92
|
-
|
|
93
|
-
},
|
|
94
|
-
_.closeOnMask && (G(),
|
|
95
|
-
},
|
|
96
|
-
e.preventDefault(),
|
|
94
|
+
R.value = !1, T("close");
|
|
95
|
+
}, le = () => {
|
|
96
|
+
_.closeOnMask && (G(), T("maskClick"));
|
|
97
|
+
}, ue = (e) => {
|
|
98
|
+
e.preventDefault(), V.value = !0;
|
|
97
99
|
}, K = (e) => {
|
|
98
|
-
if (
|
|
99
|
-
if (_.placement === "right" && (
|
|
100
|
+
if (V.value) {
|
|
101
|
+
if (_.placement === "right" && (H.value = X(window.innerWidth - e.clientX, _.minWidth, _.maxWidth, !0), $(H.value, !0)), _.placement === "left") {
|
|
100
102
|
let t = e.clientX;
|
|
101
|
-
|
|
103
|
+
H.value = X(t, _.minWidth, _.maxWidth, !0), $(H.value, !0);
|
|
102
104
|
}
|
|
103
|
-
if (_.placement === "bottom" && (
|
|
105
|
+
if (_.placement === "bottom" && (U.value = X(window.innerHeight - e.clientY, _.minHeight, _.maxHeight, !1), $(U.value, !0)), _.placement === "top") {
|
|
104
106
|
let t = e.clientY;
|
|
105
|
-
|
|
107
|
+
U.value = X(t, _.minHeight, _.maxHeight, !1), $(U.value, !0);
|
|
106
108
|
}
|
|
107
109
|
}
|
|
108
110
|
}, q = () => {
|
|
109
|
-
|
|
111
|
+
V.value &&= !1;
|
|
110
112
|
}, J = (e) => {
|
|
111
|
-
e.key === "Escape" && _.closeOnEsc &&
|
|
112
|
-
},
|
|
113
|
+
e.key === "Escape" && _.closeOnEsc && R.value && (G(), T("esc"));
|
|
114
|
+
}, de = (e) => {
|
|
113
115
|
let t = String(e).trim().match(/^(\d*\.?\d+)(.*)$/);
|
|
114
116
|
return t ? {
|
|
115
117
|
num: parseFloat(t[1]),
|
|
@@ -119,7 +121,7 @@ var M = /*@__PURE__*/ h({
|
|
|
119
121
|
unit: "px"
|
|
120
122
|
};
|
|
121
123
|
}, Y = (e, t) => {
|
|
122
|
-
let { num: n, unit: r } =
|
|
124
|
+
let { num: n, unit: r } = de(e), i = t ? window.innerWidth : window.innerHeight;
|
|
123
125
|
switch (r) {
|
|
124
126
|
case "%":
|
|
125
127
|
case "vw":
|
|
@@ -130,76 +132,76 @@ var M = /*@__PURE__*/ h({
|
|
|
130
132
|
}, X = (e, t, n, r) => {
|
|
131
133
|
let i = Y(t, r), a = Y(n, r);
|
|
132
134
|
return Math.max(i, Math.min(e, a)) + "px";
|
|
133
|
-
}, Z =
|
|
135
|
+
}, Z = y(null), Q = () => {
|
|
134
136
|
_.to === "body" ? Z.value = document.querySelector("#app") : _.to instanceof HTMLElement ? Z.value = _.to : typeof _.to == "string" && (Z.value = document.querySelector(_.to));
|
|
135
137
|
}, $ = (e, t) => {
|
|
136
138
|
_.push && Z.value && (t ? (Z.value.style.transition = "transform 0.3s var(--s-bezier-out)", _.placement === "left" ? Z.value.style.transform = `translateX(${e})` : _.placement === "right" ? Z.value.style.transform = `translateX(-${e})` : _.placement === "top" ? Z.value.style.transform = `translateY(${e})` : _.placement === "bottom" && (Z.value.style.transform = `translateY(-${e})`)) : (Z.value.style.transition = "transform 0.3s var(--s-bezier-in)", Z.value.style.transform = "translate(0,0)"));
|
|
137
139
|
};
|
|
138
|
-
|
|
139
|
-
e ? (
|
|
140
|
-
|
|
141
|
-
})) : (
|
|
142
|
-
}, { immediate: !0 }),
|
|
140
|
+
k(() => _.to, Q), k(() => R.value, (e) => {
|
|
141
|
+
e ? (F.value = P(), I(), B.value = !0, v(() => {
|
|
142
|
+
z.value = !0, _.placement === "left" || _.placement === "right" ? $(W.value.width, !0) : (_.placement === "top" || _.placement === "bottom") && $(W.value.height, !0), _.closeOnEsc && (document.removeEventListener("keydown", J), document.addEventListener("keydown", J)), T("open");
|
|
143
|
+
})) : (z.value = !1, document.removeEventListener("keydown", J), $("0", !1));
|
|
144
|
+
}, { immediate: !0 }), k(() => _.resizable, (e) => {
|
|
143
145
|
e ? (window.addEventListener("mousemove", K), window.addEventListener("mouseup", q)) : (window.removeEventListener("mousemove", K), window.removeEventListener("mouseup", q));
|
|
144
|
-
}, { immediate: !0 }),
|
|
146
|
+
}, { immediate: !0 }), ne(() => {
|
|
145
147
|
Q();
|
|
146
|
-
}),
|
|
148
|
+
}), re(() => {
|
|
147
149
|
document.removeEventListener("keydown", J), window.removeEventListener("mousemove", K), window.removeEventListener("mouseup", q);
|
|
148
150
|
});
|
|
149
|
-
let
|
|
150
|
-
return
|
|
151
|
+
let fe = m();
|
|
152
|
+
return u(te, {
|
|
151
153
|
to: () => h.to,
|
|
152
154
|
defer: ""
|
|
153
155
|
}, () => {
|
|
154
|
-
let e =
|
|
155
|
-
return
|
|
156
|
-
|
|
157
|
-
}),
|
|
158
|
-
let e =
|
|
159
|
-
return e.$evtclick =
|
|
160
|
-
|
|
156
|
+
let e = A();
|
|
157
|
+
return b(() => {
|
|
158
|
+
x(e, [O(N).e("container")]), C(e, oe.value);
|
|
159
|
+
}), S(e, null, 0), u(O(o), { type: "opacity" }, () => d(() => h.mask, () => {
|
|
160
|
+
let e = A();
|
|
161
|
+
return s(e, () => z.value), e.$evtclick = f(le), b(() => {
|
|
162
|
+
x(e, [O(N).e("mask")]), C(e, h.maskStyle);
|
|
161
163
|
}), e;
|
|
162
|
-
}, null, 129)),
|
|
164
|
+
}, null, 129)), S(e, null, 1), u(O(o), {
|
|
163
165
|
type: "side",
|
|
164
166
|
placement: () => h.placement,
|
|
165
|
-
onAfterLeave: () =>
|
|
166
|
-
onAfterEnter: () =>
|
|
167
|
+
onAfterLeave: () => ce,
|
|
168
|
+
onAfterEnter: () => se
|
|
167
169
|
}, () => {
|
|
168
|
-
let e =
|
|
169
|
-
return
|
|
170
|
-
let t =
|
|
171
|
-
|
|
172
|
-
}),
|
|
173
|
-
let e =
|
|
174
|
-
return e.$evtmousedown =
|
|
175
|
-
let t =
|
|
176
|
-
|
|
170
|
+
let e = M(), t = c(e, 1), n = c(t, 1);
|
|
171
|
+
return b(() => {
|
|
172
|
+
let t = O(N);
|
|
173
|
+
x(e, [t.b(), t.m(h.placement)]), C(e, W.value);
|
|
174
|
+
}), S(e, 0, 0), d(() => h.resizable, () => {
|
|
175
|
+
let e = A();
|
|
176
|
+
return e.$evtmousedown = f(ue), b(() => {
|
|
177
|
+
let t = O(N);
|
|
178
|
+
x(e, [t.e("trigger"), t.is("dragging", V.value)]);
|
|
177
179
|
}), e;
|
|
178
|
-
}),
|
|
179
|
-
let e =
|
|
180
|
-
return
|
|
181
|
-
let e =
|
|
182
|
-
return
|
|
183
|
-
|
|
180
|
+
}), b(() => x(t, [O(N).e("wrapper")])), S(t, 0, 0), d(() => h.header, () => {
|
|
181
|
+
let e = A();
|
|
182
|
+
return b(() => x(e, [O(N).e("header")])), S(e, null, 0), p("header", null, () => {
|
|
183
|
+
let e = j(), t = D(e);
|
|
184
|
+
return b(() => {
|
|
185
|
+
x(e, [O(N).e("title")]), w(t, E(h.title));
|
|
184
186
|
}), e;
|
|
185
|
-
}),
|
|
187
|
+
}), S(e, null, 1), d(() => h.closable, () => u(a, {
|
|
186
188
|
circle: "",
|
|
187
189
|
text: "",
|
|
188
190
|
size: "small",
|
|
189
191
|
onClick: () => G
|
|
190
|
-
}, { icon: () =>
|
|
191
|
-
}),
|
|
192
|
-
let e =
|
|
193
|
-
return
|
|
194
|
-
|
|
195
|
-
}),
|
|
196
|
-
}, 1285),
|
|
197
|
-
let e =
|
|
198
|
-
return
|
|
199
|
-
}),
|
|
200
|
-
}),
|
|
192
|
+
}, { icon: () => u(O(i)) })), e;
|
|
193
|
+
}), b(() => x(n, [O(N).e("body")])), S(n, null, 0), d(() => h.scrollContent, () => u(ee, { $: [() => ({ ...h.scrollbarProps })] }, () => p("default", null, null, 4)), () => {
|
|
194
|
+
let e = A();
|
|
195
|
+
return b(() => {
|
|
196
|
+
x(e, [O(N).e("content")]), C(e, h.bodyStyle);
|
|
197
|
+
}), S(e, null, 0), p(), e;
|
|
198
|
+
}, 1285), S(t, null, 2), d(() => h.footer, () => {
|
|
199
|
+
let e = A();
|
|
200
|
+
return b(() => x(e, [O(N).e("footer")])), S(e, null, 0), p("footer"), e;
|
|
201
|
+
}), s(e, () => z.value), e;
|
|
202
|
+
}), s(e, () => B.value), fe(e, "drawerContainerRef"), e;
|
|
201
203
|
}, !0);
|
|
202
204
|
}
|
|
203
205
|
});
|
|
204
206
|
//#endregion
|
|
205
|
-
export {
|
|
207
|
+
export { N as default };
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { DroptionProps, DroptionSlots } from './types';
|
|
2
2
|
import { PublicProps, VNode } from 'vue';
|
|
3
3
|
declare const __VLS_export: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
|
-
props: PublicProps & __VLS_PrettifyLocal<DroptionProps
|
|
4
|
+
props: PublicProps & __VLS_PrettifyLocal<DroptionProps & {
|
|
5
|
+
onClick?: (() => any) | undefined;
|
|
6
|
+
}> & (typeof globalThis extends {
|
|
5
7
|
__VLS_PROPS_FALLBACK: infer P;
|
|
6
8
|
} ? P : {});
|
|
7
9
|
expose: (exposed: {}) => void;
|
|
8
10
|
attrs: any;
|
|
9
11
|
slots: DroptionSlots;
|
|
10
|
-
emit:
|
|
12
|
+
emit: (evt: "click") => void;
|
|
11
13
|
}>) => VNode & {
|
|
12
14
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
13
15
|
};
|
package/dist/es/components/src/dropdown/doption.vue_vue_type_script_setup_true_vapor_true_lang.mjs
CHANGED
|
@@ -9,20 +9,21 @@ var y = /*@__PURE__*/ o({
|
|
|
9
9
|
name: "SDoption",
|
|
10
10
|
__name: "doption",
|
|
11
11
|
props: { title: {} },
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
emits: ["click"],
|
|
13
|
+
setup(o, { emit: s, slots: p }) {
|
|
14
|
+
let y = s, b = e("droption"), x = c(t, void 0), S = () => {
|
|
15
|
+
x?.itemClick?.(), y("click");
|
|
16
|
+
}, C = v(), w = n(C, 1);
|
|
17
|
+
return l(() => u(C, [h(b).b()])), d(C, 0, 0), r(() => p.icon, () => {
|
|
17
18
|
let e = g();
|
|
18
|
-
return l(() => u(e, [h(
|
|
19
|
-
}), l(() => u(
|
|
19
|
+
return l(() => u(e, [h(b).e("icon")])), d(e, null, 0), a("icon"), e;
|
|
20
|
+
}), l(() => u(w, [h(b).e("title")])), d(w, null, 0), a("default", null, () => {
|
|
20
21
|
let e = _();
|
|
21
22
|
return l(() => f(e, m(o.title))), e;
|
|
22
|
-
}), d(
|
|
23
|
+
}), d(C, null, 2), r(() => p.extra, () => {
|
|
23
24
|
let e = g();
|
|
24
|
-
return l(() => u(e, [h(
|
|
25
|
-
}),
|
|
25
|
+
return l(() => u(e, [h(b).e("extra")])), d(e, null, 0), a("extra"), e;
|
|
26
|
+
}), C.$evtclick = i(S), C;
|
|
26
27
|
}
|
|
27
28
|
});
|
|
28
29
|
//#endregion
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { DsubmenuProps, DsubmenuSlots } from './types';
|
|
2
2
|
import { PublicProps, VNode } from 'vue';
|
|
3
3
|
declare const __VLS_export: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
|
-
props: PublicProps & __VLS_PrettifyLocal<DsubmenuProps
|
|
4
|
+
props: PublicProps & __VLS_PrettifyLocal<DsubmenuProps & {
|
|
5
|
+
onClick?: (() => any) | undefined;
|
|
6
|
+
}> & (typeof globalThis extends {
|
|
5
7
|
__VLS_PROPS_FALLBACK: infer P;
|
|
6
8
|
} ? P : {});
|
|
7
9
|
expose: (exposed: {}) => void;
|
|
8
10
|
attrs: any;
|
|
9
11
|
slots: DsubmenuSlots;
|
|
10
|
-
emit:
|
|
12
|
+
emit: (evt: "click") => void;
|
|
11
13
|
}>) => VNode & {
|
|
12
14
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
13
15
|
};
|
package/dist/es/components/src/dropdown/dsubmenu.vue_vue_type_script_setup_true_vapor_true_lang.mjs
CHANGED
|
@@ -15,11 +15,12 @@ var w = /*@__PURE__*/ l({
|
|
|
15
15
|
title: {},
|
|
16
16
|
popoverProps: {}
|
|
17
17
|
},
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
18
|
+
emits: ["click"],
|
|
19
|
+
setup(l, { emit: u, slots: _ }) {
|
|
20
|
+
let w = u, T = e("dsubmenu"), E = d(r, void 0), D = () => {
|
|
21
|
+
E?.itemClick?.(), w("click");
|
|
22
|
+
}, O = C();
|
|
23
|
+
return p(() => m(O, [y(T).b()])), h(O, null, 0), a(y(n), { $: [() => ({
|
|
23
24
|
teleportBody: !1,
|
|
24
25
|
trigger: "hover",
|
|
25
26
|
placement: "right-start",
|
|
@@ -27,19 +28,19 @@ var w = /*@__PURE__*/ l({
|
|
|
27
28
|
})] }, {
|
|
28
29
|
content: () => {
|
|
29
30
|
let e = b();
|
|
30
|
-
return p(() => m(e, y(
|
|
31
|
+
return p(() => m(e, y(T).e("list"))), h(e, null, 0), c("content"), e;
|
|
31
32
|
},
|
|
32
33
|
default: () => {
|
|
33
34
|
let e = S(), n = i(e, 1), r = f(n, 2);
|
|
34
|
-
return p(() => m(e, y(
|
|
35
|
+
return p(() => m(e, y(T).e("item"))), h(e, 0, 0), o(() => _.icon, () => {
|
|
35
36
|
let e = b();
|
|
36
|
-
return p(() => m(e, [y(
|
|
37
|
-
}), p(() => m(n, [y(
|
|
37
|
+
return p(() => m(e, [y(T).e("icon")])), h(e, null, 0), c("icon"), e;
|
|
38
|
+
}), p(() => m(n, [y(T).e("title")])), h(n, null, 0), c("title", null, () => {
|
|
38
39
|
let e = x();
|
|
39
40
|
return p(() => g(e, v(l.title))), e;
|
|
40
|
-
}), p(() => m(r, [y(
|
|
41
|
+
}), p(() => m(r, [y(T).e("arrow")])), h(r, null, 0), a(y(t)), e.$evtclick = s(D), e;
|
|
41
42
|
}
|
|
42
|
-
}),
|
|
43
|
+
}), O;
|
|
43
44
|
}
|
|
44
45
|
});
|
|
45
46
|
//#endregion
|
|
@@ -21,35 +21,37 @@ export declare const SDropdown: ((__VLS_props: NonNullable<Awaited<typeof __VLS_
|
|
|
21
21
|
export declare const SDoption: ((__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
|
|
22
22
|
attrs: any;
|
|
23
23
|
slots: DroptionSlots;
|
|
24
|
-
emit:
|
|
24
|
+
emit: (evt: "click") => void;
|
|
25
25
|
}, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
26
26
|
props: PublicProps & {
|
|
27
27
|
title?: string | undefined;
|
|
28
|
+
onClick?: (() => any) | undefined;
|
|
28
29
|
} & (typeof globalThis extends {
|
|
29
30
|
__VLS_PROPS_FALLBACK: infer P;
|
|
30
31
|
} ? P : {});
|
|
31
32
|
expose: (exposed: {}) => void;
|
|
32
33
|
attrs: any;
|
|
33
34
|
slots: DroptionSlots;
|
|
34
|
-
emit:
|
|
35
|
+
emit: (evt: "click") => void;
|
|
35
36
|
}>) => VNode & {
|
|
36
37
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
37
38
|
}) & Plugin;
|
|
38
39
|
export declare const SDsubmenu: ((__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
|
|
39
40
|
attrs: any;
|
|
40
41
|
slots: DsubmenuSlots;
|
|
41
|
-
emit:
|
|
42
|
+
emit: (evt: "click") => void;
|
|
42
43
|
}, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
43
44
|
props: PublicProps & {
|
|
44
45
|
title?: string | undefined;
|
|
45
46
|
popoverProps?: PopoverProps | undefined;
|
|
47
|
+
onClick?: (() => any) | undefined;
|
|
46
48
|
} & (typeof globalThis extends {
|
|
47
49
|
__VLS_PROPS_FALLBACK: infer P;
|
|
48
50
|
} ? P : {});
|
|
49
51
|
expose: (exposed: {}) => void;
|
|
50
52
|
attrs: any;
|
|
51
53
|
slots: DsubmenuSlots;
|
|
52
|
-
emit:
|
|
54
|
+
emit: (evt: "click") => void;
|
|
53
55
|
}>) => VNode & {
|
|
54
56
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
55
57
|
}) & Plugin;
|
|
@@ -22,6 +22,10 @@ export interface DroptionSlots {
|
|
|
22
22
|
/** 额外内容 */
|
|
23
23
|
extra?: () => any;
|
|
24
24
|
}
|
|
25
|
+
export interface DroptionEmits {
|
|
26
|
+
/** 点击 */
|
|
27
|
+
click: [];
|
|
28
|
+
}
|
|
25
29
|
export interface DsubmenuProps {
|
|
26
30
|
/** 标题 */
|
|
27
31
|
title?: string;
|
|
@@ -38,6 +42,10 @@ export interface DsubmenuSlots {
|
|
|
38
42
|
/** 内容 */
|
|
39
43
|
content?: () => any;
|
|
40
44
|
}
|
|
45
|
+
export interface DsubmenuEmits {
|
|
46
|
+
/** 点击 */
|
|
47
|
+
click: [];
|
|
48
|
+
}
|
|
41
49
|
export interface DropdownContext {
|
|
42
50
|
itemClick: () => void;
|
|
43
51
|
}
|
|
@@ -139,15 +139,15 @@ var N = /*@__PURE__*/ p({
|
|
|
139
139
|
let t = D(Y);
|
|
140
140
|
x(e, [t.e("button"), t.e("prepend-button")]);
|
|
141
141
|
}), S(e, null, 0), c(D(r)), v(e, "click", k(q, ["stop"])), e.$evtmousedown = A(() => {}, ["prevent"]), e;
|
|
142
|
-
}), b(() => x(Q, [D(Y).e("
|
|
142
|
+
}), b(() => x(Q, [D(Y).e("content")])), S(Q, 0, 0), l(() => T.prefix || p.prefix, () => {
|
|
143
143
|
let e = M();
|
|
144
144
|
return b(() => x(e, [D(Y).e("prefix")])), S(e, null, 0), d("prefix", null, () => {
|
|
145
145
|
let e = j();
|
|
146
146
|
return b(() => w(e, E(p.prefix))), e;
|
|
147
147
|
}), e;
|
|
148
148
|
}), v($, "blur", ve), v($, "change", G), v($, "focus", _e), $.$evtinput = u(he), $.$evtkeydown = u(ge), xe($, R, null, "inputRef"), b(() => {
|
|
149
|
-
C($, "autofocus", p.autofocus), x($, [D(Y).e("
|
|
150
|
-
}), S(Q, null, 2), l(() => V.value && !!P.value && p.clearable, () => {
|
|
149
|
+
C($, "autofocus", p.autofocus), x($, [D(Y).e("inner")]), C($, "disabled", p.disabled), C($, "maxlength", p.maxlength), C($, "minlength", p.minlength), C($, "name", p.name), C($, "placeholder", p.placeholder), C($, "readonly", p.readonly ? !0 : void 0), ie($, B.value);
|
|
150
|
+
}), S(Q, null, 2), l(() => V.value && !!P.value && p.clearable && !p.disabled, () => {
|
|
151
151
|
let e = M();
|
|
152
152
|
return b(() => x(e, D(Y).e("clear"))), S(e, null, 0), c(D(t)), v(e, "click", k(ye, ["stop"])), e.$evtmousedown = A(() => {}, ["prevent"]), e;
|
|
153
153
|
}), S(Q, null, 3), l(() => T.suffix || p.suffix, () => {
|
|
@@ -156,13 +156,13 @@ var N = /*@__PURE__*/ p({
|
|
|
156
156
|
let e = j();
|
|
157
157
|
return b(() => w(e, E(p.suffix))), e;
|
|
158
158
|
}), e;
|
|
159
|
-
}), S(Q, null, 4), l(() => p.controls && !p.showButton, () => {
|
|
159
|
+
}), S(Q, null, 4), l(() => p.controls && !p.showButton && !p.disabled, () => {
|
|
160
160
|
let e = se(), t = o(e), r = re(t, 1);
|
|
161
161
|
return b(() => {
|
|
162
162
|
let n = D(Y);
|
|
163
163
|
x(e, [n.e("controls")]), x(t, n.e("increase"));
|
|
164
164
|
}), S(t, null, 0), c(D(i)), v(t, "click", k(K, ["stop"])), t.$evtmousedown = A(() => {}, ["prevent"]), b(() => x(r, D(Y).e("decrease"))), S(r, null, 0), c(D(n)), v(r, "click", k(q, ["stop"])), r.$evtmousedown = A(() => {}, ["prevent"]), e;
|
|
165
|
-
}), S(Z, null, 3), l(() => p.showButton, () => {
|
|
165
|
+
}), S(Z, null, 3), l(() => p.showButton && !p.disabled, () => {
|
|
166
166
|
let e = M();
|
|
167
167
|
return b(() => {
|
|
168
168
|
let t = D(Y);
|
package/dist/es/components/src/select/select.vue_vue_type_script_setup_true_vapor_true_lang.mjs
CHANGED
|
@@ -15,11 +15,11 @@ import { SScrollbar as ee } from "../scrollbar/index.mjs";
|
|
|
15
15
|
import { SEmpty as te } from "../empty/index.mjs";
|
|
16
16
|
import { SIcon as l } from "../icon/index.mjs";
|
|
17
17
|
import { STag as ne } from "../tag/index.mjs";
|
|
18
|
-
import { child as re, computed as u, createComponent as d, createFor as f, createIf as p, createInvoker as m, createSlot as ie, createTemplateRefSetter as ae, defineVaporComponent as h, delegateEvents as g, inject as oe, mergeModels as _, on as v, reactive as se, ref as y, renderEffect as b, setAttr as ce, setClass as x, setInsertionState as S, setProp as le, setText as C, setValue as ue, template as w, toDisplayString as T, toRefs as de, txt as
|
|
18
|
+
import { child as re, computed as u, createComponent as d, createFor as f, createIf as p, createInvoker as m, createSlot as ie, createTemplateRefSetter as ae, defineVaporComponent as h, delegateEvents as g, inject as oe, mergeModels as _, on as v, reactive as se, ref as y, renderEffect as b, setAttr as ce, setClass as x, setInsertionState as S, setProp as le, setText as C, setValue as ue, template as w, toDisplayString as T, toRefs as de, txt as fe, unref as E, useModel as pe, useTemplateRef as D, watch as me, withModifiers as he, withVaporModifiers as O } from "vue";
|
|
19
19
|
//#region ../components/src/select/select.vue?vue&type=script&setup=true&vapor=true&lang.ts
|
|
20
|
-
var
|
|
20
|
+
var ge = w(" "), _e = w("<input>"), ve = w("<span> "), ye = w("<span>"), be = w("<div><div></div>"), k = w("<div>"), xe = w("<li> "), Se = w("<ul>"), Ce = w("<div>", 1);
|
|
21
21
|
g("mousedown", "input", "keydown", "click");
|
|
22
|
-
var
|
|
22
|
+
var A = /*@__PURE__*/ h({
|
|
23
23
|
name: "SSelect",
|
|
24
24
|
__name: "select",
|
|
25
25
|
props: /*@__PURE__*/ _({
|
|
@@ -61,10 +61,10 @@ var j = /*@__PURE__*/ h({
|
|
|
61
61
|
"remove"
|
|
62
62
|
], ["update:modelValue"]),
|
|
63
63
|
setup(h, { expose: g, emit: _ }) {
|
|
64
|
-
let w = h,
|
|
65
|
-
size:
|
|
66
|
-
error:
|
|
67
|
-
}), Ee = oe(o, void 0), P = u(() => Ee?.inputFilled?.value || w.filled), F =
|
|
64
|
+
let w = h, A = _, j = t("select"), { size: M, error: we } = de(w), { mergedSize: N, mergedError: Te } = a({
|
|
65
|
+
size: M,
|
|
66
|
+
error: we
|
|
67
|
+
}), Ee = oe(o, void 0), P = u(() => Ee?.inputFilled?.value || w.filled), F = pe(h, "modelValue"), I = u(() => ({
|
|
68
68
|
label: "label",
|
|
69
69
|
value: "value",
|
|
70
70
|
disabled: "disabled",
|
|
@@ -76,11 +76,11 @@ var j = /*@__PURE__*/ h({
|
|
|
76
76
|
}, R = y(!1), z = se({
|
|
77
77
|
label: "",
|
|
78
78
|
option: null
|
|
79
|
-
}), B =
|
|
80
|
-
mini: "
|
|
81
|
-
small: "
|
|
82
|
-
medium: "
|
|
83
|
-
large: "
|
|
79
|
+
}), B = D("popoverRef"), V = D("scrollbarRef"), H = D("listRef"), U = D("multipleInputRef"), W = y(!1), G = y(""), ke = u(() => ({
|
|
80
|
+
mini: "tiny",
|
|
81
|
+
small: "tiny",
|
|
82
|
+
medium: "mini",
|
|
83
|
+
large: "small"
|
|
84
84
|
})[w.size] || "medium"), K = u(() => w.multiple ? (Array.isArray(F.value) ? F.value : []).map((e) => w.options.find((t) => t[I.value.value] === e)).filter(Boolean) : []), Ae = (e) => w.multiple ? (Array.isArray(F.value) ? F.value : []).includes(e[I.value.value]) : !1, q = (e) => {
|
|
85
85
|
e ? (w.multiple && w.filterable ? (G.value = "", Y("")) : w.filterable && z.label && (z.label = ""), w.filterable && !w.multiple && Y(z.label), B.value?.show(), w.multiple && w.filterable && setTimeout(() => U.value?.focus(), 0)) : (w.filterable && !w.multiple && (z.label = z.option ? z.option[I.value.label] : ""), w.multiple && w.filterable && (G.value = "", J.value = w.options), B.value?.hide(), X.value = -1), W.value = e;
|
|
86
86
|
}, je = () => {
|
|
@@ -93,7 +93,7 @@ var j = /*@__PURE__*/ h({
|
|
|
93
93
|
r > -1 ? t.splice(r, 1) : t.push(n), F.value = t, w.filterable && (G.value = "", Y(""), setTimeout(() => U.value?.focus(), 0));
|
|
94
94
|
} else F.value = e[I.value.value];
|
|
95
95
|
}, J = y(w.options);
|
|
96
|
-
|
|
96
|
+
me(() => w.options, (e) => {
|
|
97
97
|
J.value = e;
|
|
98
98
|
});
|
|
99
99
|
let Fe = u(() => w.remote ? 500 : 0), Ie = u(() => w.filterable && z.option && W.value ? z.option[I.value.label] : w.placeholder), Y = async (e) => {
|
|
@@ -155,43 +155,45 @@ var j = /*@__PURE__*/ h({
|
|
|
155
155
|
let e = Array.isArray(F.value) ? [...F.value] : [];
|
|
156
156
|
if (e.length > 0) {
|
|
157
157
|
let t = e.pop();
|
|
158
|
-
F.value = e,
|
|
158
|
+
F.value = e, A("remove", t);
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
161
|
break;
|
|
162
162
|
default: break;
|
|
163
163
|
}
|
|
164
164
|
}, Be = () => {
|
|
165
|
-
w.multiple ? F.value = [] : F.value = "",
|
|
165
|
+
w.multiple ? F.value = [] : F.value = "", A("clear");
|
|
166
166
|
}, Ve = (e, t) => {
|
|
167
167
|
t.stopPropagation();
|
|
168
168
|
let n = Array.isArray(F.value) ? [...F.value] : [], r = e[I.value.value], i = n.indexOf(r);
|
|
169
|
-
i > -1 && (n.splice(i, 1), F.value = n,
|
|
169
|
+
i > -1 && (n.splice(i, 1), F.value = n, A("remove", r));
|
|
170
170
|
}, He = (e) => {
|
|
171
171
|
let t = e.target;
|
|
172
172
|
G.value = t.value, Y(t.value);
|
|
173
173
|
};
|
|
174
|
-
|
|
174
|
+
me(F, (e) => {
|
|
175
175
|
if (w.multiple) {
|
|
176
176
|
let t = Array.isArray(e) ? e : [];
|
|
177
|
-
t.map((e) => Ne(e)).filter(Boolean),
|
|
177
|
+
t.map((e) => Ne(e)).filter(Boolean), A("change", t);
|
|
178
178
|
} else if (e && !Array.isArray(e)) {
|
|
179
179
|
let t = Ne(e);
|
|
180
|
-
t ? (z.label = t[I.value.label], z.option = t,
|
|
181
|
-
} else z.label = "", z.option = null,
|
|
180
|
+
t ? (z.label = t[I.value.label], z.option = t, A("change", t[I.value.value]), q(!1)) : (z.label = "", z.option = null, A("change", ""));
|
|
181
|
+
} else z.label = "", z.option = null, A("change", "");
|
|
182
182
|
}, { immediate: !0 }), g({
|
|
183
183
|
open: () => q(!0),
|
|
184
184
|
close: () => q(!1)
|
|
185
185
|
});
|
|
186
|
-
let Q = ae(), $ =
|
|
186
|
+
let Q = ae(), $ = Ce();
|
|
187
187
|
return b(() => {
|
|
188
|
-
let e =
|
|
188
|
+
let e = E(j);
|
|
189
189
|
x($, [
|
|
190
190
|
e.b(),
|
|
191
191
|
e.is("readonly", !h.filterable || !W.value),
|
|
192
|
-
e.is("multiple", h.multiple)
|
|
192
|
+
e.is("multiple", h.multiple),
|
|
193
|
+
e.is("disabled", h.disabled),
|
|
194
|
+
e.m(E(N))
|
|
193
195
|
]);
|
|
194
|
-
}), S($, null, 0), Q(d(
|
|
196
|
+
}), S($, null, 0), Q(d(E(s), { $: [() => ({
|
|
195
197
|
offset: [0, 4],
|
|
196
198
|
placement: "bottom-start",
|
|
197
199
|
width: "sameWidth",
|
|
@@ -199,23 +201,23 @@ var j = /*@__PURE__*/ h({
|
|
|
199
201
|
...h.popoverProps
|
|
200
202
|
}), { onClickOutside: () => Me }] }, {
|
|
201
203
|
content: () => {
|
|
202
|
-
let e =
|
|
203
|
-
return b(() => x(e, [
|
|
204
|
-
let e =
|
|
205
|
-
return b(() => x(e, [
|
|
204
|
+
let e = k();
|
|
205
|
+
return b(() => x(e, [E(j).e("wrapper")])), S(e, null, 0), p(() => R.value, () => {
|
|
206
|
+
let e = k();
|
|
207
|
+
return b(() => x(e, [E(j).e("loading")])), S(e, null, 0), d(E(l), null, () => d(E(i))), e;
|
|
206
208
|
}, () => p(() => J.value.length === 0, () => {
|
|
207
|
-
let e =
|
|
208
|
-
return b(() => x(e, [
|
|
209
|
+
let e = k();
|
|
210
|
+
return b(() => x(e, [E(j).e("empty")])), S(e, null, 0), ie("empty", null, () => d(E(te))), e;
|
|
209
211
|
}, () => {
|
|
210
|
-
let e = d(
|
|
211
|
-
let e =
|
|
212
|
+
let e = d(E(ee), { maxHeight: () => h.maxHeight }, () => {
|
|
213
|
+
let e = Se();
|
|
212
214
|
return b(() => {
|
|
213
|
-
let t =
|
|
214
|
-
x(e, [t.e("list"), t.m("list-" +
|
|
215
|
+
let t = E(j);
|
|
216
|
+
x(e, [t.e("list"), t.m("list-" + E(M))]);
|
|
215
217
|
}), S(e, null, 0), f(() => J.value, (e, t) => {
|
|
216
|
-
let n =
|
|
217
|
-
return v(n, "click",
|
|
218
|
-
let i =
|
|
218
|
+
let n = xe(), r = fe(n);
|
|
219
|
+
return v(n, "click", he(() => Pe(e.value), ["stop"])), b(() => {
|
|
220
|
+
let i = E(j), a = e.value, o = I.value, s = a[o.label], c = o.label;
|
|
219
221
|
x(n, [
|
|
220
222
|
i.e("item"),
|
|
221
223
|
i.is("disabled", a[o.disabled]),
|
|
@@ -226,44 +228,44 @@ var j = /*@__PURE__*/ h({
|
|
|
226
228
|
}, (e, t) => e[I.value.value], 9), Q(e, H, null, "listRef"), e;
|
|
227
229
|
});
|
|
228
230
|
return Q(e, V, null, "scrollbarRef"), e;
|
|
229
|
-
}, 1541), 1285), e.$evtmousedown =
|
|
231
|
+
}, 1541), 1285), e.$evtmousedown = O(() => {}, ["prevent"]), e;
|
|
230
232
|
},
|
|
231
233
|
default: () => p(() => h.multiple, () => {
|
|
232
|
-
let e =
|
|
234
|
+
let e = be(), t = re(e);
|
|
233
235
|
return b(() => {
|
|
234
|
-
let n =
|
|
236
|
+
let n = E(j);
|
|
235
237
|
x(e, [n.e("tags-wrapper"), n.is("filled", P.value)]), x(t, [n.e("tags")]);
|
|
236
238
|
}), S(t, null, 0), f(() => K.value, (e) => {
|
|
237
239
|
let t = (t) => Ve(e.value, t);
|
|
238
|
-
return d(
|
|
240
|
+
return d(E(ne), {
|
|
239
241
|
size: () => ke.value,
|
|
240
242
|
closeable: "",
|
|
241
243
|
onClose: () => t
|
|
242
244
|
}, () => {
|
|
243
|
-
let t =
|
|
245
|
+
let t = ge();
|
|
244
246
|
return b(() => {
|
|
245
247
|
let n = I.value;
|
|
246
248
|
C(t, T(e.value[n.label]));
|
|
247
249
|
}), t;
|
|
248
250
|
});
|
|
249
251
|
}, (e) => e[I.value.value], 2), S(t, null, 1), p(() => h.filterable, () => {
|
|
250
|
-
let e =
|
|
252
|
+
let e = _e();
|
|
251
253
|
return e.$evtinput = m(He), e.$evtkeydown = m(Z), Q(e, U, null, "multipleInputRef"), b(() => {
|
|
252
|
-
x(e, [
|
|
254
|
+
x(e, [E(j).e("inner")]), le(e, "placeholder", K.value.length === 0 ? h.placeholder : ""), ue(e, G.value);
|
|
253
255
|
}), e;
|
|
254
256
|
}, () => p(() => K.value.length === 0, () => {
|
|
255
|
-
let e =
|
|
257
|
+
let e = ve(), t = fe(e);
|
|
256
258
|
return b(() => {
|
|
257
|
-
x(e, [
|
|
259
|
+
x(e, [E(j).e("placeholder")]), C(t, T(h.placeholder));
|
|
258
260
|
}), e;
|
|
259
261
|
}), 261), S(e, null, 1), p(() => L.value && Array.isArray(F.value) && F.value.length > 0 && h.clearable, () => {
|
|
260
|
-
let e =
|
|
261
|
-
return b(() => x(e,
|
|
262
|
-
}), S(e, null, 2), d(
|
|
263
|
-
class: () => [
|
|
262
|
+
let e = ye();
|
|
263
|
+
return b(() => x(e, E(j).e("close"))), S(e, null, 0), d(E(n)), v(e, "click", he(Be, ["stop"])), e.$evtmousedown = O(() => {}, ["prevent"]), e;
|
|
264
|
+
}), S(e, null, 2), d(E(l), {
|
|
265
|
+
class: () => [E(j).e("suffix-icon")],
|
|
264
266
|
style: () => ({ transform: W.value ? "rotate(180deg)" : "" })
|
|
265
|
-
}, () => d(
|
|
266
|
-
}, () => d(
|
|
267
|
+
}, () => d(E(r))), v(e, "mouseenter", De), v(e, "mouseleave", Oe), e;
|
|
268
|
+
}, () => d(E(c), {
|
|
267
269
|
modelValue: () => z.label,
|
|
268
270
|
"onUpdate:modelValue": () => (e) => z.label = e,
|
|
269
271
|
disabled: () => h.disabled,
|
|
@@ -271,18 +273,18 @@ var j = /*@__PURE__*/ h({
|
|
|
271
273
|
readonly: () => !h.filterable || !W.value,
|
|
272
274
|
clearable: () => h.clearable,
|
|
273
275
|
style: "width: 100%",
|
|
274
|
-
error: () =>
|
|
275
|
-
size: () =>
|
|
276
|
+
error: () => E(Te),
|
|
277
|
+
size: () => E(N),
|
|
276
278
|
filled: () => P.value,
|
|
277
|
-
onInput: () =>
|
|
279
|
+
onInput: () => E(Le),
|
|
278
280
|
onKeydown: () => Z,
|
|
279
281
|
onClear: () => Be
|
|
280
|
-
}, { suffix: () => d(
|
|
281
|
-
class: () => [
|
|
282
|
+
}, { suffix: () => d(E(l), {
|
|
283
|
+
class: () => [E(j).e("suffix-icon")],
|
|
282
284
|
style: () => ({ transform: W.value ? "rotate(180deg)" : "" })
|
|
283
|
-
}, () => d(
|
|
285
|
+
}, () => d(E(r))) }), 1157)
|
|
284
286
|
}), B, null, "popoverRef"), $.$evtclick = m(je), $;
|
|
285
287
|
}
|
|
286
288
|
});
|
|
287
289
|
//#endregion
|
|
288
|
-
export {
|
|
290
|
+
export { A as default };
|
|
@@ -29,12 +29,28 @@
|
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
@include when(disabled) {
|
|
32
|
-
background-color: getCssVar("color", "fill-2");
|
|
33
|
-
border-color: getCssVar("color", "fill-2");
|
|
34
32
|
cursor: not-allowed;
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
33
|
+
@include be(date-picker, inner) {
|
|
34
|
+
color: getCssVar("color", "text-3");
|
|
35
|
+
}
|
|
36
|
+
@include be(date-picker, icon) {
|
|
37
|
+
color: getCssVar("color", "text-3");
|
|
38
|
+
}
|
|
39
|
+
@include this-be(date-picker, wrapper) {
|
|
40
|
+
background-color: getCssVar("color", "bg-2");
|
|
41
|
+
border: 1px solid getCssVar("color", "fill-3");
|
|
42
|
+
&:hover {
|
|
43
|
+
background-color: getCssVar("color", "bg-2");
|
|
44
|
+
border: 1px solid getCssVar("color", "fill-3");
|
|
45
|
+
}
|
|
46
|
+
@include when(filled) {
|
|
47
|
+
background-color: getCssVar("color", "fill-1");
|
|
48
|
+
border: 1px solid getCssVar("color", "fill-1");
|
|
49
|
+
&:hover {
|
|
50
|
+
background-color: getCssVar("color", "fill-1");
|
|
51
|
+
border: 1px solid getCssVar("color", "fill-1");
|
|
52
|
+
}
|
|
53
|
+
}
|
|
38
54
|
}
|
|
39
55
|
}
|
|
40
56
|
@include when(error) {
|
|
@@ -29,12 +29,28 @@
|
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
@include when(disabled) {
|
|
32
|
-
background-color: getCssVar("color", "fill-2");
|
|
33
|
-
border-color: getCssVar("color", "fill-2");
|
|
34
32
|
cursor: not-allowed;
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
33
|
+
@include be(datetime-picker, inner) {
|
|
34
|
+
color: getCssVar("color", "text-3");
|
|
35
|
+
}
|
|
36
|
+
@include be(datetime-picker, icon) {
|
|
37
|
+
color: getCssVar("color", "text-3");
|
|
38
|
+
}
|
|
39
|
+
@include this-be(datetime-picker, wrapper) {
|
|
40
|
+
background-color: getCssVar("color", "bg-2");
|
|
41
|
+
border: 1px solid getCssVar("color", "fill-3");
|
|
42
|
+
&:hover {
|
|
43
|
+
background-color: getCssVar("color", "bg-2");
|
|
44
|
+
border: 1px solid getCssVar("color", "fill-3");
|
|
45
|
+
}
|
|
46
|
+
@include when(filled) {
|
|
47
|
+
background-color: getCssVar("color", "fill-1");
|
|
48
|
+
border: 1px solid getCssVar("color", "fill-1");
|
|
49
|
+
&:hover {
|
|
50
|
+
background-color: getCssVar("color", "fill-1");
|
|
51
|
+
border: 1px solid getCssVar("color", "fill-1");
|
|
52
|
+
}
|
|
53
|
+
}
|
|
38
54
|
}
|
|
39
55
|
}
|
|
40
56
|
@include when(error) {
|
|
@@ -19,12 +19,25 @@
|
|
|
19
19
|
border-color: getCssVar("color", "primary-5");
|
|
20
20
|
}
|
|
21
21
|
@include when(disabled) {
|
|
22
|
-
background-color: getCssVar("color", "fill-2");
|
|
23
|
-
border-color: getCssVar("color", "fill-2");
|
|
24
22
|
cursor: not-allowed;
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
23
|
+
@include be(input-number, inner) {
|
|
24
|
+
color: getCssVar("color", "text-3");
|
|
25
|
+
}
|
|
26
|
+
@include this-be(input-number, wrapper) {
|
|
27
|
+
background-color: getCssVar("color", "bg-2");
|
|
28
|
+
border: 1px solid getCssVar("color", "fill-3");
|
|
29
|
+
&:hover {
|
|
30
|
+
background-color: getCssVar("color", "bg-2");
|
|
31
|
+
border: 1px solid getCssVar("color", "fill-3");
|
|
32
|
+
}
|
|
33
|
+
@include when(filled) {
|
|
34
|
+
background-color: getCssVar("color", "fill-1");
|
|
35
|
+
border: 1px solid getCssVar("color", "fill-1");
|
|
36
|
+
&:hover {
|
|
37
|
+
background-color: getCssVar("color", "fill-1");
|
|
38
|
+
border: 1px solid getCssVar("color", "fill-1");
|
|
39
|
+
}
|
|
40
|
+
}
|
|
28
41
|
}
|
|
29
42
|
}
|
|
30
43
|
@include when(error) {
|
|
@@ -78,7 +91,7 @@
|
|
|
78
91
|
align-items: center;
|
|
79
92
|
justify-content: center;
|
|
80
93
|
}
|
|
81
|
-
@include e(
|
|
94
|
+
@include e(content) {
|
|
82
95
|
flex: 1;
|
|
83
96
|
display: flex;
|
|
84
97
|
align-items: center;
|
|
@@ -88,7 +101,7 @@
|
|
|
88
101
|
padding: 0 0 0 8px;
|
|
89
102
|
}
|
|
90
103
|
}
|
|
91
|
-
@include e(
|
|
104
|
+
@include e(inner) {
|
|
92
105
|
flex-grow: 1;
|
|
93
106
|
width: 100%;
|
|
94
107
|
min-width: 0;
|
|
@@ -204,7 +217,7 @@
|
|
|
204
217
|
@include be(input-number, wrapper) {
|
|
205
218
|
border-radius: getCssVar("radius", $size);
|
|
206
219
|
}
|
|
207
|
-
@include be(input-number,
|
|
220
|
+
@include be(input-number, inner) {
|
|
208
221
|
height: calc(getCssVar("size", $size) - 2px);
|
|
209
222
|
line-height: calc(getCssVar("size", $size) - 2px);
|
|
210
223
|
@if $size == mini {
|
|
@@ -22,12 +22,25 @@
|
|
|
22
22
|
border-color: getCssVar("color", "primary-5");
|
|
23
23
|
}
|
|
24
24
|
@include when(disabled) {
|
|
25
|
-
background-color: getCssVar("color", "fill-2");
|
|
26
|
-
border-color: getCssVar("color", "fill-2");
|
|
27
25
|
cursor: not-allowed;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
26
|
+
@include be(input-tag, inner) {
|
|
27
|
+
color: getCssVar("color", "text-3");
|
|
28
|
+
}
|
|
29
|
+
@include this-be(input-tag, wrapper) {
|
|
30
|
+
background-color: getCssVar("color", "bg-2");
|
|
31
|
+
border: 1px solid getCssVar("color", "fill-3");
|
|
32
|
+
&:hover {
|
|
33
|
+
background-color: getCssVar("color", "bg-2");
|
|
34
|
+
border: 1px solid getCssVar("color", "fill-3");
|
|
35
|
+
}
|
|
36
|
+
@include when(filled) {
|
|
37
|
+
background-color: getCssVar("color", "fill-1");
|
|
38
|
+
border: 1px solid getCssVar("color", "fill-1");
|
|
39
|
+
&:hover {
|
|
40
|
+
background-color: getCssVar("color", "fill-1");
|
|
41
|
+
border: 1px solid getCssVar("color", "fill-1");
|
|
42
|
+
}
|
|
43
|
+
}
|
|
31
44
|
}
|
|
32
45
|
}
|
|
33
46
|
@include when(error) {
|
|
@@ -23,6 +23,15 @@
|
|
|
23
23
|
@include be(input, inner) {
|
|
24
24
|
color: getCssVar("color", "text-3");
|
|
25
25
|
}
|
|
26
|
+
@include be(input, prepend) {
|
|
27
|
+
color: getCssVar("color", "text-3");
|
|
28
|
+
}
|
|
29
|
+
@include be(input, append) {
|
|
30
|
+
color: getCssVar("color", "text-3");
|
|
31
|
+
}
|
|
32
|
+
@include be(input, inner) {
|
|
33
|
+
color: getCssVar("color", "text-3");
|
|
34
|
+
}
|
|
26
35
|
@include this-be(input, wrapper) {
|
|
27
36
|
background-color: getCssVar("color", "bg-2");
|
|
28
37
|
border: 1px solid getCssVar("color", "fill-3");
|
|
@@ -5,6 +5,12 @@
|
|
|
5
5
|
@include b(select) {
|
|
6
6
|
display: inline-flex;
|
|
7
7
|
|
|
8
|
+
@include when(disabled) {
|
|
9
|
+
@include be(select, suffix-icon) {
|
|
10
|
+
color: getCssVar("color", "text-3");
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
8
14
|
@include when(readonly) {
|
|
9
15
|
cursor: pointer;
|
|
10
16
|
}
|
|
@@ -20,10 +26,14 @@
|
|
|
20
26
|
|
|
21
27
|
@each $size in $size-list {
|
|
22
28
|
@include m(#{$size}) {
|
|
23
|
-
height: getCssVar("size", $size);
|
|
24
29
|
@include be(select, wrapper) {
|
|
25
30
|
border-radius: getCssVar("radius", $size);
|
|
26
31
|
}
|
|
32
|
+
|
|
33
|
+
@include be(select, tags-wrapper) {
|
|
34
|
+
min-height: getCssVar("size", $size);
|
|
35
|
+
border-radius: getCssVar("radius", $size);
|
|
36
|
+
}
|
|
27
37
|
}
|
|
28
38
|
@include m(list-#{$size}) {
|
|
29
39
|
@include be(select, item) {
|
|
@@ -45,7 +55,6 @@
|
|
|
45
55
|
cursor: pointer;
|
|
46
56
|
transition: border-color 0.2s;
|
|
47
57
|
box-sizing: border-box;
|
|
48
|
-
min-height: getCssVar("size", "medium");
|
|
49
58
|
|
|
50
59
|
&:hover {
|
|
51
60
|
border-color: getCssVar("color", "fill-4");
|
|
@@ -95,7 +104,7 @@
|
|
|
95
104
|
min-width: 0;
|
|
96
105
|
}
|
|
97
106
|
|
|
98
|
-
@include e(
|
|
107
|
+
@include e(inner) {
|
|
99
108
|
border: none;
|
|
100
109
|
outline: none;
|
|
101
110
|
background: transparent;
|
|
@@ -28,12 +28,25 @@
|
|
|
28
28
|
border-color: getCssVar("color", "primary-6");
|
|
29
29
|
}
|
|
30
30
|
@include when(disabled) {
|
|
31
|
-
background-color: getCssVar("color", "fill-2");
|
|
32
|
-
border-color: getCssVar("color", "fill-2");
|
|
33
31
|
cursor: not-allowed;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
32
|
+
@include be(input, inner) {
|
|
33
|
+
color: getCssVar("color", "text-3");
|
|
34
|
+
}
|
|
35
|
+
@include this-be(input, wrapper) {
|
|
36
|
+
background-color: getCssVar("color", "bg-2");
|
|
37
|
+
border: 1px solid getCssVar("color", "fill-3");
|
|
38
|
+
&:hover {
|
|
39
|
+
background-color: getCssVar("color", "bg-2");
|
|
40
|
+
border: 1px solid getCssVar("color", "fill-3");
|
|
41
|
+
}
|
|
42
|
+
@include when(filled) {
|
|
43
|
+
background-color: getCssVar("color", "fill-1");
|
|
44
|
+
border: 1px solid getCssVar("color", "fill-1");
|
|
45
|
+
&:hover {
|
|
46
|
+
background-color: getCssVar("color", "fill-1");
|
|
47
|
+
border: 1px solid getCssVar("color", "fill-1");
|
|
48
|
+
}
|
|
49
|
+
}
|
|
37
50
|
}
|
|
38
51
|
}
|
|
39
52
|
@include when(error) {
|
package/dist/json/web-types.json
CHANGED