mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-29 18:50:00 +08:00
docs: fix site check where logic
This commit is contained in:
parent
8296b72585
commit
c09dab5850
@ -35,15 +35,15 @@ export default function InfoNewVersion() {
|
||||
updateCSS(
|
||||
`
|
||||
:where(.${whereCls}) {
|
||||
width: 93px !important;
|
||||
content: "__CHECK__";
|
||||
}
|
||||
`,
|
||||
whereCls,
|
||||
);
|
||||
|
||||
// Check style
|
||||
const { width } = getComputedStyle(p);
|
||||
setSupportWhere(String(width) === '93px');
|
||||
const { content } = getComputedStyle(p);
|
||||
setSupportWhere(String(content).includes('CHECK'));
|
||||
|
||||
return () => {
|
||||
document.body.removeChild(p);
|
||||
|
Loading…
Reference in New Issue
Block a user