ant-design-vue icon indicating copy to clipboard operation
ant-design-vue copied to clipboard

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

Open Tommyshellby opened this issue 1 year ago • 4 comments
trafficstars

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

Version

4.1.0

Environment

[email protected]

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 avatar Jan 16 '24 03:01 Tommyshellby

蹲个后续

isnl avatar Mar 04 '24 08:03 isnl

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

cc-hearts avatar Mar 06 '24 12:03 cc-hearts

蹲个后续

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

改成数字就好了

isnl avatar Mar 25 '24 06:03 isnl

蹲个后续

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

改成数字就好了

真及时

970319330 avatar Mar 25 '24 07:03 970319330

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

github-actions[bot] avatar May 25 '24 02:05 github-actions[bot]