diff --git a/packages/components/src/__builtins__/style.ts b/packages/components/src/__builtins__/style.ts index 421ce2d..cafc6d2 100644 --- a/packages/components/src/__builtins__/style.ts +++ b/packages/components/src/__builtins__/style.ts @@ -71,11 +71,12 @@ export const genStyleHook = ( ) => { return (prefixCls: string): UseComponentStyleResult => { const { theme, token, hashId } = useToken() - const { getPrefixCls, iconPrefixCls } = useConfig() + const { getPrefixCls, iconPrefixCls, csp } = useConfig() const rootPrefixCls = getPrefixCls() return [ useStyleRegister( { + nonce: csp?.nonce, theme, token, hashId,