bp-aicc-editor 1.2.521 → 1.2.523
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/lib/{ScreenPreview-CV95NWOd.js → ScreenPreview-yUHo60be.js} +51 -105
- package/lib/atlas-BMjKIOwk.js +3891 -0
- package/lib/{button-base-DHNVBrQ9.js → button-base-CXl1z-_m.js} +1 -1
- package/lib/{cache-lsjsKZHu.js → cache-DbHSDjJy.js} +1 -1
- package/lib/config-provider-Bui8m4GV.js +62 -0
- package/lib/{container-group-DqAcKEBy.js → container-group-D6Extorz.js} +1 -1
- package/lib/{copy-C5Pi6nJh.js → copy-CsCmPy4J.js} +1 -1
- package/lib/{datav-BER95ty-.js → datav-BTD-HJhV.js} +27 -27
- package/lib/{delete-C2EW4JCs.js → delete-COj0ilHh.js} +1 -1
- package/lib/{divider-BazBGRgV.js → divider-B3K_URZc.js} +1 -1
- package/lib/dropdown-CWvnuJsO.js +105 -0
- package/lib/{edit-B2pfd2q1.js → edit-vdJaEine.js} +1 -1
- package/lib/{el-form-item-BDdxk5F5.js → el-form-item-BbaNohQv.js} +51 -51
- package/lib/{el-link-D2ol9BHQ.js → el-link-Dq721Q7-.js} +12 -12
- package/lib/{el-loading-Cgwgez55.js → el-loading-DOxnN3bm.js} +17 -17
- package/lib/{fullscreen-OChDsSnk.js → fullscreen-DXSogbcG.js} +1 -1
- package/lib/{image-C5ZAY3yt.js → image-Cu7JTK9-.js} +1 -1
- package/lib/{index-Ci8AbyIq.js → index-68soBnbK.js} +8 -8
- package/lib/{index-BatyRVpL.js → index-B-d8WIg1.js} +7 -7
- package/lib/{index-BfIEunKC.js → index-B4zV3cxV.js} +18 -17
- package/lib/{index-CZJriuFt.js → index-B8QqTLfg.js} +4974 -4898
- package/lib/index-BBMItxtW.js +619 -0
- package/lib/{index-CGrR_i0u.js → index-BMm0MRz5.js} +14 -15
- package/lib/index-BMn8EzMD.js +1027 -0
- package/lib/index-BNTW8F-9.js +322 -0
- package/lib/index-BTI518b1.js +69 -0
- package/lib/{index-BWPVi43E.js → index-BZxUAT4z.js} +4 -4
- package/lib/{index-Ck7uFsPE.js → index-BdYTc41r.js} +24 -24
- package/lib/index-BfI55Ioc.js +404 -0
- package/lib/{index-BhP9eBCp.js → index-BmAcetSf.js} +19 -20
- package/lib/index-C35Yp3i8.js +545 -0
- package/lib/{index-B19lEYui.js → index-C6GUNRx9.js} +2 -2
- package/lib/index-CC28_8Jl.js +567 -0
- package/lib/index-CDhmvVt8.js +338 -0
- package/lib/index-CDx0y0fp.js +144 -0
- package/lib/{el-button-DvLKp6Ga.js → index-CJjljoJG.js} +106 -106
- package/lib/index-CNCgXPiO.js +235 -0
- package/lib/{index-CWbZmzNT.js → index-CPa_MnOD.js} +30 -29
- package/lib/index-CW6ljdNf.js +1582 -0
- package/lib/index-C_WopEui.js +513 -0
- package/lib/{index-CX_Ghcb6.js → index-CejowjGd.js} +56 -53
- package/lib/{index-BwCQWH-N.js → index-CfZXOvi-.js} +42 -40
- package/lib/{index-CVsy2qTh.js → index-CgzRTmPh.js} +16 -15
- package/lib/index-CmzuNM9v.js +32 -0
- package/lib/index-CrxcAFt8.js +5343 -0
- package/lib/{index-C7k49L2T.js → index-CuHA7QXu.js} +10 -10
- package/lib/{index-qVyixI57.js → index-CyBGAB7D.js} +21 -20
- package/lib/index-D6J7coU0.js +129 -0
- package/lib/index-DDHxrdAo.js +1773 -0
- package/lib/index-DDL-yqq0.js +1401 -0
- package/lib/{index-BPcvYtHf.js → index-DOxy-bey.js} +6 -6
- package/lib/{index-CVE37oE7.js → index-DOyr0BHr.js} +7 -7
- package/lib/index-DPOanmXI.js +887 -0
- package/lib/{index-3pzVrvby.js → index-DR_husZg.js} +46 -46
- package/lib/{el-tab-pane-DD2eM9rB.js → index-DUzOCQrW.js} +125 -124
- package/lib/{index-CGFEhUh9.js → index-DVYI-g8Q.js} +53 -52
- package/lib/index-DVyjilLy.js +51 -0
- package/lib/{index-CJyYGViv.js → index-DWAJ9GyC.js} +9 -9
- package/lib/index-Dj2qCwPD.js +178 -0
- package/lib/{index-D4X0_jbv.js → index-Dx2Gld1J.js} +32 -32
- package/lib/{index-C2XeCqtq.js → index-E9T-y2Yz.js} +3 -3
- package/lib/{index-Buoc0ISP.js → index-FlmXAW0Z.js} +60 -58
- package/lib/index-NqqOvc6V.js +169 -0
- package/lib/{index-BkdiXCRY.js → index-ObKRNOmJ.js} +6 -7
- package/lib/index-bOWjoplU.js +448 -0
- package/lib/{index-CXQ258ID.js → index-buU8mDzi.js} +15 -16
- package/lib/{index-tbhuYbb0.js → index-mGKAWDJZ.js} +11 -12
- package/lib/index.es.js +4 -4
- package/lib/index.umd.js +46 -40
- package/lib/{layer-setting-panel-VvDSQ-cn.js → layer-setting-panel-BGPj32nP.js} +2 -2
- package/lib/{line-show-Bp4G-LqO.js → line-show-DUn1bu_P.js} +1 -1
- package/lib/{multi-layout-config-drSy7ezf.js → multi-layout-config-BTWxJeuc.js} +7 -8
- package/lib/{multiline-text-D89kYrA2.js → multiline-text-CPJdCWJ7.js} +1 -1
- package/lib/{navigation-YAGxZ0OT.js → navigation-ZLJaBOUj.js} +1 -1
- package/lib/page-config-CHP07Ndf.js +253 -0
- package/lib/{page-tabs-wFeNBY4c.js → page-tabs-CKLhgrip.js} +45 -41
- package/lib/{plus-3mdO6yXY.js → plus-xgpQU22I.js} +1 -1
- package/lib/raf-CJog_tcv.js +6 -0
- package/lib/refs-DZMysoBI.js +8 -0
- package/lib/{requestOld-DRcjsmRQ.js → requestOld-CaGzCXrV.js} +97 -96
- package/lib/{schema-BsnIOGBI.js → schema-BaFWGeFt.js} +1 -1
- package/lib/{schema-_APJMUW3.js → schema-CUR-UK2S.js} +44 -41
- package/lib/{schema-BavJE-SK.js → schema-WUk7XVq7.js} +58 -54
- package/lib/{schema-qKI1F8Bt.js → schema-geZfujv8.js} +1 -1
- package/lib/{schema-BflqDw-a.js → schema-iosjRxCC.js} +1 -1
- package/lib/{schema-Bo30dbBx.js → schema-tuPllxn6.js} +1 -1
- package/lib/scroll-CWfl60Tu.js +58 -0
- package/lib/{setting-panel-BgzN3BUP.js → setting-panel-0qLcwYyT.js} +154 -151
- package/lib/{show-C4AeWlKj.js → show-BCwE3hGY.js} +1 -1
- package/lib/{stepper-D5EFeJWG.js → stepper-Bud1Jppr.js} +1 -1
- package/lib/strings-BvUQWzDM.js +6 -0
- package/lib/style.css +1 -1
- package/lib/{switch-B0dR4LM_.js → switch-VlaUmSpJ.js} +1 -1
- package/lib/{unlock-Cq9PLhBA.js → unlock-B2FVPQlm.js} +1 -1
- package/lib/{use-env-url-BM9dgwx_.js → use-env-url-D1p8ib2L.js} +1 -1
- package/lib/use-global-config-D_yoqf3Q.js +90 -0
- package/lib/validator-BOXH2OMA.js +5 -0
- package/lib/{vnode-B_Dj8zxu.js → vnode-Bxs1g06p.js} +1 -1
- package/package.json +1 -1
- package/lib/atlas-DsmLq2V0.js +0 -38
- package/lib/el-overlay-BK0_UIU6.js +0 -704
- package/lib/index-B1yAU2Cb.js +0 -390
- package/lib/index-BCFXuK7k.js +0 -68
- package/lib/index-BD4Jwo8Z.js +0 -449
- package/lib/index-BMWqf88L.js +0 -356
- package/lib/index-Belsn8kt.js +0 -107
- package/lib/index-CIADz1i0.js +0 -8494
- package/lib/index-DKTrbqcA.js +0 -56
- package/lib/index-Ge_d2xqD.js +0 -127
- package/lib/page-config-Cmsi8Vpr.js +0 -582
- package/lib/strings-_mHAdgA4.js +0 -6
- package/lib/use-global-config-CflpFoxU.js +0 -115
|
@@ -0,0 +1,448 @@
|
|
|
1
|
+
import { defineComponent as K, computed as d, createElementBlock as x, openBlock as f, normalizeClass as g, unref as i, renderSlot as A, createVNode as z, Transition as Q, withCtx as k, withDirectives as Y, createElementVNode as D, normalizeStyle as X, createTextVNode as he, toDisplayString as ee, vShow as te, shallowReactive as se, ref as N, onMounted as Ce, watch as Te, createBlock as C, createCommentVNode as B, resolveDynamicComponent as Ee, Fragment as Se, withModifiers as we, nextTick as Me, isVNode as ne, render as G } from "vue";
|
|
2
|
+
import { e as oe, f as $, g as ae, h as Ne, i as T, v as W, w as Be, m as ke, Q as le, Y as $e, bK as q, B as Ie, b6 as Le, E as J, bL as Oe, bJ as Pe, M as xe, N as Ae, V as H, az as F, ak as P, bi as De, T as Fe, a5 as re, bM as ze } from "./index-B8QqTLfg.js";
|
|
3
|
+
import { u as He } from "./use-global-config-D_yoqf3Q.js";
|
|
4
|
+
import { m as p } from "./config-provider-Bui8m4GV.js";
|
|
5
|
+
const Ve = oe({
|
|
6
|
+
value: {
|
|
7
|
+
type: [String, Number],
|
|
8
|
+
default: ""
|
|
9
|
+
},
|
|
10
|
+
max: {
|
|
11
|
+
type: Number,
|
|
12
|
+
default: 99
|
|
13
|
+
},
|
|
14
|
+
isDot: Boolean,
|
|
15
|
+
hidden: Boolean,
|
|
16
|
+
type: {
|
|
17
|
+
type: String,
|
|
18
|
+
values: ["primary", "success", "warning", "info", "danger"],
|
|
19
|
+
default: "danger"
|
|
20
|
+
},
|
|
21
|
+
showZero: {
|
|
22
|
+
type: Boolean,
|
|
23
|
+
default: !0
|
|
24
|
+
},
|
|
25
|
+
color: String,
|
|
26
|
+
badgeStyle: {
|
|
27
|
+
type: $([String, Object, Array])
|
|
28
|
+
},
|
|
29
|
+
offset: {
|
|
30
|
+
type: $(Array),
|
|
31
|
+
default: [0, 0]
|
|
32
|
+
},
|
|
33
|
+
badgeClass: {
|
|
34
|
+
type: String
|
|
35
|
+
}
|
|
36
|
+
}), Re = K({
|
|
37
|
+
name: "ElBadge",
|
|
38
|
+
__name: "badge",
|
|
39
|
+
props: Ve,
|
|
40
|
+
setup(t, { expose: a }) {
|
|
41
|
+
const e = t, n = Ne("badge"), s = d(() => e.isDot ? "" : T(e.value) && T(e.max) ? e.max < e.value ? `${e.max}+` : `${e.value}` : `${e.value}`), u = d(() => {
|
|
42
|
+
var o;
|
|
43
|
+
return [
|
|
44
|
+
{
|
|
45
|
+
backgroundColor: e.color,
|
|
46
|
+
marginRight: W(-e.offset[0]),
|
|
47
|
+
marginTop: W(e.offset[1])
|
|
48
|
+
},
|
|
49
|
+
(o = e.badgeStyle) != null ? o : {}
|
|
50
|
+
];
|
|
51
|
+
});
|
|
52
|
+
return a({
|
|
53
|
+
content: s
|
|
54
|
+
}), (o, l) => (f(), x(
|
|
55
|
+
"div",
|
|
56
|
+
{
|
|
57
|
+
class: g(i(n).b())
|
|
58
|
+
},
|
|
59
|
+
[
|
|
60
|
+
A(o.$slots, "default"),
|
|
61
|
+
z(Q, {
|
|
62
|
+
name: `${i(n).namespace.value}-zoom-in-center`,
|
|
63
|
+
persisted: ""
|
|
64
|
+
}, {
|
|
65
|
+
default: k(() => [
|
|
66
|
+
Y(D(
|
|
67
|
+
"sup",
|
|
68
|
+
{
|
|
69
|
+
class: g([
|
|
70
|
+
i(n).e("content"),
|
|
71
|
+
i(n).em("content", o.type),
|
|
72
|
+
i(n).is("fixed", !!o.$slots.default),
|
|
73
|
+
i(n).is("dot", o.isDot),
|
|
74
|
+
i(n).is("hide-zero", !o.showZero && o.value === 0),
|
|
75
|
+
o.badgeClass
|
|
76
|
+
]),
|
|
77
|
+
style: X(u.value)
|
|
78
|
+
},
|
|
79
|
+
[
|
|
80
|
+
A(o.$slots, "content", { value: s.value }, () => [
|
|
81
|
+
he(
|
|
82
|
+
ee(s.value),
|
|
83
|
+
1
|
|
84
|
+
)
|
|
85
|
+
])
|
|
86
|
+
],
|
|
87
|
+
6
|
|
88
|
+
), [
|
|
89
|
+
[te, !o.hidden && (s.value || o.isDot || o.$slots.content)]
|
|
90
|
+
])
|
|
91
|
+
]),
|
|
92
|
+
_: 3
|
|
93
|
+
}, 8, ["name"])
|
|
94
|
+
],
|
|
95
|
+
2
|
|
96
|
+
));
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
var Ue = /* @__PURE__ */ ae(Re, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/badge/src/badge.vue"]]);
|
|
100
|
+
const _e = Be(Ue), ie = [
|
|
101
|
+
"primary",
|
|
102
|
+
"success",
|
|
103
|
+
"info",
|
|
104
|
+
"warning",
|
|
105
|
+
"error"
|
|
106
|
+
], ue = [
|
|
107
|
+
"top",
|
|
108
|
+
"top-left",
|
|
109
|
+
"top-right",
|
|
110
|
+
"bottom",
|
|
111
|
+
"bottom-left",
|
|
112
|
+
"bottom-right"
|
|
113
|
+
], y = "top", c = ke({
|
|
114
|
+
customClass: "",
|
|
115
|
+
dangerouslyUseHTMLString: !1,
|
|
116
|
+
duration: 3e3,
|
|
117
|
+
icon: void 0,
|
|
118
|
+
id: "",
|
|
119
|
+
message: "",
|
|
120
|
+
onClose: void 0,
|
|
121
|
+
showClose: !1,
|
|
122
|
+
type: "info",
|
|
123
|
+
plain: !1,
|
|
124
|
+
offset: 16,
|
|
125
|
+
placement: void 0,
|
|
126
|
+
zIndex: 0,
|
|
127
|
+
grouping: !1,
|
|
128
|
+
repeatNum: 1,
|
|
129
|
+
appendTo: le ? document.body : void 0
|
|
130
|
+
}), Ze = oe({
|
|
131
|
+
customClass: {
|
|
132
|
+
type: String,
|
|
133
|
+
default: c.customClass
|
|
134
|
+
},
|
|
135
|
+
dangerouslyUseHTMLString: {
|
|
136
|
+
type: Boolean,
|
|
137
|
+
default: c.dangerouslyUseHTMLString
|
|
138
|
+
},
|
|
139
|
+
duration: {
|
|
140
|
+
type: Number,
|
|
141
|
+
default: c.duration
|
|
142
|
+
},
|
|
143
|
+
icon: {
|
|
144
|
+
type: $e,
|
|
145
|
+
default: c.icon
|
|
146
|
+
},
|
|
147
|
+
id: {
|
|
148
|
+
type: String,
|
|
149
|
+
default: c.id
|
|
150
|
+
},
|
|
151
|
+
message: {
|
|
152
|
+
type: $([
|
|
153
|
+
String,
|
|
154
|
+
Object,
|
|
155
|
+
Function
|
|
156
|
+
]),
|
|
157
|
+
default: c.message
|
|
158
|
+
},
|
|
159
|
+
onClose: {
|
|
160
|
+
type: $(Function),
|
|
161
|
+
default: c.onClose
|
|
162
|
+
},
|
|
163
|
+
showClose: {
|
|
164
|
+
type: Boolean,
|
|
165
|
+
default: c.showClose
|
|
166
|
+
},
|
|
167
|
+
type: {
|
|
168
|
+
type: String,
|
|
169
|
+
values: ie,
|
|
170
|
+
default: c.type
|
|
171
|
+
},
|
|
172
|
+
plain: {
|
|
173
|
+
type: Boolean,
|
|
174
|
+
default: c.plain
|
|
175
|
+
},
|
|
176
|
+
offset: {
|
|
177
|
+
type: Number,
|
|
178
|
+
default: c.offset
|
|
179
|
+
},
|
|
180
|
+
placement: {
|
|
181
|
+
type: String,
|
|
182
|
+
values: ue,
|
|
183
|
+
default: c.placement
|
|
184
|
+
},
|
|
185
|
+
zIndex: {
|
|
186
|
+
type: Number,
|
|
187
|
+
default: c.zIndex
|
|
188
|
+
},
|
|
189
|
+
grouping: {
|
|
190
|
+
type: Boolean,
|
|
191
|
+
default: c.grouping
|
|
192
|
+
},
|
|
193
|
+
repeatNum: {
|
|
194
|
+
type: Number,
|
|
195
|
+
default: c.repeatNum
|
|
196
|
+
}
|
|
197
|
+
}), je = {
|
|
198
|
+
destroy: () => !0
|
|
199
|
+
}, m = se(
|
|
200
|
+
{}
|
|
201
|
+
), Ge = (t) => (m[t] || (m[t] = se([])), m[t]), We = (t, a) => {
|
|
202
|
+
const e = m[a] || [], n = e.findIndex((o) => o.id === t), s = e[n];
|
|
203
|
+
let u;
|
|
204
|
+
return n > 0 && (u = e[n - 1]), { current: s, prev: u };
|
|
205
|
+
}, qe = (t, a) => {
|
|
206
|
+
const { prev: e } = We(t, a);
|
|
207
|
+
return e ? e.vm.exposed.bottom.value : 0;
|
|
208
|
+
}, Je = (t, a, e) => (m[e] || []).findIndex((u) => u.id === t) > 0 ? 16 : a, Ke = ["id"], Qe = ["innerHTML"], Ye = K({
|
|
209
|
+
name: "ElMessage",
|
|
210
|
+
__name: "message",
|
|
211
|
+
props: Ze,
|
|
212
|
+
emits: je,
|
|
213
|
+
setup(t, { expose: a, emit: e }) {
|
|
214
|
+
const { Close: n } = Oe, s = t, u = e, o = N(!1), { ns: l, zIndex: E } = He("message"), { currentZIndex: V, nextZIndex: S } = E, I = N(), w = N(!1), R = N(0);
|
|
215
|
+
let L;
|
|
216
|
+
const pe = d(
|
|
217
|
+
() => s.type ? s.type === "error" ? "danger" : s.type : "info"
|
|
218
|
+
), de = d(() => {
|
|
219
|
+
const r = s.type;
|
|
220
|
+
return { [l.bm("icon", r)]: r && q[r] };
|
|
221
|
+
}), U = d(
|
|
222
|
+
() => s.icon || q[s.type] || ""
|
|
223
|
+
), b = d(() => s.placement || y), me = d(() => qe(s.id, b.value)), _ = d(() => Je(s.id, s.offset, b.value) + me.value), fe = d(() => R.value + _.value), ge = d(() => b.value.includes("left") ? l.is("left") : b.value.includes("right") ? l.is("right") : l.is("center")), Z = d(
|
|
224
|
+
() => b.value.startsWith("top") ? "top" : "bottom"
|
|
225
|
+
), ve = d(() => ({
|
|
226
|
+
[Z.value]: `${_.value}px`,
|
|
227
|
+
zIndex: V.value
|
|
228
|
+
}));
|
|
229
|
+
function O() {
|
|
230
|
+
s.duration !== 0 && ({ stop: L } = Pe(() => {
|
|
231
|
+
M();
|
|
232
|
+
}, s.duration));
|
|
233
|
+
}
|
|
234
|
+
function j() {
|
|
235
|
+
L?.();
|
|
236
|
+
}
|
|
237
|
+
function M() {
|
|
238
|
+
w.value = !1, Me(() => {
|
|
239
|
+
var r;
|
|
240
|
+
o.value || ((r = s.onClose) == null || r.call(s), u("destroy"));
|
|
241
|
+
});
|
|
242
|
+
}
|
|
243
|
+
function ye(r) {
|
|
244
|
+
xe(r) === Ae.esc && M();
|
|
245
|
+
}
|
|
246
|
+
return Ce(() => {
|
|
247
|
+
O(), S(), w.value = !0;
|
|
248
|
+
}), Te(
|
|
249
|
+
() => s.repeatNum,
|
|
250
|
+
() => {
|
|
251
|
+
j(), O();
|
|
252
|
+
}
|
|
253
|
+
), Ie(document, "keydown", ye), Le(I, () => {
|
|
254
|
+
R.value = I.value.getBoundingClientRect().height;
|
|
255
|
+
}), a({
|
|
256
|
+
visible: w,
|
|
257
|
+
bottom: fe,
|
|
258
|
+
close: M
|
|
259
|
+
}), (r, h) => (f(), C(Q, {
|
|
260
|
+
name: i(l).b("fade"),
|
|
261
|
+
onBeforeEnter: h[0] || (h[0] = (be) => o.value = !0),
|
|
262
|
+
onBeforeLeave: r.onClose,
|
|
263
|
+
onAfterLeave: h[1] || (h[1] = (be) => r.$emit("destroy")),
|
|
264
|
+
persisted: ""
|
|
265
|
+
}, {
|
|
266
|
+
default: k(() => [
|
|
267
|
+
Y(D("div", {
|
|
268
|
+
id: r.id,
|
|
269
|
+
ref_key: "messageRef",
|
|
270
|
+
ref: I,
|
|
271
|
+
class: g([
|
|
272
|
+
i(l).b(),
|
|
273
|
+
{ [i(l).m(r.type)]: r.type },
|
|
274
|
+
i(l).is("closable", r.showClose),
|
|
275
|
+
i(l).is("plain", r.plain),
|
|
276
|
+
i(l).is("bottom", Z.value === "bottom"),
|
|
277
|
+
ge.value,
|
|
278
|
+
r.customClass
|
|
279
|
+
]),
|
|
280
|
+
style: X(ve.value),
|
|
281
|
+
role: "alert",
|
|
282
|
+
onMouseenter: j,
|
|
283
|
+
onMouseleave: O
|
|
284
|
+
}, [
|
|
285
|
+
r.repeatNum > 1 ? (f(), C(i(_e), {
|
|
286
|
+
key: 0,
|
|
287
|
+
value: r.repeatNum,
|
|
288
|
+
type: pe.value,
|
|
289
|
+
class: g(i(l).e("badge"))
|
|
290
|
+
}, null, 8, ["value", "type", "class"])) : B("v-if", !0),
|
|
291
|
+
U.value ? (f(), C(i(J), {
|
|
292
|
+
key: 1,
|
|
293
|
+
class: g([i(l).e("icon"), de.value])
|
|
294
|
+
}, {
|
|
295
|
+
default: k(() => [
|
|
296
|
+
(f(), C(Ee(U.value)))
|
|
297
|
+
]),
|
|
298
|
+
_: 1
|
|
299
|
+
}, 8, ["class"])) : B("v-if", !0),
|
|
300
|
+
A(r.$slots, "default", {}, () => [
|
|
301
|
+
r.dangerouslyUseHTMLString ? (f(), x(
|
|
302
|
+
Se,
|
|
303
|
+
{ key: 1 },
|
|
304
|
+
[
|
|
305
|
+
B(" Caution here, message could've been compromised, never use user's input as message "),
|
|
306
|
+
D("p", {
|
|
307
|
+
class: g(i(l).e("content")),
|
|
308
|
+
innerHTML: r.message
|
|
309
|
+
}, null, 10, Qe)
|
|
310
|
+
],
|
|
311
|
+
2112
|
|
312
|
+
)) : (f(), x(
|
|
313
|
+
"p",
|
|
314
|
+
{
|
|
315
|
+
key: 0,
|
|
316
|
+
class: g(i(l).e("content"))
|
|
317
|
+
},
|
|
318
|
+
ee(r.message),
|
|
319
|
+
3
|
|
320
|
+
))
|
|
321
|
+
]),
|
|
322
|
+
r.showClose ? (f(), C(i(J), {
|
|
323
|
+
key: 2,
|
|
324
|
+
class: g(i(l).e("closeBtn")),
|
|
325
|
+
onClick: we(M, ["stop"])
|
|
326
|
+
}, {
|
|
327
|
+
default: k(() => [
|
|
328
|
+
z(i(n))
|
|
329
|
+
]),
|
|
330
|
+
_: 1
|
|
331
|
+
}, 8, ["class"])) : B("v-if", !0)
|
|
332
|
+
], 46, Ke), [
|
|
333
|
+
[te, w.value]
|
|
334
|
+
])
|
|
335
|
+
]),
|
|
336
|
+
_: 3
|
|
337
|
+
}, 8, ["name", "onBeforeLeave"]));
|
|
338
|
+
}
|
|
339
|
+
});
|
|
340
|
+
var Xe = /* @__PURE__ */ ae(Ye, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/message/src/message.vue"]]);
|
|
341
|
+
let et = 1;
|
|
342
|
+
const tt = (t) => {
|
|
343
|
+
if (!t.appendTo)
|
|
344
|
+
t.appendTo = document.body;
|
|
345
|
+
else if (H(t.appendTo)) {
|
|
346
|
+
let e = document.querySelector(t.appendTo);
|
|
347
|
+
Fe(e) || (re(
|
|
348
|
+
"ElMessage",
|
|
349
|
+
"the appendTo option is not an HTMLElement. Falling back to document.body."
|
|
350
|
+
), e = document.body), t.appendTo = e;
|
|
351
|
+
}
|
|
352
|
+
}, st = (t) => {
|
|
353
|
+
!t.placement && H(p.placement) && p.placement && (t.placement = p.placement), t.placement || (t.placement = y), ue.includes(t.placement) || (re(
|
|
354
|
+
"ElMessage",
|
|
355
|
+
`Invalid placement: ${t.placement}. Falling back to '${y}'.`
|
|
356
|
+
), t.placement = y);
|
|
357
|
+
}, ce = (t) => {
|
|
358
|
+
const a = !t || H(t) || ne(t) || F(t) ? { message: t } : t, e = {
|
|
359
|
+
...c,
|
|
360
|
+
...a
|
|
361
|
+
};
|
|
362
|
+
return tt(e), st(e), P(p.grouping) && !e.grouping && (e.grouping = p.grouping), T(p.duration) && e.duration === 3e3 && (e.duration = p.duration), T(p.offset) && e.offset === 16 && (e.offset = p.offset), P(p.showClose) && !e.showClose && (e.showClose = p.showClose), P(p.plain) && !e.plain && (e.plain = p.plain), e;
|
|
363
|
+
}, nt = (t) => {
|
|
364
|
+
const a = t.props.placement || y, e = m[a], n = e.indexOf(t);
|
|
365
|
+
if (n === -1)
|
|
366
|
+
return;
|
|
367
|
+
e.splice(n, 1);
|
|
368
|
+
const { handler: s } = t;
|
|
369
|
+
s.close();
|
|
370
|
+
}, ot = ({ appendTo: t, ...a }, e) => {
|
|
371
|
+
const n = `message_${et++}`, s = a.onClose, u = document.createElement("div"), o = {
|
|
372
|
+
...a,
|
|
373
|
+
id: n,
|
|
374
|
+
onClose: () => {
|
|
375
|
+
s?.(), nt(S);
|
|
376
|
+
},
|
|
377
|
+
onDestroy: () => {
|
|
378
|
+
G(null, u);
|
|
379
|
+
}
|
|
380
|
+
}, l = z(
|
|
381
|
+
Xe,
|
|
382
|
+
o,
|
|
383
|
+
F(o.message) || ne(o.message) ? {
|
|
384
|
+
default: F(o.message) ? o.message : () => o.message
|
|
385
|
+
} : null
|
|
386
|
+
);
|
|
387
|
+
l.appContext = e || v._context, G(l, u), t.appendChild(u.firstElementChild);
|
|
388
|
+
const E = l.component, S = {
|
|
389
|
+
id: n,
|
|
390
|
+
vnode: l,
|
|
391
|
+
vm: E,
|
|
392
|
+
handler: {
|
|
393
|
+
close: () => {
|
|
394
|
+
E.exposed.close();
|
|
395
|
+
}
|
|
396
|
+
},
|
|
397
|
+
props: l.component.props
|
|
398
|
+
};
|
|
399
|
+
return S;
|
|
400
|
+
}, v = (t = {}, a) => {
|
|
401
|
+
if (!le)
|
|
402
|
+
return { close: () => {
|
|
403
|
+
} };
|
|
404
|
+
const e = ce(t), n = Ge(
|
|
405
|
+
e.placement || y
|
|
406
|
+
);
|
|
407
|
+
if (e.grouping && n.length) {
|
|
408
|
+
const u = n.find(
|
|
409
|
+
({ vnode: o }) => {
|
|
410
|
+
var l;
|
|
411
|
+
return ((l = o.props) == null ? void 0 : l.message) === e.message;
|
|
412
|
+
}
|
|
413
|
+
);
|
|
414
|
+
if (u)
|
|
415
|
+
return u.props.repeatNum += 1, u.props.type = e.type, u.handler;
|
|
416
|
+
}
|
|
417
|
+
if (T(p.max) && n.length >= p.max)
|
|
418
|
+
return { close: () => {
|
|
419
|
+
} };
|
|
420
|
+
const s = ot(e, a);
|
|
421
|
+
return n.push(s), s.handler;
|
|
422
|
+
};
|
|
423
|
+
ie.forEach((t) => {
|
|
424
|
+
v[t] = (a = {}, e) => {
|
|
425
|
+
const n = ce(a);
|
|
426
|
+
return v({ ...n, type: t }, e);
|
|
427
|
+
};
|
|
428
|
+
});
|
|
429
|
+
function at(t) {
|
|
430
|
+
for (const a in m)
|
|
431
|
+
if (De(m, a)) {
|
|
432
|
+
const e = [...m[a]];
|
|
433
|
+
for (const n of e)
|
|
434
|
+
(!t || t === n.props.type) && n.handler.close();
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
function lt(t) {
|
|
438
|
+
if (!m[t])
|
|
439
|
+
return;
|
|
440
|
+
[...m[t]].forEach((e) => e.handler.close());
|
|
441
|
+
}
|
|
442
|
+
v.closeAll = at;
|
|
443
|
+
v.closeAllByPlacement = lt;
|
|
444
|
+
v._context = null;
|
|
445
|
+
const pt = ze(v, "$message");
|
|
446
|
+
export {
|
|
447
|
+
pt as E
|
|
448
|
+
};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { defineComponent as s, createElementBlock as
|
|
2
|
-
import {
|
|
3
|
-
import { U as a } from "./index-CZJriuFt.js";
|
|
1
|
+
import { defineComponent as s, createElementBlock as t, openBlock as a, normalizeClass as d, createVNode as c, createCommentVNode as m, unref as p, mergeProps as f, toDisplayString as g } from "vue";
|
|
2
|
+
import { U as i, d as h } from "./index-B8QqTLfg.js";
|
|
4
3
|
const y = {
|
|
5
4
|
key: 0,
|
|
6
5
|
class: "g-input__caption"
|
|
7
|
-
},
|
|
6
|
+
}, v = /* @__PURE__ */ s({
|
|
8
7
|
__name: "index",
|
|
9
8
|
props: {
|
|
10
9
|
modelValue: {
|
|
@@ -28,16 +27,16 @@ const y = {
|
|
|
28
27
|
default: "请输入"
|
|
29
28
|
}
|
|
30
29
|
},
|
|
31
|
-
emits: [
|
|
30
|
+
emits: [i, "blur"],
|
|
32
31
|
setup(e, { emit: o }) {
|
|
33
|
-
const
|
|
34
|
-
function r(l) {
|
|
35
|
-
t(a, l);
|
|
36
|
-
}
|
|
32
|
+
const n = o;
|
|
37
33
|
function u(l) {
|
|
38
|
-
|
|
34
|
+
n(i, l);
|
|
35
|
+
}
|
|
36
|
+
function r(l) {
|
|
37
|
+
n("blur", l);
|
|
39
38
|
}
|
|
40
|
-
return (l, E) => (
|
|
39
|
+
return (l, E) => (a(), t("div", {
|
|
41
40
|
class: d(["datav-gui g-input", [
|
|
42
41
|
{
|
|
43
42
|
"--inline": !!e.inline,
|
|
@@ -46,17 +45,17 @@ const y = {
|
|
|
46
45
|
]]),
|
|
47
46
|
style: { "pointer-events": "auto" }
|
|
48
47
|
}, [
|
|
49
|
-
|
|
48
|
+
c(p(h), f(l.$attrs, {
|
|
50
49
|
"model-value": e.modelValue,
|
|
51
50
|
size: e.size,
|
|
52
51
|
placeholder: e.placeholder,
|
|
53
|
-
onInput:
|
|
54
|
-
onBlur:
|
|
52
|
+
onInput: u,
|
|
53
|
+
onBlur: r
|
|
55
54
|
}), null, 16, ["model-value", "size", "placeholder"]),
|
|
56
|
-
e.label ? (
|
|
55
|
+
e.label ? (a(), t("span", y, g(e.label), 1)) : m("", !0)
|
|
57
56
|
], 2));
|
|
58
57
|
}
|
|
59
58
|
});
|
|
60
59
|
export {
|
|
61
|
-
|
|
60
|
+
v as default
|
|
62
61
|
};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { defineComponent as r, createElementBlock as
|
|
2
|
-
import {
|
|
3
|
-
import { U as s } from "./index-CZJriuFt.js";
|
|
1
|
+
import { defineComponent as r, createElementBlock as a, openBlock as n, normalizeClass as u, createElementVNode as t, createCommentVNode as c, createVNode as f, toDisplayString as i, unref as g } from "vue";
|
|
2
|
+
import { U as s, q as p } from "./index-B8QqTLfg.js";
|
|
4
3
|
const y = { class: "g-slider-main" }, V = { class: "g-slider-range-wrap" }, b = { class: "g-slider-range-current" }, h = {
|
|
5
4
|
key: 0,
|
|
6
5
|
class: "g-input__caption"
|
|
7
|
-
},
|
|
6
|
+
}, v = /* @__PURE__ */ r({
|
|
8
7
|
__name: "index",
|
|
9
8
|
props: {
|
|
10
9
|
modelValue: {
|
|
@@ -38,12 +37,12 @@ const y = { class: "g-slider-main" }, V = { class: "g-slider-range-wrap" }, b =
|
|
|
38
37
|
disabled: Boolean
|
|
39
38
|
},
|
|
40
39
|
emits: [s],
|
|
41
|
-
setup(e, { emit:
|
|
42
|
-
const
|
|
43
|
-
function
|
|
44
|
-
|
|
40
|
+
setup(e, { emit: d }) {
|
|
41
|
+
const o = d;
|
|
42
|
+
function m(l) {
|
|
43
|
+
o(s, l);
|
|
45
44
|
}
|
|
46
|
-
return (l, x) => (
|
|
45
|
+
return (l, x) => (n(), a("div", {
|
|
47
46
|
class: u(["datav-gui g-slider-range", [
|
|
48
47
|
{
|
|
49
48
|
"--inline --single": !!e.inline
|
|
@@ -61,13 +60,13 @@ const y = { class: "g-slider-main" }, V = { class: "g-slider-range-wrap" }, b =
|
|
|
61
60
|
step: e.step,
|
|
62
61
|
"show-tooltip": !1,
|
|
63
62
|
range: "",
|
|
64
|
-
onInput:
|
|
63
|
+
onInput: m
|
|
65
64
|
}, null, 8, ["model-value", "min", "max", "step"])
|
|
66
65
|
]),
|
|
67
|
-
e.label ? (
|
|
66
|
+
e.label ? (n(), a("span", h, i(e.label), 1)) : c("", !0)
|
|
68
67
|
], 2));
|
|
69
68
|
}
|
|
70
69
|
});
|
|
71
70
|
export {
|
|
72
|
-
|
|
71
|
+
v as default
|
|
73
72
|
};
|
package/lib/index.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c1 as c, c2 as r, c3 as s, c0 as t } from "./index-B8QqTLfg.js";
|
|
2
2
|
export {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
c as ScreenEditor,
|
|
4
|
+
r as ScreenPreview,
|
|
5
|
+
s as default,
|
|
6
6
|
t as install
|
|
7
7
|
};
|