We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://github.com/formilyjs/antd/blob/2f67bd2e1979591cb8de77cfe0c68e5e48c1e471/packages/components/src/__builtins__/style.ts#L65
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], }, () => {
antd设置csp后,<ConfigProvider csp=‘abc'>,formily组件无法获取改csp值
@formily/[email protected]
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Reproduction link
Steps to reproduce
https://github.com/formilyjs/antd/blob/2f67bd2e1979591cb8de77cfe0c68e5e48c1e471/packages/components/src/__builtins__/style.ts#L65
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/[email protected]
The text was updated successfully, but these errors were encountered: