vue 组件不受全局样式影响_组件库引入全局样式lib/style/index.css,会污染全局基础样式...
生活随笔
收集整理的這篇文章主要介紹了
vue 组件不受全局样式影响_组件库引入全局样式lib/style/index.css,会污染全局基础样式...
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
I have searched the issues of this repository and believe that this is not a duplicate.
Version
1.3.14
Environment
macos 10.14.6,chrome76.0.3809.100(正式版本),vue 2.6
Reproduction link
Steps to reproduce
在chrome extension 插件開發中使用ant-design-vue組件庫。
采用了按需加載的引入方式。
但是按需加載還是會引入ant-design-vue代碼中style文件夾中的index.css。
該文件中包含全局的一些基本樣式,會影響到正常界面的顯示。
按需加載的時候能不能限制ant-design-vue樣式的作用域。
ant-design-vue中style文件夾中的index.css文件截圖
百度頁面樣式覆蓋截圖:
What is expected?
引入lib/style/index.css 文件不污染全局樣式
What is actually happening?
開發的chrome extension 插件在瀏覽網頁過程中,會影響網頁的樣式
#1085 被關閉的帶圖片的issue地址
總結
以上是生活随笔為你收集整理的vue 组件不受全局样式影响_组件库引入全局样式lib/style/index.css,会污染全局基础样式...的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 矩阵论思维导图_《实变函数论》 江泽坚
- 下一篇: 前端处理带t的时间_适合家用的跑步机?阿