ant-design/typings/cssType.d.ts
lijianan 069dba8abd
type: React.CSSProperties shoule support CSS var (#52721)
* type: React.CSSProperties shoule support CSS var

* fix: fix

* fix: fix

* fix: fix

* fix: fix
2025-02-13 15:25:21 +08:00

6 lines
145 B
TypeScript

declare namespace React {
interface CSSProperties {
[key: `--${string | number}`]: string | number | undefined; // 允许 CSS 变量
}
}