mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-27 20:49:53 +08:00
320 lines
352 KiB
HTML
320 lines
352 KiB
HTML
|
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/umi.e17555bc.js"/><script crossorigin="anonymous" async="" src="//www.googletagmanager.com/gtag/js?id=UA-72788897-1"></script><link rel="shortcut icon" href="https://gw.alipayobjects.com/zos/rmsportal/rlpTLlbMzTNYuZGGCVYM.png"/><meta name="theme-color" content="#1677ff"/><meta name="build-time" content="1732127074172"/><meta name="build-hash" content="4dfa7ddf5ed998c61f4d43206ed1fb2afaf5d838"/><link rel="prefetch" as="font" href="//at.alicdn.com/t/webfont_6e11e43nfj.woff2" type="font/woff2" crossorigin="anonymous"/><link rel="prefetch" as="font" href="//at.alicdn.com/t/webfont_6e11e43nfj.woff" type="font/woff" crossorigin="anonymous"/><link rel="prefetch" as="font" href="//at.alicdn.com/t/webfont_6e11e43nfj.ttf" type="font/ttf" crossorigin="anonymous"/><link rel="prefetch" as="font" href="//at.alicdn.com/t/webfont_exesdog9toj.woff2" type="font/woff2" crossorigin="anonymous"/><link rel="prefetch" as="font" href="//at.alicdn.com/t/webfont_exesdog9toj.woff" type="font/woff" crossorigin="anonymous"/><link rel="prefetch" as="font" href="//at.alicdn.com/t/webfont_exesdog9toj.ttf" type="font/ttf" crossorigin="anonymous"/><link rel="preload" as="font" href="//at.alicdn.com/wf/webfont/exMpJIukiCms/Gsw2PSKrftc1yNWMNlXgw.woff2" type="font/woff2" crossorigin="anonymous"/><link rel="preload" as="font" href="//at.alicdn.com/wf/webfont/exMpJIukiCms/vtu73by4O2gEBcvBuLgeu.woff" type="font/woff2" crossorigin="anonymous"/><link rel="stylesheet" href="/umi.e201e39d.css"/><script crossorigin="anonymous">
|
|||
|
(function () {
|
|||
|
function isLocalStorageNameSupported() {
|
|||
|
const testKey = 'test';
|
|||
|
const storage = window.localStorage;
|
|||
|
try {
|
|||
|
storage.setItem(testKey, '1');
|
|||
|
storage.removeItem(testKey);
|
|||
|
return true;
|
|||
|
} catch (error) {
|
|||
|
return false;
|
|||
|
}
|
|||
|
}
|
|||
|
// 优先级提高到所有静态资源的前面,语言不对,加载其他静态资源没意义
|
|||
|
const pathname = location.pathname;
|
|||
|
|
|||
|
function isZhCN(pathname) {
|
|||
|
return /-cn\/?$/.test(pathname);
|
|||
|
}
|
|||
|
function getLocalizedPathname(path, zhCN) {
|
|||
|
const pathname = path.indexOf('/') === 0 ? path : '/' + path;
|
|||
|
if (!zhCN) {
|
|||
|
// to enUS
|
|||
|
return /\/?index(-cn)?/.test(pathname) ? '/' : pathname.replace('-cn', '');
|
|||
|
} else if (pathname === '/') {
|
|||
|
return '/index-cn';
|
|||
|
} else if (pathname.indexOf('/') === pathname.length - 1) {
|
|||
|
return pathname.replace(/\/$/, '-cn/');
|
|||
|
}
|
|||
|
return pathname + '-cn';
|
|||
|
}
|
|||
|
|
|||
|
// 兼容旧的 URL, `?locale=...`
|
|||
|
const queryString = location.search;
|
|||
|
if (queryString) {
|
|||
|
const isZhCNConfig = queryString.indexOf('zh-CN') > -1;
|
|||
|
if (isZhCNConfig && !isZhCN(pathname)) {
|
|||
|
location.pathname = getLocalizedPathname(pathname, isZhCNConfig);
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
// 首页无视链接里面的语言设置 https://github.com/ant-design/ant-design/issues/4552
|
|||
|
if (isLocalStorageNameSupported() && (pathname === '/' || pathname === '/index-cn')) {
|
|||
|
const lang =
|
|||
|
(window.localStorage && localStorage.getItem('locale')) ||
|
|||
|
((navigator.language || navigator.browserLanguage).toLowerCase() === 'zh-cn'
|
|||
|
? 'zh-CN'
|
|||
|
: 'en-US');
|
|||
|
// safari is 'zh-cn', while other browser is 'zh-CN';
|
|||
|
if ((lang === 'zh-CN') !== isZhCN(pathname)) {
|
|||
|
location.pathname = getLocalizedPathname(pathname, lang === 'zh-CN');
|
|||
|
}
|
|||
|
}
|
|||
|
document.documentElement.className += isZhCN(pathname) ? 'zh-cn' : 'en-us';
|
|||
|
})();
|
|||
|
</script><script crossorigin="anonymous">window.dataLayer = window.dataLayer || [];
|
|||
|
function gtag(){dataLayer.push(arguments);}
|
|||
|
gtag('js', new Date());
|
|||
|
gtag('config', 'UA-72788897-1');</script><style data-type="antd-cssinjs">a{color:var(--ant-color-link);text-decoration:var(--ant-link-decoration);background-color:transparent;outline:none;cursor:pointer;transition:color var(--ant-motion-duration-slow);-webkit-text-decoration-skip:objects;}a:hover{color:var(--ant-color-link-hover);}a:active{color:var(--ant-color-link-active);}a:active,a:hover{text-decoration:var(--ant-link-hover-decoration);outline:0;}a:focus{text-decoration:var(--ant-link-focus-decoration);outline:0;}a[disabled]{color:var(--ant-color-text-disabled);cursor:not-allowed;}.ant-app{font-family:var(--ant-font-family);font-size:var(--ant-font-size);box-sizing:border-box;}.ant-app::before,.ant-app::after{box-sizing:border-box;}.ant-app [class^="ant-app"],.ant-app [class*=" ant-app"]{box-sizing:border-box;}.ant-app [class^="ant-app"]::before,.ant-app [class*=" ant-app"]::before,.ant-app [class^="ant-app"]::after,.ant-app [class*=" ant-app"]::after{box-sizing:border-box;}.ant-app{color:var(--ant-color-text);font-size:var(--ant-font-size);line-height:var(--ant-line-height);font-family:var(--ant-font-family);}.ant-app.ant-app-rtl{direction:rtl;}.ant-float-btn-css-var{font-family:var(--ant-font-family);font-size:var(--ant-font-size);box-sizing:border-box;}.ant-float-btn-css-var::before,.ant-float-btn-css-var::after{box-sizing:border-box;}.ant-float-btn-css-var [class^="ant-float-btn"],.ant-float-btn-css-var [class*=" ant-float-btn"]{box-sizing:border-box;}.ant-float-btn-css-var [class^="ant-float-btn"]::before,.ant-float-btn-css-var [class*=" ant-float-btn"]::before,.ant-float-btn-css-var [class^="ant-float-btn"]::after,.ant-float-btn-css-var [class*=" ant-float-btn"]::after{box-sizing:border-box;}.ant-float-btn-group{box-sizing:border-box;margin:0;padding:0;color:var(--ant-color-text);font-size:var(--ant-font-size);line-height:var(--ant-line-height);list-style:none;font-family:var(--ant-font-family);z-index:var(--ant-z-index-popup-base);display:flex;flex-direction:column;align-items:center;justify-content:center;border:none;position:fixed;height:auto;box-shadow:none;min-width:var(--ant-control-height-lg);min-height:var(--ant-control-height-lg);inset-inline-end:var(--ant-margin-lg);bottom:var(--ant-margin-xxl);border-radius:var(--ant-border-radius-lg);}.ant-float-btn-group .ant-float-btn-group-wrap{z-index:-1;display:flex;justify-content:center;align-items:center;position:absolute;}.ant-float-btn-group.ant-float-btn-group-rtl{direction:rtl;}.ant-float-btn-group .ant-float-btn{position:static;}.ant-float-btn-group-top>.ant-float-btn-group-wrap{flex-direction:column;top:auto;bottom:calc(var(--ant-control-height-lg) + var(--ant-margin));}.ant-float-btn-group-top>.ant-float-btn-group-wrap::after{content:"";position:absolute;width:100%;height:var(--ant-margin);bottom:calc(var(--ant-margin) * -1);}.ant-float-btn-group-bottom>.ant-float-btn-group-wrap{flex-direction:column;top:calc(var(--ant-control-height-lg) + var(--ant-margin));bottom:auto;}.ant-float-btn-group-bottom>.ant-float-btn-group-wrap::after{content:"";position:absolute;width:100%;height:var(--ant-margin);top:calc(var(--ant-margin) * -1);}.ant-float-btn-group-right>.ant-float-btn-group-wrap{flex-direction:row;left:calc(var(--ant-control-height-lg) + var(--ant-margin));right:auto;}.ant-float-btn-group-right>.ant-float-btn-group-wrap::after{content:"";position:absolute;width:var(--ant-margin);height:100%;left:calc(var(--ant-margin) * -1);}.ant-float-btn-group-left>.ant-float-btn-group-wrap{flex-direction:row;left:auto;right:calc(var(--ant-control-height-lg) + var(--ant-margin));}.ant-float-btn-group-left>.ant-float-btn-group-wrap::after{content:"";position:absolute;width:var(--ant-margin);height:100%;right:calc(var(--ant-margin) * -1);}.ant-float-btn-group-circle{gap:var(--ant-margin);}.ant-float-btn-group-circle .ant-float-btn-group-wrap{gap:var(--ant-margin);}.ant-float-btn-group-square .ant-float-btn-square{padding:0;border-radius:0;}.ant-float-btn-group-square .ant-float-btn-square.ant-float-btn-group-trigger{border-radius:var(--ant-border-radius-lg);}.
|
|||
|
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|||
|
'Noto Color Emoji';--ant-font-family-code:'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;--ant-font-size:14px;--ant-line-width:1px;--ant-line-type:solid;--ant-motion-ease-out-circ:cubic-bezier(0.08, 0.82, 0.17, 1);--ant-motion-ease-in-out-circ:cubic-bezier(0.78, 0.14, 0.15, 0.86);--ant-motion-ease-out:cubic-bezier(0.215, 0.61, 0.355, 1);--ant-motion-ease-in-out:cubic-bezier(0.645, 0.045, 0.355, 1);--ant-motion-ease-out-back:cubic-bezier(0.12, 0.4, 0.29, 1.46);--ant-motion-ease-in-back:cubic-bezier(0.71, -0.46, 0.88, 0.6);--ant-motion-ease-in-quint:cubic-bezier(0.755, 0.05, 0.855, 0.06);--ant-motion-ease-out-quint:cubic-bezier(0.23, 1, 0.32, 1);--ant-border-radius:6px;--ant-size-popup-arrow:16px;--ant-control-height:32px;--ant-z-index-base:0;--ant-z-index-popup-base:1000;--ant-opacity-image:1;--ant-blue-1:#e6f4ff;--ant-blue-2:#bae0ff;--ant-blue-3:#91caff;--ant-blue-4:#69b1ff;--ant-blue-5:#4096ff;--ant-blue-6:#1677ff;--ant-blue-7:#0958d9;--ant-blue-8:#003eb3;--ant-blue-9:#002c8c;--ant-blue-10:#001d66;--ant-purple-1:#f9f0ff;--ant-purple-2:#efdbff;--ant-purple-3:#d3adf7;--ant-purple-4:#b37feb;--ant-purple-5:#9254de;--ant-purple-6:#722ed1;--ant-purple-7:#531dab;--ant-purple-8:#391085;--ant-purple-9:#22075e;--ant-purple-10:#120338;--ant-cyan-1:#e6fffb;--ant-cyan-2:#b5f5ec;--ant-cyan-3:#87e8de;--ant-cyan-4:#5cdbd3;--ant-cyan-5:#36cfc9;--ant-cyan-6:#13c2c2;--ant-cyan-7:#08979c;--ant-cyan-8:#006d75;--ant-cyan-9:#00474f;--ant-cyan-10:#002329;--ant-green-1:#f6ffed;--ant-green-2:#d9f7be;--ant-green-3:#b7eb8f;--ant-green-4:#95de64;--ant-green-5:#73d13d;--ant-green-6:#52c41a;--ant-green-7:#389e0d;--ant-green-8:#237804;--ant-green-9:#135200;--ant-green-10:#092b00;--ant-magenta-1:#fff0f6;--ant-magenta-2:#ffd6e7;--ant-magenta-3:#ffadd2;--ant-magenta-4:#ff85c0;--ant-magenta-5:#f759ab;--ant-magenta-6:#eb2f96;--ant-magenta-7:#c41d7f;--ant-magenta-8:#9e1068;--ant-magenta-9:#780650;--ant-magenta-10:#520339;--ant-pink-1:#fff0f6;--ant-pink-2:#ffd6e7;--ant-pink-3:#ffadd2;--ant-pink-4:#ff85c0;--ant-pink-5:#f759ab;--ant-pink-6:#eb2f96;--ant-pink-7:#c41d7f;--ant-pink-8:#9e1068;--ant-pink-9:#780650;--ant-pink-10:#520339;--ant-red-1:#fff1f0;--ant-red-2:#ffccc7;--ant-red-3:#ffa39e;--ant-red-4:#ff7875;--ant-red-5:#ff4d4f;--ant-red-6:#f5222d;--ant-red-7:#cf1322;--ant-red-8:#a8071a;--ant-red-9:#820014;--ant-red-10:#5c0011;--ant-orange-1:#fff7e6;--ant-orange-2:#ffe7ba;--ant-orange-3:#ffd591;--ant-orange-4:#ffc069;--ant-orange-5:#ffa940;--ant-orange-6:#fa8c16;--ant-orange-7:#d46b08;--ant-orange-8:#ad4e00;--ant-orange-9:#873800;--ant-orange-10:#612500;--ant-yellow-1:#feffe6;--ant-yellow-2:#ffffb8;--ant-yellow-3:#fffb8f;--ant-yellow-4:#fff566;--ant-yellow-5:#ffec3d;--ant-yellow-6:#fadb14;--ant-yellow-7:#d4b106;--ant-yellow-8:#ad8b00;--ant-yellow-9:#876800;--ant-yellow-10:#614700;--ant-volcano-1:#fff2e8;--ant-volcano-2:#ffd8bf;--ant-volcano-3:#ffbb96;--ant-volcano-4:#ff9c6e;--ant-volcano-5:#ff7a45;--ant-volcano-6:#fa541c;--ant-volcano-7:#d4380d;--ant-volcano-8:#ad2102;--ant-volcano-9:#871400;--ant-volcano-10:#610b00;--ant-geekblue-1:#f0f5ff;--ant-geekblue-2:#d6e4ff;--ant-geekblue-3:#adc6ff;--ant-geekblue-4:#85a5ff;--ant-geekblue-5:#597ef7;--ant-geekblue-6:#2f54eb;--ant-geekblue-7:#1d39c4;--ant-geekblue-8:#10239e;--ant-geekblue-9:#061178;--ant-geekblue-10:#030852;--ant-gold-1:#fffbe6;--ant-gold-2:#fff1b8;--ant-gold-3:#ffe58f;--ant-gold-4:#ffd666;--ant-gold-5:#ffc53d;--ant-gold-6:#faad14;--ant-gold-7:#d48806;--ant-gold-8:#ad6800;--ant-gold-9:#874d00;--ant-gold-10:#613400;--ant-lime-1:#fcffe6;--ant-lime-2:#f4ffb8;--ant-lime-3:#eaff8f;--ant-lime-4:#d3f261;--ant-lime-5:#bae637;--ant-lime-6:#a0d911;--ant-lime-7:#7cb305;--ant-lime-8:#5b8c00;--ant-lime-9:#3f6600;--ant-lime-10:#254000;--ant-color-text:rgba(0, 0, 0, 0.88);--ant-color-text-secondary:rgba(0, 0, 0, 0.65);--ant-color-text-tertiary:rgba(0, 0, 0, 0.45);--ant-color-text-quaternary:rgba(0, 0, 0, 0.25);--ant-color-fill:rgba(0, 0, 0, 0.15);--ant-color-fill-secondary:rgba(0, 0, 0, 0.06);--ant-color-fill-tertiary:rgba(0, 0, 0, 0.04);--ant-color-fill-quaternary:rgba(0, 0, 0, 0.02);--ant-c
|
|||
|
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|||
|
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|||
|
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|||
|
;--ant-box-shadow-secondary:
|
|||
|
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|||
|
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|||
|
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|||
|
;--ant-box-shadow-tertiary:
|
|||
|
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
|||
|
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|||
|
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
|||
|
;--ant-box-shadow-popover-arrow:2px 2px 5px rgba(0, 0, 0, 0.05);--ant-box-shadow-card:
|
|||
|
0 1px 2px -2px rgba(0, 0, 0, 0.16),
|
|||
|
0 3px 6px 0 rgba(0, 0, 0, 0.12),
|
|||
|
0 5px 12px 4px rgba(0, 0, 0, 0.09)
|
|||
|
;--ant-box-shadow-drawer-right:
|
|||
|
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|||
|
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|||
|
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|||
|
;--ant-box-shadow-drawer-left:
|
|||
|
6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|||
|
3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|||
|
9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|||
|
;--ant-box-shadow-drawer-up:
|
|||
|
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|||
|
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|||
|
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|||
|
;--ant-box-shadow-drawer-down:
|
|||
|
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
|||
|
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
|||
|
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
|||
|
;--ant-box-shadow-tabs-overflow-left:inset 10px 0 8px -8px rgba(0, 0, 0, 0.08);--ant-box-shadow-tabs-overflow-right:inset -10px 0 8px -8px rgba(0, 0, 0, 0.08);--ant-box-shadow-tabs-overflow-top:inset 0 10px 8px -8px rgba(0, 0, 0, 0.08);--ant-box-shadow-tabs-overflow-bottom:inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08);}.css-var-R2a.ant-float-btn-css-var{--ant-float-button-dot-offset-in-circle:5.857864376269049px;--ant-float-button-dot-offset-in-square:2.3431457505076194px;}.css-var-R2a.ant-badge{--ant-badge-indicator-z-index:auto;--ant-badge-indicator-height:20px;--ant-badge-indicator-height-sm:14px;--ant-badge-dot-size:6px;--ant-badge-text-font-size:12px;--ant-badge-text-font-size-sm:12px;--ant-badge-text-font-weight:normal;--ant-badge-status-size:6px;}.css-var-R2a.ant-menu-css-var{--ant-menu-dropdown-width:160px;--ant-menu-z-index-popup:1050;--ant-menu-radius-item:8px;--ant-menu-item-border-radius:8px;--ant-menu-radius-sub-menu-item:4px;--ant-menu-sub-menu-item-border-radius:4px;--ant-menu-color-item-text:rgba(0, 0, 0, 0.88);--ant-menu-item-color:rgba(0, 0, 0, 0.88);--ant-menu-color-item-text-hover:rgba(0, 0, 0, 0.88);--ant-menu-item-hover-color:rgba(0, 0, 0, 0.88);--ant-menu-color-item-text-hover-horizontal:#1677ff;--ant-menu-horizontal-item-hover-color:#1677ff;--ant-menu-color-group-title:rgba(0, 0, 0, 0.45);--ant-menu-group-title-color:rgba(0, 0, 0, 0.45);--ant-menu-color-item-text-selected:#1677ff;--ant-menu-item-selected-color:#1677ff;--ant-menu-color-item-text-selected-horizontal:#1677ff;--ant-menu-horizontal-item-selected-color:#1677ff;--ant-menu-color-item-bg:#ffffff;--ant-menu-item-bg:#ffffff;--ant-menu-color-item-bg-hover:rgba(0, 0, 0, 0.06);--ant-menu-item-hover-bg:rgba(0, 0, 0, 0.06);--ant-menu-color-item-bg-active:rgba(0, 0, 0, 0.06);--ant-menu-item-active-bg:#e6f4ff;--ant-menu-color-sub-item-bg:rgba(0, 0, 0, 0.02);--ant-menu-sub-menu-item-bg:rgba(0, 0, 0, 0.02);--ant-menu-color-item-bg-selected:#e6f4ff;--ant-menu-item-selected-bg:#e6f4ff;--ant-menu-color-item-bg-selected-horizontal:transparent;--ant-menu-horizontal-item-selected-bg:transparent;--ant-menu-color-active-bar-width:0px;--ant-menu-active-bar-width:0px;--ant-menu-color-active-bar-height:2px;--ant-menu-active-bar-height:2px;--ant-menu-color-active-bar-border-size:1px;--ant-menu-active-bar-border-width:1px;--ant-menu-color-item-text-disabled:rgba(0, 0, 0, 0.25);--ant-menu-item-disabled-color:rgba(0, 0, 0, 0.25);--ant-menu-color-danger-item-text:#ff4d4f;--ant-menu-danger-item-color:#ff4d4f;--ant-menu-color-danger-item-text-hover:#ff4d4f;--ant-menu-danger-item-hover-color:#ff4d4f;--ant-menu-color-danger-item-text-selected:#ff4d4f;--ant-menu-danger-item-selected-color:#ff4d4f;--ant-menu-color-danger-item-bg-active:#fff2f0;--ant-menu-danger-item-active-bg:#fff2f0;--ant-menu-color-danger-item-bg-selected:#fff2f0;--ant-menu-danger-item-selected-bg:#fff2f0;--ant-menu-item-margin-inline:4px;--ant-menu-horizontal-item-border-radius:0px;--ant-menu-horizontal-item-hover-bg:transparent;--ant-menu-item-height:40px;--ant-menu-group-title-line-height:1.5714285714285714;--ant-menu-collapsed-width:80px;--ant-menu-popup-bg:#ffffff;--ant-menu-item-margin-block:4px;--ant-menu-item-padding-inline:16px;--ant-menu-horizontal-line-height:46px;--ant-menu-icon-size:14px;--ant-menu-icon-margin-inline-end:10px;--ant-menu-collapsed-icon-size:16px;--ant-menu-group-title-font-size:14px;--ant-menu-dark-item-disabled-color:rgba(255, 255, 255, 0.25);--ant-menu-dark-item-color:rgba(255, 255, 255, 0.65);--ant-menu-dark-danger-item-color:#ff4d4f;--ant-menu-dark-item-bg:#001529;--ant-menu-dark-popup-bg:#001529;--ant-menu-dark-sub-menu-item-bg:#000c17;--ant-menu-dark-item-selected-color:#fff;--ant-menu-dark-item-selected-bg:#1677ff;--ant-menu-dark-danger-item-selected-bg:#ff4d4f;--ant-menu-dark-item-hover-bg:transparent;--ant-menu-dark-group-title-color:rgba(255, 255, 255, 0.65);--ant-menu-dark-item-hover-color:#fff;--ant-menu-dark-danger-item-hover-color:#ff7875;--ant-menu-dark-danger-item-selected-color:#fff;--ant-menu-dark-danger-item-active-bg:#ff4d4f;--ant-menu-item-width:calc(1
|
|||
|
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|||
|
'Noto Color Emoji';--ant-font-family-code:'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;--ant-font-size:14px;--ant-line-width:1px;--ant-line-type:solid;--ant-motion-ease-out-circ:cubic-bezier(0.08, 0.82, 0.17, 1);--ant-motion-ease-in-out-circ:cubic-bezier(0.78, 0.14, 0.15, 0.86);--ant-motion-ease-out:cubic-bezier(0.215, 0.61, 0.355, 1);--ant-motion-ease-in-out:cubic-bezier(0.645, 0.045, 0.355, 1);--ant-motion-ease-out-back:cubic-bezier(0.12, 0.4, 0.29, 1.46);--ant-motion-ease-in-back:cubic-bezier(0.71, -0.46, 0.88, 0.6);--ant-motion-ease-in-quint:cubic-bezier(0.755, 0.05, 0.855, 0.06);--ant-motion-ease-out-quint:cubic-bezier(0.23, 1, 0.32, 1);--ant-border-radius:6px;--ant-size-popup-arrow:16px;--ant-control-height:32px;--ant-z-index-base:0;--ant-z-index-popup-base:1000;--ant-opacity-image:1;--ant-blue-1:#e6f4ff;--ant-blue-2:#bae0ff;--ant-blue-3:#91caff;--ant-blue-4:#69b1ff;--ant-blue-5:#4096ff;--ant-blue-6:#1677ff;--ant-blue-7:#0958d9;--ant-blue-8:#003eb3;--ant-blue-9:#002c8c;--ant-blue-10:#001d66;--ant-purple-1:#f9f0ff;--ant-purple-2:#efdbff;--ant-purple-3:#d3adf7;--ant-purple-4:#b37feb;--ant-purple-5:#9254de;--ant-purple-6:#722ed1;--ant-purple-7:#531dab;--ant-purple-8:#391085;--ant-purple-9:#22075e;--ant-purple-10:#120338;--ant-cyan-1:#e6fffb;--ant-cyan-2:#b5f5ec;--ant-cyan-3:#87e8de;--ant-cyan-4:#5cdbd3;--ant-cyan-5:#36cfc9;--ant-cyan-6:#13c2c2;--ant-cyan-7:#08979c;--ant-cyan-8:#006d75;--ant-cyan-9:#00474f;--ant-cyan-10:#002329;--ant-green-1:#f6ffed;--ant-green-2:#d9f7be;--ant-green-3:#b7eb8f;--ant-green-4:#95de64;--ant-green-5:#73d13d;--ant-green-6:#52c41a;--ant-green-7:#389e0d;--ant-green-8:#237804;--ant-green-9:#135200;--ant-green-10:#092b00;--ant-magenta-1:#fff0f6;--ant-magenta-2:#ffd6e7;--ant-magenta-3:#ffadd2;--ant-magenta-4:#ff85c0;--ant-magenta-5:#f759ab;--ant-magenta-6:#eb2f96;--ant-magenta-7:#c41d7f;--ant-magenta-8:#9e1068;--ant-magenta-9:#780650;--ant-magenta-10:#520339;--ant-pink-1:#fff0f6;--ant-pink-2:#ffd6e7;--ant-pink-3:#ffadd2;--ant-pink-4:#ff85c0;--ant-pink-5:#f759ab;--ant-pink-6:#eb2f96;--ant-pink-7:#c41d7f;--ant-pink-8:#9e1068;--ant-pink-9:#780650;--ant-pink-10:#520339;--ant-red-1:#fff1f0;--ant-red-2:#ffccc7;--ant-red-3:#ffa39e;--ant-red-4:#ff7875;--ant-red-5:#ff4d4f;--ant-red-6:#f5222d;--ant-red-7:#cf1322;--ant-red-8:#a8071a;--ant-red-9:#820014;--ant-red-10:#5c0011;--ant-orange-1:#fff7e6;--ant-orange-2:#ffe7ba;--ant-orange-3:#ffd591;--ant-orange-4:#ffc069;--ant-orange-5:#ffa940;--ant-orange-6:#fa8c16;--ant-orange-7:#d46b08;--ant-orange-8:#ad4e00;--ant-orange-9:#873800;--ant-orange-10:#612500;--ant-yellow-1:#feffe6;--ant-yellow-2:#ffffb8;--ant-yellow-3:#fffb8f;--ant-yellow-4:#fff566;--ant-yellow-5:#ffec3d;--ant-yellow-6:#fadb14;--ant-yellow-7:#d4b106;--ant-yellow-8:#ad8b00;--ant-yellow-9:#876800;--ant-yellow-10:#614700;--ant-volcano-1:#fff2e8;--ant-volcano-2:#ffd8bf;--ant-volcano-3:#ffbb96;--ant-volcano-4:#ff9c6e;--ant-volcano-5:#ff7a45;--ant-volcano-6:#fa541c;--ant-volcano-7:#d4380d;--ant-volcano-8:#ad2102;--ant-volcano-9:#871400;--ant-volcano-10:#610b00;--ant-geekblue-1:#f0f5ff;--ant-geekblue-2:#d6e4ff;--ant-geekblue-3:#adc6ff;--ant-geekblue-4:#85a5ff;--ant-geekblue-5:#597ef7;--ant-geekblue-6:#2f54eb;--ant-geekblue-7:#1d39c4;--ant-geekblue-8:#10239e;--ant-geekblue-9:#061178;--ant-geekblue-10:#030852;--ant-gold-1:#fffbe6;--ant-gold-2:#fff1b8;--ant-gold-3:#ffe58f;--ant-gold-4:#ffd666;--ant-gold-5:#ffc53d;--ant-gold-6:#faad14;--ant-gold-7:#d48806;--ant-gold-8:#ad6800;--ant-gold-9:#874d00;--ant-gold-10:#613400;--ant-lime-1:#fcffe6;--ant-lime-2:#f4ffb8;--ant-lime-3:#eaff8f;--ant-lime-4:#d3f261;--ant-lime-5:#bae637;--ant-lime-6:#a0d911;--ant-lime-7:#7cb305;--ant-lime-8:#5b8c00;--ant-lime-9:#3f6600;--ant-lime-10:#254000;--ant-color-text:rgba(0, 0, 0, 0.88);--ant-color-text-secondary:rgba(0, 0, 0, 0.65);--ant-color-text-tertiary:rgba(0, 0, 0, 0.45);--ant-color-text-quaternary:rgba(0, 0, 0, 0.25);--ant-color-fill:rgba(0, 0, 0, 0.15);--ant-color-fill-secondary:rgba(0, 0, 0, 0.06);--ant-color-fill-tertiary:rgba(0, 0, 0, 0.04);--ant-color-fill-quaternary:rgba(0, 0, 0, 0.02);--ant-c
|
|||
|
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|||
|
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|||
|
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|||
|
;--ant-box-shadow-secondary:
|
|||
|
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|||
|
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|||
|
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|||
|
;--ant-box-shadow-tertiary:
|
|||
|
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
|||
|
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|||
|
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
|||
|
;--ant-box-shadow-popover-arrow:2px 2px 5px rgba(0, 0, 0, 0.05);--ant-box-shadow-card:
|
|||
|
0 1px 2px -2px rgba(0, 0, 0, 0.16),
|
|||
|
0 3px 6px 0 rgba(0, 0, 0, 0.12),
|
|||
|
0 5px 12px 4px rgba(0, 0, 0, 0.09)
|
|||
|
;--ant-box-shadow-drawer-right:
|
|||
|
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|||
|
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|||
|
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|||
|
;--ant-box-shadow-drawer-left:
|
|||
|
6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|||
|
3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|||
|
9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|||
|
;--ant-box-shadow-drawer-up:
|
|||
|
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|||
|
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|||
|
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|||
|
;--ant-box-shadow-drawer-down:
|
|||
|
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
|||
|
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
|||
|
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
|||
|
;--ant-box-shadow-tabs-overflow-left:inset 10px 0 8px -8px rgba(0, 0, 0, 0.08);--ant-box-shadow-tabs-overflow-right:inset -10px 0 8px -8px rgba(0, 0, 0, 0.08);--ant-box-shadow-tabs-overflow-top:inset 0 10px 8px -8px rgba(0, 0, 0, 0.08);--ant-box-shadow-tabs-overflow-bottom:inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08);}.css-var-Ratj5cma.ant-menu-css-var{--ant-menu-dropdown-width:160px;--ant-menu-z-index-popup:1050;--ant-menu-radius-item:8px;--ant-menu-item-border-radius:8px;--ant-menu-radius-sub-menu-item:4px;--ant-menu-sub-menu-item-border-radius:4px;--ant-menu-color-item-text:rgba(0, 0, 0, 0.88);--ant-menu-item-color:rgba(0, 0, 0, 0.88);--ant-menu-color-item-text-hover:rgba(0, 0, 0, 0.88);--ant-menu-item-hover-color:rgba(0, 0, 0, 0.88);--ant-menu-color-item-text-hover-horizontal:#1677ff;--ant-menu-horizontal-item-hover-color:#1677ff;--ant-menu-color-group-title:rgba(0, 0, 0, 0.45);--ant-menu-group-title-color:rgba(0, 0, 0, 0.45);--ant-menu-color-item-text-selected:#1677ff;--ant-menu-item-selected-color:#1677ff;--ant-menu-color-item-text-selected-horizontal:#1677ff;--ant-menu-horizontal-item-selected-color:#1677ff;--ant-menu-color-item-bg:#ffffff;--ant-menu-item-bg:#ffffff;--ant-menu-color-item-bg-hover:rgba(0, 0, 0, 0.06);--ant-menu-item-hover-bg:rgba(0, 0, 0, 0.06);--ant-menu-color-item-bg-active:rgba(0, 0, 0, 0.06);--ant-menu-item-active-bg:#e6f4ff;--ant-menu-color-sub-item-bg:rgba(0, 0, 0, 0.02);--ant-menu-sub-menu-item-bg:rgba(0, 0, 0, 0.02);--ant-menu-color-item-bg-selected:#e6f4ff;--ant-menu-item-selected-bg:#e6f4ff;--ant-menu-color-item-bg-selected-horizontal:transparent;--ant-menu-horizontal-item-selected-bg:transparent;--ant-menu-color-active-bar-width:0px;--ant-menu-active-bar-width:0px;--ant-menu-color-active-bar-height:2px;--ant-menu-active-bar-height:2px;--ant-menu-color-active-bar-border-size:1px;--ant-menu-active-bar-border-width:1px;--ant-menu-color-item-text-disabled:rgba(0, 0, 0, 0.25);--ant-menu-item-disabled-color:rgba(0, 0, 0, 0.25);--ant-menu-color-danger-item-text:#ff4d4f;--ant-menu-danger-item-color:#ff4d4f;--ant-menu-color-danger-item-text-hover:#ff4d4f;--ant-menu-danger-item-hover-color:#ff4d4f;--ant-menu-color-danger-item-text-selected:#ff4d4f;--ant-menu-danger-item-selected-color:#ff4d4f;--ant-menu-color-danger-item-bg-active:#fff2f0;--ant-menu-danger-item-active-bg:#fff2f0;--ant-menu-color-danger-item-bg-selected:#fff2f0;--ant-menu-danger-item-selected-bg:#fff2f0;--ant-menu-item-margin-inline:4px;--ant-menu-horizontal-item-border-radius:0px;--ant-menu-horizontal-item-hover-bg:transparent;--ant-menu-item-height:40px;--ant-menu-group-title-line-height:1.5714285714285714;--ant-menu-collapsed-width:80px;--ant-menu-popup-bg:#ffffff;--ant-menu-item-margin-block:4px;--ant-menu-item-padding-inline:16px;--ant-menu-horizontal-line-height:46px;--ant-menu-icon-size:14px;--ant-menu-icon-margin-inline-end:10px;--ant-menu-collapsed-icon-size:16px;--ant-menu-group-title-font-size:14px;--ant-menu-dark-item-disabled-color:rgba(255, 255, 255, 0.25);--ant-menu-dark-item-color:rgba(255, 255, 255, 0.65);--ant-menu-dark-danger-item-color:#ff4d4f;--ant-menu-dark-item-bg:#ffffff;--ant-menu-dark-popup-bg:#001529;--ant-menu-dark-sub-menu-item-bg:#000c17;--ant-menu-dark-item-selected-color:#fff;--ant-menu-dark-item-selected-bg:#1677ff;--ant-menu-dark-danger-item-selected-bg:#ff4d4f;--ant-menu-dark-item-hover-bg:transparent;--ant-menu-dark-group-title-color:rgba(255, 255, 255, 0.65);--ant-menu-dark-item-hover-color:#fff;--ant-menu-dark-danger-item-hover-color:#ff7875;--ant-menu-dark-danger-item-selected-color:#fff;--ant-menu-dark-danger-item-active-bg:#ff4d4f;--ant-menu-item-width:calc(100% - 8px);}.css-var-R2a.ant-result{--ant-result-title-font-size:24px;--ant-result-subtitle-font-size:14px;--ant-result-icon-font-size:72px;--ant-result-extra-margin:24px 0 0 0;}.css-var-R2a.ant-btn{--ant-button-font-weight:400;--ant-button-default-shadow:0 2px 0 rgba(0, 0, 0, 0.02);--ant-button-primary-shadow:0 2px 0 rgba(5, 145, 255, 0.1);--ant-button-danger-shadow:0 2px 0 rgba(255, 38, 5, 0.06);--ant-button-primary-color:#fff;--ant
|
|||
|
<meta data-rh="true" property="og:description" content="An enterprise-class UI design language and React UI library with a set of high-quality React components, one of best React UI library for enterprises"/><meta data-rh="true" property="og:type" content="website"/><meta data-rh="true" property="og:image" content="https://gw.alipayobjects.com/zos/rmsportal/rlpTLlbMzTNYuZGGCVYM.png"/><meta data-rh="true" property="og:title" content="404 Not Found - Ant Design"/>
|
|||
|
<link data-rh="true" sizes="144x144" href="https://gw.alipayobjects.com/zos/antfincdn/UmVnt3t4T0/antd.png"/>
|
|||
|
<link rel="stylesheet" href="/style-acss.f2464b66.css"></head><body><noscript><b>Enable JavaScript to run this app.</b></noscript><div id="root"><!--$?--><template id="B:0"></template><div></div><!--/$--></div><script>window.__UMI_LOADER_DATA__ = {}; window.__UMI_METADATA_LOADER_DATA__ = {"headScripts":["\n (function () {\n function isLocalStorageNameSupported() {\n const testKey = 'test';\n const storage = window.localStorage;\n try {\n storage.setItem(testKey, '1');\n storage.removeItem(testKey);\n return true;\n } catch (error) {\n return false;\n }\n }\n // 优先级提高到所有静态资源的前面,语言不对,加载其他静态资源没意义\n const pathname = location.pathname;\n\n function isZhCN(pathname) {\n return /-cn\\/?$/.test(pathname);\n }\n function getLocalizedPathname(path, zhCN) {\n const pathname = path.indexOf('/') === 0 ? path : '/' + path;\n if (!zhCN) {\n // to enUS\n return /\\/?index(-cn)?/.test(pathname) ? '/' : pathname.replace('-cn', '');\n } else if (pathname === '/') {\n return '/index-cn';\n } else if (pathname.indexOf('/') === pathname.length - 1) {\n return pathname.replace(/\\/$/, '-cn/');\n }\n return pathname + '-cn';\n }\n\n // 兼容旧的 URL, `?locale=...`\n const queryString = location.search;\n if (queryString) {\n const isZhCNConfig = queryString.indexOf('zh-CN') > -1;\n if (isZhCNConfig && !isZhCN(pathname)) {\n location.pathname = getLocalizedPathname(pathname, isZhCNConfig);\n }\n }\n\n // 首页无视链接里面的语言设置 https://github.com/ant-design/ant-design/issues/4552\n if (isLocalStorageNameSupported() && (pathname === '/' || pathname === '/index-cn')) {\n const lang =\n (window.localStorage && localStorage.getItem('locale')) ||\n ((navigator.language || navigator.browserLanguage).toLowerCase() === 'zh-cn'\n ? 'zh-CN'\n : 'en-US');\n // safari is 'zh-cn', while other browser is 'zh-CN';\n if ((lang === 'zh-CN') !== isZhCN(pathname)) {\n location.pathname = getLocalizedPathname(pathname, lang === 'zh-CN');\n }\n }\n document.documentElement.className += isZhCN(pathname) ? 'zh-cn' : 'en-us';\n })();\n ",{"async":true,"src":"//www.googletagmanager.com/gtag/js?id=UA-72788897-1"},{"content":"window.dataLayer = window.dataLayer || [];\n function gtag(){dataLayer.push(arguments);}\n gtag('js', new Date());\n gtag('config', 'UA-72788897-1');"}],"styles":[],"favicons":["https://gw.alipayobjects.com/zos/rmsportal/rlpTLlbMzTNYuZGGCVYM.png"],"links":[{"rel":"prefetch","as":"font","href":"//at.alicdn.com/t/webfont_6e11e43nfj.woff2","type":"font/woff2","crossorigin":"anonymous"},{"rel":"prefetch","as":"font","href":"//at.alicdn.com/t/webfont_6e11e43nfj.woff","type":"font/woff","crossorigin":"anonymous"},{"rel":"prefetch","as":"font","href":"//at.alicdn.com/t/webfont_6e11e43nfj.ttf","type":"font/ttf","crossorigin":"anonymous"},{"rel":"prefetch","as":"font","href":"//at.alicdn.com/t/webfont_exesdog9toj.woff2","type":"font/woff2","crossorigin":"anonymous"},{"rel":"prefetch","as":"font","href":"//at.alicdn.com/t/webfont_exesdog9toj.woff","type":"font/woff","crossorigin":"anonymous"},{"rel":"prefetch","as":"font","href":"//at.alicdn.com/t/webfont_exesdog9toj.ttf","type":"font/ttf","crossorigin":"anonymous"},{"rel":"preload","as":"font","href":"//at.alicdn.com/wf/webfont/exMpJIukiCms/Gsw2PSKrftc1yNWMNlXgw.woff2","type":"font/woff2","crossorigin":"anonymous"},{"rel":"preload","as":"font","href":"//at.alicdn.com/wf/webfont/exMpJIukiCms/vtu73by4O2gEBcvBuLgeu.woff","type":"font/woff2","crossorigin":"anonymous"}],"metas":[{"name":"theme-color","content":"#1677ff"},{"name":"build-time","content":"1732127074172"},{"name":"build-hash","content":"4dfa7ddf5ed998c61f4d43206ed1fb2afaf5d838"}],"scripts":[{"async":true,"c
|
|||
|
if (
|
|||
|
(navigator.languages.includes('zh') || navigator.languages.includes('zh-CN')) &&
|
|||
|
/-cn\/?$/.test(window.location.pathname) &&
|
|||
|
!['ant-design.gitee.io', 'ant-design.antgroup.com'].includes(window.location.hostname) &&
|
|||
|
!window.location.host.includes('surge') &&
|
|||
|
window.location.hostname !== 'localhost'
|
|||
|
) {
|
|||
|
const ANTD_DOT_NOT_SHOW_MIRROR_MODAL = 'ANT_DESIGN_DO_NOT_OPEN_MIRROR_MODAL';
|
|||
|
|
|||
|
const lastShowTime = window.localStorage.getItem(ANTD_DOT_NOT_SHOW_MIRROR_MODAL);
|
|||
|
if (
|
|||
|
lastShowTime &&
|
|||
|
lastShowTime !== 'true' &&
|
|||
|
Date.now() - new Date(lastShowTime).getTime() < 7 * 24 * 60 * 60 * 1000
|
|||
|
) {
|
|||
|
return;
|
|||
|
}
|
|||
|
|
|||
|
const style = document.createElement('style');
|
|||
|
style.innerHTML = `
|
|||
|
@keyframes mirror-fade-in {
|
|||
|
from {
|
|||
|
opacity: 0;
|
|||
|
}
|
|||
|
to {
|
|||
|
opacity: 1;
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
@keyframes mirror-zoom-in {
|
|||
|
from {
|
|||
|
transform: scale(0.8);
|
|||
|
}
|
|||
|
to {
|
|||
|
transform: scale(1);
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
.mirror-modal-mask {
|
|||
|
position: fixed;
|
|||
|
inset: 0;
|
|||
|
height: 100vh;
|
|||
|
width: 100vw;
|
|||
|
background: rgba(0, 0, 0, 0.3);
|
|||
|
z-index: 9999;
|
|||
|
animation: mirror-fade-in 0.3s forwards;
|
|||
|
}
|
|||
|
|
|||
|
.mirror-modal-dialog {
|
|||
|
position: fixed;
|
|||
|
top: 120px;
|
|||
|
inset-inline-start: 0;
|
|||
|
inset-inline-end: 0;
|
|||
|
margin: 0 auto;
|
|||
|
width: 420px;
|
|||
|
display: flex;
|
|||
|
align-items: center;
|
|||
|
flex-direction: column;
|
|||
|
border-radius: 8px;
|
|||
|
border: 1px solid #eee;
|
|||
|
background: #fff;
|
|||
|
padding: 20px 24px;
|
|||
|
box-shadow: 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
|
|||
|
animation: mirror-zoom-in 0.3s forwards;
|
|||
|
box-sizing: border-box;
|
|||
|
max-width: 100vw;
|
|||
|
z-index: 9999;
|
|||
|
}
|
|||
|
|
|||
|
.mirror-modal-title {
|
|||
|
font-size: 16px;
|
|||
|
font-weight: 500;
|
|||
|
align-self: flex-start;
|
|||
|
margin-bottom: 8px;
|
|||
|
}
|
|||
|
|
|||
|
.mirror-modal-content {
|
|||
|
font-size: 14px;
|
|||
|
align-self: flex-start;
|
|||
|
margin-bottom: 24px;
|
|||
|
}
|
|||
|
|
|||
|
.mirror-modal-btns {
|
|||
|
align-self: flex-end;
|
|||
|
margin-top: auto;
|
|||
|
display: flex;
|
|||
|
align-items: center;
|
|||
|
}
|
|||
|
|
|||
|
.mirror-modal-btn {
|
|||
|
border-radius: 6px;
|
|||
|
cursor: pointer;
|
|||
|
height: 32px;
|
|||
|
box-sizing: border-box;
|
|||
|
font-size: 14px;
|
|||
|
padding: 4px 16px;
|
|||
|
display: inline-flex;
|
|||
|
align-items: center;
|
|||
|
text-decoration: none;
|
|||
|
transition: all 0.2s;
|
|||
|
}
|
|||
|
|
|||
|
.mirror-modal-confirm-btn {
|
|||
|
background: #1677ff;
|
|||
|
color: #fff;
|
|||
|
}
|
|||
|
|
|||
|
.mirror-modal-confirm-btn:hover {
|
|||
|
background: #4096ff;
|
|||
|
}
|
|||
|
|
|||
|
.mirror-modal-confirm-btn:active {
|
|||
|
background: #0958d9;
|
|||
|
}
|
|||
|
|
|||
|
.mirror-modal-cancel-btn {
|
|||
|
border: 1px solid #eee;
|
|||
|
color: #000;
|
|||
|
margin-inline-end: 8px;
|
|||
|
}
|
|||
|
|
|||
|
.mirror-modal-cancel-btn:hover {
|
|||
|
border-color: #4096ff;
|
|||
|
color: #4096ff
|
|||
|
}
|
|||
|
|
|||
|
.mirror-modal-cancel-btn:active {
|
|||
|
border-color: #0958d9;
|
|||
|
color: #0958d9;
|
|||
|
}
|
|||
|
`;
|
|||
|
document.head.append(style);
|
|||
|
|
|||
|
const modal = document.createElement('div');
|
|||
|
modal.className = 'mirror-modal-mask';
|
|||
|
|
|||
|
const dialog = document.createElement('div');
|
|||
|
dialog.className = 'mirror-modal-dialog';
|
|||
|
modal.append(dialog);
|
|||
|
|
|||
|
const title = document.createElement('div');
|
|||
|
title.className = 'mirror-modal-title';
|
|||
|
title.textContent = '提示';
|
|||
|
dialog.append(title);
|
|||
|
|
|||
|
const content = document.createElement('div');
|
|||
|
content.className = 'mirror-modal-content';
|
|||
|
content.textContent = '🚀 国内用户推荐访问国内镜像以获得极速体验~';
|
|||
|
dialog.append(content);
|
|||
|
|
|||
|
const btnWrapper = document.createElement('div');
|
|||
|
btnWrapper.className = 'mirror-modal-btns';
|
|||
|
dialog.append(btnWrapper);
|
|||
|
|
|||
|
const cancelBtn = document.createElement('a');
|
|||
|
cancelBtn.className = 'mirror-modal-cancel-btn mirror-modal-btn';
|
|||
|
cancelBtn.textContent = '7 天内不再显示';
|
|||
|
btnWrapper.append(cancelBtn);
|
|||
|
cancelBtn.addEventListener('click', () => {
|
|||
|
window.localStorage.setItem(ANTD_DOT_NOT_SHOW_MIRROR_MODAL, new Date().toISOString());
|
|||
|
document.body.removeChild(modal);
|
|||
|
document.head.removeChild(style);
|
|||
|
document.body.style.overflow = '';
|
|||
|
});
|
|||
|
|
|||
|
const confirmBtn = document.createElement('a');
|
|||
|
confirmBtn.className = 'mirror-modal-confirm-btn mirror-modal-btn';
|
|||
|
confirmBtn.href = window.location.href.replace(window.location.host, 'ant-design.antgroup.com');
|
|||
|
confirmBtn.textContent = '🚀 立刻前往';
|
|||
|
btnWrapper.append(confirmBtn);
|
|||
|
|
|||
|
document.body.append(modal);
|
|||
|
document.body.style.overflow = 'hidden';
|
|||
|
}
|
|||
|
})();
|
|||
|
</script><script crossorigin="anonymous" async="">/* eslint-disable */
|
|||
|
// https://clarity.microsoft.com
|
|||
|
(function (c, l, a, r, i, t, y) {
|
|||
|
c[a] =
|
|||
|
c[a] ||
|
|||
|
function () {
|
|||
|
(c[a].q = c[a].q || []).push(arguments);
|
|||
|
};
|
|||
|
t = l.createElement(r);
|
|||
|
t.async = 1;
|
|||
|
t.src = 'https://www.clarity.ms/tag/' + i;
|
|||
|
y = l.getElementsByTagName(r)[0];
|
|||
|
y.parentNode.insertBefore(t, y);
|
|||
|
})(window, document, 'clarity', 'script', 'lyia7jfwui');
|
|||
|
</script><script src="/umi.e17555bc.js" async=""></script><div hidden id="S:0"><!--$?--><template id="B:1"></template><div></div><!--/$--></div><script>$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RC("B:0","S:0")</script><div hidden id="S:1"><div class="ant-app css-var-R2a"><!--$?--><template id="B:2"></template><div></div><!--/$--><!--$--><div class="ant-float-btn-group css-var-R2a ant-float-btn-css-var ant-float-btn-group-circle ant-float-btn-group-top"><button aria-label="Theme Switcher" class="css-var-R2a ant-float-btn-css-var ant-float-btn ant-float-btn-group-trigger ant-float-btn-default ant-float-btn-circle" type="button"><span class="ant-badge css-var-R2a"><div class="ant-float-btn-body"><div class="ant-float-btn-content"><div class="ant-float-btn-icon"><span role="img" class="anticon"><svg width="1em" height="1em" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true" focusable="false" class=""><title>Theme icon</title><g fill-rule="evenodd"><g fill-rule="nonzero"><path d="M7.02 3.635l12.518 12.518a1.863 1.863 0 010 2.635l-1.317 1.318a1.863 1.863 0 01-2.635 0L3.068 7.588A2.795 2.795 0 117.02 3.635zm2.09 14.428a.932.932 0 110 1.864.932.932 0 010-1.864zm-.043-9.747L7.75 9.635l9.154 9.153 1.318-1.317-9.154-9.155zM3.52 12.473c.514 0 .931.417.931.931v.932h.932a.932.932 0 110 1.864h-.932v.931a.932.932 0 01-1.863 0l-.001-.931h-.93a.932.932 0 010-1.864h.93v-.932c0-.514.418-.931.933-.931zm15.374-3.727a1.398 1.398 0 110 2.795 1.398 1.398 0 010-2.795zM4.385 4.953a.932.932 0 000 1.317l2.046 2.047L7.75 7 5.703 4.953a.932.932 0 00-1.318 0zM14.701.36a.932.932 0 01.931.932v.931h.932a.932.932 0 010 1.864h-.933l.001.932a.932.932 0 11-1.863 0l-.001-.932h-.93a.932.932 0 110-1.864h.93v-.931a.932.932 0 01.933-.932z"></path></g></g></svg></span></div></div></div><sup data-show="true" class="ant-scroll-number ant-badge-dot"></sup></span></button></div><!--/$--></div></div><script>$RC("B:1","S:1")</script><link rel="preload" as="image" href="https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg"/><div hidden id="S:2"><style data-emotion="css-global d9xfx1">@font-face{font-weight:normal;font-family:AlibabaPuHuiTi;src:url('//at.alicdn.com/t/webfont_6e11e43nfj.woff2') format('woff2'),url('//at.alicdn.com/t/webfont_6e11e43nfj.woff') format('woff'),url('//at.alicdn.com/t/webfont_6e11e43nfj.ttf') format('truetype');font-display:swap;}@font-face{font-weight:bold;font-family:AlibabaPuHuiTi;src:url('//at.alicdn.com/t/webfont_exesdog9toj.woff2') format('woff2'),url('//at.alicdn.com/t/webfont_exesdog9toj.woff') format('woff'),url('//at.alicdn.com/t/webfont_exesdog9toj.ttf') format('truetype');font-display:swap;}@font-face{font-weight:900;font-family:'AliPuHui';src:url('//at.alicdn.com/wf/webfont/exMpJIukiCms/Gsw2PSKrftc1yNWMNlXgw.woff2') format('woff2'),url('//at.alicdn.com/wf/webfont/exMpJIukiCms/vtu73by4O2gEBcvBuLgeu.woff') format('woff');font-display:swap;}html{direction:initial;}html.rtl{direction:rtl;}body{overflow-x:hidden;color:rgba(0, 0, 0, 0.88);font-size:14px;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,'Noto Sans',sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol','Noto Color Emoji';line-height:1.5714285714285714;background:#ffffff;-webkit-transition:background-color 1s cubic-bezier(0.075, 0.82, 0.165, 1);transition:background-color 1s cubic-bezier(0.075, 0.82, 0.165, 1);}</style><style data-emotion="css-global yv18lh">@layer global{body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,p,blockquote,th,td,hr,button,article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{margin:0;pa
|