Skip to content

组件库引入全局样式lib/style/index.css,会污染全局基础样式 #1085

@punk2plus

Description

@punk2plus

在chrome extension 插件开发中使用ant-design-vue组件库。
采用了按需加载的引入方式。
但是按需加载还是会引入ant-design-vue代码中style文件夹中的index.css。
该文件中包含全局的一些基本样式,会影响到正常界面的显示。
按需加载的时候能不能限制ant-design-vue样式的作用域。

ant-design-vue中style文件夹中的index.css文件截图
image

百度页面样式覆盖截图:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions