1200字范文,内容丰富有趣,写作的好帮手!
1200字范文 > vue 组件不受全局样式影响_组件库引入全局样式lib/style/index.css 会污染全局基础样式...

vue 组件不受全局样式影响_组件库引入全局样式lib/style/index.css 会污染全局基础样式...

时间:2021-06-23 14:52:57

相关推荐

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地址

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。