Giter VIP home page Giter VIP logo

Comments (12)

oyai32 avatar oyai32 commented on July 24, 2024

冲突的样式不是写在styls.css里的?要把差异样式写在styls.css里才行,因为只有styls.css里的样式,才是body.xxx下的。
如果不是这种情况,冲突的地方,你审查元素看下到底用的哪个文件里的样式,解决下样式优先级问题

from vuebase.

gdmec07150931 avatar gdmec07150931 commented on July 24, 2024

from vuebase.

oyai32 avatar oyai32 commented on July 24, 2024

看不到图片。最后一个import确实会覆盖之前的,比如第一个是dark,第二个是gary,但是不用gary这个class名,使用dark,不就还是以dark为准吗?

from vuebase.

gdmec07150931 avatar gdmec07150931 commented on July 24, 2024

from vuebase.

oyai32 avatar oyai32 commented on July 24, 2024

from vuebase.

chengnuonuo avatar chengnuonuo commented on July 24, 2024

大神你好,我使用的时候出现生产环境和开发环境样式不一致的现象.生产环境部署浅灰色主题不是有些地方还是显示深色主题的样式,是怎么回事.有遇到吗

from vuebase.

oyai32 avatar oyai32 commented on July 24, 2024

生产环境和开发环境样式不一致可能是git的版本不一样,也可能是生产的package.json里element-ui的版本跟本地的不一样

from vuebase.

oyai32 avatar oyai32 commented on July 24, 2024

from vuebase.

chengnuonuo avatar chengnuonuo commented on July 24, 2024

from vuebase.

OCISHY avatar OCISHY commented on July 24, 2024

在element-variables.scss里面定义的一些字体颜色 比如 $--color-text-regular: 切换之后不生效,好像是dark 和light 分别更具e-v.scss生成了Mixins.scss 然后这个生产的文件不是在body下的 全部的,就导致dark覆盖掉light了 比如 .el-dropdown-menu__item 的颜色

from vuebase.

OCISHY avatar OCISHY commented on July 24, 2024

按照这个方法只有其中一种主题会生效啊,后引入的生效,先引入就被覆盖掉

from vuebase.

oyai32 avatar oyai32 commented on July 24, 2024

其实,每个主题下的样式都是需要单独写一份的,比如发现了 dark覆盖掉light .el-dropdown-menu__item 的颜色,那说明 light 里没有指定 .el-dropdown-menu__item 的颜色

from vuebase.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.