mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 11:10:01 +08:00
fix: should compatible with cssinjs < 1.15 (#44091)
* fix: should compatible with cssinjs <= 1.16 * chore: comment
This commit is contained in:
parent
e767502bdb
commit
5423649bd9
@ -75,6 +75,9 @@ export default function useToken(): [
|
|||||||
salt,
|
salt,
|
||||||
override: { override: rootDesignToken, ...components },
|
override: { override: rootDesignToken, ...components },
|
||||||
getComputedToken,
|
getComputedToken,
|
||||||
|
// formatToken will not be consumed after 1.15.0 with getComputedToken.
|
||||||
|
// But token will break if @ant-design/cssinjs is under 1.15.0 without it
|
||||||
|
formatToken,
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user