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

vite + vue3.4.10项目中使用含三角图标的组件如tooltip时,三角形图标的css 属性clip-path出现NaNpx,导致三角图标失效。(ant官网案例没有这个问题) #7286

Open
1 task
Tommyshellby opened this issue Jan 16, 2024 · 4 comments

Comments

@Tommyshellby
Copy link

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

4.1.0

Environment

vue@3.4.10

Reproduction link

https://next.antdv.com/components/tooltip-cn

Steps to reproduce

使用有三角图标的组件

What is expected?

正常显示三角图标

What is actually happening?

三角形图标的css 属性clip-path出现NaNpx,导致三角图标显示异常


vite vue3.4.10项目有问题,ant官网案例正常

@Tommyshellby Tommyshellby changed the title vite + vue3.4.10项目中使用组件如(tooltip)的三角形图标的css 属性clip-path出现NaNpx,导致三角图标失效。(ant官网案例没有这个问题) vite + vue3.4.10项目中使用含三角图标的组件如tooltip时,三角形图标的css 属性clip-path出现NaNpx,导致三角图标失效。(ant官网案例没有这个问题) Jan 16, 2024
@isnl
Copy link

isnl commented Mar 4, 2024

蹲个后续

@cc-hearts
Copy link
Contributor

能否提供一下复现的代码呢?

@isnl
Copy link

isnl commented Mar 25, 2024

蹲个后续

大意了,我的问题:在使用a-config-provider组件注入主题样式borderRadius的时候,用的是borderRadius: '4px'而非 borderRadius: 4

改成数字就好了

@970319330
Copy link

蹲个后续

大意了,我的问题:在使用a-config-provider组件注入主题样式borderRadius的时候,用的是borderRadius: '4px'而非 borderRadius: 4

改成数字就好了

真及时

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

No branches or pull requests

4 participants