-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Open
Description
- I have searched the issues of this repository and believe that this is not a duplicate.
Reproduction link
Steps to reproduce
What is expected?
export const genStyleHook = (
component: ComponentName,
styleFn: (
token: TokenWithCommonCls,
info: StyleInfo
) => CSSInterpolation
) => {
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,
path: ['formily-antd', component, prefixCls, iconPrefixCls],
},
() => {
What is actually happening?
antd设置csp后,<ConfigProvider csp=‘abc'>,formily组件无法获取改csp值
Package
@formily/antd-v5@2.3.2
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels