Replies: 2 comments
-
删了unocss |
Beta Was this translation helpful? Give feedback.
0 replies
-
// In App.vue
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
我在初始化vitesse项目后尝试引入naive-ui,引入后后我首先创建了一个基础的n-button组件,发现button的background-color被重置为transparent使得naive-ui的button样式没有生效,如图:
![image](https://user-images.githubusercontent.com/66375788/168445084-ec30b739-7139-4b7d-aa4c-a5078ff1470a.png)
![image](https://user-images.githubusercontent.com/66375788/168444827-b6681bac-2f45-4c82-8e55-8472dce10adf.png)
![image](https://user-images.githubusercontent.com/66375788/168444949-860181e3-84df-485d-a67f-cf5c54b43bb9.png)
我使用naive-ui文档中提供的方法解决了样式覆盖这一问题:
随后我发现unocss(默认预设)提供的的"m-3"失效了,注释掉上图的三行代码后"m-3"又恢复正常了,请问我该怎么做?
Beta Was this translation helpful? Give feedback.
All reactions