Skip to content
New issue

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

<n-icon-wrapper> style 没有随 <n-config-provider>设定的cls-prefix而更新 #4768

Closed
fufenghao opened this issue Apr 25, 2023 · 0 comments · Fixed by #4795
Closed

<n-icon-wrapper> style 没有随 <n-config-provider>设定的cls-prefix而更新 #4768

fufenghao opened this issue Apr 25, 2023 · 0 comments · Fixed by #4795
Labels
untriaged need to sort

Comments

@fufenghao
Copy link

TuSimple/naive-ui version (版本)

2.34.3

Vue version (Vue 版本)

3.3.0-beta.1

Browser and its version (浏览器及其版本)

Chrome(89.0.4389.128)

System and its version (系统及其版本)

MacOS(11.2.3)

Node version (Node 版本)

Reappearance link (重现链接)

https://github.com/没有地址

Reappearance steps (重现步骤)

现源码如下:

setup (props, { slots }) {
const themeRef = useTheme(
'IconWrapper',
'-icon-wrapper',
style,
iconWrapperLight,
props
)
const { mergedClsPrefixRef, inlineThemeDisabled } = useConfig(props)

应修改如下

setup (props, { slots }) {
const { mergedClsPrefixRef, inlineThemeDisabled } = useConfig(props)
const themeRef = useTheme(
'IconWrapper',
'-icon-wrapper',
style,
iconWrapperLight,
props,
mergedClsPrefixRef
)

Expected results (期望的结果)

如上所示

Actual results (实际的结果)

如上所示

Remarks (补充说明)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
untriaged need to sort
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant