bp-aicc-editor 1.2.521 → 1.2.522
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/{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,404 @@
|
|
|
1
|
+
import { defineComponent as U, inject as le, ref as v, computed as L, onBeforeUnmount as re, toRef as V, createBlock as $, openBlock as x, Transition as ne, unref as N, withCtx as oe, withDirectives as ie, createElementVNode as j, withModifiers as ce, normalizeClass as B, normalizeStyle as I, vShow as ue, createElementBlock as ae, Fragment as ve, createVNode as F, watch as G, nextTick as Q, provide as fe, reactive as me, onActivated as de, onMounted as pe, onUpdated as he, createCommentVNode as be, resolveDynamicComponent as ge, renderSlot as ye } from "vue";
|
|
2
|
+
import { e as X, g as Y, h as se, al as Se, B as K, Q as we, i as P, bq as ze, f as Ee, v as J, b6 as Z, a5 as ee, j as _e, w as ke } from "./index-B8QqTLfg.js";
|
|
3
|
+
const T = 4, He = {
|
|
4
|
+
vertical: {
|
|
5
|
+
offset: "offsetHeight",
|
|
6
|
+
scroll: "scrollTop",
|
|
7
|
+
scrollSize: "scrollHeight",
|
|
8
|
+
size: "height",
|
|
9
|
+
key: "vertical",
|
|
10
|
+
axis: "Y",
|
|
11
|
+
client: "clientY",
|
|
12
|
+
direction: "top"
|
|
13
|
+
},
|
|
14
|
+
horizontal: {
|
|
15
|
+
offset: "offsetWidth",
|
|
16
|
+
scroll: "scrollLeft",
|
|
17
|
+
scrollSize: "scrollWidth",
|
|
18
|
+
size: "width",
|
|
19
|
+
key: "horizontal",
|
|
20
|
+
axis: "X",
|
|
21
|
+
client: "clientX",
|
|
22
|
+
direction: "left"
|
|
23
|
+
}
|
|
24
|
+
}, Te = ({
|
|
25
|
+
move: b,
|
|
26
|
+
size: f,
|
|
27
|
+
bar: s
|
|
28
|
+
}) => ({
|
|
29
|
+
[s.size]: f,
|
|
30
|
+
transform: `translate${s.axis}(${b}%)`
|
|
31
|
+
}), q = Symbol(
|
|
32
|
+
"scrollbarContextKey"
|
|
33
|
+
), Le = X({
|
|
34
|
+
vertical: Boolean,
|
|
35
|
+
size: String,
|
|
36
|
+
move: Number,
|
|
37
|
+
ratio: {
|
|
38
|
+
type: Number,
|
|
39
|
+
required: !0
|
|
40
|
+
},
|
|
41
|
+
always: Boolean
|
|
42
|
+
}), Re = "Thumb", Ce = U({
|
|
43
|
+
__name: "thumb",
|
|
44
|
+
props: Le,
|
|
45
|
+
setup(b) {
|
|
46
|
+
const f = b, s = le(q), a = se("scrollbar");
|
|
47
|
+
s || Se(Re, "can not inject scrollbar context");
|
|
48
|
+
const m = v(), c = v(), S = v({}), g = v(!1);
|
|
49
|
+
let p = !1, i = !1, d = 0, u = 0, o = we ? document.onselectstart : null;
|
|
50
|
+
const t = L(() => He[f.vertical ? "vertical" : "horizontal"]), l = L(
|
|
51
|
+
() => Te({
|
|
52
|
+
size: f.size,
|
|
53
|
+
move: f.move,
|
|
54
|
+
bar: t.value
|
|
55
|
+
})
|
|
56
|
+
), z = L(
|
|
57
|
+
() => m.value[t.value.offset] ** 2 / s.wrapElement[t.value.scrollSize] / f.ratio / c.value[t.value.offset]
|
|
58
|
+
), w = (n) => {
|
|
59
|
+
var h;
|
|
60
|
+
if (n.stopPropagation(), n.ctrlKey || [1, 2].includes(n.button))
|
|
61
|
+
return;
|
|
62
|
+
(h = window.getSelection()) == null || h.removeAllRanges(), H(n);
|
|
63
|
+
const E = n.currentTarget;
|
|
64
|
+
E && (S.value[t.value.axis] = E[t.value.offset] - (n[t.value.client] - E.getBoundingClientRect()[t.value.direction]));
|
|
65
|
+
}, k = (n) => {
|
|
66
|
+
if (!c.value || !m.value || !s.wrapElement)
|
|
67
|
+
return;
|
|
68
|
+
const h = Math.abs(
|
|
69
|
+
n.target.getBoundingClientRect()[t.value.direction] - n[t.value.client]
|
|
70
|
+
), E = c.value[t.value.offset] / 2, y = (h - E) * 100 * z.value / m.value[t.value.offset];
|
|
71
|
+
s.wrapElement[t.value.scroll] = y * s.wrapElement[t.value.scrollSize] / 100;
|
|
72
|
+
}, H = (n) => {
|
|
73
|
+
n.stopImmediatePropagation(), p = !0, d = s.wrapElement.scrollHeight, u = s.wrapElement.scrollWidth, document.addEventListener("mousemove", O), document.addEventListener("mouseup", R), o = document.onselectstart, document.onselectstart = () => !1;
|
|
74
|
+
}, O = (n) => {
|
|
75
|
+
if (!m.value || !c.value || p === !1)
|
|
76
|
+
return;
|
|
77
|
+
const h = S.value[t.value.axis];
|
|
78
|
+
if (!h)
|
|
79
|
+
return;
|
|
80
|
+
const E = (m.value.getBoundingClientRect()[t.value.direction] - n[t.value.client]) * -1, y = c.value[t.value.offset] - h, e = (E - y) * 100 * z.value / m.value[t.value.offset];
|
|
81
|
+
t.value.scroll === "scrollLeft" ? s.wrapElement[t.value.scroll] = e * u / 100 : s.wrapElement[t.value.scroll] = e * d / 100;
|
|
82
|
+
}, R = () => {
|
|
83
|
+
p = !1, S.value[t.value.axis] = 0, document.removeEventListener("mousemove", O), document.removeEventListener("mouseup", R), C(), i && (g.value = !1);
|
|
84
|
+
}, A = () => {
|
|
85
|
+
i = !1, g.value = !!f.size;
|
|
86
|
+
}, M = () => {
|
|
87
|
+
i = !0, g.value = p;
|
|
88
|
+
};
|
|
89
|
+
re(() => {
|
|
90
|
+
C(), document.removeEventListener("mouseup", R);
|
|
91
|
+
});
|
|
92
|
+
const C = () => {
|
|
93
|
+
document.onselectstart !== o && (document.onselectstart = o);
|
|
94
|
+
};
|
|
95
|
+
return K(
|
|
96
|
+
V(s, "scrollbarElement"),
|
|
97
|
+
"mousemove",
|
|
98
|
+
A
|
|
99
|
+
), K(
|
|
100
|
+
V(s, "scrollbarElement"),
|
|
101
|
+
"mouseleave",
|
|
102
|
+
M
|
|
103
|
+
), (n, h) => (x(), $(ne, {
|
|
104
|
+
name: N(a).b("fade"),
|
|
105
|
+
persisted: ""
|
|
106
|
+
}, {
|
|
107
|
+
default: oe(() => [
|
|
108
|
+
ie(j(
|
|
109
|
+
"div",
|
|
110
|
+
{
|
|
111
|
+
ref_key: "instance",
|
|
112
|
+
ref: m,
|
|
113
|
+
class: B([N(a).e("bar"), N(a).is(t.value.key)]),
|
|
114
|
+
onMousedown: k,
|
|
115
|
+
onClick: h[0] || (h[0] = ce(() => {
|
|
116
|
+
}, ["stop"]))
|
|
117
|
+
},
|
|
118
|
+
[
|
|
119
|
+
j(
|
|
120
|
+
"div",
|
|
121
|
+
{
|
|
122
|
+
ref_key: "thumb",
|
|
123
|
+
ref: c,
|
|
124
|
+
class: B(N(a).e("thumb")),
|
|
125
|
+
style: I(l.value),
|
|
126
|
+
onMousedown: w
|
|
127
|
+
},
|
|
128
|
+
null,
|
|
129
|
+
38
|
|
130
|
+
)
|
|
131
|
+
],
|
|
132
|
+
34
|
|
133
|
+
), [
|
|
134
|
+
[ue, n.always || g.value]
|
|
135
|
+
])
|
|
136
|
+
]),
|
|
137
|
+
_: 1
|
|
138
|
+
}, 8, ["name"]));
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
var te = /* @__PURE__ */ Y(Ce, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/thumb.vue"]]);
|
|
142
|
+
const Ne = X({
|
|
143
|
+
always: {
|
|
144
|
+
type: Boolean,
|
|
145
|
+
default: !0
|
|
146
|
+
},
|
|
147
|
+
minSize: {
|
|
148
|
+
type: Number,
|
|
149
|
+
required: !0
|
|
150
|
+
}
|
|
151
|
+
}), Pe = U({
|
|
152
|
+
__name: "bar",
|
|
153
|
+
props: Ne,
|
|
154
|
+
setup(b, { expose: f }) {
|
|
155
|
+
const s = b, a = le(q), m = v(0), c = v(0), S = v(""), g = v(""), p = v(1), i = v(1);
|
|
156
|
+
return f({
|
|
157
|
+
handleScroll: (o) => {
|
|
158
|
+
if (o) {
|
|
159
|
+
const t = o.offsetHeight - T, l = o.offsetWidth - T;
|
|
160
|
+
c.value = o.scrollTop * 100 / t * p.value, m.value = o.scrollLeft * 100 / l * i.value;
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
update: () => {
|
|
164
|
+
const o = a?.wrapElement;
|
|
165
|
+
if (!o)
|
|
166
|
+
return;
|
|
167
|
+
const t = o.offsetHeight - T, l = o.offsetWidth - T, z = t ** 2 / o.scrollHeight, w = l ** 2 / o.scrollWidth, k = Math.max(z, s.minSize), H = Math.max(w, s.minSize);
|
|
168
|
+
p.value = z / (t - z) / (k / (t - k)), i.value = w / (l - w) / (H / (l - H)), g.value = k + T < t ? `${k}px` : "", S.value = H + T < l ? `${H}px` : "";
|
|
169
|
+
}
|
|
170
|
+
}), (o, t) => (x(), ae(
|
|
171
|
+
ve,
|
|
172
|
+
null,
|
|
173
|
+
[
|
|
174
|
+
F(te, {
|
|
175
|
+
move: m.value,
|
|
176
|
+
ratio: i.value,
|
|
177
|
+
size: S.value,
|
|
178
|
+
always: o.always
|
|
179
|
+
}, null, 8, ["move", "ratio", "size", "always"]),
|
|
180
|
+
F(te, {
|
|
181
|
+
move: c.value,
|
|
182
|
+
ratio: p.value,
|
|
183
|
+
size: g.value,
|
|
184
|
+
vertical: "",
|
|
185
|
+
always: o.always
|
|
186
|
+
}, null, 8, ["move", "ratio", "size", "always"])
|
|
187
|
+
],
|
|
188
|
+
64
|
|
189
|
+
));
|
|
190
|
+
}
|
|
191
|
+
});
|
|
192
|
+
var xe = /* @__PURE__ */ Y(Pe, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/bar.vue"]]);
|
|
193
|
+
const Be = X({
|
|
194
|
+
distance: {
|
|
195
|
+
type: Number,
|
|
196
|
+
default: 0
|
|
197
|
+
},
|
|
198
|
+
height: {
|
|
199
|
+
type: [String, Number],
|
|
200
|
+
default: ""
|
|
201
|
+
},
|
|
202
|
+
maxHeight: {
|
|
203
|
+
type: [String, Number],
|
|
204
|
+
default: ""
|
|
205
|
+
},
|
|
206
|
+
native: Boolean,
|
|
207
|
+
wrapStyle: {
|
|
208
|
+
type: Ee([String, Object, Array]),
|
|
209
|
+
default: ""
|
|
210
|
+
},
|
|
211
|
+
wrapClass: {
|
|
212
|
+
type: [String, Array],
|
|
213
|
+
default: ""
|
|
214
|
+
},
|
|
215
|
+
viewClass: {
|
|
216
|
+
type: [String, Array],
|
|
217
|
+
default: ""
|
|
218
|
+
},
|
|
219
|
+
viewStyle: {
|
|
220
|
+
type: [String, Array, Object],
|
|
221
|
+
default: ""
|
|
222
|
+
},
|
|
223
|
+
noresize: Boolean,
|
|
224
|
+
tag: {
|
|
225
|
+
type: String,
|
|
226
|
+
default: "div"
|
|
227
|
+
},
|
|
228
|
+
always: Boolean,
|
|
229
|
+
minSize: {
|
|
230
|
+
type: Number,
|
|
231
|
+
default: 20
|
|
232
|
+
},
|
|
233
|
+
tabindex: {
|
|
234
|
+
type: [String, Number],
|
|
235
|
+
default: void 0
|
|
236
|
+
},
|
|
237
|
+
id: String,
|
|
238
|
+
role: String,
|
|
239
|
+
...ze(["ariaLabel", "ariaOrientation"])
|
|
240
|
+
}), Oe = {
|
|
241
|
+
"end-reached": (b) => ["left", "right", "top", "bottom"].includes(b),
|
|
242
|
+
scroll: ({
|
|
243
|
+
scrollTop: b,
|
|
244
|
+
scrollLeft: f
|
|
245
|
+
}) => [b, f].every(P)
|
|
246
|
+
}, We = ["tabindex"], D = "ElScrollbar", Ae = U({
|
|
247
|
+
name: D,
|
|
248
|
+
__name: "scrollbar",
|
|
249
|
+
props: Be,
|
|
250
|
+
emits: Oe,
|
|
251
|
+
setup(b, { expose: f, emit: s }) {
|
|
252
|
+
const a = b, m = s, c = se("scrollbar");
|
|
253
|
+
let S, g, p, i = 0, d = 0, u = "";
|
|
254
|
+
const o = {
|
|
255
|
+
bottom: !1,
|
|
256
|
+
top: !1,
|
|
257
|
+
right: !1,
|
|
258
|
+
left: !1
|
|
259
|
+
}, t = v(), l = v(), z = v(), w = v(), k = L(() => {
|
|
260
|
+
const e = {}, r = J(a.height), _ = J(a.maxHeight);
|
|
261
|
+
return r && (e.height = r), _ && (e.maxHeight = _), [a.wrapStyle, e];
|
|
262
|
+
}), H = L(() => [
|
|
263
|
+
a.wrapClass,
|
|
264
|
+
c.e("wrap"),
|
|
265
|
+
{ [c.em("wrap", "hidden-default")]: !a.native }
|
|
266
|
+
]), O = L(() => [c.e("view"), a.viewClass]), R = (e) => {
|
|
267
|
+
var r;
|
|
268
|
+
return (r = o[e]) != null ? r : !1;
|
|
269
|
+
}, A = {
|
|
270
|
+
top: "bottom",
|
|
271
|
+
bottom: "top",
|
|
272
|
+
left: "right",
|
|
273
|
+
right: "left"
|
|
274
|
+
}, M = (e) => {
|
|
275
|
+
const r = A[u];
|
|
276
|
+
if (!r)
|
|
277
|
+
return;
|
|
278
|
+
const _ = e[u], W = e[r];
|
|
279
|
+
_ && !o[u] && (o[u] = !0), !W && o[r] && (o[r] = !1);
|
|
280
|
+
}, C = () => {
|
|
281
|
+
var e;
|
|
282
|
+
if (l.value) {
|
|
283
|
+
(e = w.value) == null || e.handleScroll(l.value);
|
|
284
|
+
const r = i, _ = d;
|
|
285
|
+
i = l.value.scrollTop, d = l.value.scrollLeft;
|
|
286
|
+
const W = {
|
|
287
|
+
bottom: i + l.value.clientHeight >= l.value.scrollHeight - a.distance,
|
|
288
|
+
top: i <= a.distance && r !== 0,
|
|
289
|
+
right: d + l.value.clientWidth >= l.value.scrollWidth - a.distance && _ !== d,
|
|
290
|
+
left: d <= a.distance && _ !== 0
|
|
291
|
+
};
|
|
292
|
+
if (m("scroll", {
|
|
293
|
+
scrollTop: i,
|
|
294
|
+
scrollLeft: d
|
|
295
|
+
}), r !== i && (u = i > r ? "bottom" : "top"), _ !== d && (u = d > _ ? "right" : "left"), a.distance > 0) {
|
|
296
|
+
if (R(u))
|
|
297
|
+
return;
|
|
298
|
+
M(W);
|
|
299
|
+
}
|
|
300
|
+
W[u] && m("end-reached", u);
|
|
301
|
+
}
|
|
302
|
+
};
|
|
303
|
+
function n(e, r) {
|
|
304
|
+
_e(e) ? l.value.scrollTo(e) : P(e) && P(r) && l.value.scrollTo(e, r);
|
|
305
|
+
}
|
|
306
|
+
const h = (e) => {
|
|
307
|
+
if (!P(e)) {
|
|
308
|
+
ee(D, "value must be a number");
|
|
309
|
+
return;
|
|
310
|
+
}
|
|
311
|
+
l.value.scrollTop = e;
|
|
312
|
+
}, E = (e) => {
|
|
313
|
+
if (!P(e)) {
|
|
314
|
+
ee(D, "value must be a number");
|
|
315
|
+
return;
|
|
316
|
+
}
|
|
317
|
+
l.value.scrollLeft = e;
|
|
318
|
+
}, y = () => {
|
|
319
|
+
var e;
|
|
320
|
+
(e = w.value) == null || e.update(), o[u] = !1;
|
|
321
|
+
};
|
|
322
|
+
return G(
|
|
323
|
+
() => a.noresize,
|
|
324
|
+
(e) => {
|
|
325
|
+
e ? (S?.(), g?.(), p?.()) : ({ stop: S } = Z(z, y), { stop: g } = Z(l, y), p = K("resize", y));
|
|
326
|
+
},
|
|
327
|
+
{ immediate: !0 }
|
|
328
|
+
), G(
|
|
329
|
+
() => [a.maxHeight, a.height],
|
|
330
|
+
() => {
|
|
331
|
+
a.native || Q(() => {
|
|
332
|
+
var e;
|
|
333
|
+
y(), l.value && ((e = w.value) == null || e.handleScroll(l.value));
|
|
334
|
+
});
|
|
335
|
+
}
|
|
336
|
+
), fe(
|
|
337
|
+
q,
|
|
338
|
+
me({
|
|
339
|
+
scrollbarElement: t,
|
|
340
|
+
wrapElement: l
|
|
341
|
+
})
|
|
342
|
+
), de(() => {
|
|
343
|
+
l.value && (l.value.scrollTop = i, l.value.scrollLeft = d);
|
|
344
|
+
}), pe(() => {
|
|
345
|
+
a.native || Q(() => {
|
|
346
|
+
y();
|
|
347
|
+
});
|
|
348
|
+
}), he(() => y()), f({
|
|
349
|
+
wrapRef: l,
|
|
350
|
+
update: y,
|
|
351
|
+
scrollTo: n,
|
|
352
|
+
setScrollTop: h,
|
|
353
|
+
setScrollLeft: E,
|
|
354
|
+
handleScroll: C
|
|
355
|
+
}), (e, r) => (x(), ae(
|
|
356
|
+
"div",
|
|
357
|
+
{
|
|
358
|
+
ref_key: "scrollbarRef",
|
|
359
|
+
ref: t,
|
|
360
|
+
class: B(N(c).b())
|
|
361
|
+
},
|
|
362
|
+
[
|
|
363
|
+
j("div", {
|
|
364
|
+
ref_key: "wrapRef",
|
|
365
|
+
ref: l,
|
|
366
|
+
class: B(H.value),
|
|
367
|
+
style: I(k.value),
|
|
368
|
+
tabindex: e.tabindex,
|
|
369
|
+
onScroll: C
|
|
370
|
+
}, [
|
|
371
|
+
(x(), $(ge(e.tag), {
|
|
372
|
+
id: e.id,
|
|
373
|
+
ref_key: "resizeRef",
|
|
374
|
+
ref: z,
|
|
375
|
+
class: B(O.value),
|
|
376
|
+
style: I(e.viewStyle),
|
|
377
|
+
role: e.role,
|
|
378
|
+
"aria-label": e.ariaLabel,
|
|
379
|
+
"aria-orientation": e.ariaOrientation
|
|
380
|
+
}, {
|
|
381
|
+
default: oe(() => [
|
|
382
|
+
ye(e.$slots, "default")
|
|
383
|
+
]),
|
|
384
|
+
_: 3
|
|
385
|
+
}, 8, ["id", "class", "style", "role", "aria-label", "aria-orientation"]))
|
|
386
|
+
], 46, We),
|
|
387
|
+
e.native ? be("v-if", !0) : (x(), $(xe, {
|
|
388
|
+
key: 0,
|
|
389
|
+
ref_key: "barRef",
|
|
390
|
+
ref: w,
|
|
391
|
+
always: e.always,
|
|
392
|
+
"min-size": e.minSize
|
|
393
|
+
}, null, 8, ["always", "min-size"]))
|
|
394
|
+
],
|
|
395
|
+
2
|
|
396
|
+
));
|
|
397
|
+
}
|
|
398
|
+
});
|
|
399
|
+
var Me = /* @__PURE__ */ Y(Ae, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/scrollbar.vue"]]);
|
|
400
|
+
const je = ke(Me);
|
|
401
|
+
export {
|
|
402
|
+
je as E,
|
|
403
|
+
Oe as s
|
|
404
|
+
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { createElementBlock as e, openBlock as c, createElementVNode as i, defineComponent as h, resolveComponent as r, createBlock as o, unref as d, withCtx as v } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { I as w } from "./line-show-Bp4G-LqO.js";
|
|
2
|
+
import { _ as s, E as a } from "./index-B8QqTLfg.js";
|
|
3
|
+
import { I as w } from "./line-show-DUn1bu_P.js";
|
|
5
4
|
const m = {}, u = {
|
|
6
5
|
t: "1710317000000",
|
|
7
6
|
class: "icon",
|
|
@@ -24,7 +23,7 @@ function z(t, n) {
|
|
|
24
23
|
}, null, -1)
|
|
25
24
|
])]);
|
|
26
25
|
}
|
|
27
|
-
const
|
|
26
|
+
const _ = /* @__PURE__ */ s(m, [["render", z]]), f = {}, g = {
|
|
28
27
|
t: "1631088842025",
|
|
29
28
|
class: "icon",
|
|
30
29
|
viewBox: "0 0 1024 1024",
|
|
@@ -42,7 +41,7 @@ function p(t, n) {
|
|
|
42
41
|
}, null, -1)
|
|
43
42
|
])]);
|
|
44
43
|
}
|
|
45
|
-
const x = /* @__PURE__ */ s(
|
|
44
|
+
const x = /* @__PURE__ */ s(f, [["render", p]]), M = {}, $ = {
|
|
46
45
|
t: "1631088907443",
|
|
47
46
|
class: "icon",
|
|
48
47
|
viewBox: "0 0 1024 1024",
|
|
@@ -110,7 +109,7 @@ const F = /* @__PURE__ */ s(y, [["render", b]]), D = {}, S = {
|
|
|
110
109
|
width: "64",
|
|
111
110
|
height: "64"
|
|
112
111
|
};
|
|
113
|
-
function
|
|
112
|
+
function E(t, n) {
|
|
114
113
|
return c(), e("svg", S, [...n[0] || (n[0] = [
|
|
115
114
|
i("path", {
|
|
116
115
|
d: "M896 928H128a32 32 0 0 1-32-32V128a32 32 0 0 1 32-32h768a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32z m-736-64h704v-704h-704z",
|
|
@@ -126,7 +125,7 @@ function T(t, n) {
|
|
|
126
125
|
}, null, -1)
|
|
127
126
|
])]);
|
|
128
127
|
}
|
|
129
|
-
const
|
|
128
|
+
const T = /* @__PURE__ */ s(D, [["render", E]]), j = {}, A = {
|
|
130
129
|
t: "1639132134917",
|
|
131
130
|
class: "icon",
|
|
132
131
|
viewBox: "0 0 1024 1024",
|
|
@@ -137,14 +136,14 @@ const j = /* @__PURE__ */ s(D, [["render", T]]), A = {}, E = {
|
|
|
137
136
|
height: "64"
|
|
138
137
|
};
|
|
139
138
|
function N(t, n) {
|
|
140
|
-
return c(), e("svg",
|
|
139
|
+
return c(), e("svg", A, [...n[0] || (n[0] = [
|
|
141
140
|
i("path", {
|
|
142
141
|
d: "M308.224 834.048l166.4-67.584 37.376-14.848 37.376 14.848 166.4 67.584-5.12-184.32-1.024-36.352 23.04-28.672 107.008-133.12L667.648 399.36l-33.28-10.24-19.968-28.672-102.912-148.48-102.912 148.48-19.968 28.672-33.28 10.24L184.32 451.584l107.008 133.12 23.04 28.672-1.024 36.352-5.12 184.32m481.792 104.96l-278.016-112.64-278.016 112.64 8.192-304.128-179.712-223.744 282.624-85.504 166.912-240.64 166.912 240.64 282.624 85.504-179.712 224.256 8.192 303.616z",
|
|
143
142
|
"p-id": "3990"
|
|
144
143
|
}, null, -1)
|
|
145
144
|
])]);
|
|
146
145
|
}
|
|
147
|
-
const G = /* @__PURE__ */ s(
|
|
146
|
+
const G = /* @__PURE__ */ s(j, [["render", N]]), O = {}, P = {
|
|
148
147
|
t: "1640067279284",
|
|
149
148
|
class: "icon",
|
|
150
149
|
viewBox: "0 0 1024 1024",
|
|
@@ -327,7 +326,7 @@ function m3(t, n) {
|
|
|
327
326
|
}, null, -1)
|
|
328
327
|
])]);
|
|
329
328
|
}
|
|
330
|
-
const u3 = /* @__PURE__ */ s(a3, [["render", m3]]), z3 = {},
|
|
329
|
+
const u3 = /* @__PURE__ */ s(a3, [["render", m3]]), z3 = {}, _3 = {
|
|
331
330
|
t: "1710317000003",
|
|
332
331
|
class: "icon",
|
|
333
332
|
viewBox: "0 0 1024 1024",
|
|
@@ -337,8 +336,8 @@ const u3 = /* @__PURE__ */ s(a3, [["render", m3]]), z3 = {}, f3 = {
|
|
|
337
336
|
width: "64",
|
|
338
337
|
height: "64"
|
|
339
338
|
};
|
|
340
|
-
function
|
|
341
|
-
return c(), e("svg",
|
|
339
|
+
function f3(t, n) {
|
|
340
|
+
return c(), e("svg", _3, [...n[0] || (n[0] = [
|
|
342
341
|
i("path", {
|
|
343
342
|
d: "M896 128H128c-35.3 0-64 28.7-64 64v768h896V192c0-35.3-28.7-64-64-64z m-8 704H136V192h752v640z",
|
|
344
343
|
fill: "currentColor"
|
|
@@ -353,7 +352,7 @@ function _3(t, n) {
|
|
|
353
352
|
}, null, -1)
|
|
354
353
|
])]);
|
|
355
354
|
}
|
|
356
|
-
const g3 = /* @__PURE__ */ s(z3, [["render",
|
|
355
|
+
const g3 = /* @__PURE__ */ s(z3, [["render", f3]]), p3 = {}, x3 = {
|
|
357
356
|
t: "1631089004895",
|
|
358
357
|
class: "icon",
|
|
359
358
|
viewBox: "0 0 1061 1024",
|
|
@@ -437,7 +436,7 @@ function D3(t, n) {
|
|
|
437
436
|
}, null, -1)
|
|
438
437
|
])]);
|
|
439
438
|
}
|
|
440
|
-
const S3 = /* @__PURE__ */ s(b3, [["render", D3]]),
|
|
439
|
+
const S3 = /* @__PURE__ */ s(b3, [["render", D3]]), E3 = {}, T3 = {
|
|
441
440
|
t: "1631089270641",
|
|
442
441
|
class: "icon",
|
|
443
442
|
viewBox: "0 0 1024 1024",
|
|
@@ -447,15 +446,15 @@ const S3 = /* @__PURE__ */ s(b3, [["render", D3]]), T3 = {}, j3 = {
|
|
|
447
446
|
width: "64",
|
|
448
447
|
height: "64"
|
|
449
448
|
};
|
|
450
|
-
function
|
|
451
|
-
return c(), e("svg",
|
|
449
|
+
function j3(t, n) {
|
|
450
|
+
return c(), e("svg", T3, [...n[0] || (n[0] = [
|
|
452
451
|
i("path", {
|
|
453
452
|
d: "M66.4 121.2c-1.9 1.7-3 4.2-3 6.8v763.1c0 6.9 5.6 12.5 12.5 12.5h872c6.9 0 12.5-5.6 12.5-12.5V131.4c0-6.9-5.6-12.5-12.5-12.5H72.6c-2.3-0.1-4.5 0.8-6.2 2.3z m326.3 497.5v-158c0-6.9 5.6-12.5 12.5-12.5h206.2c6.9 0 12.5 5.6 12.5 12.5l1 157.1c0 6.9-5.6 12.5-12.5 12.5h-208c-2.9 0-5.6-1-7.7-2.9-2.5-2.1-4-5.3-4-8.7zM624 690v153.1c0 6.9-5.6 12.5-12.5 12.5H404.3c-6.9 0-12.5-5.6-12.5-12.5V692c0-6.9 5.6-12.5 12.5-12.5l208.2-1c3.5 0 6.9 1.6 9 4.4 1.6 2 2.5 4.5 2.5 7.1z m0-458.8v156.5c0 6.9-5.6 12.5-12.5 12.5H405.2c-6.9 0-12.5-5.6-12.5-12.5V233.5c0-6.9 5.6-12.5 12.5-12.5h210.7c8.3 0 8.1 9.3 8.1 10.2z m-285.2-6.1c3.1 2.9 4.9 7 4.9 11.2v150.3c0 6.9-5.6 12.5-12.5 12.5H124.9c-6.9 0-12.5-5.6-12.5-12.5V233.5c0-6.9 5.6-12.5 12.5-12.5h203.3c4 0 7.7 1.4 10.6 4.1zM125 448.2h206.2c6.9 0 12.5 5.6 12.5 12.5v157.1c0 6.9-5.6 12.5-12.5 12.5H124.9c-6.9 0-12.5-5.6-12.5-12.5v-157c0-3.1 1.1-6.1 3.2-8.4 2.4-2.6 5.8-4.2 9.4-4.2z m556.8 0h218c6.9 0 12.5 5.6 12.5 12.5v157.1c0 6.9-5.6 12.5-12.5 12.5H684.6c-6.9 0-12.5-5.6-12.5-12.5V458c0-2.9 1.3-5.7 3.6-7.6 1.7-1.4 3.9-2.2 6.1-2.2z m-4.3-50.8c-2.4-2.1-3.8-6.2-3.8-9.5l0.4-154.4c0-6.9 5.6-12.5 12.5-12.5h213.2c6.9 0 12.5 5.6 12.5 12.5v154.1c0 6.9-5.6 12.5-12.5 12.5H684.9c-2.7 0.1-5.4-0.9-7.4-2.7zM126.6 679.5h204.5c6.9 0 12.5 5.6 12.5 12.5v150.1c0 6.9-5.6 12.5-12.5 12.5H123.9c-6.9 0-12.5-5.6-12.5-12.5V694.7c0-3.9 1.5-7.6 4.1-10.4 2.9-3.1 6.9-4.8 11.1-4.8zM673 840.6V692c0-6.9 5.6-12.5 12.5-12.5h214.2c6.9 0 12.5 5.6 12.5 12.5v151.1c0 6.9-5.6 12.5-12.5 12.5H688c-3.9 0-7.7-1.5-10.5-4.2-2.8-2.8-4.5-6.7-4.5-10.8z",
|
|
454
453
|
"p-id": "6088"
|
|
455
454
|
}, null, -1)
|
|
456
455
|
])]);
|
|
457
456
|
}
|
|
458
|
-
const
|
|
457
|
+
const A3 = /* @__PURE__ */ s(E3, [["render", j3]]), N3 = {}, G3 = {
|
|
459
458
|
t: "1631089085187",
|
|
460
459
|
class: "icon",
|
|
461
460
|
viewBox: "0 0 1216 1024",
|
|
@@ -491,7 +490,7 @@ function J3(t, n) {
|
|
|
491
490
|
}, null, -1)
|
|
492
491
|
])]);
|
|
493
492
|
}
|
|
494
|
-
const K3 = /* @__PURE__ */ s(R3, [["render", J3]]),
|
|
493
|
+
const K3 = /* @__PURE__ */ s(R3, [["render", J3]]), Y3 = /* @__PURE__ */ h({
|
|
495
494
|
__name: "index",
|
|
496
495
|
props: {
|
|
497
496
|
icon: {}
|
|
@@ -501,7 +500,7 @@ const K3 = /* @__PURE__ */ s(R3, [["render", J3]]), Z3 = /* @__PURE__ */ h({
|
|
|
501
500
|
const l = r("IconText");
|
|
502
501
|
return c(), o(d(a), null, {
|
|
503
502
|
default: v(() => [
|
|
504
|
-
t.icon === "v-icon-chart" ? (c(), o(F, { key: 0 })) : t.icon === "v-icon-chart-bar" ? (c(), o(x, { key: 1 })) : t.icon === "v-icon-chart-line" ? (c(), o(V, { key: 2 })) : t.icon === "v-icon-chart-pie" ? (c(), o(C, { key: 3 })) : t.icon === "v-icon-relation" ? (c(), o(k3, { key: 4 })) : t.icon === "v-icon-map" ? (c(), o(i3, { key: 5 })) : t.icon === "v-icon-title" ? (c(), o(P3, { key: 6 })) : t.icon === "v-icon-interact" ? (c(), o(Z, { key: 7 })) : t.icon === "v-icon-material" ? (c(), o(l3, { key: 8 })) : t.icon === "v-icon-com-info" ? (c(), o(
|
|
503
|
+
t.icon === "v-icon-chart" ? (c(), o(F, { key: 0 })) : t.icon === "v-icon-chart-bar" ? (c(), o(x, { key: 1 })) : t.icon === "v-icon-chart-line" ? (c(), o(V, { key: 2 })) : t.icon === "v-icon-chart-pie" ? (c(), o(C, { key: 3 })) : t.icon === "v-icon-relation" ? (c(), o(k3, { key: 4 })) : t.icon === "v-icon-map" ? (c(), o(i3, { key: 5 })) : t.icon === "v-icon-title" ? (c(), o(P3, { key: 6 })) : t.icon === "v-icon-interact" ? (c(), o(Z, { key: 7 })) : t.icon === "v-icon-material" ? (c(), o(l3, { key: 8 })) : t.icon === "v-icon-com-info" ? (c(), o(T, { key: 9 })) : t.icon === "v-icon-table" ? (c(), o(A3, { key: 10 })) : t.icon === "v-icon-media" ? (c(), o(v3, { key: 11 })) : t.icon === "v-icon-other" ? (c(), o($3, { key: 12 })) : t.icon === "v-icon-view-grid" ? (c(), o(K3, { key: 13 })) : t.icon === "v-icon-favorite" ? (c(), o(G, { key: 14 })) : t.icon === "v-icon-model" ? (c(), o(u3, { key: 15 })) : t.icon === "v-icon-img" ? (c(), o(U, { key: 16 })) : t.icon === "v-icon-text" ? (c(), o(l, { key: 17 })) : t.icon === "v-icon-switch" ? (c(), o(S3, { key: 18 })) : t.icon === "v-icon-step" ? (c(), o(L3, { key: 19 })) : t.icon === "v-icon-line-show" ? (c(), o(w, { key: 20 })) : t.icon === "v-icon-navigation" ? (c(), o(g3, { key: 21 })) : t.icon === "v-icon-button" ? (c(), o(_, { key: 22 })) : (c(), o(q, { key: 23 }))
|
|
505
504
|
]),
|
|
506
505
|
_: 1
|
|
507
506
|
});
|
|
@@ -509,5 +508,5 @@ const K3 = /* @__PURE__ */ s(R3, [["render", J3]]), Z3 = /* @__PURE__ */ h({
|
|
|
509
508
|
}
|
|
510
509
|
});
|
|
511
510
|
export {
|
|
512
|
-
|
|
511
|
+
Y3 as default
|
|
513
512
|
};
|