@tdesign/site-components 0.18.0-alpha.2 → 0.18.0-alpha.3
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.es.js +200 -199
- package/lib/site.umd.js +2 -1
- package/package.json +1 -1
package/lib/site.es.js
CHANGED
|
@@ -1077,10 +1077,10 @@ function Vi(e, t, n, o) {
|
|
|
1077
1077
|
}
|
|
1078
1078
|
return Object.assign(r, Gi);
|
|
1079
1079
|
}
|
|
1080
|
-
function
|
|
1080
|
+
function R(e, ...t) {
|
|
1081
1081
|
return Vi(e, t, !1, !1);
|
|
1082
1082
|
}
|
|
1083
|
-
Object.freeze(Object.assign(
|
|
1083
|
+
Object.freeze(Object.assign(R, Ii));
|
|
1084
1084
|
const Et = /* @__PURE__ */ new Map(), po = /* @__PURE__ */ new Map();
|
|
1085
1085
|
let Zi = null;
|
|
1086
1086
|
const Yi = (() => {
|
|
@@ -1300,23 +1300,23 @@ function Rt(e, t, n) {
|
|
|
1300
1300
|
t.preventDefault(), n.status && (location.href = n.path);
|
|
1301
1301
|
}
|
|
1302
1302
|
function jt(e) {
|
|
1303
|
-
if (e === 0) return
|
|
1304
|
-
if (e === 1) return
|
|
1305
|
-
if (e === 2) return
|
|
1306
|
-
if (e === 3) return
|
|
1307
|
-
if (e === 4) return
|
|
1303
|
+
if (e === 0) return R`<span class="disable-tag">待上线</span>`;
|
|
1304
|
+
if (e === 1) return R`<span class="stable-tag">Stable</span>`;
|
|
1305
|
+
if (e === 2) return R`<span class="alpha-tag">Alpha</span>`;
|
|
1306
|
+
if (e === 3) return R`<span class="beta-tag">Beta</span>`;
|
|
1307
|
+
if (e === 4) return R`<span class="rc-tag">Rc</span>`;
|
|
1308
1308
|
}
|
|
1309
1309
|
function On(e) {
|
|
1310
1310
|
return /^https?:/.test(e) ? location.href.includes(e) : location.pathname.includes(e);
|
|
1311
1311
|
}
|
|
1312
1312
|
function la(e) {
|
|
1313
|
-
if (location.host !== "tdesign.tencent.com" && !localStorage.getItem("TDesign_notice")) return
|
|
1313
|
+
if (location.host !== "tdesign.tencent.com" && !localStorage.getItem("TDesign_notice")) return R``;
|
|
1314
1314
|
const { notice: t } = e;
|
|
1315
1315
|
let n = location.pathname.split("/")[1] || "site";
|
|
1316
1316
|
["design", "source", "about"].includes(n) && (n = "site");
|
|
1317
1317
|
let o = t[n];
|
|
1318
|
-
if (o != null && o.title || (o = t.all), !(o != null && o.title)) return
|
|
1319
|
-
if (localStorage.getItem("TDesign_notice_closed") === (o == null ? void 0 : o.title)) return
|
|
1318
|
+
if (o != null && o.title || (o = t.all), !(o != null && o.title)) return R``;
|
|
1319
|
+
if (localStorage.getItem("TDesign_notice_closed") === (o == null ? void 0 : o.title)) return R``;
|
|
1320
1320
|
const r = (s = "96px") => {
|
|
1321
1321
|
const c = document.querySelector("td-doc-aside");
|
|
1322
1322
|
c && (c.style.setProperty("--aside-top", s), c.shadowRoot.querySelector(".TDesign-doc-aside").style.top = s);
|
|
@@ -1325,15 +1325,15 @@ function la(e) {
|
|
|
1325
1325
|
}, a = () => {
|
|
1326
1326
|
o != null && o.actionUrl && (location.href = o.actionUrl);
|
|
1327
1327
|
};
|
|
1328
|
-
return r(),
|
|
1328
|
+
return r(), R`
|
|
1329
1329
|
<div class="TDesign-header-notice ${o.type}">
|
|
1330
1330
|
<div class="TDesign-header-notice__content" onclick="${a}">${o.title}</div>
|
|
1331
|
-
${o.closeable &&
|
|
1331
|
+
${o.closeable && R`<i class="TDesign-header-notice__close" innerHTML="${Sn}" onclick="${i}"></i>`}
|
|
1332
1332
|
</div>
|
|
1333
1333
|
`;
|
|
1334
1334
|
}
|
|
1335
1335
|
function ca(e, t) {
|
|
1336
|
-
return
|
|
1336
|
+
return R`
|
|
1337
1337
|
<td-doc-popup placement="bottom" portalStyle="${ra}">
|
|
1338
1338
|
${t}
|
|
1339
1339
|
<div slot="content" class="TDesign-base-components-links">
|
|
@@ -1341,7 +1341,7 @@ function ca(e, t) {
|
|
|
1341
1341
|
<p class="title">${ct.web.name}</p>
|
|
1342
1342
|
<div class="TDesign-base-components-links__list">
|
|
1343
1343
|
${ct.web.links.map(
|
|
1344
|
-
(n) =>
|
|
1344
|
+
(n) => R`
|
|
1345
1345
|
<a
|
|
1346
1346
|
href="${n.path}"
|
|
1347
1347
|
class="link ${On(n.path) ? "active" : ""} ${n.status ? "" : "disabled"}"
|
|
@@ -1364,7 +1364,7 @@ function ca(e, t) {
|
|
|
1364
1364
|
<p class="title">${ct.mobile.name}</p>
|
|
1365
1365
|
<div class="TDesign-base-components-links__list">
|
|
1366
1366
|
${ct.mobile.links.map(
|
|
1367
|
-
(n) =>
|
|
1367
|
+
(n) => R`
|
|
1368
1368
|
<a
|
|
1369
1369
|
href="${n.path}"
|
|
1370
1370
|
class="link ${On(n.path) ? "active" : ""} ${n.status ? "" : "disabled"}"
|
|
@@ -1394,7 +1394,7 @@ function Sr(e, t) {
|
|
|
1394
1394
|
return t === "site" ? "https://github.com/Tencent/tdesign" : e === "mobile" ? `https://github.com/Tencent/tdesign-${e}-${t}` : `https://github.com/Tencent/tdesign-${t}`;
|
|
1395
1395
|
}
|
|
1396
1396
|
function da(e, t, n, o) {
|
|
1397
|
-
const r =
|
|
1397
|
+
const r = R`
|
|
1398
1398
|
<a class="TDesign-header-nav__git" href="${Sr(n, o)}" id="${n}" target="_blank">
|
|
1399
1399
|
<span class="TDesign-header-nav__git-icon" innerHTML="${_i}"></span>
|
|
1400
1400
|
</a>
|
|
@@ -1403,7 +1403,7 @@ function da(e, t, n, o) {
|
|
|
1403
1403
|
const p = ze() === "zh" ? "en" : "zh";
|
|
1404
1404
|
document.dispatchEvent(new CustomEvent("tdesign_site_lang", { detail: p }));
|
|
1405
1405
|
}
|
|
1406
|
-
const a = e.disabledLocale ?
|
|
1406
|
+
const a = e.disabledLocale ? R`` : R`
|
|
1407
1407
|
<div class="TDesign-header-nav__translate" onclick="${i}">
|
|
1408
1408
|
<span class="TDesign-header-nav__translate-icon" innerHTML="${oa}"></span>
|
|
1409
1409
|
</div>
|
|
@@ -1413,14 +1413,14 @@ function da(e, t, n, o) {
|
|
|
1413
1413
|
};
|
|
1414
1414
|
return t.map((c) => {
|
|
1415
1415
|
if (c.type === "base") {
|
|
1416
|
-
const p =
|
|
1416
|
+
const p = R`
|
|
1417
1417
|
<span class="TDesign-header-nav__link ${s() ? "active" : ""}">
|
|
1418
1418
|
${c.name} <i class="icon" innerHTML="${Lr}"></i>
|
|
1419
1419
|
</span>
|
|
1420
1420
|
`;
|
|
1421
1421
|
return ca(e, p);
|
|
1422
1422
|
}
|
|
1423
|
-
return
|
|
1423
|
+
return R`
|
|
1424
1424
|
<a
|
|
1425
1425
|
class="TDesign-header-nav__link ${On(c.path) ? "active" : ""}"
|
|
1426
1426
|
href="${c.path}"
|
|
@@ -1472,7 +1472,7 @@ ie({
|
|
|
1472
1472
|
},
|
|
1473
1473
|
render: (e) => {
|
|
1474
1474
|
const { platform: t, framework: n, disabledTheme: o, collapseMenu: r } = e;
|
|
1475
|
-
return
|
|
1475
|
+
return R`
|
|
1476
1476
|
${la(e)}
|
|
1477
1477
|
<header class="TDesign-header">
|
|
1478
1478
|
<div class="TDesign-header-inner">
|
|
@@ -1480,7 +1480,7 @@ ie({
|
|
|
1480
1480
|
<td-logo></td-logo>
|
|
1481
1481
|
</div>
|
|
1482
1482
|
<div class="TDesign-header-nav">
|
|
1483
|
-
${r ?
|
|
1483
|
+
${r ? R`
|
|
1484
1484
|
<td-collapse-menu
|
|
1485
1485
|
disabledTheme="${o}"
|
|
1486
1486
|
platform="${t}"
|
|
@@ -1489,12 +1489,12 @@ ie({
|
|
|
1489
1489
|
baseComponentsLinks="${ct}"
|
|
1490
1490
|
>
|
|
1491
1491
|
</td-collapse-menu>
|
|
1492
|
-
` :
|
|
1492
|
+
` : R`
|
|
1493
1493
|
<div class="slot-search">
|
|
1494
1494
|
<slot name="search"></slot>
|
|
1495
1495
|
</div>
|
|
1496
1496
|
${da(e, wo, t, n)}
|
|
1497
|
-
${o ?
|
|
1497
|
+
${o ? R`` : R`<td-theme-tabs></td-theme-tabs>`}
|
|
1498
1498
|
`}
|
|
1499
1499
|
</div>
|
|
1500
1500
|
</div>
|
|
@@ -1511,16 +1511,16 @@ const ua = ".TDesign-collapse-menu{position:relative;display:flex;align-items:ce
|
|
|
1511
1511
|
<path d="M3.00098 18H5.25007V19.5H3.00098L3.00098 18Z" fill="currentColor" />
|
|
1512
1512
|
</svg>`;
|
|
1513
1513
|
function pa({ headerList: e, baseComponentsLinks: t, platform: n, framework: o }) {
|
|
1514
|
-
const r =
|
|
1514
|
+
const r = R`
|
|
1515
1515
|
<a class="link" href="${Sr(n, o)}" id="${n}" target="_blank">
|
|
1516
1516
|
<span>${Ne() ? "工蜂" : "Github"}</span>
|
|
1517
1517
|
</a>
|
|
1518
1518
|
`, i = (c) => location.pathname.includes(c);
|
|
1519
|
-
let a = [
|
|
1519
|
+
let a = [R`<div class="divider"></div>`];
|
|
1520
1520
|
const s = e.map((c) => {
|
|
1521
1521
|
if (c.type === "base") {
|
|
1522
1522
|
const p = t.web.links.map(
|
|
1523
|
-
(f) =>
|
|
1523
|
+
(f) => R`
|
|
1524
1524
|
<a
|
|
1525
1525
|
href="${f.path}"
|
|
1526
1526
|
class="link ${i(f.path) ? "active" : ""}"
|
|
@@ -1531,9 +1531,9 @@ function pa({ headerList: e, baseComponentsLinks: t, platform: n, framework: o }
|
|
|
1531
1531
|
</a>
|
|
1532
1532
|
`
|
|
1533
1533
|
);
|
|
1534
|
-
a.push(
|
|
1534
|
+
a.push(R`<div class="title">Web 桌面端组件</div>`), a.push(...p);
|
|
1535
1535
|
const g = t.mobile.links.map(
|
|
1536
|
-
(f) =>
|
|
1536
|
+
(f) => R`
|
|
1537
1537
|
<a
|
|
1538
1538
|
href="${f.path}"
|
|
1539
1539
|
class="link ${i(f.path) ? "active" : ""}"
|
|
@@ -1544,9 +1544,9 @@ function pa({ headerList: e, baseComponentsLinks: t, platform: n, framework: o }
|
|
|
1544
1544
|
</a>
|
|
1545
1545
|
`
|
|
1546
1546
|
);
|
|
1547
|
-
return a.push(
|
|
1547
|
+
return a.push(R`<div class="title">Mobile 移动端组件</div>`), a.push(...g), a.push(R`<div class="divider"></div>`), R``;
|
|
1548
1548
|
}
|
|
1549
|
-
return
|
|
1549
|
+
return R`<a class="link ${i(c.path) ? "active" : ""}" href="${c.path}">${c.name}</a>`;
|
|
1550
1550
|
}).concat(r);
|
|
1551
1551
|
return s.splice(1, 0, ...a), s;
|
|
1552
1552
|
}
|
|
@@ -1563,12 +1563,12 @@ ie({
|
|
|
1563
1563
|
platform: "web",
|
|
1564
1564
|
framework: "vue",
|
|
1565
1565
|
disabledTheme: !1,
|
|
1566
|
-
render: (e) =>
|
|
1566
|
+
render: (e) => R`
|
|
1567
1567
|
<div class="TDesign-collapse-menu">
|
|
1568
1568
|
<td-doc-popup portalStyle="${fa}" trigger-type="click">
|
|
1569
1569
|
<div class="collapse-icon" innerHTML="${ga}"></div>
|
|
1570
1570
|
<div slot="content" class="TDesign-collapse-menu__list">
|
|
1571
|
-
${pa(e)} ${e.disabledTheme ?
|
|
1571
|
+
${pa(e)} ${e.disabledTheme ? R`` : R`<td-theme-tabs></td-theme-tabs>`}
|
|
1572
1572
|
</div>
|
|
1573
1573
|
</td-doc-popup>
|
|
1574
1574
|
</div>
|
|
@@ -1648,9 +1648,9 @@ const ha = `<svg width="122" height="32" viewBox="0 0 122 32" fill="none" xmlns=
|
|
|
1648
1648
|
</svg>
|
|
1649
1649
|
`, ba = "https://cdc.cdn-go.cn/tdc/latest/menu.json", wa = "https://cdc.cdn-go.cn/tdc/latest/menu.woa.json", Ca = "https://cdc.cdn-go.cn/tdc/latest/images", ya = ".TDesign-header-logo{height:32px;display:inline-flex;align-items:center}.TDesign-header-logo .home{color:var(--text-primary);text-decoration:none}.TDesign-header-logo .home svg{display:block;height:32px}.TDesign-header-logo .divider{width:1px;height:16px;background:var(--component-stroke);margin:0 16px}.TDesign-header-logo__menu{height:32px;cursor:pointer}.TDesign-header-logo__menu svg{border-radius:var(--border-radius);padding:4px;width:32px;height:32px;box-sizing:border-box;transition:all .2s linear;color:var(--text-secondary)}.TDesign-header-logo__menu svg:hover{background-color:var(--bg-color-container-hover)}", xa = ".TDesign-header-logo__content{--menu-list-width: 400px;--list-direction: row;padding:16px;border-radius:6px;width:var(--menu-list-width);box-sizing:border-box}@media screen and (max-width: 750px){.TDesign-header-logo__content{--list-direction: column;--menu-list-width: 212px}}.TDesign-header-logo__content span.title:hover{cursor:auto;color:var(--text-primary);font-family:TencentSansW7}.TDesign-header-logo__content .title{color:var(--text-primary);display:inline-flex;align-items:flex-end;margin:0 16px 8px;line-height:22px;transition:color .2s linear;text-decoration:none;font-family:TencentSansW7}.TDesign-header-logo__content .title:hover{color:var(--brand-main)}.TDesign-header-logo__content .title i{width:16px;height:16px;margin-left:4px;margin-bottom:2px}.TDesign-header-logo__content .list{display:flex;flex-wrap:wrap;flex-direction:var(--list-direction);row-gap:8px;column-gap:8px}.TDesign-header-logo__content .list .item{text-decoration:none;padding:8px;width:180px;border-radius:var(--border-radius);box-sizing:border-box;display:flex;align-items:center;row-gap:8px;column-gap:8px;transition:all .2s linear}.TDesign-header-logo__content .list .item:hover{color:var(--text-primary);background:var(--bg-color-container-hover)}.TDesign-header-logo__content .list .item.active{color:var(--text-primary);background:var(--bg-color-container-select)}.TDesign-header-logo__content .list .item .icon{width:40px;height:40px}.TDesign-header-logo__content .list .item .details{display:flex;justify-content:center;flex-direction:column}.TDesign-header-logo__content .list .item .details .name{color:var(--text-primary);font-family:TencentSansW7}.TDesign-header-logo__content .list .item .details .desc{font-size:12px;line-height:20px;color:var(--text-secondary)}.TDesign-header-logo__content .line{width:100%;height:1px;margin:16px 0;background-color:var(--component-stroke)}", Aa = ze() === "en";
|
|
1650
1650
|
function Da(e = []) {
|
|
1651
|
-
return
|
|
1651
|
+
return R` <div class="list">
|
|
1652
1652
|
${e.map(
|
|
1653
|
-
(t) =>
|
|
1653
|
+
(t) => R` <a class="item" href="${t.url}" target="${t.target}">
|
|
1654
1654
|
<img class="icon" src="${Ca}/${t.key}.svg" />
|
|
1655
1655
|
<div class="details">
|
|
1656
1656
|
<span class="name">${t.title}</span>
|
|
@@ -1663,13 +1663,13 @@ function Da(e = []) {
|
|
|
1663
1663
|
function Ta(e) {
|
|
1664
1664
|
const t = e.length;
|
|
1665
1665
|
return e.map(
|
|
1666
|
-
(n, o) =>
|
|
1667
|
-
${n.category_url ?
|
|
1666
|
+
(n, o) => R`
|
|
1667
|
+
${n.category_url ? R`
|
|
1668
1668
|
<a href="${n.category_url}" class="title" target="${n.target}">
|
|
1669
1669
|
${n.category_title} <i innerHTML="${ma}"></i>
|
|
1670
1670
|
</a>
|
|
1671
|
-
` :
|
|
1672
|
-
${Da(n.children)} ${o < t - 1 ?
|
|
1671
|
+
` : R` <span class="title"> ${n.category_title} </span> `}
|
|
1672
|
+
${Da(n.children)} ${o < t - 1 ? R`<div class="line"></div>` : R``}
|
|
1673
1673
|
`
|
|
1674
1674
|
);
|
|
1675
1675
|
}
|
|
@@ -1693,7 +1693,7 @@ ie({
|
|
|
1693
1693
|
});
|
|
1694
1694
|
}
|
|
1695
1695
|
},
|
|
1696
|
-
render: ({ menuList: e }) =>
|
|
1696
|
+
render: ({ menuList: e }) => R`
|
|
1697
1697
|
<style>
|
|
1698
1698
|
${ya}
|
|
1699
1699
|
</style>
|
|
@@ -1728,7 +1728,7 @@ ie({
|
|
|
1728
1728
|
return document.addEventListener("scroll", o), () => document.removeEventListener("scroll", o);
|
|
1729
1729
|
}
|
|
1730
1730
|
},
|
|
1731
|
-
render: ({ backtopShow: e }) =>
|
|
1731
|
+
render: ({ backtopShow: e }) => R`
|
|
1732
1732
|
<div class="TDesign-backtop ${e ? "show" : ""}" onclick="${Ba}">
|
|
1733
1733
|
<div class="TDesign-backtop__inner" innerHTML=${Pa}></div>
|
|
1734
1734
|
</div>
|
|
@@ -1743,7 +1743,7 @@ ie({
|
|
|
1743
1743
|
href: "",
|
|
1744
1744
|
render: ({ content: e, username: t, src: n, href: o }) => {
|
|
1745
1745
|
const r = `https://avatars.githubusercontent.com/${t}`, i = `https://github.com/${t}`;
|
|
1746
|
-
return
|
|
1746
|
+
return R`
|
|
1747
1747
|
<div class="TDesign-avatar">
|
|
1748
1748
|
<td-tooltip trigger-type="hover">
|
|
1749
1749
|
<a class="avatar" target="_blank" href="${o || i}">
|
|
@@ -2251,8 +2251,8 @@ function bt(e, t) {
|
|
|
2251
2251
|
if (w === at && B) {
|
|
2252
2252
|
var k = B[r];
|
|
2253
2253
|
Object.keys(x).forEach(function(T) {
|
|
2254
|
-
var M = [Pe, He].indexOf(T) >= 0 ? 1 : -1,
|
|
2255
|
-
x[T] += k[
|
|
2254
|
+
var M = [Pe, He].indexOf(T) >= 0 ? 1 : -1, j = [me, He].indexOf(T) >= 0 ? "y" : "x";
|
|
2255
|
+
x[T] += k[j] * M;
|
|
2256
2256
|
});
|
|
2257
2257
|
}
|
|
2258
2258
|
return x;
|
|
@@ -2296,14 +2296,14 @@ function gs(e) {
|
|
|
2296
2296
|
allowedAutoPlacements: l
|
|
2297
2297
|
}) : Y);
|
|
2298
2298
|
}, []), D = t.rects.reference, A = t.rects.popper, H = /* @__PURE__ */ new Map(), O = !0, P = y[0], x = 0; x < y.length; x++) {
|
|
2299
|
-
var B = y[x], k = Oe(B), T = tt(B) === _e, M = [me, He].indexOf(k) >= 0,
|
|
2299
|
+
var B = y[x], k = Oe(B), T = tt(B) === _e, M = [me, He].indexOf(k) >= 0, j = M ? "width" : "height", S = bt(t, {
|
|
2300
2300
|
placement: B,
|
|
2301
2301
|
boundary: g,
|
|
2302
2302
|
rootBoundary: f,
|
|
2303
2303
|
altBoundary: w,
|
|
2304
2304
|
padding: p
|
|
2305
2305
|
}), z = M ? T ? Pe : be : T ? He : me;
|
|
2306
|
-
D[
|
|
2306
|
+
D[j] > A[j] && (z = Mt(z));
|
|
2307
2307
|
var F = Mt(z), Z = [];
|
|
2308
2308
|
if (i && Z.push(S[k] <= 0), s && Z.push(S[z] <= 0, S[F] <= 0), Z.every(function(oe) {
|
|
2309
2309
|
return oe;
|
|
@@ -2443,10 +2443,10 @@ function As(e) {
|
|
|
2443
2443
|
};
|
|
2444
2444
|
if (A) {
|
|
2445
2445
|
if (i) {
|
|
2446
|
-
var T, M = y === "y" ? me : be,
|
|
2446
|
+
var T, M = y === "y" ? me : be, j = y === "y" ? He : Pe, S = y === "y" ? "height" : "width", z = A[y], F = z + d[M], Z = z - d[j], U = C ? -O[S] / 2 : 0, G = h === _e ? H[S] : O[S], W = h === _e ? -O[S] : -H[S], K = t.elements.arrow, oe = C && K ? qn(K) : {
|
|
2447
2447
|
width: 0,
|
|
2448
2448
|
height: 0
|
|
2449
|
-
}, Y = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : qr(), re = Y[M], V = Y[
|
|
2449
|
+
}, Y = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : qr(), re = Y[M], V = Y[j], ee = ut(0, H[S], oe[S]), ae = b ? H[S] / 2 - U - ee - re - x.mainAxis : G - ee - re - x.mainAxis, se = b ? -H[S] / 2 + U + ee + V + x.mainAxis : W + ee + V + x.mainAxis, ne = t.elements.arrow && yt(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, pe = z + ae - ce - de, we = z + se - ce, Me = ut(C ? St(F, pe) : F, z, C ? Xe(Z, we) : Z);
|
|
2450
2450
|
A[y] = Me, k[y] = Me - z;
|
|
2451
2451
|
}
|
|
2452
2452
|
if (s) {
|
|
@@ -2776,7 +2776,7 @@ ie({
|
|
|
2776
2776
|
tag: "td-ai-button",
|
|
2777
2777
|
framework: "",
|
|
2778
2778
|
demoRequestBody: "",
|
|
2779
|
-
render: ({ framework: e, demoRequestBody: t }) =>
|
|
2779
|
+
render: ({ framework: e, demoRequestBody: t }) => R`
|
|
2780
2780
|
<button class="TDesign-ai-button" onclick="${() => Is(e, t)}">
|
|
2781
2781
|
<span>
|
|
2782
2782
|
<svg width="17" height="16" viewBox="0 0 17 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
@@ -2813,14 +2813,14 @@ ie({
|
|
|
2813
2813
|
});
|
|
2814
2814
|
const Gs = ".TDesign-contributors .title{font-weight:700;font-size:20px;line-height:28px;margin:48px 0 16px}.TDesign-contributors__content{display:flex;flex-wrap:wrap}.TDesign-contributors__content td-tooltip{margin-right:8px}.TDesign-contributors__content img{width:40px;height:40px;border-radius:100%}.TDesign-contributors__content .avatar{width:40px;height:40px;display:inline-block}", Us = "https://service-edbzjd6y-1257786608.hk.apigw.tencentcs.com/release/github-contributors/list";
|
|
2815
2815
|
function Ks(e) {
|
|
2816
|
-
if (!e.length) return
|
|
2816
|
+
if (!e.length) return R``;
|
|
2817
2817
|
const t = e.filter((n) => typeof n == "object" && n !== null);
|
|
2818
|
-
return
|
|
2818
|
+
return R`
|
|
2819
2819
|
<section class="TDesign-contributors">
|
|
2820
2820
|
<h3 class="title">Contributors</h3>
|
|
2821
2821
|
<div class="TDesign-contributors__content">
|
|
2822
2822
|
${t.map(
|
|
2823
|
-
(n) =>
|
|
2823
|
+
(n) => R`
|
|
2824
2824
|
<td-avatar username="${n == null ? void 0 : n.username}" content="${n == null ? void 0 : n.roleNames} ${n == null ? void 0 : n.username}"></td-avatar>
|
|
2825
2825
|
`
|
|
2826
2826
|
)}
|
|
@@ -2892,7 +2892,7 @@ ie({
|
|
|
2892
2892
|
triggerType: "click",
|
|
2893
2893
|
render: (e) => {
|
|
2894
2894
|
const { showTip: t, placement: n } = e;
|
|
2895
|
-
return
|
|
2895
|
+
return R`
|
|
2896
2896
|
<div class="TDesign-tooltip" data-placement="${n}">
|
|
2897
2897
|
<div onmouseover=${Eo} onmouseout=${Mo} onclick=${Ys}>
|
|
2898
2898
|
<slot></slot>
|
|
@@ -2969,7 +2969,7 @@ ie({
|
|
|
2969
2969
|
const { theme: t, blockStyleMap: n } = e;
|
|
2970
2970
|
n || el(e);
|
|
2971
2971
|
const o = n ? n[t] : {};
|
|
2972
|
-
return
|
|
2972
|
+
return R`
|
|
2973
2973
|
<div class="TDesign-theme-tabs">
|
|
2974
2974
|
<div class="TDesign-theme-tabs__block" style=${o || {}}></div>
|
|
2975
2975
|
<div
|
|
@@ -3169,7 +3169,7 @@ ie({
|
|
|
3169
3169
|
},
|
|
3170
3170
|
direction: "row",
|
|
3171
3171
|
// row column
|
|
3172
|
-
render: ({ direction: e }) =>
|
|
3172
|
+
render: ({ direction: e }) => R`
|
|
3173
3173
|
<div class="TDesign-page-doc">
|
|
3174
3174
|
<slot name="header"></slot>
|
|
3175
3175
|
<div class="TDesign-body ${e}">
|
|
@@ -3217,19 +3217,20 @@ function Qn(e, t, n = 0) {
|
|
|
3217
3217
|
const { updateNotice: a } = e, { [i]: s } = a;
|
|
3218
3218
|
return s ? s.some((c) => t.title.includes(c)) : !1;
|
|
3219
3219
|
};
|
|
3220
|
-
return t.children ?
|
|
3220
|
+
return t.children ? R`
|
|
3221
3221
|
<div class="TDesign-doc-sidenav-group TDesign-doc-sidenav-group--deep${n}">
|
|
3222
3222
|
<span class="TDesign-doc-sidenav-group__title">${t.title}</span>
|
|
3223
3223
|
<div class="TDesign-doc-sidenav-group__children">${Qn(e, t.children, n + 1)}</div>
|
|
3224
3224
|
</div>
|
|
3225
|
-
` :
|
|
3225
|
+
` : R`
|
|
3226
3226
|
<div class="TDesign-doc-sidenav-item">
|
|
3227
3227
|
<a
|
|
3228
3228
|
href="${t.path}"
|
|
3229
3229
|
class="TDesign-doc-sidenav-link ${o ? "active" : ""}"
|
|
3230
3230
|
onclick=${(i, a) => dl(i, a, t.path)}
|
|
3231
3231
|
>
|
|
3232
|
-
${t.title}
|
|
3232
|
+
${t.title}
|
|
3233
|
+
${r() ? R`<span class="TDesign-doc-sidenav-link__tag">Update</span>` : t.customTag ? R`<span class="TDesign-doc-sidenav-link__tag">${t.customTag}</span>` : null}
|
|
3233
3234
|
</a>
|
|
3234
3235
|
</div>
|
|
3235
3236
|
`;
|
|
@@ -3304,13 +3305,13 @@ ie({
|
|
|
3304
3305
|
collapse: !1,
|
|
3305
3306
|
render: (e) => {
|
|
3306
3307
|
const { routerList: t, title: n, collapse: o } = e;
|
|
3307
|
-
return
|
|
3308
|
+
return R`
|
|
3308
3309
|
<aside class="TDesign-doc-aside">
|
|
3309
3310
|
<div class="TDesign-doc-aside-collapse" onclick="${Ro}">
|
|
3310
3311
|
<i class="icon" innerHTML="${o ? al : il}"></i>
|
|
3311
3312
|
</div>
|
|
3312
3313
|
<div class="TDesign-doc-sidenav">
|
|
3313
|
-
${n &&
|
|
3314
|
+
${n && R`<h2 class="TDesign-doc-aside__title">${n}</h2>`}
|
|
3314
3315
|
<slot class="TDesign-doc-aside__extra" name="extra"></slot>
|
|
3315
3316
|
${Qn(e, t)}
|
|
3316
3317
|
</div>
|
|
@@ -3873,7 +3874,7 @@ const fl = ".TDesign-doc-search{position:relative;width:200px;height:32px;box-si
|
|
|
3873
3874
|
td: O,
|
|
3874
3875
|
th: O,
|
|
3875
3876
|
"*": w.createElement("div")
|
|
3876
|
-
}, x = /complete|loaded|interactive/, B = /^[\w-]*$/, k = {}, T = k.toString, M = {},
|
|
3877
|
+
}, x = /complete|loaded|interactive/, B = /^[\w-]*$/, k = {}, T = k.toString, M = {}, j, S, z = w.createElement("div"), F = {
|
|
3877
3878
|
tabindex: "tabIndex",
|
|
3878
3879
|
readonly: "readOnly",
|
|
3879
3880
|
for: "htmlFor",
|
|
@@ -3926,7 +3927,7 @@ const fl = ".TDesign-doc-search{position:relative;width:200px;height:32px;box-si
|
|
|
3926
3927
|
function ee(m) {
|
|
3927
3928
|
return m.length > 0 ? a.fn.concat.apply([], m) : m;
|
|
3928
3929
|
}
|
|
3929
|
-
|
|
3930
|
+
j = function(m) {
|
|
3930
3931
|
return m.replace(/-+(.)?/g, function(E, Q) {
|
|
3931
3932
|
return Q ? Q.toUpperCase() : "";
|
|
3932
3933
|
});
|
|
@@ -4051,7 +4052,7 @@ const fl = ".TDesign-doc-search{position:relative;width:200px;height:32px;box-si
|
|
|
4051
4052
|
return m != null && Q != "boolean" && (Q != "string" || m.length) && !isNaN(E) && isFinite(E) || !1;
|
|
4052
4053
|
}, a.inArray = function(m, E, Q) {
|
|
4053
4054
|
return c.indexOf.call(E, m, Q);
|
|
4054
|
-
}, a.camelCase =
|
|
4055
|
+
}, a.camelCase = j, a.trim = function(m) {
|
|
4055
4056
|
return m == null ? "" : String.prototype.trim.call(m);
|
|
4056
4057
|
}, a.uuid = 0, a.support = {}, a.expr = {}, a.noop = function() {
|
|
4057
4058
|
}, a.map = function(m, E) {
|
|
@@ -4386,12 +4387,12 @@ const fl = ".TDesign-doc-search{position:relative;width:200px;height:32px;box-si
|
|
|
4386
4387
|
if (arguments.length < 2) {
|
|
4387
4388
|
var Q = this[0];
|
|
4388
4389
|
if (typeof m == "string")
|
|
4389
|
-
return Q ? Q.style[
|
|
4390
|
+
return Q ? Q.style[j(m)] || getComputedStyle(Q, "").getPropertyValue(m) : void 0;
|
|
4390
4391
|
if (Z(m)) {
|
|
4391
4392
|
if (!Q) return;
|
|
4392
4393
|
var N = {}, _ = getComputedStyle(Q, "");
|
|
4393
4394
|
return a.each(m, function(fe, L) {
|
|
4394
|
-
N[L] = Q.style[
|
|
4395
|
+
N[L] = Q.style[j(L)] || _.getPropertyValue(L);
|
|
4395
4396
|
}), N;
|
|
4396
4397
|
}
|
|
4397
4398
|
}
|
|
@@ -4548,10 +4549,10 @@ const fl = ".TDesign-doc-search{position:relative;width:200px;height:32px;box-si
|
|
|
4548
4549
|
function l(T) {
|
|
4549
4550
|
return T._zid || (T._zid = i++);
|
|
4550
4551
|
}
|
|
4551
|
-
function d(T, M,
|
|
4552
|
+
function d(T, M, j, S) {
|
|
4552
4553
|
if (M = v(M), M.ns) var z = h(M.ns);
|
|
4553
4554
|
return (g[l(T)] || []).filter(function(F) {
|
|
4554
|
-
return F && (!M.e || F.e == M.e) && (!M.ns || z.test(F.ns)) && (!
|
|
4555
|
+
return F && (!M.e || F.e == M.e) && (!M.ns || z.test(F.ns)) && (!j || l(F.fn) === l(j)) && (!S || F.sel == S);
|
|
4555
4556
|
});
|
|
4556
4557
|
}
|
|
4557
4558
|
function v(T) {
|
|
@@ -4567,17 +4568,17 @@ const fl = ".TDesign-doc-search{position:relative;width:200px;height:32px;box-si
|
|
|
4567
4568
|
function y(T) {
|
|
4568
4569
|
return u[T] || w && C[T] || T;
|
|
4569
4570
|
}
|
|
4570
|
-
function D(T, M,
|
|
4571
|
+
function D(T, M, j, S, z, F, Z) {
|
|
4571
4572
|
var U = l(T), G = g[U] || (g[U] = []);
|
|
4572
4573
|
M.split(/\s/).forEach(function(W) {
|
|
4573
|
-
if (W == "ready") return r(document).ready(
|
|
4574
|
+
if (W == "ready") return r(document).ready(j);
|
|
4574
4575
|
var K = v(W);
|
|
4575
|
-
K.fn =
|
|
4576
|
+
K.fn = j, K.sel = z, K.e in u && (j = function(Y) {
|
|
4576
4577
|
var re = Y.relatedTarget;
|
|
4577
4578
|
if (!re || re !== this && !r.contains(this, re))
|
|
4578
4579
|
return K.fn.apply(this, arguments);
|
|
4579
4580
|
}), K.del = F;
|
|
4580
|
-
var oe = F ||
|
|
4581
|
+
var oe = F || j;
|
|
4581
4582
|
K.proxy = function(Y) {
|
|
4582
4583
|
if (Y = B(Y), !Y.isImmediatePropagationStopped()) {
|
|
4583
4584
|
try {
|
|
@@ -4601,10 +4602,10 @@ const fl = ".TDesign-doc-search{position:relative;width:200px;height:32px;box-si
|
|
|
4601
4602
|
);
|
|
4602
4603
|
});
|
|
4603
4604
|
}
|
|
4604
|
-
function A(T, M,
|
|
4605
|
+
function A(T, M, j, S, z) {
|
|
4605
4606
|
var F = l(T);
|
|
4606
4607
|
(M || "").split(/\s/).forEach(function(Z) {
|
|
4607
|
-
d(T, Z,
|
|
4608
|
+
d(T, Z, j, S).forEach(function(U) {
|
|
4608
4609
|
delete g[F][U.i], "removeEventListener" in T && T.removeEventListener(
|
|
4609
4610
|
y(U.e),
|
|
4610
4611
|
U.proxy,
|
|
@@ -4614,26 +4615,26 @@ const fl = ".TDesign-doc-search{position:relative;width:200px;height:32px;box-si
|
|
|
4614
4615
|
});
|
|
4615
4616
|
}
|
|
4616
4617
|
r.event = { add: D, remove: A }, r.proxy = function(T, M) {
|
|
4617
|
-
var
|
|
4618
|
+
var j = 2 in arguments && s.call(arguments, 2);
|
|
4618
4619
|
if (c(T)) {
|
|
4619
4620
|
var S = function() {
|
|
4620
4621
|
return T.apply(
|
|
4621
4622
|
M,
|
|
4622
|
-
|
|
4623
|
+
j ? j.concat(s.call(arguments)) : arguments
|
|
4623
4624
|
);
|
|
4624
4625
|
};
|
|
4625
4626
|
return S._zid = l(T), S;
|
|
4626
4627
|
} else {
|
|
4627
4628
|
if (p(M))
|
|
4628
|
-
return
|
|
4629
|
+
return j ? (j.unshift(T[M], T), r.proxy.apply(null, j)) : r.proxy(T[M], T);
|
|
4629
4630
|
throw new TypeError("expected function");
|
|
4630
4631
|
}
|
|
4631
|
-
}, r.fn.bind = function(T, M,
|
|
4632
|
-
return this.on(T, M,
|
|
4632
|
+
}, r.fn.bind = function(T, M, j) {
|
|
4633
|
+
return this.on(T, M, j);
|
|
4633
4634
|
}, r.fn.unbind = function(T, M) {
|
|
4634
4635
|
return this.off(T, M);
|
|
4635
|
-
}, r.fn.one = function(T, M,
|
|
4636
|
-
return this.on(T, M,
|
|
4636
|
+
}, r.fn.one = function(T, M, j, S) {
|
|
4637
|
+
return this.on(T, M, j, S, 1);
|
|
4637
4638
|
};
|
|
4638
4639
|
var H = function() {
|
|
4639
4640
|
return !0;
|
|
@@ -4645,32 +4646,32 @@ const fl = ".TDesign-doc-search{position:relative;width:200px;height:32px;box-si
|
|
|
4645
4646
|
stopPropagation: "isPropagationStopped"
|
|
4646
4647
|
};
|
|
4647
4648
|
function B(T, M) {
|
|
4648
|
-
return (M || !T.isDefaultPrevented) && (M || (M = T), r.each(x, function(
|
|
4649
|
-
var z = M[
|
|
4650
|
-
T[
|
|
4649
|
+
return (M || !T.isDefaultPrevented) && (M || (M = T), r.each(x, function(j, S) {
|
|
4650
|
+
var z = M[j];
|
|
4651
|
+
T[j] = function() {
|
|
4651
4652
|
return this[S] = H, z && z.apply(M, arguments);
|
|
4652
4653
|
}, T[S] = O;
|
|
4653
4654
|
}), T.timeStamp || (T.timeStamp = Date.now()), (M.defaultPrevented !== a ? M.defaultPrevented : "returnValue" in M ? M.returnValue === !1 : M.getPreventDefault && M.getPreventDefault()) && (T.isDefaultPrevented = H)), T;
|
|
4654
4655
|
}
|
|
4655
4656
|
function k(T) {
|
|
4656
|
-
var M,
|
|
4657
|
+
var M, j = { originalEvent: T };
|
|
4657
4658
|
for (M in T)
|
|
4658
|
-
!P.test(M) && T[M] !== a && (
|
|
4659
|
-
return B(
|
|
4659
|
+
!P.test(M) && T[M] !== a && (j[M] = T[M]);
|
|
4660
|
+
return B(j, T);
|
|
4660
4661
|
}
|
|
4661
|
-
r.fn.delegate = function(T, M,
|
|
4662
|
-
return this.on(M, T,
|
|
4663
|
-
}, r.fn.undelegate = function(T, M,
|
|
4664
|
-
return this.off(M, T,
|
|
4662
|
+
r.fn.delegate = function(T, M, j) {
|
|
4663
|
+
return this.on(M, T, j);
|
|
4664
|
+
}, r.fn.undelegate = function(T, M, j) {
|
|
4665
|
+
return this.off(M, T, j);
|
|
4665
4666
|
}, r.fn.live = function(T, M) {
|
|
4666
4667
|
return r(document.body).delegate(this.selector, T, M), this;
|
|
4667
4668
|
}, r.fn.die = function(T, M) {
|
|
4668
4669
|
return r(document.body).undelegate(this.selector, T, M), this;
|
|
4669
|
-
}, r.fn.on = function(T, M,
|
|
4670
|
+
}, r.fn.on = function(T, M, j, S, z) {
|
|
4670
4671
|
var F, Z, U = this;
|
|
4671
4672
|
return T && !p(T) ? (r.each(T, function(G, W) {
|
|
4672
|
-
U.on(G, M,
|
|
4673
|
-
}), U) : (!p(M) && !c(S) && S !== !1 && (S =
|
|
4673
|
+
U.on(G, M, j, W, z);
|
|
4674
|
+
}), U) : (!p(M) && !c(S) && S !== !1 && (S = j, j = M, M = a), (S === a || j === !1) && (S = j, j = a), S === !1 && (S = O), U.each(function(G, W) {
|
|
4674
4675
|
z && (F = function(K) {
|
|
4675
4676
|
return A(W, K.type, S), S.apply(this, arguments);
|
|
4676
4677
|
}), M && (Z = function(K) {
|
|
@@ -4687,29 +4688,29 @@ const fl = ".TDesign-doc-search{position:relative;width:200px;height:32px;box-si
|
|
|
4687
4688
|
W,
|
|
4688
4689
|
T,
|
|
4689
4690
|
S,
|
|
4690
|
-
|
|
4691
|
+
j,
|
|
4691
4692
|
M,
|
|
4692
4693
|
Z || F
|
|
4693
4694
|
);
|
|
4694
4695
|
}));
|
|
4695
|
-
}, r.fn.off = function(T, M,
|
|
4696
|
+
}, r.fn.off = function(T, M, j) {
|
|
4696
4697
|
var S = this;
|
|
4697
4698
|
return T && !p(T) ? (r.each(T, function(z, F) {
|
|
4698
4699
|
S.off(z, M, F);
|
|
4699
|
-
}), S) : (!p(M) && !c(
|
|
4700
|
-
A(this, T,
|
|
4700
|
+
}), S) : (!p(M) && !c(j) && j !== !1 && (j = M, M = a), j === !1 && (j = O), S.each(function() {
|
|
4701
|
+
A(this, T, j, M);
|
|
4701
4702
|
}));
|
|
4702
4703
|
}, r.fn.trigger = function(T, M) {
|
|
4703
4704
|
return T = p(T) || r.isPlainObject(T) ? r.Event(T) : B(T), T._args = M, this.each(function() {
|
|
4704
4705
|
T.type in C && typeof this[T.type] == "function" ? this[T.type]() : "dispatchEvent" in this ? this.dispatchEvent(T) : r(this).triggerHandler(T, M);
|
|
4705
4706
|
});
|
|
4706
4707
|
}, r.fn.triggerHandler = function(T, M) {
|
|
4707
|
-
var
|
|
4708
|
+
var j, S;
|
|
4708
4709
|
return this.each(function(z, F) {
|
|
4709
|
-
|
|
4710
|
+
j = k(p(T) ? r.Event(T) : T), j._args = M, j.target = F, r.each(
|
|
4710
4711
|
d(F, T.type || T),
|
|
4711
4712
|
function(Z, U) {
|
|
4712
|
-
if (S = U.proxy(
|
|
4713
|
+
if (S = U.proxy(j), j.isImmediatePropagationStopped()) return !1;
|
|
4713
4714
|
}
|
|
4714
4715
|
);
|
|
4715
4716
|
}), S;
|
|
@@ -4719,11 +4720,11 @@ const fl = ".TDesign-doc-search{position:relative;width:200px;height:32px;box-si
|
|
|
4719
4720
|
};
|
|
4720
4721
|
}), r.Event = function(T, M) {
|
|
4721
4722
|
p(T) || (M = T, T = M.type);
|
|
4722
|
-
var
|
|
4723
|
+
var j = document.createEvent(f[T] || "Events"), S = !0;
|
|
4723
4724
|
if (M)
|
|
4724
4725
|
for (var z in M)
|
|
4725
|
-
z == "bubbles" ? S = !!M[z] :
|
|
4726
|
-
return
|
|
4726
|
+
z == "bubbles" ? S = !!M[z] : j[z] = M[z];
|
|
4727
|
+
return j.initEvent(T, S, !0), B(j);
|
|
4727
4728
|
};
|
|
4728
4729
|
}(o), function(r) {
|
|
4729
4730
|
var i = [], a;
|
|
@@ -4894,12 +4895,12 @@ const fl = ".TDesign-doc-search{position:relative;width:200px;height:32px;box-si
|
|
|
4894
4895
|
[ autocompleteOptions.{hint,debug} ]
|
|
4895
4896
|
})`, A = function() {
|
|
4896
4897
|
function H(O) {
|
|
4897
|
-
var P = O.apiKey, x = O.indexName, B = O.inputSelector, k = O.appId, T = k === void 0 ? "BH4D9OD16A" : k, M = O.debug,
|
|
4898
|
+
var P = O.apiKey, x = O.indexName, B = O.inputSelector, k = O.appId, T = k === void 0 ? "BH4D9OD16A" : k, M = O.debug, j = M === void 0 ? !1 : M, S = O.algoliaOptions, z = S === void 0 ? {} : S, F = O.queryDataCallback, Z = F === void 0 ? null : F, U = O.autocompleteOptions, G = U === void 0 ? { debug: !1, hint: !1, autoselect: !0 } : U, W = O.transformData, K = W === void 0 ? !1 : W, oe = O.queryHook, Y = oe === void 0 ? !1 : oe, re = O.handleSelected, V = re === void 0 ? !1 : re, ee = O.enhancedSearchInput, ae = ee === void 0 ? !1 : ee, se = O.layout, ne = se === void 0 ? "collumns" : se;
|
|
4898
4899
|
y(this, H), H.checkArguments({
|
|
4899
4900
|
apiKey: P,
|
|
4900
4901
|
indexName: x,
|
|
4901
4902
|
inputSelector: B,
|
|
4902
|
-
debug:
|
|
4903
|
+
debug: j,
|
|
4903
4904
|
algoliaOptions: z,
|
|
4904
4905
|
queryDataCallback: Z,
|
|
4905
4906
|
autocompleteOptions: G,
|
|
@@ -4910,7 +4911,7 @@ const fl = ".TDesign-doc-search{position:relative;width:200px;height:32px;box-si
|
|
|
4910
4911
|
layout: ne
|
|
4911
4912
|
}), this.apiKey = P, this.appId = T, this.indexName = x, this.input = H.getInputFromSelector(B), this.algoliaOptions = o({ hitsPerPage: 5 }, z), this.queryDataCallback = Z || null;
|
|
4912
4913
|
var de = G && G.debug ? G.debug : !1;
|
|
4913
|
-
G.debug =
|
|
4914
|
+
G.debug = j || de, this.autocompleteOptions = G, this.autocompleteOptions.cssClasses = this.autocompleteOptions.cssClasses || {}, this.autocompleteOptions.cssClasses.prefix = this.autocompleteOptions.cssClasses.prefix || "ds";
|
|
4914
4915
|
var ce = this.input && typeof this.input.attr == "function" && this.input.attr("aria-label");
|
|
4915
4916
|
this.autocompleteOptions.ariaLabel = this.autocompleteOptions.ariaLabel || ce || "search input", this.isSimpleLayout = ne === "simple", this.client = (0, c.default)(this.appId, this.apiKey), this.client.addAlgoliaAgent("docsearch.js " + d.default), ae && (this.input = H.injectSearchBox(this.input)), this.autocomplete = (0, g.default)(
|
|
4916
4917
|
this.input,
|
|
@@ -4959,8 +4960,8 @@ const fl = ".TDesign-doc-search{position:relative;width:200px;height:32px;box-si
|
|
|
4959
4960
|
}
|
|
4960
4961
|
]).then(function(M) {
|
|
4961
4962
|
B.queryDataCallback && typeof B.queryDataCallback == "function" && B.queryDataCallback(M);
|
|
4962
|
-
var
|
|
4963
|
-
P && (
|
|
4963
|
+
var j = M.results[0].hits;
|
|
4964
|
+
P && (j = P(j) || j), T(H.formatHits(j));
|
|
4964
4965
|
});
|
|
4965
4966
|
};
|
|
4966
4967
|
}
|
|
@@ -5044,11 +5045,11 @@ const fl = ".TDesign-doc-search{position:relative;width:200px;height:32px;box-si
|
|
|
5044
5045
|
)), u.default.mergeKeyWithParent(T, "hierarchy");
|
|
5045
5046
|
}), k = u.default.groupBy(B, "lvl0");
|
|
5046
5047
|
return h.default.each(k, function(T, M) {
|
|
5047
|
-
var
|
|
5048
|
+
var j = u.default.groupBy(
|
|
5048
5049
|
M,
|
|
5049
5050
|
"lvl1"
|
|
5050
5051
|
), S = u.default.flattenAndFlagFirst(
|
|
5051
|
-
|
|
5052
|
+
j,
|
|
5052
5053
|
"isSubCategoryHeader"
|
|
5053
5054
|
);
|
|
5054
5055
|
k[T] = S;
|
|
@@ -5056,10 +5057,10 @@ const fl = ".TDesign-doc-search{position:relative;width:200px;height:32px;box-si
|
|
|
5056
5057
|
k,
|
|
5057
5058
|
"isCategoryHeader"
|
|
5058
5059
|
), k.map(function(T) {
|
|
5059
|
-
var M = H.formatURL(T),
|
|
5060
|
+
var M = H.formatURL(T), j = u.default.getHighlightedValue(
|
|
5060
5061
|
T,
|
|
5061
5062
|
"lvl0"
|
|
5062
|
-
), S = u.default.getHighlightedValue(T, "lvl1") ||
|
|
5063
|
+
), S = u.default.getHighlightedValue(T, "lvl1") || j, z = u.default.compact([
|
|
5063
5064
|
u.default.getHighlightedValue(T, "lvl2") || S,
|
|
5064
5065
|
u.default.getHighlightedValue(T, "lvl3"),
|
|
5065
5066
|
u.default.getHighlightedValue(T, "lvl4"),
|
|
@@ -5067,7 +5068,7 @@ const fl = ".TDesign-doc-search{position:relative;width:200px;height:32px;box-si
|
|
|
5067
5068
|
u.default.getHighlightedValue(T, "lvl6")
|
|
5068
5069
|
]).join(
|
|
5069
5070
|
'<span class="aa-suggestion-title-separator" aria-hidden="true"> › </span>'
|
|
5070
|
-
), F = u.default.getSnippetedValue(T, "content"), Z = S && S !== "" || z && z !== "", U = !S || S === "" || S ===
|
|
5071
|
+
), F = u.default.getSnippetedValue(T, "content"), Z = S && S !== "" || z && z !== "", U = !S || S === "" || S === j, G = z && z !== "" && z !== S, W = !G && S && S !== "" && S !== j, K = !W && !G;
|
|
5071
5072
|
return {
|
|
5072
5073
|
isLvl0: K,
|
|
5073
5074
|
isLvl1: W,
|
|
@@ -5076,7 +5077,7 @@ const fl = ".TDesign-doc-search{position:relative;width:200px;height:32px;box-si
|
|
|
5076
5077
|
isCategoryHeader: T.isCategoryHeader,
|
|
5077
5078
|
isSubCategoryHeader: T.isSubCategoryHeader,
|
|
5078
5079
|
isTextOrSubcategoryNonEmpty: Z,
|
|
5079
|
-
category:
|
|
5080
|
+
category: j,
|
|
5080
5081
|
subcategory: S,
|
|
5081
5082
|
title: z,
|
|
5082
5083
|
text: F,
|
|
@@ -5139,7 +5140,7 @@ const fl = ".TDesign-doc-search{position:relative;width:200px;height:32px;box-si
|
|
|
5139
5140
|
"&": 11,
|
|
5140
5141
|
_t: 12
|
|
5141
5142
|
}, o.scan = function(B, k) {
|
|
5142
|
-
var T = B.length, M = 0,
|
|
5143
|
+
var T = B.length, M = 0, j = 1, S = 2, z = M, F = null, Z = null, U = "", G = [], W = !1, K = 0, oe = 0, Y = "{{", re = "}}";
|
|
5143
5144
|
function V() {
|
|
5144
5145
|
U.length > 0 && (G.push({ tag: "_t", text: new String(U) }), U = "");
|
|
5145
5146
|
}
|
|
@@ -5164,8 +5165,8 @@ const fl = ".TDesign-doc-search{position:relative;width:200px;height:32px;box-si
|
|
|
5164
5165
|
return Y = we[0], re = we[we.length - 1], pe + ce.length - 1;
|
|
5165
5166
|
}
|
|
5166
5167
|
for (k && (k = k.split(" "), Y = k[0], re = k[1]), K = 0; K < T; K++)
|
|
5167
|
-
z == M ? C(Y, B, K) ? (--K, V(), z =
|
|
5168
|
-
` ? ae(W) : U += B.charAt(K) : z ==
|
|
5168
|
+
z == M ? C(Y, B, K) ? (--K, V(), z = j) : B.charAt(K) == `
|
|
5169
|
+
` ? ae(W) : U += B.charAt(K) : z == j ? (K += Y.length - 1, Z = o.tags[B.charAt(K + 1)], F = Z ? B.charAt(K + 1) : "_v", F == "=" ? (K = se(B, K), z = M) : (Z && K++, z = S), W = K) : C(re, B, K) ? (G.push({
|
|
5169
5170
|
tag: F,
|
|
5170
5171
|
n: w(U),
|
|
5171
5172
|
otag: Y,
|
|
@@ -5190,7 +5191,7 @@ const fl = ".TDesign-doc-search{position:relative;width:200px;height:32px;box-si
|
|
|
5190
5191
|
}
|
|
5191
5192
|
var u = { _t: !0, "\n": !0, $: !0, "/": !0 };
|
|
5192
5193
|
function l(x, B, k, T) {
|
|
5193
|
-
var M = [],
|
|
5194
|
+
var M = [], j = null, S = null, z = null;
|
|
5194
5195
|
for (S = k[k.length - 1]; x.length > 0; ) {
|
|
5195
5196
|
if (z = x.shift(), S && S.tag == "<" && !(z.tag in u))
|
|
5196
5197
|
throw new Error("Illegal content in < super tag.");
|
|
@@ -5199,11 +5200,11 @@ const fl = ".TDesign-doc-search{position:relative;width:200px;height:32px;box-si
|
|
|
5199
5200
|
else if (z.tag == "/") {
|
|
5200
5201
|
if (k.length === 0)
|
|
5201
5202
|
throw new Error("Closing tag without opener: /" + z.n);
|
|
5202
|
-
if (
|
|
5203
|
+
if (j = k.pop(), z.n != j.n && !v(z.n, j.n, T))
|
|
5203
5204
|
throw new Error(
|
|
5204
|
-
"Nesting error: " +
|
|
5205
|
+
"Nesting error: " + j.n + " vs. " + z.n
|
|
5205
5206
|
);
|
|
5206
|
-
return
|
|
5207
|
+
return j.end = z.i, M;
|
|
5207
5208
|
} else z.tag == `
|
|
5208
5209
|
` && (z.last = x.length == 0 || x[0].tag == `
|
|
5209
5210
|
`);
|
|
@@ -5345,8 +5346,8 @@ const fl = ".TDesign-doc-search{position:relative;width:200px;height:32px;box-si
|
|
|
5345
5346
|
var k = o.cacheKey(x, B), T = this.cache[k];
|
|
5346
5347
|
if (T) {
|
|
5347
5348
|
var M = T.partials;
|
|
5348
|
-
for (var
|
|
5349
|
-
delete M[
|
|
5349
|
+
for (var j in M)
|
|
5350
|
+
delete M[j].instance;
|
|
5350
5351
|
return T;
|
|
5351
5352
|
}
|
|
5352
5353
|
return T = this.generate(
|
|
@@ -5701,7 +5702,7 @@ const fl = ".TDesign-doc-search{position:relative;width:200px;height:32px;box-si
|
|
|
5701
5702
|
return JSON.parse(S.responseText);
|
|
5702
5703
|
});
|
|
5703
5704
|
}
|
|
5704
|
-
var
|
|
5705
|
+
var j = x(y._request, {
|
|
5705
5706
|
url: u.url,
|
|
5706
5707
|
method: u.method,
|
|
5707
5708
|
body: d,
|
|
@@ -5709,7 +5710,7 @@ const fl = ".TDesign-doc-search{position:relative;width:200px;height:32px;box-si
|
|
|
5709
5710
|
timeouts: y._getTimeoutsForRequest(u.hostType),
|
|
5710
5711
|
forceAuthHeaders: u.forceAuthHeaders
|
|
5711
5712
|
});
|
|
5712
|
-
return y._useCache && y._useRequestCache && b && (b[v] =
|
|
5713
|
+
return y._useCache && y._useRequestCache && b && (b[v] = j), k(j, function(S) {
|
|
5713
5714
|
return S.body;
|
|
5714
5715
|
});
|
|
5715
5716
|
}, p.prototype._getSearchParams = function(u, l) {
|
|
@@ -6333,7 +6334,7 @@ const fl = ".TDesign-doc-search{position:relative;width:200px;height:32px;box-si
|
|
|
6333
6334
|
}
|
|
6334
6335
|
v = g(v, h.headers);
|
|
6335
6336
|
var A = h.body, H = u.cors ? new XMLHttpRequest() : new XDomainRequest(), O, P, x = !1;
|
|
6336
|
-
O = setTimeout(T, h.timeouts.connect), H.onprogress =
|
|
6337
|
+
O = setTimeout(T, h.timeouts.connect), H.onprogress = j, "onreadystatechange" in H && (H.onreadystatechange = S), H.onload = B, H.onerror = k, H instanceof XMLHttpRequest ? (H.open(h.method, v, !0), h.forceAuthHeaders && (H.setRequestHeader(
|
|
6337
6338
|
"x-algolia-application-id",
|
|
6338
6339
|
h.headers["x-algolia-application-id"]
|
|
6339
6340
|
), H.setRequestHeader(
|
|
@@ -6369,7 +6370,7 @@ const fl = ".TDesign-doc-search{position:relative;width:200px;height:32px;box-si
|
|
|
6369
6370
|
function M() {
|
|
6370
6371
|
x = !0, clearTimeout(O), O = setTimeout(T, h.timeouts.complete);
|
|
6371
6372
|
}
|
|
6372
|
-
function
|
|
6373
|
+
function j() {
|
|
6373
6374
|
x || M();
|
|
6374
6375
|
}
|
|
6375
6376
|
function S() {
|
|
@@ -6484,7 +6485,7 @@ const fl = ".TDesign-doc-search{position:relative;width:200px;height:32px;box-si
|
|
|
6484
6485
|
h ? k = y() : v ? k = A() : b ? k = H() : l === void 0 ? k = B() : k = O();
|
|
6485
6486
|
function T(L, I) {
|
|
6486
6487
|
var X = this, J = new this.constructor(S);
|
|
6487
|
-
J[
|
|
6488
|
+
J[j] === void 0 && ye(J);
|
|
6488
6489
|
var $ = X._state;
|
|
6489
6490
|
if ($) {
|
|
6490
6491
|
var te = arguments[$ - 1];
|
|
@@ -6502,7 +6503,7 @@ const fl = ".TDesign-doc-search{position:relative;width:200px;height:32px;box-si
|
|
|
6502
6503
|
var X = new I(S);
|
|
6503
6504
|
return ee(X, L), X;
|
|
6504
6505
|
}
|
|
6505
|
-
var
|
|
6506
|
+
var j = Math.random().toString(36).substring(2);
|
|
6506
6507
|
function S() {
|
|
6507
6508
|
}
|
|
6508
6509
|
var z = void 0, F = 1, Z = 2, U = { error: null };
|
|
@@ -6620,14 +6621,14 @@ const fl = ".TDesign-doc-search{position:relative;width:200px;height:32px;box-si
|
|
|
6620
6621
|
return he++;
|
|
6621
6622
|
}
|
|
6622
6623
|
function ye(L) {
|
|
6623
|
-
L[
|
|
6624
|
+
L[j] = he++, L._state = void 0, L._result = void 0, L._subscribers = [];
|
|
6624
6625
|
}
|
|
6625
6626
|
function xe() {
|
|
6626
6627
|
return new Error("Array Methods must be provided an Array");
|
|
6627
6628
|
}
|
|
6628
6629
|
var ke = function() {
|
|
6629
6630
|
function L(I, X) {
|
|
6630
|
-
this._instanceConstructor = I, this.promise = new I(S), this.promise[
|
|
6631
|
+
this._instanceConstructor = I, this.promise = new I(S), this.promise[j] || ye(this.promise), c(X) ? (this.length = X.length, this._remaining = X.length, this._result = new Array(this.length), this.length === 0 ? se(this.promise, this._result) : (this.length = this.length || 0, this._enumerate(X), this._remaining === 0 && se(this.promise, this._result))) : ne(this.promise, xe());
|
|
6631
6632
|
}
|
|
6632
6633
|
return L.prototype._enumerate = function(X) {
|
|
6633
6634
|
for (var J = 0; this._state === z && J < X.length; J++)
|
|
@@ -6697,7 +6698,7 @@ const fl = ".TDesign-doc-search{position:relative;width:200px;height:32px;box-si
|
|
|
6697
6698
|
}
|
|
6698
6699
|
var q = function() {
|
|
6699
6700
|
function L(I) {
|
|
6700
|
-
this[
|
|
6701
|
+
this[j] = Ie(), this._result = this._state = void 0, this._subscribers = [], S !== I && (typeof I != "function" && N(), this instanceof L ? Me(this, I) : _());
|
|
6701
6702
|
}
|
|
6702
6703
|
return L.prototype.catch = function(X) {
|
|
6703
6704
|
return this.then(null, X);
|
|
@@ -7698,7 +7699,7 @@ const fl = ".TDesign-doc-search{position:relative;width:200px;height:32px;box-si
|
|
|
7698
7699
|
return x = s.element(T).css(
|
|
7699
7700
|
this.css.suggestions
|
|
7700
7701
|
), B = a.map(v, M), x.append.apply(x, B), x;
|
|
7701
|
-
function M(
|
|
7702
|
+
function M(j) {
|
|
7702
7703
|
var S, z = c.suggestion.replace("%PREFIX%", k.cssClasses.prefix).replace("%SUGGESTION%", k.cssClasses.suggestion);
|
|
7703
7704
|
return S = s.element(z).attr({
|
|
7704
7705
|
role: "option",
|
|
@@ -7706,9 +7707,9 @@ const fl = ".TDesign-doc-search{position:relative;width:200px;height:32px;box-si
|
|
|
7706
7707
|
}).append(
|
|
7707
7708
|
h.templates.suggestion.apply(
|
|
7708
7709
|
this,
|
|
7709
|
-
[
|
|
7710
|
+
[j].concat(P)
|
|
7710
7711
|
)
|
|
7711
|
-
), S.data(o, h.name), S.data(r, h.displayFn(
|
|
7712
|
+
), S.data(o, h.name), S.data(r, h.displayFn(j) || void 0), S.data(i, JSON.stringify(j)), S.children().each(function() {
|
|
7712
7713
|
s.element(this).css(k.css.suggestionChild);
|
|
7713
7714
|
}), S;
|
|
7714
7715
|
}
|
|
@@ -8103,7 +8104,7 @@ ie({
|
|
|
8103
8104
|
vl(t);
|
|
8104
8105
|
}
|
|
8105
8106
|
},
|
|
8106
|
-
render: () =>
|
|
8107
|
+
render: () => R`
|
|
8107
8108
|
<div>
|
|
8108
8109
|
<slot></slot>
|
|
8109
8110
|
</div>
|
|
@@ -8215,7 +8216,7 @@ ie({
|
|
|
8215
8216
|
const t = () => {
|
|
8216
8217
|
e.visible = !1;
|
|
8217
8218
|
};
|
|
8218
|
-
return
|
|
8219
|
+
return R`
|
|
8219
8220
|
<div class="${e.visible ? "visible" : "hidden"}">
|
|
8220
8221
|
<div class="${We}__overlay" onclick="${t}"></div>
|
|
8221
8222
|
<div class="${We}__drawer">
|
|
@@ -8321,7 +8322,7 @@ ie({
|
|
|
8321
8322
|
};
|
|
8322
8323
|
}
|
|
8323
8324
|
},
|
|
8324
|
-
render: (e) =>
|
|
8325
|
+
render: (e) => R`
|
|
8325
8326
|
<style>
|
|
8326
8327
|
${Hl}
|
|
8327
8328
|
</style>
|
|
@@ -8462,8 +8463,8 @@ ie({
|
|
|
8462
8463
|
p.visible = !0;
|
|
8463
8464
|
});
|
|
8464
8465
|
};
|
|
8465
|
-
return
|
|
8466
|
-
${a ?
|
|
8466
|
+
return R`
|
|
8467
|
+
${a ? R` <iframe id="__iframe__" class="TDesign-doc-header__thumb" onload="${Ml}"></iframe>` : R``}
|
|
8467
8468
|
<div class="TDesign-doc-header" style="${i}">
|
|
8468
8469
|
<div class="TDesign-doc-header__inner">
|
|
8469
8470
|
<div class="TDesign-doc-header__badge">
|
|
@@ -8471,15 +8472,15 @@ ie({
|
|
|
8471
8472
|
</div>
|
|
8472
8473
|
<div class="TDesign-doc-header__content">
|
|
8473
8474
|
<div class="TDesign-doc-header__info">
|
|
8474
|
-
${n ?
|
|
8475
|
+
${n ? R`
|
|
8475
8476
|
<div>
|
|
8476
8477
|
<h1 class="TDesign-doc-header__info-title">${n.title}</h1>
|
|
8477
|
-
${t && s && (In() || Rr()) ?
|
|
8478
|
+
${t && s && (In() || Rr()) ? R`
|
|
8478
8479
|
<button id="TDesign-doc-changelog__entry" onclick="${c}">
|
|
8479
8480
|
<i innerHTML="${_r}"></i>
|
|
8480
8481
|
<span>${El.changelog.title}</span>
|
|
8481
8482
|
</button>
|
|
8482
|
-
` :
|
|
8483
|
+
` : R``}
|
|
8483
8484
|
</div>
|
|
8484
8485
|
<div class="TDesign-doc-header__info-describe">
|
|
8485
8486
|
<td-doc-popup placement="top-end" equal-width="true">
|
|
@@ -8487,13 +8488,13 @@ ie({
|
|
|
8487
8488
|
<div slot="content" innerHTML="${n.desc}"></div>
|
|
8488
8489
|
</td-doc-popup>
|
|
8489
8490
|
</div>
|
|
8490
|
-
` :
|
|
8491
|
+
` : R``}
|
|
8491
8492
|
</div>
|
|
8492
8493
|
</div>
|
|
8493
8494
|
</div>
|
|
8494
8495
|
</div>
|
|
8495
8496
|
<div class="TDesign-doc-header__background"></div>
|
|
8496
|
-
${r ?
|
|
8497
|
+
${r ? R`<td-doc-issue />` : R``}
|
|
8497
8498
|
`.css`${Ol}`;
|
|
8498
8499
|
}
|
|
8499
8500
|
});
|
|
@@ -8542,7 +8543,7 @@ function jl(e) {
|
|
|
8542
8543
|
componentName: o,
|
|
8543
8544
|
...Rl()
|
|
8544
8545
|
};
|
|
8545
|
-
return o ?
|
|
8546
|
+
return o ? R`
|
|
8546
8547
|
<section id="issue" class="TDesign-component-issue">
|
|
8547
8548
|
<a onclick="${(i, a) => Wt(a, r, "new")}" class="item">
|
|
8548
8549
|
<i innerHTML=${zl}></i>
|
|
@@ -8557,7 +8558,7 @@ function jl(e) {
|
|
|
8557
8558
|
<span>${(r == null ? void 0 : r.closedNum) || ""} Closed</span>
|
|
8558
8559
|
</a>
|
|
8559
8560
|
</section>
|
|
8560
|
-
` :
|
|
8561
|
+
` : R``;
|
|
8561
8562
|
}
|
|
8562
8563
|
const Sl = (e, t = "open", n) => `https://api.github.com/search/issues?q=is:issue+is:${t}+${e}+repo:Tencent/${n}`;
|
|
8563
8564
|
function No(e, t, n = "open", o) {
|
|
@@ -8590,7 +8591,7 @@ ie({
|
|
|
8590
8591
|
n && No(e, n, "closed", t);
|
|
8591
8592
|
}
|
|
8592
8593
|
},
|
|
8593
|
-
render: (e) =>
|
|
8594
|
+
render: (e) => R`${jl(e)}`.css`${kl}`
|
|
8594
8595
|
});
|
|
8595
8596
|
const Il = () => {
|
|
8596
8597
|
const t = ze() === "en";
|
|
@@ -8828,7 +8829,7 @@ ie({
|
|
|
8828
8829
|
const t = { ...e.mobileBodyStyle }, { displayQrCode: n } = e, o = (r) => {
|
|
8829
8830
|
e.displayQrCode = nc[r];
|
|
8830
8831
|
};
|
|
8831
|
-
return
|
|
8832
|
+
return R`
|
|
8832
8833
|
<div class="TDesign-doc-footer" style="${t}">
|
|
8833
8834
|
<div class="TDesign-doc-footer__inner">
|
|
8834
8835
|
<div class="TDesign-doc-footer__content">
|
|
@@ -8879,11 +8880,11 @@ ie({
|
|
|
8879
8880
|
</div>
|
|
8880
8881
|
|
|
8881
8882
|
${ec.map(
|
|
8882
|
-
(r) =>
|
|
8883
|
+
(r) => R`
|
|
8883
8884
|
<div class="TDesign-doc-footer__content-block">
|
|
8884
8885
|
<p class="title">${r.title}</p>
|
|
8885
8886
|
${r.links.map(
|
|
8886
|
-
(i) =>
|
|
8887
|
+
(i) => R`
|
|
8887
8888
|
<a class="link" href="${i.url}" target="${i.target}">
|
|
8888
8889
|
<span>${i.name}</span>
|
|
8889
8890
|
</a>
|
|
@@ -8965,7 +8966,7 @@ ie({
|
|
|
8965
8966
|
},
|
|
8966
8967
|
render: (e) => {
|
|
8967
8968
|
const { placement: t } = e;
|
|
8968
|
-
return
|
|
8969
|
+
return R`
|
|
8969
8970
|
<div
|
|
8970
8971
|
class="TDesign-doc-popup"
|
|
8971
8972
|
data-placement="${t}"
|
|
@@ -8993,7 +8994,7 @@ ie({
|
|
|
8993
8994
|
let r = o;
|
|
8994
8995
|
r || (r = ic(n));
|
|
8995
8996
|
const i = encodeURI(`https://img.shields.io/badge/${t}-${n}-${r}`);
|
|
8996
|
-
return
|
|
8997
|
+
return R` <img class="TDesign-doc-badge" src="${i}" /> `.css`${rc}`;
|
|
8997
8998
|
}
|
|
8998
8999
|
});
|
|
8999
9000
|
var Ze = {}, $t, qo;
|
|
@@ -10279,8 +10280,8 @@ function Ac() {
|
|
|
10279
10280
|
for (T === 6 && T--; ; ) {
|
|
10280
10281
|
for (let M = 0; M < 2; M++)
|
|
10281
10282
|
if (!A.isReserved(x, T - M)) {
|
|
10282
|
-
let
|
|
10283
|
-
k < H.length && (
|
|
10283
|
+
let j = !1;
|
|
10284
|
+
k < H.length && (j = (H[k] >>> B & 1) === 1), A.set(x, T - M, j), B--, B === -1 && (k++, B = 7);
|
|
10284
10285
|
}
|
|
10285
10286
|
if (x += P, x < 0 || O <= x) {
|
|
10286
10287
|
x -= P, P = -P;
|
|
@@ -10302,7 +10303,7 @@ function Ac() {
|
|
|
10302
10303
|
return y(P, A, H);
|
|
10303
10304
|
}
|
|
10304
10305
|
function y(A, H, O) {
|
|
10305
|
-
const P = e.getSymbolTotalCodewords(H), x = s.getTotalCodewordsCount(H, O), B = P - x, k = s.getBlocksCount(H, O), T = P % k, M = k - T,
|
|
10306
|
+
const P = e.getSymbolTotalCodewords(H), x = s.getTotalCodewordsCount(H, O), B = P - x, k = s.getBlocksCount(H, O), T = P % k, M = k - T, j = Math.floor(P / k), S = Math.floor(B / k), z = S + 1, F = j - S, Z = new c(F);
|
|
10306
10307
|
let U = 0;
|
|
10307
10308
|
const G = new Array(k), W = new Array(k);
|
|
10308
10309
|
let K = 0;
|
|
@@ -10326,12 +10327,12 @@ function Ac() {
|
|
|
10326
10327
|
if (Array.isArray(A))
|
|
10327
10328
|
x = w.fromArray(A);
|
|
10328
10329
|
else if (typeof A == "string") {
|
|
10329
|
-
let
|
|
10330
|
-
if (!
|
|
10330
|
+
let j = H;
|
|
10331
|
+
if (!j) {
|
|
10331
10332
|
const S = w.rawSplit(A);
|
|
10332
|
-
|
|
10333
|
+
j = p.getBestVersionForData(S, O);
|
|
10333
10334
|
}
|
|
10334
|
-
x = w.fromString(A,
|
|
10335
|
+
x = w.fromString(A, j || 40);
|
|
10335
10336
|
} else
|
|
10336
10337
|
throw new Error("Invalid data");
|
|
10337
10338
|
const B = p.getBestVersionForData(x, O);
|
|
@@ -10590,10 +10591,10 @@ ie({
|
|
|
10590
10591
|
};
|
|
10591
10592
|
}
|
|
10592
10593
|
},
|
|
10593
|
-
render: ({ fixedStyle: e, headless: t, href: n }) =>
|
|
10594
|
+
render: ({ fixedStyle: e, headless: t, href: n }) => R`
|
|
10594
10595
|
<div class="TDesign-doc-phone-mask" onclick="${An}"></div>
|
|
10595
10596
|
<div class="TDesign-doc-phone" style=${e}>
|
|
10596
|
-
${t ?
|
|
10597
|
+
${t ? R`` : R`
|
|
10597
10598
|
<div class="TDesign-doc-phone__header">
|
|
10598
10599
|
<div class="TDesign-doc-phone__header-icons">
|
|
10599
10600
|
<td-doc-popup placement="left-start">
|
|
@@ -10604,7 +10605,7 @@ ie({
|
|
|
10604
10605
|
</slot>
|
|
10605
10606
|
</div>
|
|
10606
10607
|
</td-doc-popup>
|
|
10607
|
-
${n &&
|
|
10608
|
+
${n && R`<a href="${n}" target="_blank"><span class="icon" innerHTML="${Mc}"></span></a>`}
|
|
10608
10609
|
</div>
|
|
10609
10610
|
</div>
|
|
10610
10611
|
`}
|
|
@@ -10684,18 +10685,18 @@ ie({
|
|
|
10684
10685
|
},
|
|
10685
10686
|
render: (e) => {
|
|
10686
10687
|
const { tab: t, tabs: n, blockStyleMap: o } = e, r = o ? o[t] : {};
|
|
10687
|
-
return n.length ?
|
|
10688
|
+
return n.length ? R`
|
|
10688
10689
|
<div class="TDesign-doc-tabs">
|
|
10689
10690
|
<span class="TDesign-doc-tabs__block" style="${r}"></span>
|
|
10690
10691
|
${n.map(
|
|
10691
|
-
(i) =>
|
|
10692
|
+
(i) => R`
|
|
10692
10693
|
<div data-tab=${i.tab} onclick="${Qc}" class="item ${i.tab === t ? "active" : ""}">
|
|
10693
10694
|
${i.name}
|
|
10694
10695
|
</div>
|
|
10695
10696
|
`
|
|
10696
10697
|
)}
|
|
10697
10698
|
</div>
|
|
10698
|
-
`.css`${kc}` :
|
|
10699
|
+
`.css`${kc}` : R``;
|
|
10699
10700
|
}
|
|
10700
10701
|
});
|
|
10701
10702
|
var Dn = { exports: {} }, wr;
|
|
@@ -11323,7 +11324,7 @@ function zc() {
|
|
|
11323
11324
|
for (var x = 0; x < P.length; ++x) {
|
|
11324
11325
|
if (H && H.cause == O + "," + x)
|
|
11325
11326
|
return;
|
|
11326
|
-
var B = P[x], k = B.inside, T = !!B.lookbehind, M = !!B.greedy,
|
|
11327
|
+
var B = P[x], k = B.inside, T = !!B.lookbehind, M = !!B.greedy, j = B.alias;
|
|
11327
11328
|
if (M && !B.pattern.global) {
|
|
11328
11329
|
var S = B.pattern.toString().match(/[imsuy]*$/)[0];
|
|
11329
11330
|
B.pattern = RegExp(B.pattern.source, S + "g");
|
|
@@ -11351,7 +11352,7 @@ function zc() {
|
|
|
11351
11352
|
H && se > H.reach && (H.reach = se);
|
|
11352
11353
|
var ne = F.prev;
|
|
11353
11354
|
ee && (ne = w(b, ne, ee), Z += ee.length), C(b, ne, G);
|
|
11354
|
-
var de = new c(O, k ? s.tokenize(V, k) : V,
|
|
11355
|
+
var de = new c(O, k ? s.tokenize(V, k) : V, j, V);
|
|
11355
11356
|
if (F = w(b, ne, de), ae && w(b, F, ae), G > 1) {
|
|
11356
11357
|
var ce = {
|
|
11357
11358
|
cause: O + "," + x,
|
|
@@ -12394,24 +12395,24 @@ ie({
|
|
|
12394
12395
|
}, d = (D) => {
|
|
12395
12396
|
e.currentLangIndex = D, Te(e, "click", { detail: { index: D, lang: p[D] } });
|
|
12396
12397
|
};
|
|
12397
|
-
return
|
|
12398
|
+
return R`
|
|
12398
12399
|
<div class="TDesign-doc-demo ${r}">
|
|
12399
12400
|
<slot></slot>
|
|
12400
12401
|
<div class="TDesign-doc-demo__footer">
|
|
12401
12402
|
<div class="TDesign-doc-demo__btns">
|
|
12402
12403
|
<slot name="action"></slot>
|
|
12403
12404
|
<td-doc-copy code=${((b = e.dataset) == null ? void 0 : b[f]) || ((y = e.dataset) == null ? void 0 : y[f.toLocaleLowerCase()]) || t} theme=${r === "open" ? "dark" : "light"}></td-doc-copy>
|
|
12404
|
-
${r === "open" ?
|
|
12405
|
+
${r === "open" ? R`` : R`<span
|
|
12405
12406
|
class="action code ${o ? "active" : ""}"
|
|
12406
|
-
onclick=${
|
|
12407
|
+
onclick=${R.set("showCode", !o)}
|
|
12407
12408
|
innerHTML=${oi}
|
|
12408
12409
|
></span>`}
|
|
12409
12410
|
</div>
|
|
12410
12411
|
<div class="TDesign-doc-demo__code ${i}" style="${l}">
|
|
12411
|
-
${g ?
|
|
12412
|
+
${g ? R`<div class="TDesign-doc-demo-tabs">
|
|
12412
12413
|
<span class="TDesign-doc-demo-tabs__active" style="${u}"></span>
|
|
12413
12414
|
${p.map(
|
|
12414
|
-
(D, A) =>
|
|
12415
|
+
(D, A) => R`<div
|
|
12415
12416
|
data-tab=${D}
|
|
12416
12417
|
class="TDesign-doc-demo-tabs__item ${a === A ? "active" : null}"
|
|
12417
12418
|
onclick=${() => d(A)}
|
|
@@ -12447,7 +12448,7 @@ function Xc(e) {
|
|
|
12447
12448
|
ie({
|
|
12448
12449
|
tag: "td-doc-copy",
|
|
12449
12450
|
code: "",
|
|
12450
|
-
render: () =>
|
|
12451
|
+
render: () => R`
|
|
12451
12452
|
<td-tooltip duration="800">
|
|
12452
12453
|
<div class="TDesign-doc-copy__inner" innerHTML=${Nc} onclick=${Xc}></div>
|
|
12453
12454
|
<span slot="content">已复制</span>
|
|
@@ -12457,7 +12458,7 @@ ie({
|
|
|
12457
12458
|
const Fc = ".TDesign-doc-empty .light{display:var(--theme-block-light-display)}.TDesign-doc-empty .dark{display:var(--theme-block-dark-display)}.TDesign-doc-empty__design{display:flex;justify-content:center;align-items:center;padding:48px;border:1px solid var(--component-border);border-radius:6px}.TDesign-doc-empty__design img{width:50%;height:auto;min-width:240px}";
|
|
12458
12459
|
function qc(e) {
|
|
12459
12460
|
if (e === "design")
|
|
12460
|
-
return
|
|
12461
|
+
return R`
|
|
12461
12462
|
<div class="TDesign-doc-empty__design">
|
|
12462
12463
|
<img class="light" src="https://tdesign.gtimg.com/site/webcomponents/empty-light.png" />
|
|
12463
12464
|
<img class="dark" src="https://tdesign.gtimg.com/site/webcomponents/empty-dark.png" />
|
|
@@ -12469,7 +12470,7 @@ ie({
|
|
|
12469
12470
|
type: "design",
|
|
12470
12471
|
render: (e) => {
|
|
12471
12472
|
const { type: t } = e;
|
|
12472
|
-
return
|
|
12473
|
+
return R` <div class="TDesign-doc-empty">${qc(t)}</div> `.css`${Fc}`;
|
|
12473
12474
|
}
|
|
12474
12475
|
});
|
|
12475
12476
|
const Gc = ":host{font-size:14px;line-height:24px}.TDesign-doc-history{padding:7px 12px;border-radius:6px;display:inline-flex;align-items:center;justify-content:center;color:var(--text-primary);background-color:var(--bg-color-code);border:1px solid var(--component-border)}.TDesign-doc-history .icon{margin-right:8px;display:inline-flex}.TDesign-doc-history .icon svg{color:var(--text-placeholder)}.TDesign-doc-history .text{margin-right:4px;color:var(--text-secondary)}";
|
|
@@ -12481,10 +12482,10 @@ ie({
|
|
|
12481
12482
|
tag: "td-doc-history",
|
|
12482
12483
|
time: "",
|
|
12483
12484
|
content: "",
|
|
12484
|
-
render: ({ time: e, content: t }) =>
|
|
12485
|
+
render: ({ time: e, content: t }) => R`
|
|
12485
12486
|
<div class="TDesign-doc-history">
|
|
12486
12487
|
<i class="icon" innerHTML="${_r}"></i>
|
|
12487
|
-
${t ||
|
|
12488
|
+
${t || R`
|
|
12488
12489
|
<span class="text">Last Update: </span>
|
|
12489
12490
|
${Uc(e)}
|
|
12490
12491
|
`}
|
|
@@ -12512,11 +12513,11 @@ function Yc(e = []) {
|
|
|
12512
12513
|
const t = [], n = [];
|
|
12513
12514
|
return e.forEach((o) => {
|
|
12514
12515
|
/boolean/i.test(o.type) && t.push(o), /enum/i.test(o.type) && n.push(o);
|
|
12515
|
-
}),
|
|
12516
|
-
${t.length ?
|
|
12516
|
+
}), R`
|
|
12517
|
+
${t.length ? R`
|
|
12517
12518
|
<ul class="TDesign-doc-usage__config-list">
|
|
12518
12519
|
${t.map(
|
|
12519
|
-
(o) =>
|
|
12520
|
+
(o) => R`
|
|
12520
12521
|
<li class="item">
|
|
12521
12522
|
<span class="name" title="${o.name}">${o.name}</span>
|
|
12522
12523
|
<td-switch
|
|
@@ -12529,11 +12530,11 @@ function Yc(e = []) {
|
|
|
12529
12530
|
)}
|
|
12530
12531
|
</ul>
|
|
12531
12532
|
` : ""}
|
|
12532
|
-
${n.length ?
|
|
12533
|
-
${t.length ?
|
|
12533
|
+
${n.length ? R`
|
|
12534
|
+
${t.length ? R`<div class="TDesign-doc-usage__config-divider"></div>` : ""}
|
|
12534
12535
|
<ul class="TDesign-doc-usage__config-list">
|
|
12535
12536
|
${n.map(
|
|
12536
|
-
(o) =>
|
|
12537
|
+
(o) => R`
|
|
12537
12538
|
<li class="item">
|
|
12538
12539
|
<span class="name" title="${o.name}">${o.name}</span>
|
|
12539
12540
|
<td-select
|
|
@@ -12580,14 +12581,14 @@ ie({
|
|
|
12580
12581
|
maxHeight: o ? "240px" : 0,
|
|
12581
12582
|
transitionTimingFunction: o ? "cubic-bezier(.82, 0, 1, .9)" : "ease"
|
|
12582
12583
|
};
|
|
12583
|
-
return
|
|
12584
|
+
return R`
|
|
12584
12585
|
<div class="TDesign-doc-usage">
|
|
12585
12586
|
<div class="TDesign-doc-usage__content">
|
|
12586
12587
|
<div class="TDesign-doc-usage__render">
|
|
12587
12588
|
<div class="TDesign-doc-usage__render-header">
|
|
12588
12589
|
${i.map(
|
|
12589
|
-
(p) =>
|
|
12590
|
-
<div class="header-panel" onclick="${
|
|
12590
|
+
(p) => R`
|
|
12591
|
+
<div class="header-panel" onclick="${R.set("panel", p.value)}">
|
|
12591
12592
|
<span class="panel-inner ${a === p.value ? "active" : ""}">${p.label}</span>
|
|
12592
12593
|
</div>
|
|
12593
12594
|
`
|
|
@@ -12603,7 +12604,7 @@ ie({
|
|
|
12603
12604
|
<td-doc-copy code=${t}></td-doc-copy>
|
|
12604
12605
|
<span
|
|
12605
12606
|
class="action code ${o ? "active" : ""}"
|
|
12606
|
-
onclick=${
|
|
12607
|
+
onclick=${R.set("showCode", !o)}
|
|
12607
12608
|
innerHTML=${oi}
|
|
12608
12609
|
></span>
|
|
12609
12610
|
</div>
|
|
@@ -12631,7 +12632,7 @@ const Jc = ":host{display:inline;line-height:calc(100% + 8px);font-size:12px;mar
|
|
|
12631
12632
|
ie({
|
|
12632
12633
|
tag: "td-code",
|
|
12633
12634
|
text: "",
|
|
12634
|
-
render: ({ text: e }) =>
|
|
12635
|
+
render: ({ text: e }) => R`<code class="TDesign-code">${e}</code>`.css`${Jc}`
|
|
12635
12636
|
});
|
|
12636
12637
|
const Wc = "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}:host{display:block}.TDesign-code-block{font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;border-radius:6px;border:1px solid var(--component-border);position:relative}.TDesign-code-block td-doc-copy{position:absolute;right:8px;top:8px;z-index:10}.TDesign-code-block__header{min-height:48px;display:flex;box-sizing:border-box;box-shadow:var(--header-box-shadow);overflow:auto hidden;position:relative}.TDesign-code-block__header .header-panel{padding:8px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.TDesign-code-block__header .header-panel:hover .panel-inner{background:var(--bg-color-container-hover)}.TDesign-code-block__header .header-panel .panel-inner{padding:8px;transition:all .2s linear;border-radius:3px}.TDesign-code-block__header .header-panel .panel-inner.active{color:var(--brand-main)}.TDesign-code-block__header .active-line{height:1px;position:absolute;left:0;bottom:0;z-index:10;background:var(--brand-main);transition:all .2s var(--anim-time-fn-easing)}.TDesign-code-block__body{max-height:334px;box-sizing:border-box;background-color:var(--bg-color-code)}.TDesign-code-block__body pre{margin:0;padding:24px;max-height:334px;box-sizing:border-box;overflow:auto;background:var(--bg-color-code);color:var(--text-primary)}.TDesign-code-block__body pre:hover::-webkit-scrollbar-thumb{background-color:var(--bg-color-scroll)}.TDesign-code-block__body pre::-webkit-scrollbar{width:12px;height:12px;background:transparent}.TDesign-code-block__body pre::-webkit-scrollbar-corner{width:0}.TDesign-code-block__body pre::-webkit-scrollbar-thumb{border-radius:6px;border:4px solid transparent;background-clip:content-box;background-color:transparent}";
|
|
12637
12638
|
function _c(e) {
|
|
@@ -12667,13 +12668,13 @@ ie({
|
|
|
12667
12668
|
},
|
|
12668
12669
|
render: (e) => {
|
|
12669
12670
|
const { panel: t } = e, { slotsName: n, slotsContentMap: o } = $c(e), r = o[t], i = ot.highlight(r.content, ot.languages[r.lang], r.lang);
|
|
12670
|
-
return
|
|
12671
|
+
return R`
|
|
12671
12672
|
<div class="TDesign-code-block">
|
|
12672
12673
|
<td-doc-copy code="${r.content}"></td-doc-copy>
|
|
12673
12674
|
<div class="TDesign-code-block__header">
|
|
12674
12675
|
${n.map(
|
|
12675
|
-
(a) =>
|
|
12676
|
-
<div class="header-panel" onclick="${
|
|
12676
|
+
(a) => R`
|
|
12677
|
+
<div class="header-panel" onclick="${R.set("panel", a)}">
|
|
12677
12678
|
<span class="panel-inner ${t === a ? "active" : ""}">${a}</span>
|
|
12678
12679
|
</div>
|
|
12679
12680
|
`
|
|
@@ -12736,7 +12737,7 @@ ie({
|
|
|
12736
12737
|
};
|
|
12737
12738
|
}
|
|
12738
12739
|
},
|
|
12739
|
-
render: () =>
|
|
12740
|
+
render: () => R`<style>
|
|
12740
12741
|
:host {
|
|
12741
12742
|
display: none;
|
|
12742
12743
|
}
|
|
@@ -12771,7 +12772,7 @@ ie({
|
|
|
12771
12772
|
const { theme: t, zIndex: n, content: o, showMessage: r } = e, a = `${i1(t)}${o}`, s = {
|
|
12772
12773
|
zIndex: n
|
|
12773
12774
|
}, c = ["t-message", `t-is-${t}`].concat(r ? "t-message-enter" : "t-message-leave");
|
|
12774
|
-
return
|
|
12775
|
+
return R`
|
|
12775
12776
|
<div class="TDesign-message">
|
|
12776
12777
|
<div style=${s} class="${c}" innerHTML=${a}></div>
|
|
12777
12778
|
</div>
|
|
@@ -12793,8 +12794,8 @@ ie({
|
|
|
12793
12794
|
tag: "td-portal",
|
|
12794
12795
|
visible: !1,
|
|
12795
12796
|
portalStyle: "",
|
|
12796
|
-
render: (e) =>
|
|
12797
|
-
${e.portalStyle ?
|
|
12797
|
+
render: (e) => R`
|
|
12798
|
+
${e.portalStyle ? R`<style>
|
|
12798
12799
|
${e.portalStyle}
|
|
12799
12800
|
</style>` : ""}
|
|
12800
12801
|
<slot class="TDesign-portal" name="content"></slot>
|
|
@@ -12808,11 +12809,11 @@ function c1(e) {
|
|
|
12808
12809
|
o.visible = !1;
|
|
12809
12810
|
}), Te(o, "change", { detail: { value: o.value } });
|
|
12810
12811
|
}
|
|
12811
|
-
return
|
|
12812
|
+
return R`
|
|
12812
12813
|
<ul class="TDesign-select-list">
|
|
12813
12814
|
${t.map((o) => {
|
|
12814
12815
|
const r = o.value == e.value;
|
|
12815
|
-
return
|
|
12816
|
+
return R`
|
|
12816
12817
|
<li
|
|
12817
12818
|
onclick="${(i) => n(i, o)}"
|
|
12818
12819
|
class="TDesign-select-list__item ${r ? "is-active" : ""}"
|
|
@@ -12835,7 +12836,7 @@ ie({
|
|
|
12835
12836
|
},
|
|
12836
12837
|
render: (e) => {
|
|
12837
12838
|
const { options: t, value: n, visible: o, borderless: r } = e, a = (t.find((c) => c.value == n) || {}).label || "";
|
|
12838
|
-
return
|
|
12839
|
+
return R`
|
|
12839
12840
|
<td-doc-popup
|
|
12840
12841
|
visible="${o}"
|
|
12841
12842
|
placement="bottom-start"
|
|
@@ -12871,7 +12872,7 @@ ie({
|
|
|
12871
12872
|
"is-checked": t,
|
|
12872
12873
|
[`size-${n}`]: n
|
|
12873
12874
|
};
|
|
12874
|
-
return
|
|
12875
|
+
return R`
|
|
12875
12876
|
<button type="button" class="${o}" onclick="${u1}">
|
|
12876
12877
|
<span class="TDesign-switch__handle"></span>
|
|
12877
12878
|
</button>
|