generated from sonofmagic/npm-lib-template
-
-
Notifications
You must be signed in to change notification settings - Fork 92
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
组件class不能被解析 #129
Labels
question
Further information is requested
Comments
这是因为我这个插件默认只转化 customAttributes: {
'*': ['emptyImageClass']
} 详见 custom-attributes 配置项 |
你这里又用了新的 prop 叫 btnClassName ,只配置 emptyImageClass 当然不起作用啦 你可以把新的prop添加进来比如这样配置: customAttributes: {
'*': ['emptyImageClass','btnClassName'],
} 或者嫌麻烦的话,后续还有很多自定义的prop的话,可以根据规律,使用正则: customAttributes: {
// 这个正则,同时匹配你上面的2中 prop 的名称
'*': [/Class/]
} |
好的,感谢 |
Closed
建议用大佬文档上的正则匹配 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
这种组件的class好像不能正确被解析
The text was updated successfully, but these errors were encountered: