savor-ui 0.3.2 → 0.4.0
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 +45 -0
- package/dist/es/components/index.d.ts +4 -0
- package/dist/es/components/index.mjs +6 -1
- package/dist/es/components/src/alert/alert.d.ts +22 -0
- package/dist/es/components/src/alert/alert.vue.mjs +5 -0
- package/dist/es/components/src/alert/alert.vue_vue_type_script_setup_true_vapor_true_lang.mjs +58 -0
- package/dist/es/components/src/alert/index.d.ts +26 -0
- package/dist/es/components/src/alert/index.mjs +7 -0
- package/dist/es/components/src/alert/types.d.ts +24 -0
- package/dist/es/components/src/cascader/cascader.vue_vue_type_script_setup_true_vapor_true_lang.mjs +93 -82
- package/dist/es/components/src/cascader/index.d.ts +1 -0
- package/dist/es/components/src/cascader/types.d.ts +2 -0
- package/dist/es/components/src/chat-list/chat-list.d.ts +35 -0
- package/dist/es/components/src/chat-list/chat-list.vue.mjs +5 -0
- package/dist/es/components/src/chat-list/chat-list.vue_vue_type_script_setup_true_vapor_true_lang.mjs +55 -0
- package/dist/es/components/src/chat-list/index.d.ts +47 -0
- package/dist/es/components/src/chat-list/index.mjs +7 -0
- package/dist/es/components/src/chat-list/types.d.ts +44 -0
- package/dist/es/components/src/chat-sender/chat-sender.d.ts +26 -0
- package/dist/es/components/src/chat-sender/chat-sender.vue.mjs +5 -0
- package/dist/es/components/src/chat-sender/chat-sender.vue_vue_type_script_setup_true_vapor_true_lang.mjs +92 -0
- package/dist/es/components/src/chat-sender/index.d.ts +27 -0
- package/dist/es/components/src/chat-sender/index.mjs +7 -0
- package/dist/es/components/src/chat-sender/types.d.ts +24 -0
- package/dist/es/components/src/collapse/collapse-item.vue_vue_type_script_setup_true_vapor_true_lang.mjs +2 -2
- package/dist/es/components/src/date-picker/date-picker.vue_vue_type_script_setup_true_vapor_true_lang.mjs +28 -28
- package/dist/es/components/src/datetime-picker/datetime-picker.vue_vue_type_script_setup_true_vapor_true_lang.mjs +28 -28
- package/dist/es/components/src/drawer/drawer.vue_vue_type_script_setup_true_vapor_true_lang.mjs +72 -72
- package/dist/es/components/src/form/form-item.vue_vue_type_script_setup_true_vapor_true_lang.mjs +13 -13
- package/dist/es/components/src/form/use-form-item.d.ts +1 -1
- package/dist/es/components/src/grid/grid-item.vue_vue_type_script_setup_true_vapor_true_lang.mjs +26 -17
- package/dist/es/components/src/grid/grid.vue_vue_type_script_setup_true_vapor_true_lang.mjs +10 -6
- package/dist/es/components/src/grid/types.d.ts +2 -0
- package/dist/es/components/src/input/input.vue_vue_type_script_setup_true_vapor_true_lang.mjs +9 -9
- package/dist/es/components/src/input-number/input-number.vue_vue_type_script_setup_true_vapor_true_lang.mjs +83 -83
- package/dist/es/components/src/input-tag/input-tag.vue_vue_type_script_setup_true_vapor_true_lang.mjs +10 -10
- package/dist/es/components/src/layer/layer.vue_vue_type_script_setup_true_vapor_true_lang.mjs +105 -105
- package/dist/es/components/src/list/index.d.ts +5 -5
- package/dist/es/components/src/list/list.d.ts +3 -3
- package/dist/es/components/src/list/list.vue_vue_type_script_setup_true_vapor_true_lang.mjs +7 -12
- package/dist/es/components/src/list/types.d.ts +7 -5
- package/dist/es/components/src/menu/menu-item.vue_vue_type_script_setup_true_vapor_true_lang.mjs +46 -37
- package/dist/es/components/src/menu/sub-menu.vue_vue_type_script_setup_true_vapor_true_lang.mjs +2 -2
- package/dist/es/components/src/modal/modal.vue_vue_type_script_setup_true_vapor_true_lang.mjs +121 -121
- package/dist/es/components/src/panel/panel.vue_vue_type_script_setup_true_vapor_true_lang.mjs +2 -2
- package/dist/es/components/src/popover/index.d.ts +1 -0
- package/dist/es/components/src/popover/popover.vue_vue_type_script_setup_true_vapor_true_lang.mjs +77 -76
- package/dist/es/components/src/popover/types.d.ts +4 -0
- package/dist/es/components/src/scrollbar/index.d.ts +7 -2
- package/dist/es/components/src/scrollbar/scrollbar.d.ts +5 -2
- package/dist/es/components/src/scrollbar/scrollbar.vue_vue_type_script_setup_true_vapor_true_lang.mjs +131 -96
- package/dist/es/components/src/scrollbar/types.d.ts +15 -1
- package/dist/es/components/src/segmented/segmented.vue_vue_type_script_setup_true_vapor_true_lang.mjs +41 -45
- package/dist/es/components/src/select/select.vue_vue_type_script_setup_true_vapor_true_lang.mjs +9 -9
- package/dist/es/components/src/table/col-group.d.ts +22 -0
- package/dist/es/components/src/table/col-group.vue.mjs +5 -0
- package/dist/es/components/src/table/col-group.vue_vue_type_script_setup_true_vapor_true_lang.mjs +25 -0
- package/dist/es/components/src/table/index.d.ts +18 -41
- package/dist/es/components/src/table/index.mjs +1 -0
- package/dist/es/components/src/table/table-body.d.ts +32 -0
- package/dist/es/components/src/table/table-body.vue.mjs +5 -0
- package/dist/es/components/src/table/table-body.vue_vue_type_script_setup_true_vapor_true_lang.mjs +153 -0
- package/dist/es/components/src/table/table-header.d.ts +23 -0
- package/dist/es/components/src/table/table-header.vue.mjs +5 -0
- package/dist/es/components/src/table/table-header.vue_vue_type_script_setup_true_vapor_true_lang.mjs +80 -0
- package/dist/es/components/src/table/table.d.ts +12 -25
- package/dist/es/components/src/table/table.vue_vue_type_script_setup_true_vapor_true_lang.mjs +167 -380
- package/dist/es/components/src/table/types.d.ts +61 -45
- package/dist/es/components/src/table/types.mjs +4 -0
- package/dist/es/components/src/textarea/textarea.vue_vue_type_script_setup_true_vapor_true_lang.mjs +6 -6
- package/dist/es/components/src/tooltip/index.d.ts +1 -0
- package/dist/es/components/src/tooltip/tooltip.vue_vue_type_script_setup_true_vapor_true_lang.mjs +2 -0
- package/dist/es/components/src/tooltip/types.d.ts +2 -0
- package/dist/es/components/src/transition/index.d.ts +29 -0
- package/dist/es/components/src/transition/index.mjs +7 -0
- package/dist/es/components/src/{_comp/HeightTransition.d.ts → transition/transition-height.d.ts} +0 -4
- package/dist/es/components/src/transition/transition-height.vue.mjs +5 -0
- package/dist/es/components/src/transition/transition-height.vue_vue_type_script_setup_true_vapor_true_lang.mjs +54 -0
- package/dist/es/components/src/transition/transition-opacity.vue.mjs +5 -0
- package/dist/es/components/src/{_comp/OpacityTransition.vue_vue_type_script_setup_true_vapor_true_lang.mjs → transition/transition-opacity.vue_vue_type_script_setup_true_vapor_true_lang.mjs} +2 -2
- package/dist/es/components/src/transition/transition-scale.vue.mjs +5 -0
- package/dist/es/components/src/{_comp/ScaleTransition.vue_vue_type_script_setup_true_vapor_true_lang.mjs → transition/transition-scale.vue_vue_type_script_setup_true_vapor_true_lang.mjs} +2 -2
- package/dist/es/components/src/transition/transition-side.vue.mjs +5 -0
- package/dist/es/components/src/{_comp/SideTransition.vue_vue_type_script_setup_true_vapor_true_lang.mjs → transition/transition-side.vue_vue_type_script_setup_true_vapor_true_lang.mjs} +2 -2
- package/dist/es/components/src/transition/transition-width.d.ts +31 -0
- package/dist/es/components/src/transition/transition-width.vue.mjs +5 -0
- package/dist/es/components/src/transition/transition-width.vue_vue_type_script_setup_true_vapor_true_lang.mjs +54 -0
- package/dist/es/components/src/transition/transition.d.ts +27 -0
- package/dist/es/components/src/transition/transition.vue.mjs +5 -0
- package/dist/es/components/src/transition/transition.vue_vue_type_script_setup_true_vapor_true_lang.mjs +47 -0
- package/dist/es/components/src/transition/types.d.ts +28 -0
- package/dist/es/components/src/tree/index.d.ts +15 -7
- package/dist/es/components/src/tree/node.d.ts +2 -1
- package/dist/es/components/src/tree/node.vue_vue_type_script_setup_true_vapor_true_lang.mjs +27 -29
- package/dist/es/components/src/tree/tree.d.ts +8 -2
- package/dist/es/components/src/tree/tree.vue_vue_type_script_setup_true_vapor_true_lang.mjs +69 -65
- package/dist/es/components/src/tree/types.d.ts +18 -12
- package/dist/es/core/components.mjs +94 -86
- package/dist/es/core/index.mjs +84 -79
- package/dist/es/hooks/src/use-element-size.mjs +7 -38
- package/dist/es/icons/index.d.ts +4 -1
- package/dist/es/icons/index.mjs +3 -0
- package/dist/es/icons/src/loading-stop.d.ts +19 -0
- package/dist/es/icons/src/loading-stop.vue.mjs +11 -0
- package/dist/es/icons/src/send.d.ts +19 -0
- package/dist/es/icons/src/send.vue.mjs +11 -0
- package/dist/es/icons/src/stop.d.ts +19 -0
- package/dist/es/icons/src/stop.vue.mjs +5 -0
- package/dist/es/theme/components/alert.scss +101 -0
- package/dist/es/theme/components/button.scss +21 -4
- package/dist/es/theme/components/cascader.scss +3 -0
- package/dist/es/theme/components/chat-list.scss +134 -0
- package/dist/es/theme/components/chat-sender.scss +123 -0
- package/dist/es/theme/components/index.scss +3 -0
- package/dist/es/theme/components/input.scss +2 -1
- package/dist/es/theme/components/list.scss +7 -0
- package/dist/es/theme/components/menu.scss +14 -1
- package/dist/es/theme/components/scrollbar.scss +61 -7
- package/dist/es/theme/components/table.scss +360 -328
- package/dist/es/theme/components/transition.scss +21 -21
- package/dist/es/theme/components/tree.scss +8 -0
- package/dist/es/utils/src/tool.d.ts +8 -3
- package/dist/es/utils/src/tool.mjs +6 -6
- package/dist/json/vetur-attributes.json +196 -46
- package/dist/json/vetur-tags.json +82 -15
- package/dist/json/web-types.json +432 -75
- package/package.json +1 -1
- package/dist/es/components/src/_comp/HeightTransition.vue.mjs +0 -5
- package/dist/es/components/src/_comp/HeightTransition.vue_vue_type_script_setup_true_vapor_true_lang.mjs +0 -77
- package/dist/es/components/src/_comp/OpacityTransition.vue.mjs +0 -5
- package/dist/es/components/src/_comp/ScaleTransition.vue.mjs +0 -5
- package/dist/es/components/src/_comp/SideTransition.vue.mjs +0 -5
- /package/dist/es/components/src/{_comp/OpacityTransition.d.ts → transition/transition-opacity.d.ts} +0 -0
- /package/dist/es/components/src/{_comp/ScaleTransition.d.ts → transition/transition-scale.d.ts} +0 -0
- /package/dist/es/components/src/{_comp/SideTransition.d.ts → transition/transition-side.d.ts} +0 -0
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { useNamespace as e } from "../../../hooks/src/use-namespace.mjs";
|
|
2
2
|
import "../../../hooks/index.mjs";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import i from "../../../icons/src/
|
|
8
|
-
import te from "../../../icons/src/plus.vue.mjs";
|
|
9
|
-
import ne from "../../../icons/src/up.vue.mjs";
|
|
3
|
+
import t from "../../../icons/src/close.vue.mjs";
|
|
4
|
+
import n from "../../../icons/src/down.vue.mjs";
|
|
5
|
+
import r from "../../../icons/src/minus.vue.mjs";
|
|
6
|
+
import ee from "../../../icons/src/plus.vue.mjs";
|
|
7
|
+
import i from "../../../icons/src/up.vue.mjs";
|
|
10
8
|
import "../../../icons/index.mjs";
|
|
11
|
-
import {
|
|
9
|
+
import { formItemContextKey as te } from "../form/types.mjs";
|
|
10
|
+
import { useFormItem as a } from "../form/use-form-item.mjs";
|
|
11
|
+
import { configProviderContextKey as ne } from "../config-provider/types.mjs";
|
|
12
12
|
import "../config-provider/index.mjs";
|
|
13
13
|
import "../form/index.mjs";
|
|
14
|
-
import { child as
|
|
14
|
+
import { child as o, computed as s, createComponent as c, createIf as l, createInvoker as u, createSlot as d, createTemplateRefSetter as f, defineVaporComponent as p, delegateEvents as m, inject as h, mergeModels as g, next as re, nextTick as _, on as v, ref as y, renderEffect as b, setClass as x, setInsertionState as S, setProp as C, setText as w, setValue as ie, template as T, toDisplayString as E, toRefs as ae, unref as D, useModel as oe, watch as O, withModifiers as k, withVaporModifiers as A } from "vue";
|
|
15
15
|
//#region ../components/src/input-number/input-number.vue?vue&type=script&setup=true&vapor=true&lang.ts
|
|
16
|
-
var
|
|
17
|
-
|
|
18
|
-
var N = /*@__PURE__*/
|
|
16
|
+
var j = T(" "), M = T("<div>"), se = T("<div><div></div><div></div>"), ce = T("<div><div><div><input type=text></div>", 1);
|
|
17
|
+
m("mousedown", "input", "keydown");
|
|
18
|
+
var N = /*@__PURE__*/ p({
|
|
19
19
|
name: "SInputNumber",
|
|
20
20
|
__name: "input-number",
|
|
21
|
-
props: /*@__PURE__*/
|
|
21
|
+
props: /*@__PURE__*/ g({
|
|
22
22
|
size: { default: "medium" },
|
|
23
23
|
min: {},
|
|
24
24
|
max: {},
|
|
@@ -48,7 +48,7 @@ var N = /*@__PURE__*/ u({
|
|
|
48
48
|
modelValue: { default: null },
|
|
49
49
|
modelModifiers: {}
|
|
50
50
|
}),
|
|
51
|
-
emits: /*@__PURE__*/
|
|
51
|
+
emits: /*@__PURE__*/ g([
|
|
52
52
|
"input",
|
|
53
53
|
"change",
|
|
54
54
|
"press-enter",
|
|
@@ -56,11 +56,11 @@ var N = /*@__PURE__*/ u({
|
|
|
56
56
|
"focus",
|
|
57
57
|
"blur"
|
|
58
58
|
], ["update:modelValue"]),
|
|
59
|
-
setup(
|
|
60
|
-
let N =
|
|
61
|
-
size:
|
|
62
|
-
error:
|
|
63
|
-
}), R =
|
|
59
|
+
setup(p, { expose: m, emit: g, slots: T }) {
|
|
60
|
+
let N = p, P = oe(p, "modelValue"), F = h(ne, void 0), le = s(() => F?.inputFilled?.value || N.filled), I = g, { size: ue, error: de } = ae(N), { mergedSize: fe, mergedError: L } = a({
|
|
61
|
+
size: ue,
|
|
62
|
+
error: de
|
|
63
|
+
}), R = y(null), z = y(!1), B = y(""), V = y(!1), pe = () => {
|
|
64
64
|
V.value = !0;
|
|
65
65
|
}, me = () => {
|
|
66
66
|
V.value = !1;
|
|
@@ -79,38 +79,38 @@ var N = /*@__PURE__*/ u({
|
|
|
79
79
|
return isNaN(t) ? P.value : t;
|
|
80
80
|
}, he = (e) => {
|
|
81
81
|
let t = e.target, n = W(t.value);
|
|
82
|
-
n === null ? t.value = B.value : (B.value = t.value,
|
|
82
|
+
n === null ? t.value = B.value : (B.value = t.value, I("input", U(n), e), J("input"));
|
|
83
83
|
}, G = (e) => {
|
|
84
84
|
let t = W(B.value), n = t;
|
|
85
|
-
t === null ? P.value = null : (n = U(t), P.value = n), H(n),
|
|
85
|
+
t === null ? P.value = null : (n = U(t), P.value = n), H(n), I("change", n, e), J("change");
|
|
86
86
|
}, ge = (e) => {
|
|
87
|
-
e.key === "Enter" &&
|
|
87
|
+
e.key === "Enter" && I("press-enter", e), e.key === "ArrowUp" && (e.preventDefault(), K()), e.key === "ArrowDown" && (e.preventDefault(), q());
|
|
88
88
|
}, _e = (e) => {
|
|
89
|
-
z.value = !0,
|
|
89
|
+
z.value = !0, I("focus", e);
|
|
90
90
|
}, ve = (e) => {
|
|
91
|
-
z.value = !1,
|
|
91
|
+
z.value = !1, I("blur", e), J("blur"), G(e);
|
|
92
92
|
}, ye = (e) => {
|
|
93
|
-
P.value = null, B.value = "",
|
|
93
|
+
P.value = null, B.value = "", I("input", null, e), I("clear", e), _(() => {
|
|
94
94
|
R.value?.focus();
|
|
95
95
|
});
|
|
96
96
|
}, K = (e) => {
|
|
97
97
|
if (N.disabled || N.readonly) return;
|
|
98
98
|
let t = U((P.value ?? 0) + N.step);
|
|
99
|
-
P.value = t, H(t), e && (
|
|
99
|
+
P.value = t, H(t), e && (I("input", t, e), I("change", t, e));
|
|
100
100
|
}, q = (e) => {
|
|
101
101
|
if (N.disabled || N.readonly) return;
|
|
102
102
|
let t = U((P.value ?? 0) - N.step);
|
|
103
|
-
P.value = t, H(t), e && (
|
|
104
|
-
}, be =
|
|
103
|
+
P.value = t, H(t), e && (I("input", t, e), I("change", t, e));
|
|
104
|
+
}, be = h(te, null), J = (e) => {
|
|
105
105
|
be?.validate(e).catch(() => {});
|
|
106
106
|
};
|
|
107
|
-
|
|
107
|
+
O(P, (e) => {
|
|
108
108
|
H(e);
|
|
109
|
-
}, { immediate: !0 }),
|
|
110
|
-
e &&
|
|
109
|
+
}, { immediate: !0 }), O(() => N.autofocus, (e) => {
|
|
110
|
+
e && _(() => {
|
|
111
111
|
R.value?.focus();
|
|
112
112
|
});
|
|
113
|
-
}, { immediate: !0 }),
|
|
113
|
+
}, { immediate: !0 }), m({
|
|
114
114
|
focus: () => {
|
|
115
115
|
R.value?.focus();
|
|
116
116
|
},
|
|
@@ -118,63 +118,63 @@ var N = /*@__PURE__*/ u({
|
|
|
118
118
|
R.value?.blur();
|
|
119
119
|
}
|
|
120
120
|
});
|
|
121
|
-
let Y = e("input-number"), xe =
|
|
122
|
-
return
|
|
123
|
-
let e =
|
|
124
|
-
|
|
121
|
+
let Y = e("input-number"), xe = f(), X = ce(), Z = o(X), Q = o(Z, 2), $ = o(Q, 1);
|
|
122
|
+
return b(() => {
|
|
123
|
+
let e = D(Y);
|
|
124
|
+
x(X, [e.b(), e.m(D(fe))]), x(Z, [
|
|
125
125
|
e.e("wrapper"),
|
|
126
|
-
e.is("disabled",
|
|
127
|
-
e.is("error",
|
|
128
|
-
e.is("filled",
|
|
126
|
+
e.is("disabled", p.disabled),
|
|
127
|
+
e.is("error", D(L)),
|
|
128
|
+
e.is("filled", le.value)
|
|
129
129
|
]);
|
|
130
|
-
}),
|
|
131
|
-
let e =
|
|
132
|
-
return
|
|
133
|
-
let e =
|
|
134
|
-
return
|
|
130
|
+
}), S(Z, 0, 0), l(() => T.prepend || p.prepend, () => {
|
|
131
|
+
let e = M();
|
|
132
|
+
return b(() => x(e, [D(Y).e("prepend")])), S(e, null, 0), d("prepend", null, () => {
|
|
133
|
+
let e = j();
|
|
134
|
+
return b(() => w(e, E(p.prepend))), e;
|
|
135
135
|
}), e;
|
|
136
|
-
}),
|
|
137
|
-
let e =
|
|
138
|
-
return
|
|
139
|
-
let t =
|
|
140
|
-
|
|
141
|
-
}),
|
|
142
|
-
}),
|
|
143
|
-
let e =
|
|
144
|
-
return
|
|
145
|
-
let e =
|
|
146
|
-
return
|
|
136
|
+
}), S(Z, 0, 1), l(() => p.showButton, () => {
|
|
137
|
+
let e = M();
|
|
138
|
+
return b(() => {
|
|
139
|
+
let t = D(Y);
|
|
140
|
+
x(e, [t.e("button"), t.e("prepend-button")]);
|
|
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("inner")])), S(Q, 0, 0), l(() => T.prefix || p.prefix, () => {
|
|
143
|
+
let e = M();
|
|
144
|
+
return b(() => x(e, [D(Y).e("prefix")])), S(e, null, 0), d("prefix", null, () => {
|
|
145
|
+
let e = j();
|
|
146
|
+
return b(() => w(e, E(p.prefix))), e;
|
|
147
147
|
}), e;
|
|
148
|
-
}),
|
|
149
|
-
|
|
150
|
-
}),
|
|
151
|
-
let e =
|
|
152
|
-
return
|
|
153
|
-
}),
|
|
154
|
-
let e =
|
|
155
|
-
return
|
|
156
|
-
let e =
|
|
157
|
-
return
|
|
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("input")]), 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, () => {
|
|
151
|
+
let e = M();
|
|
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
|
+
}), S(Q, null, 3), l(() => T.suffix || p.suffix, () => {
|
|
154
|
+
let e = M();
|
|
155
|
+
return b(() => x(e, [D(Y).e("suffix")])), S(e, null, 0), d("suffix", null, () => {
|
|
156
|
+
let e = j();
|
|
157
|
+
return b(() => w(e, E(p.suffix))), e;
|
|
158
158
|
}), e;
|
|
159
|
-
}),
|
|
160
|
-
let e =
|
|
161
|
-
return
|
|
162
|
-
let n =
|
|
163
|
-
|
|
164
|
-
}),
|
|
165
|
-
}),
|
|
166
|
-
let e =
|
|
167
|
-
return
|
|
168
|
-
let t =
|
|
169
|
-
|
|
170
|
-
}),
|
|
171
|
-
}),
|
|
172
|
-
let e =
|
|
173
|
-
return
|
|
174
|
-
let e =
|
|
175
|
-
return
|
|
159
|
+
}), S(Q, null, 4), l(() => p.controls && !p.showButton, () => {
|
|
160
|
+
let e = se(), t = o(e), r = re(t, 1);
|
|
161
|
+
return b(() => {
|
|
162
|
+
let n = D(Y);
|
|
163
|
+
x(e, [n.e("controls")]), x(t, n.e("increase"));
|
|
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, () => {
|
|
166
|
+
let e = M();
|
|
167
|
+
return b(() => {
|
|
168
|
+
let t = D(Y);
|
|
169
|
+
x(e, [t.e("button"), t.e("append-button")]);
|
|
170
|
+
}), S(e, null, 0), c(D(ee)), v(e, "click", k(K, ["stop"])), e.$evtmousedown = A(() => {}, ["prevent"]), e;
|
|
171
|
+
}), S(Z, null, 4), l(() => T.append || p.append, () => {
|
|
172
|
+
let e = M();
|
|
173
|
+
return b(() => x(e, [D(Y).e("append")])), S(e, null, 0), d("append", null, () => {
|
|
174
|
+
let e = j();
|
|
175
|
+
return b(() => w(e, E(p.append))), e;
|
|
176
176
|
}), e;
|
|
177
|
-
}),
|
|
177
|
+
}), v(Z, "mouseenter", pe), v(Z, "mouseleave", me), X;
|
|
178
178
|
}
|
|
179
179
|
});
|
|
180
180
|
//#endregion
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { useNamespace as e } from "../../../hooks/src/use-namespace.mjs";
|
|
2
2
|
import "../../../hooks/index.mjs";
|
|
3
|
-
import
|
|
4
|
-
import { useFormItem as n } from "../form/use-form-item.mjs";
|
|
5
|
-
import r from "../../../icons/src/close.vue.mjs";
|
|
3
|
+
import t from "../../../icons/src/close.vue.mjs";
|
|
6
4
|
import "../../../icons/index.mjs";
|
|
5
|
+
import { formItemContextKey as n } from "../form/types.mjs";
|
|
6
|
+
import { useFormItem as r } from "../form/use-form-item.mjs";
|
|
7
7
|
import { configProviderContextKey as i } from "../config-provider/types.mjs";
|
|
8
8
|
import "../config-provider/index.mjs";
|
|
9
9
|
import "../form/index.mjs";
|
|
@@ -36,7 +36,7 @@ var j = /*@__PURE__*/ d({
|
|
|
36
36
|
}),
|
|
37
37
|
emits: /*@__PURE__*/ m(["change", "clear"], ["update:modelValue"]),
|
|
38
38
|
setup(d, { emit: f, slots: m }) {
|
|
39
|
-
let S = d, j = f, M = e("input-tag"), N = E(d, "modelValue"), P = p(i, void 0), F = o(() => P?.inputFilled?.value || S.filled), { size: I, error: L } = C(S), { mergedSize: R, mergedError: z } =
|
|
39
|
+
let S = d, j = f, M = e("input-tag"), N = E(d, "modelValue"), P = p(i, void 0), F = o(() => P?.inputFilled?.value || S.filled), { size: I, error: L } = C(S), { mergedSize: R, mergedError: z } = r({
|
|
40
40
|
size: I,
|
|
41
41
|
error: L
|
|
42
42
|
}), B = _(""), V = _(!1), H = () => {
|
|
@@ -53,7 +53,7 @@ var j = /*@__PURE__*/ d({
|
|
|
53
53
|
N.value = N.value.toSpliced(N.value.indexOf(e), 1), j("change", N.value);
|
|
54
54
|
}, oe = (e) => {
|
|
55
55
|
N.value = [], j("clear", e);
|
|
56
|
-
}, se = p(
|
|
56
|
+
}, se = p(n, null), J = (e) => {
|
|
57
57
|
se?.validate(e).catch(() => {});
|
|
58
58
|
}, Y = ae(), X = a(Y), Z = a(X, 2), Q = a(Z, 2), $ = a(Q);
|
|
59
59
|
return v(() => {
|
|
@@ -71,11 +71,11 @@ var j = /*@__PURE__*/ d({
|
|
|
71
71
|
let e = A();
|
|
72
72
|
return v(() => y(e, [T(M).e("prefix")])), b(e, null, 0), u("prefix"), e;
|
|
73
73
|
}), v(() => y(Z, [T(M).e("inner")])), b(Z, 0, 0), c(() => N.value, (e) => {
|
|
74
|
-
let
|
|
74
|
+
let n = ie(), r = a(n), i = h(r, 1), o = w(r);
|
|
75
75
|
return v(() => {
|
|
76
|
-
let
|
|
77
|
-
y(
|
|
78
|
-
}), b(i, null, 0), s(T(
|
|
76
|
+
let t = T(M);
|
|
77
|
+
y(n, [t.e("item")]), te(o, re(e.value)), y(i, [t.e("item-close")]);
|
|
78
|
+
}), b(i, null, 0), s(T(t)), g(i, "click", O(() => q(e.value), ["stop"])), i.$evtmousedown = k(() => {}, ["prevent"]), n.$evtmousedown = k(() => {}, ["prevent"]), n;
|
|
79
79
|
}, (e) => e, 8), b(Z, 0, 1), l(() => d.collapse && d.max && N.value.length > d.max, () => {
|
|
80
80
|
let e = A();
|
|
81
81
|
return v(() => y(e, [T(M).e("item")])), e;
|
|
@@ -84,7 +84,7 @@ var j = /*@__PURE__*/ d({
|
|
|
84
84
|
y(Q, [e.e("input-wrapper")]), y($, [e.e("input")]), ne($, B.value), x($, "readonly", d.readonly ? !0 : void 0), x($, "disabled", d.disabled), x($, "placeholder", d.placeholder);
|
|
85
85
|
}), b(X, null, 3), l(() => V.value && N.value.length > 0 && d.clearable, () => {
|
|
86
86
|
let e = A();
|
|
87
|
-
return v(() => y(e, T(M).e("clear"))), b(e, null, 0), s(T(
|
|
87
|
+
return v(() => y(e, T(M).e("clear"))), b(e, null, 0), s(T(t)), g(e, "click", O(oe, ["stop"])), e;
|
|
88
88
|
}), b(X, null, 4), l(() => m.suffix || d.suffix, () => {
|
|
89
89
|
let e = A();
|
|
90
90
|
return v(() => y(e, [T(M).e("suffix")])), b(e, null, 0), u("suffix"), e;
|
package/dist/es/components/src/layer/layer.vue_vue_type_script_setup_true_vapor_true_lang.mjs
CHANGED
|
@@ -14,16 +14,15 @@ import oe from "../../../icons/src/minus.vue.mjs";
|
|
|
14
14
|
import "../../../icons/index.mjs";
|
|
15
15
|
import { SScrollbar as se } from "../scrollbar/index.mjs";
|
|
16
16
|
import { SButton as i } from "../button/index.mjs";
|
|
17
|
-
import
|
|
18
|
-
import le from "
|
|
19
|
-
import { VaporTeleport as ue, applyVShow as a, child as o, computed as s, createComponent as c, createFor as de, createIf as l, createInvoker as u, createSlot as fe, createTemplateRefSetter as pe, defineVaporComponent as d, delegateEvents as f, mergeModels as p, nextTick as m, onUnmounted as me, ref as h, renderEffect as g, setClass as _, setInsertionState as v, setProp as he, setStyle as y, setText as b, template as x, toDisplayString as S, toRefs as ge, txt as _e, unref as C, useModel as ve, useTemplateRef as w, watch as ye, watchEffect as be } from "vue";
|
|
17
|
+
import { STransition as a } from "../transition/index.mjs";
|
|
18
|
+
import { VaporTeleport as ce, applyVShow as o, child as s, computed as c, createComponent as l, createFor as le, createIf as u, createInvoker as d, createSlot as ue, createTemplateRefSetter as de, defineVaporComponent as f, delegateEvents as p, mergeModels as m, nextTick as h, onUnmounted as fe, ref as g, renderEffect as _, setClass as v, setInsertionState as y, setProp as pe, setStyle as b, setText as x, template as S, toDisplayString as C, toRefs as me, txt as he, unref as w, useModel as ge, useTemplateRef as T, watch as _e, watchEffect as ve } from "vue";
|
|
20
19
|
//#region ../components/src/layer/layer.vue?vue&type=script&setup=true&vapor=true&lang.ts
|
|
21
|
-
var
|
|
22
|
-
|
|
23
|
-
var D = /*@__PURE__*/
|
|
20
|
+
var E = S("<div>"), ye = S(" "), be = S("<div><div style=\"padding: 20px\"> </div>"), xe = S("<div><iframe style=width:100%;height:100%;border:none;></iframe>"), Se = S("<div><div><div></div></div>"), Ce = S("<div><div>");
|
|
21
|
+
p("click");
|
|
22
|
+
var D = /*@__PURE__*/ f({
|
|
24
23
|
inheritAttrs: !1,
|
|
25
24
|
__name: "layer",
|
|
26
|
-
props: /*@__PURE__*/
|
|
25
|
+
props: /*@__PURE__*/ m({
|
|
27
26
|
type: {},
|
|
28
27
|
title: {},
|
|
29
28
|
content: {},
|
|
@@ -96,17 +95,17 @@ var D = /*@__PURE__*/ d({
|
|
|
96
95
|
modelModifiers: {}
|
|
97
96
|
}),
|
|
98
97
|
emits: ["update:modelValue"],
|
|
99
|
-
setup(
|
|
100
|
-
let
|
|
101
|
-
zIndex:
|
|
98
|
+
setup(f, { expose: p }) {
|
|
99
|
+
let m = f, S = n("layer"), { lockScroll: D, unlockScroll: O } = te(), { zIndex: k } = ne(), A = T("layerRef"), j = T("headerRef"), M = T("pageContentRef"), N = ge(f, "modelValue"), P = g(!1), F = g(!1), I = g(!1), L = g(!1), R = g(!1), z = g(!1), B = g(0), V = g(0), H = g(0), U = g(0), W = g(0), G = g(0), K = c(() => typeof m.to == "string" ? document.querySelector(m.to) || document.body : m.to), we = c(() => ({
|
|
100
|
+
zIndex: m.zIndex ?? k.value,
|
|
102
101
|
position: K.value === document.body ? "fixed" : "absolute"
|
|
103
|
-
})),
|
|
102
|
+
})), Te = c(() => {
|
|
104
103
|
if (I.value) return {};
|
|
105
|
-
if (Z.value &&
|
|
104
|
+
if (Z.value && m.minAnimate) return L.value ? {
|
|
106
105
|
width: `${Q.value.width}px`,
|
|
107
106
|
height: `${Q.value.height}px`,
|
|
108
|
-
top: `${
|
|
109
|
-
left: `${
|
|
107
|
+
top: `${m.minOrigin.y}px`,
|
|
108
|
+
left: `${m.minOrigin.x}px`,
|
|
110
109
|
transform: "scale(0)",
|
|
111
110
|
opacity: 0,
|
|
112
111
|
transformOrigin: "bottom center",
|
|
@@ -121,56 +120,56 @@ var D = /*@__PURE__*/ d({
|
|
|
121
120
|
transformOrigin: "bottom center",
|
|
122
121
|
transition: "all .3s cubic-bezier(0.4, 0, 0.2, 1)"
|
|
123
122
|
};
|
|
124
|
-
let t = typeof
|
|
123
|
+
let t = typeof m.size == "string" ? m.size : m.size[0], n = typeof m.size == "string" ? m.size : m.size[1];
|
|
125
124
|
return {
|
|
126
125
|
width: B.value ? `${B.value}px` : e(t),
|
|
127
126
|
height: V.value ? `${V.value}px` : e(n),
|
|
128
127
|
top: `${H.value}px`,
|
|
129
128
|
left: `${U.value}px`,
|
|
130
129
|
maxHeight: W.value ? `${W.value - 40}px` : void 0,
|
|
131
|
-
borderRadius: `${
|
|
130
|
+
borderRadius: `${m.radius}px`
|
|
132
131
|
};
|
|
133
|
-
}),
|
|
134
|
-
|
|
132
|
+
}), Ee = () => {
|
|
133
|
+
m.opened?.();
|
|
134
|
+
}, De = () => {
|
|
135
|
+
F.value = !1, R.value = !1, z.value = !1, h(O), m.closed?.();
|
|
135
136
|
}, Oe = () => {
|
|
136
|
-
|
|
137
|
-
}, ke = () => {
|
|
138
|
-
p.closeOnOverlayClick && J();
|
|
137
|
+
m.closeOnOverlayClick && J();
|
|
139
138
|
}, q = (e) => {
|
|
140
139
|
e ? N.value = !1 : R.value = !1;
|
|
141
|
-
},
|
|
142
|
-
|
|
140
|
+
}, ke = () => {
|
|
141
|
+
m.yes ? (R.value = !0, m.yes(q)) : q(!0);
|
|
143
142
|
}, J = () => {
|
|
144
|
-
N.value = !1,
|
|
145
|
-
},
|
|
146
|
-
e === 0 ?
|
|
147
|
-
},
|
|
143
|
+
N.value = !1, m.cancel?.();
|
|
144
|
+
}, Ae = (e) => {
|
|
145
|
+
e === 0 ? m.btn1?.() : e === 1 ? m.btn2?.() : e === 2 && m.btn3?.();
|
|
146
|
+
}, je = () => {
|
|
148
147
|
N.value = !0;
|
|
149
|
-
},
|
|
148
|
+
}, Me = () => {
|
|
150
149
|
I.value = !I.value;
|
|
151
150
|
}, Y = (e) => {
|
|
152
|
-
e.key === "Escape" &&
|
|
151
|
+
e.key === "Escape" && m.closeOnEsc && P.value && (m.zIndex ?? k.value) >= k.value && J();
|
|
153
152
|
}, X = async () => {
|
|
154
|
-
if (await
|
|
153
|
+
if (await h(), !A.value || z.value) return;
|
|
155
154
|
let e = A.value;
|
|
156
155
|
H.value = Math.max(0, (W.value - e.offsetHeight) / 2), U.value = Math.max(0, (G.value - e.offsetWidth) / 2);
|
|
157
|
-
},
|
|
158
|
-
|
|
156
|
+
}, Ne = () => {
|
|
157
|
+
m.click?.();
|
|
159
158
|
};
|
|
160
|
-
|
|
159
|
+
_e(N, async (e) => {
|
|
161
160
|
if (e) {
|
|
162
|
-
if (
|
|
161
|
+
if (m.hiddenBodyScrollbar && D(), F.value = !0, await h(), !N.value) return;
|
|
163
162
|
P.value = !0, X();
|
|
164
163
|
} else P.value = !1;
|
|
165
|
-
}, { immediate: !0 }),
|
|
164
|
+
}, { immediate: !0 }), ve((e) => {
|
|
166
165
|
P.value && (document.addEventListener("keydown", Y), e(() => document.removeEventListener("keydown", Y)));
|
|
167
166
|
});
|
|
168
|
-
let Z =
|
|
167
|
+
let Z = g(!1), Q = g({
|
|
169
168
|
top: 0,
|
|
170
169
|
left: 0,
|
|
171
170
|
width: 0,
|
|
172
171
|
height: 0
|
|
173
|
-
}),
|
|
172
|
+
}), Pe = () => {
|
|
174
173
|
if (!A.value) return;
|
|
175
174
|
let e = A.value.getBoundingClientRect();
|
|
176
175
|
Q.value = {
|
|
@@ -179,26 +178,26 @@ var D = /*@__PURE__*/ d({
|
|
|
179
178
|
width: e.width,
|
|
180
179
|
height: e.height
|
|
181
180
|
}, L.value = !0, Z.value = !0;
|
|
182
|
-
},
|
|
183
|
-
if (!
|
|
181
|
+
}, Fe = () => {
|
|
182
|
+
if (!m.minAnimate) {
|
|
184
183
|
L.value = !1, Z.value = !1;
|
|
185
184
|
return;
|
|
186
185
|
}
|
|
187
186
|
H.value = Q.value.top, U.value = Q.value.left, B.value = 0, V.value = 0, L.value = !1, setTimeout(() => {
|
|
188
187
|
Z.value = !1;
|
|
189
188
|
}, 300);
|
|
190
|
-
}, { minWidth:
|
|
189
|
+
}, { minWidth: Ie, minHeight: Le, maxWidth: Re, maxHeight: ze } = me(m);
|
|
191
190
|
ee(K, () => {
|
|
192
191
|
let e = K.value;
|
|
193
192
|
W.value = e.clientHeight, G.value = e.clientWidth, X();
|
|
194
193
|
}), r({
|
|
195
194
|
target: A,
|
|
196
195
|
container: K,
|
|
197
|
-
enable:
|
|
198
|
-
minWidth:
|
|
199
|
-
minHeight:
|
|
200
|
-
maxWidth:
|
|
201
|
-
maxHeight:
|
|
196
|
+
enable: c(() => m.resizable && !I.value && !L.value),
|
|
197
|
+
minWidth: Ie,
|
|
198
|
+
minHeight: Le,
|
|
199
|
+
maxWidth: Re,
|
|
200
|
+
maxHeight: ze,
|
|
202
201
|
divWidth: B,
|
|
203
202
|
divHeight: V,
|
|
204
203
|
divTop: H,
|
|
@@ -207,101 +206,102 @@ var D = /*@__PURE__*/ d({
|
|
|
207
206
|
container: A,
|
|
208
207
|
target: j,
|
|
209
208
|
parent: K,
|
|
210
|
-
enable:
|
|
209
|
+
enable: c(() => m.draggable && !I.value && !L.value),
|
|
211
210
|
divLeft: U,
|
|
212
211
|
divTop: H,
|
|
213
212
|
hasDragged: z
|
|
214
|
-
}),
|
|
215
|
-
|
|
216
|
-
}),
|
|
217
|
-
handleOpen:
|
|
213
|
+
}), fe(() => {
|
|
214
|
+
m.hiddenBodyScrollbar && O();
|
|
215
|
+
}), p({
|
|
216
|
+
handleOpen: je,
|
|
218
217
|
handleCancel: J,
|
|
219
|
-
handleRestore:
|
|
218
|
+
handleRestore: Fe,
|
|
220
219
|
pageContentRef: M
|
|
221
220
|
});
|
|
222
|
-
let $ =
|
|
223
|
-
return
|
|
224
|
-
to: () =>
|
|
221
|
+
let $ = de();
|
|
222
|
+
return l(ce, {
|
|
223
|
+
to: () => f.to,
|
|
225
224
|
defer: ""
|
|
226
225
|
}, () => {
|
|
227
|
-
let e =
|
|
228
|
-
return
|
|
229
|
-
|
|
230
|
-
}),
|
|
231
|
-
let e =
|
|
232
|
-
return e.$evtclick =
|
|
233
|
-
|
|
226
|
+
let e = Ce(), t = s(e, 1);
|
|
227
|
+
return _(() => {
|
|
228
|
+
v(e, [w(S).e("container")]), b(e, we.value);
|
|
229
|
+
}), y(e, 0, 0), l(w(a), { type: "opacity" }, () => u(() => f.showMask && P.value && !I.value && !L.value, () => {
|
|
230
|
+
let e = E();
|
|
231
|
+
return e.$evtclick = d(Oe), _(() => {
|
|
232
|
+
b(e, f.maskStyle), v(e, [w(S).e("mask")]);
|
|
234
233
|
}), e;
|
|
235
|
-
}, null, 129)),
|
|
236
|
-
|
|
237
|
-
|
|
234
|
+
}, null, 129)), _(() => v(t, [w(S).e("wrapper")])), y(t, null, 0), l(w(a), {
|
|
235
|
+
type: "scale",
|
|
236
|
+
onAfterLeave: () => De,
|
|
237
|
+
onAfterEnter: () => Ee
|
|
238
238
|
}, () => {
|
|
239
|
-
let e =
|
|
240
|
-
return
|
|
241
|
-
let r =
|
|
242
|
-
|
|
239
|
+
let e = Se(), t = s(e), n = s(t);
|
|
240
|
+
return _(() => {
|
|
241
|
+
let r = w(S);
|
|
242
|
+
v(e, [
|
|
243
243
|
r.b(),
|
|
244
244
|
r.is("max", I.value),
|
|
245
245
|
r.is("min", L.value)
|
|
246
|
-
]),
|
|
247
|
-
}),
|
|
248
|
-
let e =
|
|
249
|
-
return
|
|
250
|
-
}),
|
|
251
|
-
let e =
|
|
252
|
-
return
|
|
246
|
+
]), b(e, Te.value), v(t, [r.e("header")]), v(n, [r.e("title")]);
|
|
247
|
+
}), y(n, null, 0), ue("header", null, () => {
|
|
248
|
+
let e = ye();
|
|
249
|
+
return _(() => x(e, C(f.title))), e;
|
|
250
|
+
}), y(t, null, 1), u(() => f.maxmin || f.closable, () => {
|
|
251
|
+
let e = E();
|
|
252
|
+
return _(() => v(e, [w(S).e("header-icon")])), y(e, null, 0), u(() => f.maxmin, () => l(w(i), {
|
|
253
253
|
text: "",
|
|
254
254
|
size: "mini",
|
|
255
|
-
onClick: () =>
|
|
256
|
-
}, { icon: () =>
|
|
255
|
+
onClick: () => Pe
|
|
256
|
+
}, { icon: () => l(w(oe)) })), y(e, null, 1), u(() => f.maxmin, () => l(w(i), {
|
|
257
257
|
text: "",
|
|
258
258
|
size: "mini",
|
|
259
|
-
onClick: () =>
|
|
260
|
-
}, { icon: () =>
|
|
259
|
+
onClick: () => Me
|
|
260
|
+
}, { icon: () => u(() => I.value, () => l(w(ie)), () => l(w(ae)), 901) })), y(e, null, 2), u(() => f.closable, () => l(w(i), {
|
|
261
261
|
text: "",
|
|
262
262
|
size: "mini",
|
|
263
263
|
disabled: () => R.value,
|
|
264
264
|
onClick: () => J
|
|
265
|
-
}, { icon: () =>
|
|
266
|
-
}), $(t, j, null, "headerRef"),
|
|
267
|
-
let e =
|
|
268
|
-
return
|
|
269
|
-
let e =
|
|
270
|
-
return $(e, M, null, "pageContentRef"),
|
|
265
|
+
}, { icon: () => l(w(re)) })), e;
|
|
266
|
+
}), $(t, j, null, "headerRef"), y(e, null, 1), u(() => f.type === "page", () => {
|
|
267
|
+
let e = E();
|
|
268
|
+
return _(() => v(e, [w(S).e("body")])), y(e, null, 0), l(w(se), null, () => {
|
|
269
|
+
let e = E();
|
|
270
|
+
return $(e, M, null, "pageContentRef"), _(() => v(e, [w(S).e("content")])), e;
|
|
271
271
|
}), e;
|
|
272
|
-
}, () =>
|
|
273
|
-
let e =
|
|
274
|
-
return
|
|
275
|
-
|
|
272
|
+
}, () => u(() => f.type === "dialog", () => {
|
|
273
|
+
let e = be(), t = he(s(e));
|
|
274
|
+
return _(() => {
|
|
275
|
+
v(e, [w(S).e("body")]), x(t, C(f.content));
|
|
276
276
|
}), e;
|
|
277
|
-
}, () =>
|
|
278
|
-
let e =
|
|
279
|
-
return
|
|
280
|
-
|
|
277
|
+
}, () => u(() => f.type === "iframe", () => {
|
|
278
|
+
let e = xe(), t = s(e);
|
|
279
|
+
return _(() => {
|
|
280
|
+
v(e, [w(S).e("body")]), pe(t, "src", f.content);
|
|
281
281
|
}), e;
|
|
282
|
-
}), 2053), 1797),
|
|
283
|
-
let e =
|
|
284
|
-
return
|
|
285
|
-
label: () =>
|
|
282
|
+
}), 2053), 1797), y(e, null, 2), u(() => f.type === "dialog" || f.btn && f.btn.length > 0, () => {
|
|
283
|
+
let e = E();
|
|
284
|
+
return _(() => v(e, [w(S).e("footer")])), y(e, null, 0), u(() => f.yesBtn, () => l(w(i), {
|
|
285
|
+
label: () => f.yesText,
|
|
286
286
|
loading: () => R.value,
|
|
287
287
|
type: "primary",
|
|
288
288
|
size: "small",
|
|
289
|
-
onClick: () =>
|
|
290
|
-
})),
|
|
291
|
-
label: () =>
|
|
289
|
+
onClick: () => ke
|
|
290
|
+
})), y(e, null, 1), u(() => f.cancelBtn, () => l(w(i), {
|
|
291
|
+
label: () => f.cancelText,
|
|
292
292
|
secondary: "",
|
|
293
293
|
size: "small",
|
|
294
294
|
onClick: () => J
|
|
295
|
-
})),
|
|
296
|
-
let n = () =>
|
|
297
|
-
return
|
|
295
|
+
})), y(e, null, 2), le(() => f.btn, (e, t) => {
|
|
296
|
+
let n = () => Ae(t.value);
|
|
297
|
+
return l(w(i), {
|
|
298
298
|
label: () => e.value,
|
|
299
299
|
size: "small",
|
|
300
300
|
onClick: () => n
|
|
301
301
|
});
|
|
302
302
|
}, (e, t) => t, 2), e;
|
|
303
|
-
}),
|
|
304
|
-
}),
|
|
303
|
+
}), o(e, () => P.value), e.$evtclick = d(Ne), $(e, A, null, "layerRef"), e;
|
|
304
|
+
}), o(e, () => F.value), e;
|
|
305
305
|
}, !0);
|
|
306
306
|
}
|
|
307
307
|
});
|