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

Taro web 页面引入图标警告:Warning: Unsupported style property -webkitMask. Did you mean WebkitMask? #16

Open
Nick742037091 opened this issue Jan 10, 2024 · 3 comments

Comments

@Nick742037091
Copy link

Nick742037091 commented Jan 10, 2024

依赖: @nutui/icons-react-taro
版本:1.0.1
复现代码:https://github.com/jdf2e/nutui-react/blob/next/src/packages/configprovider/demo.taro.tsx

报错信息

image

看了代码,是icons-react-taro/src/IconTemplate.tsx文件下的-webkitMask属性导致,查找不到这个属性,请确认是否有效。

image
@shushu2013
Copy link

+1
"@nutui/icons-react-taro": "1.0.2"

image

@oasis-cloud
Copy link
Contributor

为了在小程序中使用 SVG,所以使用了 -webkitMask 。上面的报错还没办法去掉

@WynnLin
Copy link

WynnLin commented Jul 16, 2024

为了在小程序中使用 SVG,所以使用了 -webkitMask 。上面的报错还没办法去掉

是否能判断下 环境 来区分下 是否是小程序环境

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