@tdesign/site-components 0.17.1 → 0.17.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/site-components.css +1 -1
- package/lib/site.es.js +176 -166
- package/lib/site.umd.js +33 -30
- package/lib/styles/style.css +0 -1
- package/package.json +1 -1
package/lib/site.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const Zn = /* @__PURE__ */ new Map();
|
|
2
|
-
function
|
|
2
|
+
function bt(e) {
|
|
3
3
|
let t = Zn.get(e);
|
|
4
4
|
return t === void 0 && (t = e.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase(), Zn.set(e, t)), t;
|
|
5
5
|
}
|
|
@@ -24,23 +24,23 @@ function Qt(e, t) {
|
|
|
24
24
|
t(o), o.shadowRoot && Qt(o.shadowRoot, t);
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
|
-
const Qn = Promise.resolve(), _r = /* @__PURE__ */ new WeakMap(), An = Qt.name === "walkInShadow",
|
|
27
|
+
const Qn = Promise.resolve(), _r = /* @__PURE__ */ new WeakMap(), An = Qt.name === "walkInShadow", ft = /* @__PURE__ */ new Set();
|
|
28
28
|
function wr(e) {
|
|
29
|
-
|
|
29
|
+
ft.size || Qn.then(ei), ft.add(e);
|
|
30
30
|
}
|
|
31
31
|
function $r(e) {
|
|
32
|
-
|
|
32
|
+
ft.delete(e);
|
|
33
33
|
}
|
|
34
34
|
function ei() {
|
|
35
|
-
for (const e of
|
|
35
|
+
for (const e of ft)
|
|
36
36
|
try {
|
|
37
37
|
e();
|
|
38
38
|
} catch (t) {
|
|
39
39
|
console.error(t);
|
|
40
40
|
}
|
|
41
|
-
|
|
41
|
+
ft.clear();
|
|
42
42
|
}
|
|
43
|
-
const Lt = /* @__PURE__ */ new WeakMap(),
|
|
43
|
+
const Lt = /* @__PURE__ */ new WeakMap(), st = /* @__PURE__ */ new Set();
|
|
44
44
|
function yr(e) {
|
|
45
45
|
const t = /* @__PURE__ */ new Set(), n = t.values();
|
|
46
46
|
for (; e; ) {
|
|
@@ -51,7 +51,7 @@ function yr(e) {
|
|
|
51
51
|
}
|
|
52
52
|
if (e.contexts)
|
|
53
53
|
for (const o of e.contexts)
|
|
54
|
-
|
|
54
|
+
st.has(o) || (t.add(o), e.contexts.delete(o));
|
|
55
55
|
e.observe && wr(e.observe), e = n.next().value;
|
|
56
56
|
}
|
|
57
57
|
}
|
|
@@ -76,11 +76,11 @@ function xr(e, t, n) {
|
|
|
76
76
|
if (Ae && (o.contexts || (o.contexts = /* @__PURE__ */ new Set()), Ae.deps || (Ae.deps = /* @__PURE__ */ new Set()), o.contexts.add(Ae), Ae.deps.add(o)), o.resolved) return o.value;
|
|
77
77
|
const r = Ae;
|
|
78
78
|
try {
|
|
79
|
-
if (
|
|
79
|
+
if (st.has(o))
|
|
80
80
|
throw Error(`Circular get invocation is forbidden: '${t}'`);
|
|
81
|
-
Ae = o,
|
|
81
|
+
Ae = o, st.add(o), o.value = n(e, o.value), o.resolved = !0, Ae = r, st.delete(o);
|
|
82
82
|
} catch (i) {
|
|
83
|
-
throw Ae = r,
|
|
83
|
+
throw Ae = r, st.delete(o), Ae && (Ae.deps.delete(o), o.contexts.delete(Ae)), i;
|
|
84
84
|
}
|
|
85
85
|
return o.value;
|
|
86
86
|
}
|
|
@@ -103,18 +103,18 @@ function ni(e, t, n, o) {
|
|
|
103
103
|
$r(r.observe), r.observe = void 0, r.lastValue = void 0;
|
|
104
104
|
};
|
|
105
105
|
}
|
|
106
|
-
const
|
|
106
|
+
const xt = /* @__PURE__ */ new Set();
|
|
107
107
|
function oi(e) {
|
|
108
|
-
|
|
109
|
-
for (const t of
|
|
108
|
+
xt.size || setTimeout(() => {
|
|
109
|
+
for (const t of xt)
|
|
110
110
|
if (!t.contexts || t.contexts.size === 0) {
|
|
111
111
|
if (t.deps)
|
|
112
112
|
for (const o of t.deps)
|
|
113
113
|
o.contexts.delete(t);
|
|
114
114
|
Lt.get(t.target).delete(t.key);
|
|
115
115
|
}
|
|
116
|
-
|
|
117
|
-
}),
|
|
116
|
+
xt.clear();
|
|
117
|
+
}), xt.add(e);
|
|
118
118
|
}
|
|
119
119
|
function Ar(e, t) {
|
|
120
120
|
yr(e), t.clearValue && (e.value = void 0, e.lastValue = void 0), t.deleteEntry && oi(e);
|
|
@@ -175,7 +175,7 @@ function ai(e, t) {
|
|
|
175
175
|
throw TypeError(
|
|
176
176
|
`Invalid default value for '${e}' property - it must be a string, number, boolean or undefined: ${n}`
|
|
177
177
|
);
|
|
178
|
-
const i =
|
|
178
|
+
const i = bt(e);
|
|
179
179
|
return {
|
|
180
180
|
get: (a, s) => s === void 0 ? r(a, i) || t.value : s,
|
|
181
181
|
set: (a, s) => o(a, s, i),
|
|
@@ -183,10 +183,10 @@ function ai(e, t) {
|
|
|
183
183
|
observe: t.observe
|
|
184
184
|
};
|
|
185
185
|
}
|
|
186
|
-
const
|
|
186
|
+
const gt = /* @__PURE__ */ new WeakMap(), At = /* @__PURE__ */ new WeakMap();
|
|
187
187
|
function Dn(e, t) {
|
|
188
188
|
if (t) {
|
|
189
|
-
const i =
|
|
189
|
+
const i = gt.get(t);
|
|
190
190
|
if (e === i) return t;
|
|
191
191
|
for (const a of Object.keys(i))
|
|
192
192
|
a !== "tag" && delete t.prototype[a];
|
|
@@ -199,21 +199,21 @@ function Dn(e, t) {
|
|
|
199
199
|
delete this[a], this[a] = s;
|
|
200
200
|
}
|
|
201
201
|
const i = /* @__PURE__ */ new Set();
|
|
202
|
-
|
|
203
|
-
if (i ===
|
|
202
|
+
At.set(this, i), wr(() => {
|
|
203
|
+
if (i === At.get(this)) {
|
|
204
204
|
for (const a of t.connects) i.add(a(this));
|
|
205
205
|
for (const a of t.observers) i.add(a(this));
|
|
206
206
|
}
|
|
207
207
|
});
|
|
208
208
|
}
|
|
209
209
|
disconnectedCallback() {
|
|
210
|
-
const i =
|
|
210
|
+
const i = At.get(this);
|
|
211
211
|
for (const a of i)
|
|
212
212
|
a && a();
|
|
213
|
-
|
|
213
|
+
At.delete(this), ri(this);
|
|
214
214
|
}
|
|
215
215
|
};
|
|
216
|
-
|
|
216
|
+
gt.set(t, Object.freeze(e));
|
|
217
217
|
const n = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set();
|
|
218
218
|
for (const i of Object.keys(e)) {
|
|
219
219
|
if (i === "tag") continue;
|
|
@@ -228,7 +228,7 @@ function Dn(e, t) {
|
|
|
228
228
|
throw TypeError(
|
|
229
229
|
`Invalid property descriptor for '${i}' property - it must not have 'value' and 'set' properties at the same time.`
|
|
230
230
|
);
|
|
231
|
-
const c =
|
|
231
|
+
const c = bt(i), h = a.get || ((g, f) => f);
|
|
232
232
|
a.get = (g, f) => (f === void 0 && (f = a.set(g, g.getAttribute(c) || f)), h(g, f));
|
|
233
233
|
}
|
|
234
234
|
if (hasOwnProperty.call(a, "value"))
|
|
@@ -254,21 +254,21 @@ function Dn(e, t) {
|
|
|
254
254
|
}
|
|
255
255
|
return t.connects = n, t.observers = o, t.settable = r, t;
|
|
256
256
|
}
|
|
257
|
-
const
|
|
257
|
+
const ot = /* @__PURE__ */ new Map();
|
|
258
258
|
function si(e) {
|
|
259
|
-
|
|
259
|
+
ot.size || Qn.then(() => {
|
|
260
260
|
Qt(globalThis.document.body, (t) => {
|
|
261
|
-
if (
|
|
262
|
-
const n =
|
|
261
|
+
if (ot.has(t.constructor)) {
|
|
262
|
+
const n = ot.get(t.constructor), o = gt.get(t.constructor);
|
|
263
263
|
t.disconnectedCallback();
|
|
264
264
|
for (const r of Object.keys(o)) {
|
|
265
265
|
const i = typeof o[r], a = i !== "object" && i !== "function" && o[r] !== n[r];
|
|
266
|
-
a && t.removeAttribute(
|
|
266
|
+
a && t.removeAttribute(bt(r)), Dr(t, r, { clearValue: a });
|
|
267
267
|
}
|
|
268
268
|
t.connectedCallback();
|
|
269
269
|
}
|
|
270
|
-
}),
|
|
271
|
-
}),
|
|
270
|
+
}), ot.clear();
|
|
271
|
+
}), ot.set(e, gt.get(e));
|
|
272
272
|
}
|
|
273
273
|
function Hr(e) {
|
|
274
274
|
if (!e.tag)
|
|
@@ -277,7 +277,7 @@ function Hr(e) {
|
|
|
277
277
|
);
|
|
278
278
|
const t = globalThis.customElements.get(e.tag);
|
|
279
279
|
if (t) {
|
|
280
|
-
if (
|
|
280
|
+
if (gt.get(t))
|
|
281
281
|
return si(t), Dn(e, t), e;
|
|
282
282
|
throw TypeError(
|
|
283
283
|
`Custom element with '${e.tag}' tag name already defined outside of the hybrids context`
|
|
@@ -289,7 +289,7 @@ function li(e, { root: t = "", prefix: n } = {}) {
|
|
|
289
289
|
for (const o of Object.keys(e)) {
|
|
290
290
|
const r = e[o];
|
|
291
291
|
if (!r.tag) {
|
|
292
|
-
const i =
|
|
292
|
+
const i = bt(
|
|
293
293
|
[].concat(t).reduce((a, s) => a.replace(s, ""), o).replace(/^[./]+/, "").replace(/\//g, "-").replace(/\.[a-zA-Z]+$/, "")
|
|
294
294
|
);
|
|
295
295
|
r.tag = n ? `${n}-${i}` : i;
|
|
@@ -303,10 +303,10 @@ const ie = Object.freeze(
|
|
|
303
303
|
compile: (e) => Dn(e),
|
|
304
304
|
from: li
|
|
305
305
|
})
|
|
306
|
-
),
|
|
306
|
+
), ct = /* @__PURE__ */ new WeakMap();
|
|
307
307
|
function je(e) {
|
|
308
|
-
let t =
|
|
309
|
-
return t || (
|
|
308
|
+
let t = ct.get(e);
|
|
309
|
+
return t || (ct.set(e, t = {}), t);
|
|
310
310
|
}
|
|
311
311
|
function Nt(e) {
|
|
312
312
|
let t;
|
|
@@ -314,9 +314,9 @@ function Nt(e) {
|
|
|
314
314
|
e = t.endNode;
|
|
315
315
|
return e;
|
|
316
316
|
}
|
|
317
|
-
function
|
|
317
|
+
function ht(e) {
|
|
318
318
|
if (e.nodeType === globalThis.Node.TEXT_NODE) {
|
|
319
|
-
const t =
|
|
319
|
+
const t = ct.get(e);
|
|
320
320
|
if (t && t.startNode) {
|
|
321
321
|
const n = Nt(t.endNode);
|
|
322
322
|
let o = t.startNode;
|
|
@@ -325,13 +325,13 @@ function gt(e) {
|
|
|
325
325
|
const i = o.nextSibling;
|
|
326
326
|
o.parentNode.removeChild(o), o = i !== r && i;
|
|
327
327
|
}
|
|
328
|
-
|
|
328
|
+
ct.set(e, {});
|
|
329
329
|
}
|
|
330
330
|
} else {
|
|
331
331
|
let t = e.childNodes[0];
|
|
332
332
|
for (; t; )
|
|
333
333
|
e.removeChild(t), t = e.childNodes[0];
|
|
334
|
-
|
|
334
|
+
ct.set(e, {});
|
|
335
335
|
}
|
|
336
336
|
}
|
|
337
337
|
const ci = Date.now(), Fe = (e = 0) => `H-${ci}-${e}`, Ln = !!(globalThis.document && globalThis.document.adoptedStyleSheets), Ft = /^\d+$/, di = {
|
|
@@ -554,7 +554,7 @@ function pi(e, t, n, o, r) {
|
|
|
554
554
|
const g = /* @__PURE__ */ new Set();
|
|
555
555
|
for (const f of a)
|
|
556
556
|
g.add(f.id);
|
|
557
|
-
i = i.filter((f) => g.has(f.id) ? !0 : (
|
|
557
|
+
i = i.filter((f) => g.has(f.id) ? !0 : (ht(f.placeholder), f.placeholder.parentNode.removeChild(f.placeholder), !1));
|
|
558
558
|
}
|
|
559
559
|
let s = t;
|
|
560
560
|
const c = n.length - 1, h = je(t);
|
|
@@ -583,10 +583,10 @@ function pi(e, t, n, o, r) {
|
|
|
583
583
|
}
|
|
584
584
|
if (i)
|
|
585
585
|
for (const g of i)
|
|
586
|
-
g.available && (
|
|
586
|
+
g.available && (ht(g.placeholder), g.placeholder.parentNode.removeChild(g.placeholder));
|
|
587
587
|
}
|
|
588
588
|
function vi(e, t, n) {
|
|
589
|
-
|
|
589
|
+
ht(t);
|
|
590
590
|
const o = je(t);
|
|
591
591
|
o.startNode = o.endNode = n, t.parentNode.insertBefore(n, t.nextSibling);
|
|
592
592
|
}
|
|
@@ -598,11 +598,11 @@ function $n(e) {
|
|
|
598
598
|
}
|
|
599
599
|
return t;
|
|
600
600
|
}
|
|
601
|
-
function
|
|
601
|
+
function pt(e, t, n, o, r) {
|
|
602
602
|
const i = $n(n), a = $n(o);
|
|
603
|
-
switch (a !== "undefined" && i !== a && (i !== "function" &&
|
|
603
|
+
switch (a !== "undefined" && i !== a && (i !== "function" && ht(t), a === "array" ? Hn.delete(t) : a !== "node" && a !== "function" && (t.textContent = "")), i) {
|
|
604
604
|
case "array":
|
|
605
|
-
pi(e, t, n,
|
|
605
|
+
pi(e, t, n, pt, r);
|
|
606
606
|
break;
|
|
607
607
|
case "node":
|
|
608
608
|
vi(e, t, n);
|
|
@@ -668,7 +668,7 @@ function wi(e, t, n) {
|
|
|
668
668
|
);
|
|
669
669
|
const o = to.get(t) || /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map();
|
|
670
670
|
for (const i of Object.keys(n)) {
|
|
671
|
-
const a =
|
|
671
|
+
const a = bt(i), s = n[i];
|
|
672
672
|
!s && s !== 0 ? t.style.removeProperty(a) : t.style.setProperty(a, s), r.set(a, s), o.delete(a);
|
|
673
673
|
}
|
|
674
674
|
for (const i of o.keys())
|
|
@@ -700,7 +700,7 @@ function yi(e, t, n) {
|
|
|
700
700
|
}
|
|
701
701
|
}
|
|
702
702
|
}
|
|
703
|
-
const Br = Fe("(\\d+)"),
|
|
703
|
+
const Br = Fe("(\\d+)"), rt = new RegExp(`^${Br}$`), Ye = new RegExp(Br, "g"), xi = /^[^A-Za-z]+$/;
|
|
704
704
|
function Ai(e) {
|
|
705
705
|
let t = e[0], n = !1;
|
|
706
706
|
for (let o = 1; o < e.length; o += 1)
|
|
@@ -809,14 +809,14 @@ function Bi(e, t, n, o) {
|
|
|
809
809
|
let f = 0, C = null;
|
|
810
810
|
for (; h.nextNode(); ) {
|
|
811
811
|
let u = h.currentNode;
|
|
812
|
-
if (C && !C.contains(u) && (C = null), u.nodeType === globalThis.Node.COMMENT_NODE &&
|
|
812
|
+
if (C && !C.contains(u) && (C = null), u.nodeType === globalThis.Node.COMMENT_NODE && rt.test(u.textContent) && (u.parentNode.insertBefore(
|
|
813
813
|
globalThis.document.createTextNode(u.textContent),
|
|
814
814
|
u.nextSibling
|
|
815
815
|
), h.nextNode(), u.parentNode.removeChild(u), u = h.currentNode), u.nodeType === globalThis.Node.TEXT_NODE) {
|
|
816
816
|
let l = u.textContent;
|
|
817
|
-
const d = l.match(
|
|
817
|
+
const d = l.match(rt);
|
|
818
818
|
if (d)
|
|
819
|
-
u.textContent = "", i[d[1]] = [f,
|
|
819
|
+
u.textContent = "", i[d[1]] = [f, pt];
|
|
820
820
|
else {
|
|
821
821
|
if (Gi() && !C && !l.match(/^\s*$/)) {
|
|
822
822
|
let p;
|
|
@@ -846,9 +846,9 @@ function Bi(e, t, n, o) {
|
|
|
846
846
|
p.nextSibling
|
|
847
847
|
), h.currentNode = p, f += 1);
|
|
848
848
|
const D = p.textContent.match(
|
|
849
|
-
|
|
849
|
+
rt
|
|
850
850
|
);
|
|
851
|
-
D && (p.textContent = "", i[D[1]] = [f,
|
|
851
|
+
D && (p.textContent = "", i[D[1]] = [f, pt]);
|
|
852
852
|
});
|
|
853
853
|
}
|
|
854
854
|
}
|
|
@@ -866,7 +866,7 @@ function Bi(e, t, n, o) {
|
|
|
866
866
|
u.removeAttribute(v), u.classList.add(b);
|
|
867
867
|
continue;
|
|
868
868
|
}
|
|
869
|
-
const p = d.match(
|
|
869
|
+
const p = d.match(rt);
|
|
870
870
|
if (p) {
|
|
871
871
|
const b = Di(e[p[1]]);
|
|
872
872
|
i[p[1]] = [
|
|
@@ -878,7 +878,7 @@ function Bi(e, t, n, o) {
|
|
|
878
878
|
if (b) {
|
|
879
879
|
const y = `attr__${v}`;
|
|
880
880
|
for (const [D, A] of b.entries()) {
|
|
881
|
-
const [, H] = A.match(
|
|
881
|
+
const [, H] = A.match(rt);
|
|
882
882
|
let O = !1;
|
|
883
883
|
i[H] = [
|
|
884
884
|
f,
|
|
@@ -918,7 +918,7 @@ ${oo(a, -1)}`
|
|
|
918
918
|
}), O += 1, P = i[w[O]];
|
|
919
919
|
H += 1;
|
|
920
920
|
}
|
|
921
|
-
if (b.hostLayout && l.classList.remove(b.hostLayout),
|
|
921
|
+
if (b.hostLayout && l.classList.remove(b.hostLayout), ht(d), b = je(d), b.template = r, b.markers = A, d.nodeType === globalThis.Node.TEXT_NODE) {
|
|
922
922
|
Or(d), b.startNode = y.childNodes[0], b.endNode = y.childNodes[y.childNodes.length - 1];
|
|
923
923
|
let x = d, B = y.childNodes[0];
|
|
924
924
|
for (; B; )
|
|
@@ -956,9 +956,9 @@ function Oi(e, t, n = 200) {
|
|
|
956
956
|
const a = o.useLayout;
|
|
957
957
|
let s;
|
|
958
958
|
t && (s = setTimeout(() => {
|
|
959
|
-
s = void 0,
|
|
959
|
+
s = void 0, pt(r, i, t, void 0, a);
|
|
960
960
|
}, n)), Ut.set(i, e), e.then((c) => {
|
|
961
|
-
s && clearTimeout(s), Ut.get(i) === e && (
|
|
961
|
+
s && clearTimeout(s), Ut.get(i) === e && (pt(
|
|
962
962
|
r,
|
|
963
963
|
i,
|
|
964
964
|
c,
|
|
@@ -1019,19 +1019,19 @@ function Mi(e, t) {
|
|
|
1019
1019
|
});
|
|
1020
1020
|
}, lo.set(e, n)), n;
|
|
1021
1021
|
}
|
|
1022
|
-
let
|
|
1022
|
+
let Dt;
|
|
1023
1023
|
const ki = globalThis.document && globalThis.document.startViewTransition !== void 0 && function(t) {
|
|
1024
1024
|
return function n(o, r) {
|
|
1025
|
-
if (
|
|
1025
|
+
if (Dt) {
|
|
1026
1026
|
console.warn(
|
|
1027
1027
|
`${kt(
|
|
1028
1028
|
o
|
|
1029
|
-
)}: view transition already started in ${kt(
|
|
1029
|
+
)}: view transition already started in ${kt(Dt)}`
|
|
1030
1030
|
), t(o, r);
|
|
1031
1031
|
return;
|
|
1032
1032
|
}
|
|
1033
|
-
t.useLayout = n.useLayout,
|
|
1034
|
-
|
|
1033
|
+
t.useLayout = n.useLayout, Dt = o, globalThis.document.startViewTransition(() => (t(o, r), Qn.then(() => {
|
|
1034
|
+
Dt = void 0;
|
|
1035
1035
|
})));
|
|
1036
1036
|
};
|
|
1037
1037
|
} || // istanbul ignore next
|
|
@@ -1182,7 +1182,7 @@ function Qr(e = () => {
|
|
|
1182
1182
|
function ze() {
|
|
1183
1183
|
return /-en$/.test(location.pathname) ? "en" : "zh";
|
|
1184
1184
|
}
|
|
1185
|
-
function
|
|
1185
|
+
function Je(e, t = !0) {
|
|
1186
1186
|
return e === void 0 ? t : typeof e == "string" ? e === "true" : !!e;
|
|
1187
1187
|
}
|
|
1188
1188
|
const Zi = (e) => e.split("-").map((t) => t.charAt(0).toUpperCase() + t.slice(1).toLowerCase()).join(""), po = [];
|
|
@@ -1295,7 +1295,7 @@ const Ji = () => {
|
|
|
1295
1295
|
}, Wi = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1296
1296
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M2 5C2 3.34315 3.34315 2 5 2H7C8.65685 2 10 3.34315 10 5V11H8V8.5H4V11H2V5ZM4 6.5H8V5C8 4.44772 7.55228 4 7 4H5C4.44772 4 4 4.44772 4 5V6.5ZM12 3.5H18C19.6569 3.5 21 4.84315 21 6.5V9H19V6.5C19 5.94772 18.5523 5.5 18 5.5H12V3.5ZM18 11.5V13H22V15H20.9381C20.7182 16.7638 19.9241 18.3492 18.7488 19.5634C19.4441 19.845 20.2041 20 21 20H22V22H21C19.5425 22 18.1765 21.6102 17.0001 20.9297C15.8234 21.6104 14.4572 22 13 22H12V20H13C13.7962 20 14.5562 19.8449 15.2514 19.5633C14.6487 18.9407 14.1463 18.2205 13.7704 17.4291L13.3413 16.5258L15.1478 15.6676L15.5769 16.5709C15.9219 17.2971 16.4081 17.9427 16.9999 18.4723C17.9921 17.5843 18.687 16.371 18.917 15H12V13H16V11.5H18ZM6 13V19C6 19.5523 6.44772 20 7 20H9.5V22H7C5.34315 22 4 20.6569 4 19V13H6Z" fill="currentColor"/>
|
|
1297
1297
|
</svg>
|
|
1298
|
-
`, _i = ".TDesign-base-components-links{display:flex;flex-direction:column;padding:16px;width:832px;box-sizing:border-box;row-gap:16px}.TDesign-base-components-links__web,.TDesign-base-components-links__mobile{display:flex;flex-direction:column;row-gap:8px}.TDesign-base-components-links__list{display:flex;flex-wrap:wrap;gap:4px}.TDesign-base-components-links .title{color:var(--text-placeholder);margin:0 8px;font-size:14px;line-height:22px}.TDesign-base-components-links .link{border-radius:6px;transition:all .2s linear;color:var(--text-secondary);text-decoration:none;padding:8px;display:inline-flex;align-items:center;width:264px;box-sizing:border-box}.TDesign-base-components-links .link:not(.disabled):hover{color:var(--text-primary);background:var(--bg-color-container-hover)}.TDesign-base-components-links .link .details{display:flex;flex-direction:column}.TDesign-base-components-links .link .name{font-size:14px;line-height:24px;height:24px}.TDesign-base-components-links .link .version{font-size:14px;line-height:22px;color:var(--text-placeholder)}.TDesign-base-components-links .link .icon{max-width:40px;max-height:40px;margin-right:8px}.TDesign-base-components-links .link.active{color:var(--text-primary);background:var(--bg-color-container-select)}.TDesign-base-components-links .link.disabled{cursor:no-drop}.TDesign-base-components-links .link .disable-tag,.TDesign-base-components-links .link .alpha-tag,.TDesign-base-components-links .link .beta-tag,.TDesign-base-components-links .link .rc-tag,.TDesign-base-components-links .link .stable-tag{font-size:12px;border-radius:var(--border-radius);padding:2px 4px;margin-left:4px;vertical-align:bottom}.TDesign-base-components-links .link .disable-tag{color:var(--text-secondary);background:var(--bg-color-tag)}.TDesign-base-components-links .link .alpha-tag{color:var(--brand-main);background:var(--brand-main-light);font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace}.TDesign-base-components-links .link .beta-tag,.TDesign-base-components-links .link .rc-tag{color:var(--success-main);background:var(--success-main-light);font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace}.TDesign-base-components-links .link .stable-tag{color:#029cd4;background:#029cd41a;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace}@media screen and (max-width: 960px){.TDesign-base-components-links{display:none}}", $i = ':host{position:relative;--header-inner-max-width: 100%;--header-inner-padding: 0 24px;--search-display: block}@media screen and (max-width: 1200px){:host{--search-display: none}}.TDesign-header-notice{width:100%;line-height:24px;padding:8px 16px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;position:relative}.TDesign-header-notice.primary{background-color:var(--brand-main)}.TDesign-header-notice__content{cursor:pointer;color:#ffffffe6;transition:all .2s}.TDesign-header-notice__content:hover{color:#fff}.TDesign-header-notice__close{display:inline-flex;align-items:center;position:absolute;right:8px;cursor:pointer;transition:all .2s;color:#ffffffe6}.TDesign-header-notice__close:hover{color:#fff}.TDesign-header-notice__close svg{width:16px;height:16px}.TDesign-header{height:var(--header-height);background-color:var(--bg-color-container);color:var(--text-secondary);position:relative;z-index:1400;box-shadow:var(--header-box-shadow)}.TDesign-header-inner{padding:var(--header-inner-padding);height:100%;display:flex;justify-content:space-between;align-items:center;box-sizing:border-box;max-width:var(--header-inner-max-width);margin:auto;transition:all .25s var(--anim-time-fn-easing)}.TDesign-header-left{display:flex;align-items:center}.TDesign-header .slot-search{display:var(--search-display)}.TDesign-header-nav{display:flex;align-items:center;justify-content:flex-start;column-gap:8px}.TDesign-header-nav__link{cursor:pointer;padding:4px 16px;box-sizing:border-box;height:32px;line-height:24px;color:var(--text-primary);text-decoration:none;border-radius:var(--border-radius);transition:all .1s;display:inline-block;vertical-align:middle;word-break:keep-all;flex-shrink:0}.TDesign-header-nav__link:hover{background:var(--bg-color-container-hover)}.TDesign-header-nav__link:hover .icon svg path{d:path("M3.75 10.2002L7.99274 5.7998L12.2361 10.0425")}.TDesign-header-nav__link.active{color:var(--text-primary);background:var(--bg-color-container-select)}.TDesign-header-nav__link .icon{width:16px;height:16px;display:inline-block;vertical-align:middle;margin-top:-4px;margin-left:4px}.TDesign-header-nav__link .icon svg path{transition:d .2s;stroke:currentColor}.TDesign-header-nav__git,.TDesign-header-nav__translate{display:inline-flex;color:var(--text-primary);border-radius:var(--border-radius);transition:all .2s linear;width:32px;height:32px;align-items:center;justify-content:center;cursor:pointer}.TDesign-header-nav__git:hover,.TDesign-header-nav__translate:hover{background:var(--bg-color-container-hover)}.TDesign-header-nav__git-icon,.TDesign-header-nav__translate-icon{width:24px;height:24px;display:inline-block}.TDesign-header-nav td-theme-tabs{margin-left:8px}', ea = Ji(), { headerList: vo, baseComponentsLinks:
|
|
1298
|
+
`, _i = ".TDesign-base-components-links{display:flex;flex-direction:column;padding:16px;width:832px;box-sizing:border-box;row-gap:16px}.TDesign-base-components-links__web,.TDesign-base-components-links__mobile{display:flex;flex-direction:column;row-gap:8px}.TDesign-base-components-links__list{display:flex;flex-wrap:wrap;gap:4px}.TDesign-base-components-links .title{color:var(--text-placeholder);margin:0 8px;font-size:14px;line-height:22px}.TDesign-base-components-links .link{border-radius:6px;transition:all .2s linear;color:var(--text-secondary);text-decoration:none;padding:8px;display:inline-flex;align-items:center;width:264px;box-sizing:border-box}.TDesign-base-components-links .link:not(.disabled):hover{color:var(--text-primary);background:var(--bg-color-container-hover)}.TDesign-base-components-links .link .details{display:flex;flex-direction:column}.TDesign-base-components-links .link .name{font-size:14px;line-height:24px;height:24px}.TDesign-base-components-links .link .version{font-size:14px;line-height:22px;color:var(--text-placeholder)}.TDesign-base-components-links .link .icon{max-width:40px;max-height:40px;margin-right:8px}.TDesign-base-components-links .link.active{color:var(--text-primary);background:var(--bg-color-container-select)}.TDesign-base-components-links .link.disabled{cursor:no-drop}.TDesign-base-components-links .link .disable-tag,.TDesign-base-components-links .link .alpha-tag,.TDesign-base-components-links .link .beta-tag,.TDesign-base-components-links .link .rc-tag,.TDesign-base-components-links .link .stable-tag{font-size:12px;border-radius:var(--border-radius);padding:2px 4px;margin-left:4px;vertical-align:bottom}.TDesign-base-components-links .link .disable-tag{color:var(--text-secondary);background:var(--bg-color-tag)}.TDesign-base-components-links .link .alpha-tag{color:var(--brand-main);background:var(--brand-main-light);font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace}.TDesign-base-components-links .link .beta-tag,.TDesign-base-components-links .link .rc-tag{color:var(--success-main);background:var(--success-main-light);font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace}.TDesign-base-components-links .link .stable-tag{color:#029cd4;background:#029cd41a;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace}@media screen and (max-width: 960px){.TDesign-base-components-links{display:none}}", $i = ':host{position:relative;--header-inner-max-width: 100%;--header-inner-padding: 0 24px;--search-display: block}@media screen and (max-width: 1200px){:host{--search-display: none}}.TDesign-header-notice{width:100%;line-height:24px;padding:8px 16px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;position:relative}.TDesign-header-notice.primary{background-color:var(--brand-main)}.TDesign-header-notice__content{cursor:pointer;color:#ffffffe6;transition:all .2s}.TDesign-header-notice__content:hover{color:#fff}.TDesign-header-notice__close{display:inline-flex;align-items:center;position:absolute;right:8px;cursor:pointer;transition:all .2s;color:#ffffffe6}.TDesign-header-notice__close:hover{color:#fff}.TDesign-header-notice__close svg{width:16px;height:16px}.TDesign-header{height:var(--header-height);background-color:var(--bg-color-container);color:var(--text-secondary);position:relative;z-index:1400;box-shadow:var(--header-box-shadow)}.TDesign-header-inner{padding:var(--header-inner-padding);height:100%;display:flex;justify-content:space-between;align-items:center;box-sizing:border-box;max-width:var(--header-inner-max-width);margin:auto;transition:all .25s var(--anim-time-fn-easing)}.TDesign-header-left{display:flex;align-items:center}.TDesign-header .slot-search{display:var(--search-display)}.TDesign-header-nav{display:flex;align-items:center;justify-content:flex-start;column-gap:8px}.TDesign-header-nav__link{cursor:pointer;padding:4px 16px;box-sizing:border-box;height:32px;line-height:24px;color:var(--text-primary);text-decoration:none;border-radius:var(--border-radius);transition:all .1s;display:inline-block;vertical-align:middle;word-break:keep-all;flex-shrink:0}.TDesign-header-nav__link:hover{background:var(--bg-color-container-hover)}.TDesign-header-nav__link:hover .icon svg path{d:path("M3.75 10.2002L7.99274 5.7998L12.2361 10.0425")}.TDesign-header-nav__link.active{color:var(--text-primary);background:var(--bg-color-container-select)}.TDesign-header-nav__link .icon{width:16px;height:16px;display:inline-block;vertical-align:middle;margin-top:-4px;margin-left:4px}.TDesign-header-nav__link .icon svg path{transition:d .2s;stroke:currentColor}.TDesign-header-nav__git,.TDesign-header-nav__translate{display:inline-flex;color:var(--text-primary);border-radius:var(--border-radius);transition:all .2s linear;width:32px;height:32px;align-items:center;justify-content:center;cursor:pointer}.TDesign-header-nav__git:hover,.TDesign-header-nav__translate:hover{background:var(--bg-color-container-hover)}.TDesign-header-nav__git-icon,.TDesign-header-nav__translate-icon{width:24px;height:24px;display:inline-block}.TDesign-header-nav td-theme-tabs{margin-left:8px}', ea = Ji(), { headerList: vo, baseComponentsLinks: lt, baseComponentPrefix: ta } = ea;
|
|
1299
1299
|
function zt(e, t, n) {
|
|
1300
1300
|
t.preventDefault(), n.status && (location.href = n.path);
|
|
1301
1301
|
}
|
|
@@ -1338,9 +1338,9 @@ function oa(e, t) {
|
|
|
1338
1338
|
${t}
|
|
1339
1339
|
<div slot="content" class="TDesign-base-components-links">
|
|
1340
1340
|
<div class="TDesign-base-components-links__web">
|
|
1341
|
-
<p class="title">${
|
|
1341
|
+
<p class="title">${lt.web.name}</p>
|
|
1342
1342
|
<div class="TDesign-base-components-links__list">
|
|
1343
|
-
${
|
|
1343
|
+
${lt.web.links.map(
|
|
1344
1344
|
(n) => S`
|
|
1345
1345
|
<a
|
|
1346
1346
|
href="${n.path}"
|
|
@@ -1361,9 +1361,9 @@ function oa(e, t) {
|
|
|
1361
1361
|
</div>
|
|
1362
1362
|
|
|
1363
1363
|
<div class="TDesign-base-components-links__mobile">
|
|
1364
|
-
<p class="title">${
|
|
1364
|
+
<p class="title">${lt.mobile.name}</p>
|
|
1365
1365
|
<div class="TDesign-base-components-links__list">
|
|
1366
|
-
${
|
|
1366
|
+
${lt.mobile.links.map(
|
|
1367
1367
|
(n) => S`
|
|
1368
1368
|
<a
|
|
1369
1369
|
href="${n.path}"
|
|
@@ -1486,7 +1486,7 @@ ie({
|
|
|
1486
1486
|
platform="${t}"
|
|
1487
1487
|
framework="${n}"
|
|
1488
1488
|
headerList="${vo}"
|
|
1489
|
-
baseComponentsLinks="${
|
|
1489
|
+
baseComponentsLinks="${lt}"
|
|
1490
1490
|
>
|
|
1491
1491
|
</td-collapse-menu>
|
|
1492
1492
|
` : S`
|
|
@@ -5535,15 +5535,15 @@ const Ka = ".TDesign-doc-search{position:relative;width:200px;height:32px;box-si
|
|
|
5535
5535
|
}
|
|
5536
5536
|
}
|
|
5537
5537
|
function Ce(L, I, X, J) {
|
|
5538
|
-
var $ = a(X), te = void 0, ge = void 0, Ke = void 0,
|
|
5538
|
+
var $ = a(X), te = void 0, ge = void 0, Ke = void 0, yt = void 0;
|
|
5539
5539
|
if ($) {
|
|
5540
|
-
if (te = he(X, J), te === U ? (
|
|
5540
|
+
if (te = he(X, J), te === U ? (yt = !0, ge = te.error, te.error = null) : Ke = !0, I === te) {
|
|
5541
5541
|
ne(I, W());
|
|
5542
5542
|
return;
|
|
5543
5543
|
}
|
|
5544
5544
|
} else
|
|
5545
5545
|
te = J, Ke = !0;
|
|
5546
|
-
I._state !== z || ($ && Ke ? ee(I, te) :
|
|
5546
|
+
I._state !== z || ($ && Ke ? ee(I, te) : yt ? ne(I, ge) : L === F ? se(I, te) : L === Z && ne(I, te));
|
|
5547
5547
|
}
|
|
5548
5548
|
function Me(L, I) {
|
|
5549
5549
|
try {
|
|
@@ -5589,8 +5589,8 @@ const Ka = ".TDesign-doc-search{position:relative;width:200px;height:32px;box-si
|
|
|
5589
5589
|
V(Ke, X, ge), this._willSettleAt(Ke, J);
|
|
5590
5590
|
} else
|
|
5591
5591
|
this._willSettleAt(
|
|
5592
|
-
new $(function(
|
|
5593
|
-
return
|
|
5592
|
+
new $(function(yt) {
|
|
5593
|
+
return yt(X);
|
|
5594
5594
|
}),
|
|
5595
5595
|
J
|
|
5596
5596
|
);
|
|
@@ -7079,9 +7079,9 @@ const In = () => {
|
|
|
7079
7079
|
}
|
|
7080
7080
|
}
|
|
7081
7081
|
}[e];
|
|
7082
|
-
}, Wa = '.TDesign-doc-changelog__overlay{position:fixed;top:0;left:0;right:0;bottom:0;background-color:#0000004d;z-index:10000}.hidden .TDesign-doc-changelog__overlay{display:none}.TDesign-doc-changelog__drawer{position:fixed;top:0;right:0;width:500px;height:100vh;background-color:var(--bg-color-container);z-index:100001;box-shadow:-4px 0 12px #0000001a;font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;color:var(--text-primary);transition:transform .35s cubic-bezier(.4,0,.2,1),opacity .35s ease}@media screen and (max-width: 960px){.TDesign-doc-changelog__drawer{width:85vw}}.visible .TDesign-doc-changelog__drawer{transform:translate(0);opacity:1}.hidden .TDesign-doc-changelog__drawer{transform:translate(100%);opacity:0}.TDesign-doc-changelog__drawer-header{display:flex;justify-content:space-between;align-items:center;height:56px;box-shadow:var(--header-box-shadow)}.TDesign-doc-changelog__drawer-header p{position:relative;font-size:16px;left:16px;height:24px;font-weight:600}.TDesign-doc-changelog__drawer-header button{background:transparent;border:none;cursor:pointer;padding:2px}.TDesign-doc-changelog__drawer-header button svg{width:20px;height:20px;color:var(--text-primary)}.TDesign-doc-changelog__drawer-body{position:relative;padding:16px;overflow-y:auto;height:calc(100vh -
|
|
7082
|
+
}, Wa = '.TDesign-doc-changelog__overlay{position:fixed;top:0;left:0;right:0;bottom:0;background-color:#0000004d;z-index:10000}.hidden .TDesign-doc-changelog__overlay{display:none}.TDesign-doc-changelog__drawer{position:fixed;top:0;right:0;width:500px;height:100vh;background-color:var(--bg-color-container);z-index:100001;box-shadow:-4px 0 12px #0000001a;font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;color:var(--text-primary);transition:transform .35s cubic-bezier(.4,0,.2,1),opacity .35s ease}@media screen and (max-width: 960px){.TDesign-doc-changelog__drawer{width:85vw}}.visible .TDesign-doc-changelog__drawer{transform:translate(0);opacity:1}.hidden .TDesign-doc-changelog__drawer{transform:translate(100%);opacity:0}.TDesign-doc-changelog__drawer-header{display:flex;justify-content:space-between;align-items:center;height:56px;box-shadow:var(--header-box-shadow)}.TDesign-doc-changelog__drawer-header p{position:relative;font-size:16px;left:16px;height:24px;font-weight:600}.TDesign-doc-changelog__drawer-header button{background:transparent;border:none;cursor:pointer;padding:2px}.TDesign-doc-changelog__drawer-header button svg{width:20px;height:20px;color:var(--text-primary)}.TDesign-doc-changelog__drawer-body{position:relative;padding:16px;overflow-y:auto;height:calc(100vh - 80px)}.TDesign-doc-changelog__drawer-body:hover::-webkit-scrollbar-thumb{background-color:var(--bg-color-scroll)}.TDesign-doc-changelog__drawer-body::-webkit-scrollbar{width:12px;height:12px;background:transparent}.TDesign-doc-changelog__drawer-body::-webkit-scrollbar-corner{width:0}.TDesign-doc-changelog__drawer-body::-webkit-scrollbar-thumb{border-radius:6px;border:4px solid transparent;background-clip:content-box;background-color:transparent}.TDesign-doc-changelog__logs{position:relative;display:flex;flex-direction:column;gap:16px}.TDesign-doc-changelog__logs:not(:has(.TDesign-doc-changelog__logs-empty)):after{content:"";position:absolute;top:32px;left:15px;width:2px;height:100%;background:var(--brand-main)}.TDesign-doc-changelog__logs-version{position:relative;padding-left:32px}.TDesign-doc-changelog__logs-version:last-of-type:after{content:"";position:absolute;left:15px;top:30px;z-index:10;width:8px;height:105%;background:var(--bg-color-docpage)}.TDesign-doc-changelog__logs-version-header{display:flex;align-items:center;margin:10px 0}.TDesign-doc-changelog__logs-version-header:before{content:"";position:absolute;left:12px;width:8px;height:8px;border:2px solid var(--brand-main);background:var(--bg-color-docpage);outline:8px solid var(--bg-color-docpage);box-sizing:border-box;border-radius:50%;z-index:10}.TDesign-doc-changelog__logs-version-header span{font-size:18px;font-weight:600;color:var(--text-primary)}.TDesign-doc-changelog__logs-version-header code{position:relative;left:8px;color:var(--text-primary);background:var(--bg-color-tag);border-radius:3px;margin:0 2px;padding:2px 8px;font-size:12px;font-weight:400;line-height:20px}.TDesign-doc-changelog__logs-version-section h3{font-size:16px;font-weight:700;color:var(--text-primary);margin-bottom:8px}.TDesign-doc-changelog__logs-version-section ul{margin:0;padding-left:20px;list-style-type:disc;font-size:14px}.TDesign-doc-changelog__logs-version-section ul ul{padding-left:22px}.TDesign-doc-changelog__logs-version-section ul ul li{list-style-type:circle}.TDesign-doc-changelog__logs-version-section ul li{padding-left:6px;margin-bottom:6px;line-height:22px;color:var(--text-primary)}.TDesign-doc-changelog__logs-version-section ul a{color:var(--brand-main);text-decoration:none}.TDesign-doc-changelog__logs-version-section ul a:hover{color:var(--brand-main-hover)}.TDesign-doc-changelog__logs-empty{color:var(--text-secondary);text-align:center;padding:30px 0;font-style:italic}.TDesign-doc-changelog__logs__loading{display:flex;align-items:center;justify-content:center;width:100%;height:128px;color:var(--brand-main)}.TDesign-doc-changelog__logs__loading-icon{width:32px;height:32px;border-radius:50%;background:conic-gradient(from 90deg at 50% 50%,#fff 0deg,currentColor 360deg);-webkit-mask:radial-gradient(transparent calc(50% - .5px),#fff 50%);mask:radial-gradient(transparent calc(50% - .5px),#fff 50%);animation:spin 1s linear infinite;-webkit-animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}';
|
|
7083
7083
|
let Vt = null;
|
|
7084
|
-
const
|
|
7084
|
+
const We = "TDesign-doc-changelog", Qe = `${We}__logs`, zr = In(), _a = ["tencent.com", "woa.com"], $a = {
|
|
7085
7085
|
qrcode: "QRCode"
|
|
7086
7086
|
};
|
|
7087
7087
|
function es() {
|
|
@@ -7102,7 +7102,7 @@ async function ns(e) {
|
|
|
7102
7102
|
Vt || (Vt = await (await fetch(`${es()}/changelog.json`)).json());
|
|
7103
7103
|
const i = (n = e.shadowRoot) == null ? void 0 : n.querySelector(`.${Qe}__loading`);
|
|
7104
7104
|
i == null || i.remove();
|
|
7105
|
-
const a = (o = e.shadowRoot) == null ? void 0 : o.querySelector(`.${
|
|
7105
|
+
const a = (o = e.shadowRoot) == null ? void 0 : o.querySelector(`.${We}__drawer-body`);
|
|
7106
7106
|
a && (a.scrollTop = 0);
|
|
7107
7107
|
const s = Vt[t], c = (r = e.shadowRoot) == null ? void 0 : r.querySelector(`.${Qe}`);
|
|
7108
7108
|
c && (c.innerHTML = os(s));
|
|
@@ -7145,7 +7145,7 @@ function is(e) {
|
|
|
7145
7145
|
return Do(n);
|
|
7146
7146
|
}
|
|
7147
7147
|
function Do(e) {
|
|
7148
|
-
return e.replace(/\[([^\]]+)\]\((https?:\/\/[^)]+)\)/g, '<a href="$2" target="_blank">$1</a>').replace(new RegExp("(?<!`)@([a-zA-Z0-9-_]+)(?!`)", "g"), '<a href="https://github.com/$1" target="_blank">@$1</a>').replace(/`([^`]+)`/g, "
|
|
7148
|
+
return e.replace(/\[([^\]]+)\]\((https?:\/\/[^)]+)\)/g, '<a href="$2" target="_blank">$1</a>').replace(new RegExp("(?<!`)@([a-zA-Z0-9-_]+)(?!`)", "g"), '<a href="https://github.com/$1" target="_blank">@$1</a>').replace(/`([^`]+)`/g, (t, n) => `<td-code text="${n}"></td-code>`);
|
|
7149
7149
|
}
|
|
7150
7150
|
ie({
|
|
7151
7151
|
tag: "td-doc-changelog",
|
|
@@ -7161,13 +7161,13 @@ ie({
|
|
|
7161
7161
|
};
|
|
7162
7162
|
return S`
|
|
7163
7163
|
<div class="${e.visible ? "visible" : "hidden"}">
|
|
7164
|
-
<div class="${
|
|
7165
|
-
<div class="${
|
|
7166
|
-
<div class="${
|
|
7164
|
+
<div class="${We}__overlay" onclick="${t}"></div>
|
|
7165
|
+
<div class="${We}__drawer">
|
|
7166
|
+
<div class="${We}__drawer-header">
|
|
7167
7167
|
<p>${zr.changelog.title}</p>
|
|
7168
7168
|
<button onclick="${t}" innerHTML="${zn}"></button>
|
|
7169
7169
|
</div>
|
|
7170
|
-
<div class="${
|
|
7170
|
+
<div class="${We}__drawer-body">
|
|
7171
7171
|
<div class="${Qe}__loading">
|
|
7172
7172
|
<svg
|
|
7173
7173
|
class="${Qe}__loading-icon"
|
|
@@ -7235,7 +7235,7 @@ ie({
|
|
|
7235
7235
|
const { target: i } = r, a = decodeURIComponent(i.href);
|
|
7236
7236
|
if (!a.includes("#")) return;
|
|
7237
7237
|
const [, s = ""] = a.split("#");
|
|
7238
|
-
if (i.classList.contains("
|
|
7238
|
+
if (i.classList.contains("header-anchor") || i.classList.contains("tdesign-toc_list_item_a")) {
|
|
7239
7239
|
const c = document.getElementById(s);
|
|
7240
7240
|
if (!c) return;
|
|
7241
7241
|
const { top: h } = c.getBoundingClientRect(), g = h + document.documentElement.scrollTop;
|
|
@@ -7313,7 +7313,7 @@ const ue = "https://tdesign.gtimg.com/site", On = {
|
|
|
7313
7313
|
d="M7.90582 2.79363C10.8499 2.79364 13.2095 5.14029 13.2095 8.00195C13.2095 10.8636 10.8499 13.2103 7.90581 13.2103C5.44426 13.2103 3.39128 11.5698 2.78447 9.35939L1.75098 9.52803C2.44243 12.2422 4.93584 14.252 7.90581 14.252C11.4103 14.252 14.2512 11.4537 14.2512 8.00196C14.2512 4.55018 11.4103 1.75195 7.90582 1.75195C5.80622 1.75195 3.9448 2.75638 2.78981 4.304L2.78981 2.6451H1.75098V5.7916C1.75098 6.06774 1.97483 6.2916 2.25098 6.2916L5.37759 6.2916V5.24707H3.40454C4.33896 3.77709 5.99992 2.79363 7.90582 2.79363Z"
|
|
7314
7314
|
fill="currentColor" />
|
|
7315
7315
|
<path d="M6.99951 5.50024V8.38917L9.64596 11.0356L10.3531 10.3285L7.99951 7.97496V5.50024H6.99951Z" fill="currentColor" />
|
|
7316
|
-
</svg>`, cs = ":host{width:100%;background-color:var(--bg-color-container);box-shadow:var(--header-box-shadow);position:relative}@media screen and (max-width: 960px){:host{--spline-visible: hidden;--inner-padding-y: 12px;--info-top: 14px;--title-font-size: 32px}}.TDesign-doc-header{height:var(--doc-header-height);padding-right:var(--content-padding-right)}.TDesign-doc-header__inner{padding:var(--inner-padding-y, 48px) var(--content-padding-left-right);box-sizing:border-box;position:relative;display:flex;flex-direction:column;width:100%;min-width:320px;max-width:var(--content-max-width);margin:0 auto}.TDesign-doc-header__thumb{position:absolute;height:calc(100% - 1px);width:1200px;max-width:100%;right:0;top:0;border:0;z-index:450;visibility:var(--spline-visible)}.TDesign-doc-header__thumb.light{display:var(--theme-block-light-display)}.TDesign-doc-header__thumb.dark{display:var(--theme-block-dark-display)}.TDesign-doc-header__badge{max-width:100%;display:flex
|
|
7316
|
+
</svg>`, cs = ":host{width:100%;background-color:var(--bg-color-container);box-shadow:var(--header-box-shadow);position:relative}@media screen and (max-width: 960px){:host{--spline-visible: hidden;--inner-padding-y: 12px;--info-top: 14px;--title-font-size: 32px}}.TDesign-doc-header{height:var(--doc-header-height);padding-right:var(--content-padding-right)}.TDesign-doc-header__inner{padding:var(--inner-padding-y, 48px) var(--content-padding-left-right);box-sizing:border-box;position:relative;display:flex;flex-direction:column;width:100%;min-width:320px;max-width:var(--content-max-width);margin:0 auto}.TDesign-doc-header__thumb{position:absolute;height:calc(100% - 1px);width:1200px;max-width:100%;right:0;top:0;border:0;z-index:450;visibility:var(--spline-visible)}.TDesign-doc-header__thumb.light{display:var(--theme-block-light-display)}.TDesign-doc-header__thumb.dark{display:var(--theme-block-dark-display)}.TDesign-doc-header__badge{max-width:100%;display:flex}.TDesign-doc-header__badge img{margin-right:8px}.TDesign-doc-header__background{width:100%;position:absolute;left:0;bottom:0;height:88px;z-index:400;background:var(--bg-color-container);box-shadow:var(--header-box-shadow)}.TDesign-doc-header__content{display:flex;flex-direction:column;flex:1;position:relative;z-index:500}.TDesign-doc-header__info{position:relative;top:var(--info-top, 48px)}.TDesign-doc-header__info>div:first-child{display:flex;align-items:center;gap:16px}.TDesign-doc-header__info-title{font-size:var(--title-font-size, 48px);color:var(--text-primary);text-align:left;line-height:42px;margin:0;transition:top .2s var(--anim-time-fn-easing),opacity .2s linear,visibility .2s linear}.TDesign-doc-header__info-describe{position:relative;margin-top:16px;font-size:14px;color:var(--text-secondary);line-height:22px;width:100%;box-sizing:border-box;transition:all .2s linear}.TDesign-doc-header__info-describe-line{display:-webkit-box;-webkit-box-orient:vertical;line-clamp:2;-webkit-line-clamp:2;overflow:hidden;text-overflow:ellipsis;white-space:normal;margin-top:8px}#TDesign-doc-changelog__entry{all:unset;display:inline-flex;align-items:center;justify-content:center;gap:4px;height:24px;padding:2px 8px;font-size:12px;color:var(--brand-main);border:1px solid var(--brand-main);border-radius:3px;cursor:pointer}#TDesign-doc-changelog__entry:hover{color:var(--brand-main-hover);border:1px solid var(--brand-main-hover)}#TDesign-doc-changelog__entry i{display:flex}#TDesign-doc-changelog__entry span{min-width:48px}";
|
|
7317
7317
|
let En = null, To = null;
|
|
7318
7318
|
const ds = In();
|
|
7319
7319
|
function Ho(e, t) {
|
|
@@ -7352,8 +7352,8 @@ ie({
|
|
|
7352
7352
|
},
|
|
7353
7353
|
platform: "web",
|
|
7354
7354
|
changelog: {
|
|
7355
|
-
get: (e, t) =>
|
|
7356
|
-
set: (e, t) =>
|
|
7355
|
+
get: (e, t) => Je(t, !0),
|
|
7356
|
+
set: (e, t) => Je(t, !0)
|
|
7357
7357
|
},
|
|
7358
7358
|
mobileBodyStyle: jn,
|
|
7359
7359
|
docInfo: {
|
|
@@ -7396,8 +7396,8 @@ ie({
|
|
|
7396
7396
|
}
|
|
7397
7397
|
},
|
|
7398
7398
|
showIssue: {
|
|
7399
|
-
get: (e, t) =>
|
|
7400
|
-
set: (e, t) =>
|
|
7399
|
+
get: (e, t) => Je(t, !0),
|
|
7400
|
+
set: (e, t) => Je(t, !0)
|
|
7401
7401
|
},
|
|
7402
7402
|
render: (e) => {
|
|
7403
7403
|
const { changelog: t, docInfo: n, spline: o, showIssue: r } = e, i = { ...e.mobileBodyStyle }, a = On[o], s = customElements.get("td-doc-changelog"), c = () => {
|
|
@@ -7426,7 +7426,10 @@ ie({
|
|
|
7426
7426
|
` : S``}
|
|
7427
7427
|
</div>
|
|
7428
7428
|
<div class="TDesign-doc-header__info-describe">
|
|
7429
|
-
<
|
|
7429
|
+
<td-doc-popup placement="top-end" equal-width="true">
|
|
7430
|
+
<div class="TDesign-doc-header__info-describe-line" innerHTML="${n.desc}"></div>
|
|
7431
|
+
<div slot="content" innerHTML="${n.desc}"></div>
|
|
7432
|
+
</td-doc-popup>
|
|
7430
7433
|
</div>
|
|
7431
7434
|
` : S``}
|
|
7432
7435
|
</div>
|
|
@@ -7850,10 +7853,10 @@ ie({
|
|
|
7850
7853
|
`.css`${ks}`;
|
|
7851
7854
|
}
|
|
7852
7855
|
});
|
|
7853
|
-
var me = "top", He = "bottom", Pe = "right", be = "left", Nn = "auto",
|
|
7854
|
-
return e.concat([t + "-" +
|
|
7855
|
-
}, []), Ir = /* @__PURE__ */ [].concat(
|
|
7856
|
-
return e.concat([t, t + "-" +
|
|
7856
|
+
var me = "top", He = "bottom", Pe = "right", be = "left", Nn = "auto", Ct = [me, He, Pe, be], _e = "start", vt = "end", js = "clippingParents", Sr = "viewport", it = "popper", Ss = "reference", Oo = /* @__PURE__ */ Ct.reduce(function(e, t) {
|
|
7857
|
+
return e.concat([t + "-" + _e, t + "-" + vt]);
|
|
7858
|
+
}, []), Ir = /* @__PURE__ */ [].concat(Ct, [Nn]).reduce(function(e, t) {
|
|
7859
|
+
return e.concat([t, t + "-" + _e, t + "-" + vt]);
|
|
7857
7860
|
}, []), Is = "beforeRead", Ns = "read", Xs = "afterRead", Fs = "beforeMain", qs = "main", Gs = "afterMain", Us = "beforeWrite", Ks = "write", Vs = "afterWrite", Zs = [Is, Ns, Xs, Fs, qs, Gs, Us, Ks, Vs];
|
|
7858
7861
|
function Ee(e) {
|
|
7859
7862
|
return e ? (e.nodeName || "").toLowerCase() : null;
|
|
@@ -7926,7 +7929,7 @@ const Ws = {
|
|
|
7926
7929
|
function Oe(e) {
|
|
7927
7930
|
return e.split("-")[0];
|
|
7928
7931
|
}
|
|
7929
|
-
var Xe = Math.max, St = Math.min,
|
|
7932
|
+
var Xe = Math.max, St = Math.min, $e = Math.round;
|
|
7930
7933
|
function Mn() {
|
|
7931
7934
|
var e = navigator.userAgentData;
|
|
7932
7935
|
return e != null && e.brands && Array.isArray(e.brands) ? e.brands.map(function(t) {
|
|
@@ -7936,10 +7939,10 @@ function Mn() {
|
|
|
7936
7939
|
function Nr() {
|
|
7937
7940
|
return !/^((?!chrome|android).)*safari/i.test(Mn());
|
|
7938
7941
|
}
|
|
7939
|
-
function
|
|
7942
|
+
function et(e, t, n) {
|
|
7940
7943
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
7941
7944
|
var o = e.getBoundingClientRect(), r = 1, i = 1;
|
|
7942
|
-
t && De(e) && (r = e.offsetWidth > 0 &&
|
|
7945
|
+
t && De(e) && (r = e.offsetWidth > 0 && $e(o.width) / e.offsetWidth || 1, i = e.offsetHeight > 0 && $e(o.height) / e.offsetHeight || 1);
|
|
7943
7946
|
var a = qe(e) ? we(e) : window, s = a.visualViewport, c = !Nr() && n, h = (o.left + (c && s ? s.offsetLeft : 0)) / r, g = (o.top + (c && s ? s.offsetTop : 0)) / i, f = o.width / r, C = o.height / i;
|
|
7944
7947
|
return {
|
|
7945
7948
|
width: f,
|
|
@@ -7953,7 +7956,7 @@ function $e(e, t, n) {
|
|
|
7953
7956
|
};
|
|
7954
7957
|
}
|
|
7955
7958
|
function Fn(e) {
|
|
7956
|
-
var t =
|
|
7959
|
+
var t = et(e), n = e.offsetWidth, o = e.offsetHeight;
|
|
7957
7960
|
return Math.abs(t.width - n) <= 1 && (n = t.width), Math.abs(t.height - o) <= 1 && (o = t.height), {
|
|
7958
7961
|
x: e.offsetLeft,
|
|
7959
7962
|
y: e.offsetTop,
|
|
@@ -8019,7 +8022,7 @@ function $s(e) {
|
|
|
8019
8022
|
}
|
|
8020
8023
|
return null;
|
|
8021
8024
|
}
|
|
8022
|
-
function
|
|
8025
|
+
function wt(e) {
|
|
8023
8026
|
for (var t = we(e), n = Eo(e); n && _s(n) && Le(n).position === "static"; )
|
|
8024
8027
|
n = Eo(n);
|
|
8025
8028
|
return n && (Ee(n) === "html" || Ee(n) === "body" && Le(n).position === "static") ? t : n || $s(e) || t;
|
|
@@ -8027,11 +8030,11 @@ function Ct(e) {
|
|
|
8027
8030
|
function qn(e) {
|
|
8028
8031
|
return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
|
|
8029
8032
|
}
|
|
8030
|
-
function
|
|
8033
|
+
function dt(e, t, n) {
|
|
8031
8034
|
return Xe(e, St(t, n));
|
|
8032
8035
|
}
|
|
8033
8036
|
function el(e, t, n) {
|
|
8034
|
-
var o =
|
|
8037
|
+
var o = dt(e, t, n);
|
|
8035
8038
|
return o > n ? n : o;
|
|
8036
8039
|
}
|
|
8037
8040
|
function Fr() {
|
|
@@ -8053,12 +8056,12 @@ function Gr(e, t) {
|
|
|
8053
8056
|
var tl = function(t, n) {
|
|
8054
8057
|
return t = typeof t == "function" ? t(Object.assign({}, n.rects, {
|
|
8055
8058
|
placement: n.placement
|
|
8056
|
-
})) : t, qr(typeof t != "number" ? t : Gr(t,
|
|
8059
|
+
})) : t, qr(typeof t != "number" ? t : Gr(t, Ct));
|
|
8057
8060
|
};
|
|
8058
8061
|
function nl(e) {
|
|
8059
8062
|
var t, n = e.state, o = e.name, r = e.options, i = n.elements.arrow, a = n.modifiersData.popperOffsets, s = Oe(n.placement), c = qn(s), h = [be, Pe].indexOf(s) >= 0, g = h ? "height" : "width";
|
|
8060
8063
|
if (!(!i || !a)) {
|
|
8061
|
-
var f = tl(r.padding, n), C = Fn(i), w = c === "y" ? me : be, u = c === "y" ? He : Pe, l = n.rects.reference[g] + n.rects.reference[c] - a[c] - n.rects.popper[g], d = a[c] - n.rects.reference[c], v =
|
|
8064
|
+
var f = tl(r.padding, n), C = Fn(i), w = c === "y" ? me : be, u = c === "y" ? He : Pe, l = n.rects.reference[g] + n.rects.reference[c] - a[c] - n.rects.popper[g], d = a[c] - n.rects.reference[c], v = wt(i), p = v ? c === "y" ? v.clientHeight || 0 : v.clientWidth || 0 : 0, b = l / 2 - d / 2, y = f[w], D = p - C[g] - f[u], A = p / 2 - C[g] / 2 + b, H = dt(y, A, D), O = c;
|
|
8062
8065
|
n.modifiersData[o] = (t = {}, t[O] = H, t.centerOffset = H - A, t);
|
|
8063
8066
|
}
|
|
8064
8067
|
}
|
|
@@ -8075,7 +8078,7 @@ const rl = {
|
|
|
8075
8078
|
requires: ["popperOffsets"],
|
|
8076
8079
|
requiresIfExists: ["preventOverflow"]
|
|
8077
8080
|
};
|
|
8078
|
-
function
|
|
8081
|
+
function tt(e) {
|
|
8079
8082
|
return e.split("-")[1];
|
|
8080
8083
|
}
|
|
8081
8084
|
var il = {
|
|
@@ -8087,8 +8090,8 @@ var il = {
|
|
|
8087
8090
|
function al(e, t) {
|
|
8088
8091
|
var n = e.x, o = e.y, r = t.devicePixelRatio || 1;
|
|
8089
8092
|
return {
|
|
8090
|
-
x:
|
|
8091
|
-
y:
|
|
8093
|
+
x: $e(n * r) / r || 0,
|
|
8094
|
+
y: $e(o * r) / r || 0
|
|
8092
8095
|
};
|
|
8093
8096
|
}
|
|
8094
8097
|
function Mo(e) {
|
|
@@ -8102,8 +8105,8 @@ function Mo(e) {
|
|
|
8102
8105
|
w = d.x, l = d.y;
|
|
8103
8106
|
var v = a.hasOwnProperty("x"), p = a.hasOwnProperty("y"), b = be, y = me, D = window;
|
|
8104
8107
|
if (h) {
|
|
8105
|
-
var A =
|
|
8106
|
-
if (A === we(n) && (A = Se(n), Le(A).position !== "static" && s === "absolute" && (H = "scrollHeight", O = "scrollWidth")), A = A, r === me || (r === be || r === Pe) && i ===
|
|
8108
|
+
var A = wt(n), H = "clientHeight", O = "clientWidth";
|
|
8109
|
+
if (A === we(n) && (A = Se(n), Le(A).position !== "static" && s === "absolute" && (H = "scrollHeight", O = "scrollWidth")), A = A, r === me || (r === be || r === Pe) && i === vt) {
|
|
8107
8110
|
y = He;
|
|
8108
8111
|
var P = f && A === D && D.visualViewport ? D.visualViewport.height : (
|
|
8109
8112
|
// $FlowFixMe[prop-missing]
|
|
@@ -8111,7 +8114,7 @@ function Mo(e) {
|
|
|
8111
8114
|
);
|
|
8112
8115
|
l -= P - o.height, l *= c ? 1 : -1;
|
|
8113
8116
|
}
|
|
8114
|
-
if (r === be || (r === me || r === He) && i ===
|
|
8117
|
+
if (r === be || (r === me || r === He) && i === vt) {
|
|
8115
8118
|
b = Pe;
|
|
8116
8119
|
var x = f && A === D && D.visualViewport ? D.visualViewport.width : (
|
|
8117
8120
|
// $FlowFixMe[prop-missing]
|
|
@@ -8138,7 +8141,7 @@ function Mo(e) {
|
|
|
8138
8141
|
function sl(e) {
|
|
8139
8142
|
var t = e.state, n = e.options, o = n.gpuAcceleration, r = o === void 0 ? !0 : o, i = n.adaptive, a = i === void 0 ? !0 : i, s = n.roundOffsets, c = s === void 0 ? !0 : s, h = {
|
|
8140
8143
|
placement: Oe(t.placement),
|
|
8141
|
-
variation:
|
|
8144
|
+
variation: tt(t.placement),
|
|
8142
8145
|
popper: t.elements.popper,
|
|
8143
8146
|
popperRect: t.rects.popper,
|
|
8144
8147
|
gpuAcceleration: r,
|
|
@@ -8215,7 +8218,7 @@ function Gn(e) {
|
|
|
8215
8218
|
};
|
|
8216
8219
|
}
|
|
8217
8220
|
function Un(e) {
|
|
8218
|
-
return
|
|
8221
|
+
return et(Se(e)).left + Gn(e).scrollLeft;
|
|
8219
8222
|
}
|
|
8220
8223
|
function gl(e, t) {
|
|
8221
8224
|
var n = we(e), o = Se(e), r = n.visualViewport, i = o.clientWidth, a = o.clientHeight, s = 0, c = 0;
|
|
@@ -8247,13 +8250,13 @@ function Kn(e) {
|
|
|
8247
8250
|
function Ur(e) {
|
|
8248
8251
|
return ["html", "body", "#document"].indexOf(Ee(e)) >= 0 ? e.ownerDocument.body : De(e) && Kn(e) ? e : Ur(Xt(e));
|
|
8249
8252
|
}
|
|
8250
|
-
function
|
|
8253
|
+
function ut(e, t) {
|
|
8251
8254
|
var n;
|
|
8252
8255
|
t === void 0 && (t = []);
|
|
8253
8256
|
var o = Ur(e), r = o === ((n = e.ownerDocument) == null ? void 0 : n.body), i = we(o), a = r ? [i].concat(i.visualViewport || [], Kn(o) ? o : []) : o, s = t.concat(a);
|
|
8254
8257
|
return r ? s : (
|
|
8255
8258
|
// $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
|
|
8256
|
-
s.concat(
|
|
8259
|
+
s.concat(ut(Xt(a)))
|
|
8257
8260
|
);
|
|
8258
8261
|
}
|
|
8259
8262
|
function kn(e) {
|
|
@@ -8265,14 +8268,14 @@ function kn(e) {
|
|
|
8265
8268
|
});
|
|
8266
8269
|
}
|
|
8267
8270
|
function pl(e, t) {
|
|
8268
|
-
var n =
|
|
8271
|
+
var n = et(e, !1, t === "fixed");
|
|
8269
8272
|
return n.top = n.top + e.clientTop, n.left = n.left + e.clientLeft, n.bottom = n.top + e.clientHeight, n.right = n.left + e.clientWidth, n.width = e.clientWidth, n.height = e.clientHeight, n.x = n.left, n.y = n.top, n;
|
|
8270
8273
|
}
|
|
8271
8274
|
function Qo(e, t, n) {
|
|
8272
8275
|
return t === Sr ? kn(gl(e, n)) : qe(t) ? pl(t, n) : kn(hl(Se(e)));
|
|
8273
8276
|
}
|
|
8274
8277
|
function vl(e) {
|
|
8275
|
-
var t =
|
|
8278
|
+
var t = ut(Xt(e)), n = ["absolute", "fixed"].indexOf(Le(e).position) >= 0, o = n && De(e) ? wt(e) : e;
|
|
8276
8279
|
return qe(o) ? t.filter(function(r) {
|
|
8277
8280
|
return qe(r) && Xr(r, o) && Ee(r) !== "body";
|
|
8278
8281
|
}) : [];
|
|
@@ -8285,7 +8288,7 @@ function ml(e, t, n, o) {
|
|
|
8285
8288
|
return s.width = s.right - s.left, s.height = s.bottom - s.top, s.x = s.left, s.y = s.top, s;
|
|
8286
8289
|
}
|
|
8287
8290
|
function Kr(e) {
|
|
8288
|
-
var t = e.reference, n = e.element, o = e.placement, r = o ? Oe(o) : null, i = o ?
|
|
8291
|
+
var t = e.reference, n = e.element, o = e.placement, r = o ? Oe(o) : null, i = o ? tt(o) : null, a = t.x + t.width / 2 - n.width / 2, s = t.y + t.height / 2 - n.height / 2, c;
|
|
8289
8292
|
switch (r) {
|
|
8290
8293
|
case me:
|
|
8291
8294
|
c = {
|
|
@@ -8321,29 +8324,29 @@ function Kr(e) {
|
|
|
8321
8324
|
if (h != null) {
|
|
8322
8325
|
var g = h === "y" ? "height" : "width";
|
|
8323
8326
|
switch (i) {
|
|
8324
|
-
case
|
|
8327
|
+
case _e:
|
|
8325
8328
|
c[h] = c[h] - (t[g] / 2 - n[g] / 2);
|
|
8326
8329
|
break;
|
|
8327
|
-
case
|
|
8330
|
+
case vt:
|
|
8328
8331
|
c[h] = c[h] + (t[g] / 2 - n[g] / 2);
|
|
8329
8332
|
break;
|
|
8330
8333
|
}
|
|
8331
8334
|
}
|
|
8332
8335
|
return c;
|
|
8333
8336
|
}
|
|
8334
|
-
function
|
|
8337
|
+
function mt(e, t) {
|
|
8335
8338
|
t === void 0 && (t = {});
|
|
8336
|
-
var n = t, o = n.placement, r = o === void 0 ? e.placement : o, i = n.strategy, a = i === void 0 ? e.strategy : i, s = n.boundary, c = s === void 0 ? js : s, h = n.rootBoundary, g = h === void 0 ? Sr : h, f = n.elementContext, C = f === void 0 ?
|
|
8339
|
+
var n = t, o = n.placement, r = o === void 0 ? e.placement : o, i = n.strategy, a = i === void 0 ? e.strategy : i, s = n.boundary, c = s === void 0 ? js : s, h = n.rootBoundary, g = h === void 0 ? Sr : h, f = n.elementContext, C = f === void 0 ? it : f, w = n.altBoundary, u = w === void 0 ? !1 : w, l = n.padding, d = l === void 0 ? 0 : l, v = qr(typeof d != "number" ? d : Gr(d, Ct)), p = C === it ? Ss : it, b = e.rects.popper, y = e.elements[u ? p : C], D = ml(qe(y) ? y : y.contextElement || Se(e.elements.popper), c, g, a), A = et(e.elements.reference), H = Kr({
|
|
8337
8340
|
reference: A,
|
|
8338
8341
|
element: b,
|
|
8339
8342
|
placement: r
|
|
8340
|
-
}), O = kn(Object.assign({}, b, H)), P = C ===
|
|
8343
|
+
}), O = kn(Object.assign({}, b, H)), P = C === it ? O : A, x = {
|
|
8341
8344
|
top: D.top - P.top + v.top,
|
|
8342
8345
|
bottom: P.bottom - D.bottom + v.bottom,
|
|
8343
8346
|
left: D.left - P.left + v.left,
|
|
8344
8347
|
right: P.right - D.right + v.right
|
|
8345
8348
|
}, B = e.modifiersData.offset;
|
|
8346
|
-
if (C ===
|
|
8349
|
+
if (C === it && B) {
|
|
8347
8350
|
var k = B[r];
|
|
8348
8351
|
Object.keys(x).forEach(function(T) {
|
|
8349
8352
|
var M = [Pe, He].indexOf(T) >= 0 ? 1 : -1, R = [me, He].indexOf(T) >= 0 ? "y" : "x";
|
|
@@ -8354,14 +8357,14 @@ function vt(e, t) {
|
|
|
8354
8357
|
}
|
|
8355
8358
|
function bl(e, t) {
|
|
8356
8359
|
t === void 0 && (t = {});
|
|
8357
|
-
var n = t, o = n.placement, r = n.boundary, i = n.rootBoundary, a = n.padding, s = n.flipVariations, c = n.allowedAutoPlacements, h = c === void 0 ? Ir : c, g =
|
|
8358
|
-
return
|
|
8359
|
-
}) :
|
|
8360
|
+
var n = t, o = n.placement, r = n.boundary, i = n.rootBoundary, a = n.padding, s = n.flipVariations, c = n.allowedAutoPlacements, h = c === void 0 ? Ir : c, g = tt(o), f = g ? s ? Oo : Oo.filter(function(u) {
|
|
8361
|
+
return tt(u) === g;
|
|
8362
|
+
}) : Ct, C = f.filter(function(u) {
|
|
8360
8363
|
return h.indexOf(u) >= 0;
|
|
8361
8364
|
});
|
|
8362
8365
|
C.length === 0 && (C = f);
|
|
8363
8366
|
var w = C.reduce(function(u, l) {
|
|
8364
|
-
return u[l] =
|
|
8367
|
+
return u[l] = mt(e, {
|
|
8365
8368
|
placement: l,
|
|
8366
8369
|
boundary: r,
|
|
8367
8370
|
rootBoundary: i,
|
|
@@ -8391,7 +8394,7 @@ function wl(e) {
|
|
|
8391
8394
|
allowedAutoPlacements: l
|
|
8392
8395
|
}) : Y);
|
|
8393
8396
|
}, []), D = t.rects.reference, A = t.rects.popper, H = /* @__PURE__ */ new Map(), O = !0, P = y[0], x = 0; x < y.length; x++) {
|
|
8394
|
-
var B = y[x], k = Oe(B), T =
|
|
8397
|
+
var B = y[x], k = Oe(B), T = tt(B) === _e, M = [me, He].indexOf(k) >= 0, R = M ? "width" : "height", j = mt(t, {
|
|
8395
8398
|
placement: B,
|
|
8396
8399
|
boundary: g,
|
|
8397
8400
|
rootBoundary: f,
|
|
@@ -8453,9 +8456,9 @@ function zo(e) {
|
|
|
8453
8456
|
});
|
|
8454
8457
|
}
|
|
8455
8458
|
function xl(e) {
|
|
8456
|
-
var t = e.state, n = e.name, o = t.rects.reference, r = t.rects.popper, i = t.modifiersData.preventOverflow, a =
|
|
8459
|
+
var t = e.state, n = e.name, o = t.rects.reference, r = t.rects.popper, i = t.modifiersData.preventOverflow, a = mt(t, {
|
|
8457
8460
|
elementContext: "reference"
|
|
8458
|
-
}), s =
|
|
8461
|
+
}), s = mt(t, {
|
|
8459
8462
|
altBoundary: !0
|
|
8460
8463
|
}), c = Lo(a, o), h = Lo(s, r, i), g = zo(c), f = zo(h);
|
|
8461
8464
|
t.modifiersData[n] = {
|
|
@@ -8519,12 +8522,12 @@ function Ol(e) {
|
|
|
8519
8522
|
return e === "x" ? "y" : "x";
|
|
8520
8523
|
}
|
|
8521
8524
|
function El(e) {
|
|
8522
|
-
var t = e.state, n = e.options, o = e.name, r = n.mainAxis, i = r === void 0 ? !0 : r, a = n.altAxis, s = a === void 0 ? !1 : a, c = n.boundary, h = n.rootBoundary, g = n.altBoundary, f = n.padding, C = n.tether, w = C === void 0 ? !0 : C, u = n.tetherOffset, l = u === void 0 ? 0 : u, d =
|
|
8525
|
+
var t = e.state, n = e.options, o = e.name, r = n.mainAxis, i = r === void 0 ? !0 : r, a = n.altAxis, s = a === void 0 ? !1 : a, c = n.boundary, h = n.rootBoundary, g = n.altBoundary, f = n.padding, C = n.tether, w = C === void 0 ? !0 : C, u = n.tetherOffset, l = u === void 0 ? 0 : u, d = mt(t, {
|
|
8523
8526
|
boundary: c,
|
|
8524
8527
|
rootBoundary: h,
|
|
8525
8528
|
padding: f,
|
|
8526
8529
|
altBoundary: g
|
|
8527
|
-
}), v = Oe(t.placement), p =
|
|
8530
|
+
}), v = Oe(t.placement), p = tt(t.placement), b = !p, y = qn(v), D = Ol(y), A = t.modifiersData.popperOffsets, H = t.rects.reference, O = t.rects.popper, P = typeof l == "function" ? l(Object.assign({}, t.rects, {
|
|
8528
8531
|
placement: t.placement
|
|
8529
8532
|
})) : l, x = typeof P == "number" ? {
|
|
8530
8533
|
mainAxis: P,
|
|
@@ -8538,14 +8541,14 @@ function El(e) {
|
|
|
8538
8541
|
};
|
|
8539
8542
|
if (A) {
|
|
8540
8543
|
if (i) {
|
|
8541
|
-
var T, M = y === "y" ? me : be, R = y === "y" ? He : Pe, j = y === "y" ? "height" : "width", z = A[y], F = z + d[M], Z = z - d[R], U = w ? -O[j] / 2 : 0, G = p ===
|
|
8544
|
+
var T, M = y === "y" ? me : be, R = y === "y" ? He : Pe, j = y === "y" ? "height" : "width", z = A[y], F = z + d[M], Z = z - d[R], U = w ? -O[j] / 2 : 0, G = p === _e ? H[j] : O[j], W = p === _e ? -O[j] : -H[j], K = t.elements.arrow, oe = w && K ? Fn(K) : {
|
|
8542
8545
|
width: 0,
|
|
8543
8546
|
height: 0
|
|
8544
|
-
}, Y = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Fr(), re = Y[M], V = Y[R], ee =
|
|
8547
|
+
}, Y = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Fr(), re = Y[M], V = Y[R], ee = dt(0, H[j], oe[j]), ae = b ? H[j] / 2 - U - ee - re - x.mainAxis : G - ee - re - x.mainAxis, se = b ? -H[j] / 2 + U + ee + V + x.mainAxis : W + ee + V + x.mainAxis, ne = t.elements.arrow && wt(t.elements.arrow), de = ne ? y === "y" ? ne.clientTop || 0 : ne.clientLeft || 0 : 0, ce = (T = B == null ? void 0 : B[y]) != null ? T : 0, he = z + ae - ce - de, Ce = z + se - ce, Me = dt(w ? St(F, he) : F, z, w ? Xe(Z, Ce) : Z);
|
|
8545
8548
|
A[y] = Me, k[y] = Me - z;
|
|
8546
8549
|
}
|
|
8547
8550
|
if (s) {
|
|
8548
|
-
var pe, Ie = y === "x" ? me : be, ye = y === "x" ? He : Pe, xe = A[D], ke = D === "y" ? "height" : "width", m = xe + d[Ie], E = xe - d[ye], Q = [me, be].indexOf(v) !== -1, N = (pe = B == null ? void 0 : B[D]) != null ? pe : 0, _ = Q ? m : xe - H[ke] - O[ke] - N + x.altAxis, q = Q ? xe + H[ke] + O[ke] - N - x.altAxis : E, fe = w && Q ? el(_, xe, q) :
|
|
8551
|
+
var pe, Ie = y === "x" ? me : be, ye = y === "x" ? He : Pe, xe = A[D], ke = D === "y" ? "height" : "width", m = xe + d[Ie], E = xe - d[ye], Q = [me, be].indexOf(v) !== -1, N = (pe = B == null ? void 0 : B[D]) != null ? pe : 0, _ = Q ? m : xe - H[ke] - O[ke] - N + x.altAxis, q = Q ? xe + H[ke] + O[ke] - N - x.altAxis : E, fe = w && Q ? el(_, xe, q) : dt(w ? _ : m, xe, w ? q : E);
|
|
8549
8552
|
A[D] = fe, k[D] = fe - xe;
|
|
8550
8553
|
}
|
|
8551
8554
|
t.modifiersData[o] = k;
|
|
@@ -8568,12 +8571,12 @@ function Ql(e) {
|
|
|
8568
8571
|
return e === we(e) || !De(e) ? Gn(e) : kl(e);
|
|
8569
8572
|
}
|
|
8570
8573
|
function Ll(e) {
|
|
8571
|
-
var t = e.getBoundingClientRect(), n =
|
|
8574
|
+
var t = e.getBoundingClientRect(), n = $e(t.width) / e.offsetWidth || 1, o = $e(t.height) / e.offsetHeight || 1;
|
|
8572
8575
|
return n !== 1 || o !== 1;
|
|
8573
8576
|
}
|
|
8574
8577
|
function zl(e, t, n) {
|
|
8575
8578
|
n === void 0 && (n = !1);
|
|
8576
|
-
var o = De(t), r = De(t) && Ll(t), i = Se(t), a =
|
|
8579
|
+
var o = De(t), r = De(t) && Ll(t), i = Se(t), a = et(e, r, n), s = {
|
|
8577
8580
|
scrollLeft: 0,
|
|
8578
8581
|
scrollTop: 0
|
|
8579
8582
|
}, c = {
|
|
@@ -8581,7 +8584,7 @@ function zl(e, t, n) {
|
|
|
8581
8584
|
y: 0
|
|
8582
8585
|
};
|
|
8583
8586
|
return (o || !o && !n) && ((Ee(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
|
|
8584
|
-
Kn(i)) && (s = Ql(t)), De(t) ? (c =
|
|
8587
|
+
Kn(i)) && (s = Ql(t)), De(t) ? (c = et(t, !0), c.x += t.clientLeft, c.y += t.clientTop) : i && (c.x = Un(i))), {
|
|
8585
8588
|
x: a.left + s.scrollLeft - c.x,
|
|
8586
8589
|
y: a.top + s.scrollTop - c.y,
|
|
8587
8590
|
width: a.width,
|
|
@@ -8670,8 +8673,8 @@ function Nl(e) {
|
|
|
8670
8673
|
setOptions: function(v) {
|
|
8671
8674
|
var p = typeof v == "function" ? v(g.options) : v;
|
|
8672
8675
|
l(), g.options = Object.assign({}, i, g.options, p), g.scrollParents = {
|
|
8673
|
-
reference: qe(s) ?
|
|
8674
|
-
popper:
|
|
8676
|
+
reference: qe(s) ? ut(s) : s.contextElement ? ut(s.contextElement) : [],
|
|
8677
|
+
popper: ut(c)
|
|
8675
8678
|
};
|
|
8676
8679
|
var b = jl(Il([].concat(o, g.options.modifiers)));
|
|
8677
8680
|
return g.orderedModifiers = b.filter(function(y) {
|
|
@@ -8688,7 +8691,7 @@ function Nl(e) {
|
|
|
8688
8691
|
var v = g.elements, p = v.reference, b = v.popper;
|
|
8689
8692
|
if (jo(p, b)) {
|
|
8690
8693
|
g.rects = {
|
|
8691
|
-
reference: zl(p,
|
|
8694
|
+
reference: zl(p, wt(b), g.options.strategy === "fixed"),
|
|
8692
8695
|
popper: Fn(b)
|
|
8693
8696
|
}, g.reset = !1, g.placement = g.options.placement, g.orderedModifiers.forEach(function(x) {
|
|
8694
8697
|
return g.modifiersData[x.name] = Object.assign({}, x.data);
|
|
@@ -8765,32 +8768,39 @@ ie({
|
|
|
8765
8768
|
portalStyle: "",
|
|
8766
8769
|
placement: "bottom-end",
|
|
8767
8770
|
triggerType: "hover",
|
|
8771
|
+
equalWidth: {
|
|
8772
|
+
get: (e, t) => Je(t, !1),
|
|
8773
|
+
set: (e, t) => Je(t, !1)
|
|
8774
|
+
},
|
|
8768
8775
|
visible: {
|
|
8769
8776
|
get: (e, t) => t || !1,
|
|
8770
8777
|
set: (e, t) => t,
|
|
8771
8778
|
connect: (e) => {
|
|
8772
8779
|
const { reference: t, placement: n } = e;
|
|
8780
|
+
let o;
|
|
8773
8781
|
requestAnimationFrame(() => {
|
|
8774
8782
|
e.portals = document.getElementById("__td_portals__"), e.portals || (e.portals = document.createElement("div"), e.portals.id = "__td_portals__", document.body.appendChild(e.portals));
|
|
8775
|
-
const
|
|
8776
|
-
if (!
|
|
8777
|
-
const
|
|
8778
|
-
e.portal = document.createElement("td-portal"), e.portal.className = e.portalClass, e.portal.innerHTML =
|
|
8779
|
-
const
|
|
8783
|
+
const i = e.querySelector('[slot="content"]');
|
|
8784
|
+
if (!i) return;
|
|
8785
|
+
const a = `<style>${e.portalStyle}</style>`;
|
|
8786
|
+
e.portal = document.createElement("td-portal"), e.portal.className = e.portalClass, e.portal.innerHTML = a, e.portal.appendChild(i), e.portal.addEventListener("click", (s) => So(e)), e.portal.addEventListener("mouseenter", () => Pt(e, "enter")), e.portal.addEventListener("mouseleave", () => Pt(e, "leave")), e.portals.appendChild(e.portal), requestAnimationFrame(() => {
|
|
8787
|
+
const s = ["top", "bottom"].some((c) => n.includes(c));
|
|
8780
8788
|
e.popper = Fl(t, e.portal, {
|
|
8781
8789
|
placement: n,
|
|
8782
|
-
modifiers: [{ name: "offset", options: { offset:
|
|
8783
|
-
}),
|
|
8790
|
+
modifiers: [{ name: "offset", options: { offset: s ? [0, 8] : [0, 16] } }]
|
|
8791
|
+
}), s && (e.equalWidth ? e.popper.state.styles.popper.width = `${t.offsetWidth}px` : e.popper.state.styles.popper.minWidth = `${t.offsetWidth}px`), o = new window.ResizeObserver(() => {
|
|
8792
|
+
e.popper && s && (e.equalWidth ? e.popper.state.styles.popper.width = `${t.offsetWidth}px` : e.popper.state.styles.popper.minWidth = `${t.offsetWidth}px`, e.popper.update());
|
|
8793
|
+
}), o.observe(t);
|
|
8784
8794
|
});
|
|
8785
8795
|
});
|
|
8786
|
-
function
|
|
8787
|
-
var
|
|
8788
|
-
const
|
|
8789
|
-
!t || e.contains(
|
|
8790
|
-
}
|
|
8791
|
-
return document.addEventListener("click",
|
|
8792
|
-
var
|
|
8793
|
-
(
|
|
8796
|
+
function r(i) {
|
|
8797
|
+
var s;
|
|
8798
|
+
const a = ((s = i.composedPath) == null ? void 0 : s.call(i)) || i.path || [];
|
|
8799
|
+
!t || e.contains(a[0]) || (e.visible = !1, Te(e, "visible-change", { detail: { visible: e.visible } }));
|
|
8800
|
+
}
|
|
8801
|
+
return document.addEventListener("click", r), () => {
|
|
8802
|
+
var i, a, s;
|
|
8803
|
+
(a = (i = e.portals) == null ? void 0 : i.removeChild) == null || a.call(i, e.portal), document.removeEventListener("click", r), (s = o == null ? void 0 : o.disconnect) == null || s.call(o);
|
|
8794
8804
|
};
|
|
8795
8805
|
},
|
|
8796
8806
|
observe: (e, t) => {
|
|
@@ -9482,9 +9492,9 @@ function Vr() {
|
|
|
9482
9492
|
}
|
|
9483
9493
|
}, Bt;
|
|
9484
9494
|
}
|
|
9485
|
-
var an = {},
|
|
9495
|
+
var an = {}, at = {}, Zo;
|
|
9486
9496
|
function _l() {
|
|
9487
|
-
if (Zo) return
|
|
9497
|
+
if (Zo) return at;
|
|
9488
9498
|
Zo = 1;
|
|
9489
9499
|
const e = new Uint8Array(512), t = new Uint8Array(256);
|
|
9490
9500
|
return function() {
|
|
@@ -9493,14 +9503,14 @@ function _l() {
|
|
|
9493
9503
|
e[r] = o, t[o] = r, o <<= 1, o & 256 && (o ^= 285);
|
|
9494
9504
|
for (let r = 255; r < 512; r++)
|
|
9495
9505
|
e[r] = e[r - 255];
|
|
9496
|
-
}(),
|
|
9506
|
+
}(), at.log = function(o) {
|
|
9497
9507
|
if (o < 1) throw new Error("log(" + o + ")");
|
|
9498
9508
|
return t[o];
|
|
9499
|
-
},
|
|
9509
|
+
}, at.exp = function(o) {
|
|
9500
9510
|
return e[o];
|
|
9501
|
-
},
|
|
9511
|
+
}, at.mul = function(o, r) {
|
|
9502
9512
|
return o === 0 || r === 0 ? 0 : e[t[o] + t[r]];
|
|
9503
|
-
},
|
|
9513
|
+
}, at;
|
|
9504
9514
|
}
|
|
9505
9515
|
var Yo;
|
|
9506
9516
|
function $l() {
|
|
@@ -11693,7 +11703,7 @@ function yc() {
|
|
|
11693
11703
|
}(xn)), xn.exports;
|
|
11694
11704
|
}
|
|
11695
11705
|
var xc = yc();
|
|
11696
|
-
const
|
|
11706
|
+
const nt = /* @__PURE__ */ Sn(xc), Ac = 'code[class*=language-],pre[class*=language-]{text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:1em;line-height:1.5em;-moz-tab-size:4;tab-size:4;-webkit-hyphens:none;hyphens:none}code[class*=language-]::selection,pre[class*=language-]::selection,code[class*=language-] ::selection,pre[class*=language-] ::selection{background:#d6dbe3;color:#263238}:not(pre)>code[class*=language-]{white-space:normal;border-radius:.2em;padding:.1em}pre[class*=language-]{overflow:auto;position:relative}.language-css>code,.language-sass>code,.language-scss>code{color:#c24c08}[class*=language-] .namespace{opacity:.7}.token.atrule{color:#6d3bac}.token.attr-name{color:#007edf}.token.attr-value,.token.attribute{color:#d29c00}.token.boolean{color:#6d3bac}.token.builtin,.token.cdata,.token.char,.token.class{color:#007edf}.token.class-name{color:#003cbf}.token.comment{color:#97a3b7}.token.constant{color:#6d3bac}.token.deleted{color:#b01531}.token.doctype{color:#97a3b7}.token.entity{color:#b01531}.token.function{color:#6d3bac}.token.hexcode{color:#c24c08}.token.id,.token.important{color:#6d3bac;font-weight:700}.token.inserted{color:#007edf}.token.keyword{color:#6d3bac}.token.number{color:#c24c08}.token.operator{color:#007edf}.token.prolog{color:#97a3b7}.token.property{color:#007edf}.token.pseudo-class,.token.pseudo-element{color:#d29c00}.token.punctuation{color:#007edf}.token.regex{color:#003cbf}.token.selector{color:#b01531}.token.string{color:#d29c00}.token.symbol{color:#6d3bac}.token.tag{color:#b01531}.token.unit{color:#c24c08}.token.url,.token.variable{color:#b01531}:root[theme-mode=dark] code[class*=language-],:root[theme-mode=dark] pre[class*=language-]{text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:1em;line-height:1.5em;-moz-tab-size:4;tab-size:4;-webkit-hyphens:none;hyphens:none}:root[theme-mode=dark] code[class*=language-]::selection,:root[theme-mode=dark] pre[class*=language-]::selection,:root[theme-mode=dark] code[class*=language-] ::selection,:root[theme-mode=dark] pre[class*=language-] ::selection{background:#d6dbe3;color:#263238}:root[theme-mode=dark] :not(pre)>code[class*=language-]{white-space:normal;border-radius:.2em;padding:.1em}:root[theme-mode=dark] pre[class*=language-]{overflow:auto;position:relative}:root[theme-mode=dark] .language-css>code,:root[theme-mode=dark] .language-sass>code,:root[theme-mode=dark] .language-scss>code{color:#f2995f}:root[theme-mode=dark] [class*=language-] .namespace{opacity:.7}:root[theme-mode=dark] .token.atrule{color:#ae78f0}:root[theme-mode=dark] .token.attr-name{color:#3280ff}:root[theme-mode=dark] .token.attr-value{color:#fbca25}:root[theme-mode=dark] .token.attribute{color:#fbca25}:root[theme-mode=dark] .token.boolean{color:#ae78f0}:root[theme-mode=dark] .token.builtin{color:#3280ff}:root[theme-mode=dark] .token.cdata{color:#3280ff}:root[theme-mode=dark] .token.char{color:#3280ff}:root[theme-mode=dark] .token.class{color:#3280ff}:root[theme-mode=dark] .token.class-name{color:#5cc5fc}:root[theme-mode=dark] .token.comment{color:#97a3b7}:root[theme-mode=dark] .token.constant{color:#ae78f0}:root[theme-mode=dark] .token.deleted{color:#48c79c}:root[theme-mode=dark] .token.doctype{color:#97a3b7}:root[theme-mode=dark] .token.entity{color:#48c79c}:root[theme-mode=dark] .token.function{color:#ae78f0}:root[theme-mode=dark] .token.hexcode{color:#f2995f}:root[theme-mode=dark] .token.id{color:#ae78f0;font-weight:700}:root[theme-mode=dark] .token.important{color:#f6c;font-weight:700}:root[theme-mode=dark] .token.inserted{color:#3280ff}:root[theme-mode=dark] .token.keyword{color:#f6c}:root[theme-mode=dark] .token.number{color:#f2995f}:root[theme-mode=dark] .token.operator{color:#3280ff}:root[theme-mode=dark] .token.prolog{color:#97a3b7}:root[theme-mode=dark] .token.property{color:#3280ff}:root[theme-mode=dark] .token.pseudo-class{color:#fbca25}:root[theme-mode=dark] .token.pseudo-element{color:#fbca25}:root[theme-mode=dark] .token.punctuation{color:#3280ff}:root[theme-mode=dark] .token.regex{color:#5cc5fc}:root[theme-mode=dark] .token.selector{color:#f36d78}:root[theme-mode=dark] .token.string{color:#fbca25}:root[theme-mode=dark] .token.symbol{color:#f6c}:root[theme-mode=dark] .token.tag{color:#48c79c}:root[theme-mode=dark] .token.unit{color:#f2995f}:root[theme-mode=dark] .token.url{color:#48c79c}:root[theme-mode=dark] .token.variable{color:#48c79c}.TDesign-doc-demo{margin:24px 0 48px;background-color:var(--bg-color-demo);color:var(--text-primary);border:1px solid var(--component-border);border-radius:6px}.TDesign-doc-demo.open{background:var(--bg-color-code)}.TDesign-doc-demo.open .TDesign-doc-demo__footer{border-radius:6px}.TDesign-doc-demo.open .TDesign-doc-demo__btns{position:relative}.TDesign-doc-demo.open .TDesign-doc-demo__btns:after{content:"";width:100%;height:20px;position:absolute;top:100%;left:0;z-index:1;background:var(--bg-color-code-linear)}.TDesign-doc-demo.open .TDesign-doc-demo__btns .action:hover{background-color:var(--bg-color-component-hover)}.TDesign-doc-demo__footer{border-radius:0 0 5px 5px}.TDesign-doc-demo__btns{height:48px;padding:8px;display:flex;justify-content:flex-end;column-gap:8px;align-items:center;box-sizing:border-box}.TDesign-doc-demo__btns .action{height:32px;width:32px;padding:8px;box-sizing:border-box;border-radius:var(--border-radius);cursor:pointer;-webkit-user-select:none;user-select:none;transition:all .1s;display:inline-flex;color:var(--text-secondary)}.TDesign-doc-demo__btns .action:hover{color:var(--text-primary);background-color:var(--bg-color-demo-hover)}.TDesign-doc-demo__btns .action.active{color:var(--text-primary);background-color:var(--bg-color-demo-select)}.TDesign-doc-demo__code{border-radius:0 0 6px 6px;overflow:hidden;max-height:560px}.TDesign-doc-demo__code pre{margin:0;padding:20px 24px 36px;max-height:560px;box-sizing:border-box;overflow:auto;background:var(--bg-color-code);color:var(--text-primary);border-top:1px solid var(--component-border)}.TDesign-doc-demo__code pre:hover::-webkit-scrollbar-thumb{background-color:var(--bg-color-scroll)}.TDesign-doc-demo__code pre::-webkit-scrollbar{width:12px;height:12px;background:transparent}.TDesign-doc-demo__code pre::-webkit-scrollbar-corner{width:0}.TDesign-doc-demo__code pre::-webkit-scrollbar-thumb{border-radius:6px;border:4px solid transparent;background-clip:content-box;background-color:transparent}.TDesign-doc-demo-tabs{display:flex;align-items:center;justify-content:center;height:calc(var(--block-base-width) * 3);box-sizing:border-box;cursor:pointer;border-top:1px solid var(--component-border);padding:4px 0;position:relative}.TDesign-doc-demo-tabs__active{height:2px;width:180px;background-color:var(--text-interactive);position:absolute;left:0;bottom:1px;transition:all var(--anim-time-fn-easing) var(--anim-duration-moderate)}.TDesign-doc-demo-tabs__item+.TDesign-doc-demo-tabs__item{margin-left:8px}.TDesign-doc-demo-tabs__item{margin:4px;width:188px;text-align:center;padding:4px 0;font-size:var(--block-base-width);box-sizing:border-box;border-radius:var(--border-radius);color:var(--text-secondary);word-break:keep-all;white-space:nowrap;transition:background .2s}.TDesign-doc-demo-tabs__item:hover,.TDesign-doc-demo-tabs__item.active{color:var(--text-interactive)}.TDesign-doc-demo-tabs__item:hover{background:var(--bg-color-demo-hover)}', Wr = `<svg width="18" height="16" viewBox="0 0 18 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
11697
11707
|
<path fill="currentColor" d="M10.3736 0.498413L11.581 0.821937L7.69869 15.3108L6.49128 14.9873L10.3736 0.498413Z" />
|
|
11698
11708
|
<path fill="currentColor" d="M13.687 2.66028L17.3046 6.79909C17.8786 7.45583 17.9195 8.41353 17.4255 9.11321L17.3115 9.25899L13.6894 13.4505L12.7436 12.6332C12.7436 12.6332 16.645 8.25979 16.5103 8.0325L12.7459 3.4829L13.687 2.66028Z" />
|
|
11699
11709
|
<path fill="currentColor" d="M0.667582 6.90809L3.84161 2.67255L4.8419 3.42215L1.51505 7.99998C1.41314 8.20784 4.8419 12.6428 4.8419 12.6428L3.84161 13.3924L0.667582 9.1569L0.5612 8.99891C0.171134 8.35104 0.206595 7.52325 0.667582 6.90809Z" />
|
|
@@ -12220,7 +12230,7 @@ ie({
|
|
|
12220
12230
|
const h = typeof s == "string" ? s.split(",") : [], g = h.length > 0 && h.filter((D) => {
|
|
12221
12231
|
var A, H;
|
|
12222
12232
|
return ((A = e.dataset) == null ? void 0 : A[D]) || ((H = e.dataset) == null ? void 0 : H[D.toLocaleLowerCase()]);
|
|
12223
|
-
}).length == h.length, f = h[a] || "", C = ((v = e.dataset) == null ? void 0 : v[f]) || ((p = e.dataset) == null ? void 0 : p[f.toLocaleLowerCase()]) || t, w =
|
|
12233
|
+
}).length == h.length, f = h[a] || "", C = ((v = e.dataset) == null ? void 0 : v[f]) || ((p = e.dataset) == null ? void 0 : p[f.toLocaleLowerCase()]) || t, w = nt.highlight(C, nt.languages[n], n);
|
|
12224
12234
|
e.currentRenderCode = C;
|
|
12225
12235
|
const u = c && h.length ? c[h[a]] : {}, l = {
|
|
12226
12236
|
transitionDuration: ".2s",
|
|
@@ -12410,7 +12420,7 @@ ie({
|
|
|
12410
12420
|
set: (e, t) => t
|
|
12411
12421
|
},
|
|
12412
12422
|
render: (e) => {
|
|
12413
|
-
const { code: t, language: n, showCode: o, configList: r, panelList: i, panel: a } = e, s =
|
|
12423
|
+
const { code: t, language: n, showCode: o, configList: r, panelList: i, panel: a } = e, s = nt.highlight(t, nt.languages[n], n), c = {
|
|
12414
12424
|
transitionDuration: ".2s",
|
|
12415
12425
|
maxHeight: o ? "240px" : 0,
|
|
12416
12426
|
transitionTimingFunction: o ? "cubic-bezier(.82, 0, 1, .9)" : "ease"
|
|
@@ -12501,7 +12511,7 @@ ie({
|
|
|
12501
12511
|
}
|
|
12502
12512
|
},
|
|
12503
12513
|
render: (e) => {
|
|
12504
|
-
const { panel: t } = e, { slotsName: n, slotsContentMap: o } = Ic(e), r = o[t], i =
|
|
12514
|
+
const { panel: t } = e, { slotsName: n, slotsContentMap: o } = Ic(e), r = o[t], i = nt.highlight(r.content, nt.languages[r.lang], r.lang);
|
|
12505
12515
|
return S`
|
|
12506
12516
|
<div class="TDesign-code-block">
|
|
12507
12517
|
<td-doc-copy code="${r.content}"></td-doc-copy>
|