GithubHelp home page GithubHelp logo

Comments (3)

ccqgithub avatar ccqgithub commented on June 21, 2024

scoped 要根据class去找对应的dom标签进行修改,不可控因素太多了,开发性价比不高,所以做了个简化版的~

from fis3-parser-vue-component.

blessbygod avatar blessbygod commented on June 21, 2024

其实用vue的这个功能就是开发及其简单,希望能给予支持。
也是shadow dom 的一个特点

from fis3-parser-vue-component.

ccqgithub avatar ccqgithub commented on June 21, 2024

scoped的是html5的一个属性,在style上加scoped之后,该样式只对当前元素和子元素有效。

看了下vue-loader的做法是通过postcss处理,将每一个classname对于的dom加一个hash属性。。这涉及到预处理语言,import,动态组件片段等各种可能出现bug的未知问题,要处理好工作量很大。。

所以我更倾向于自己手动控制scoped css的做法。。

如果不能满足你的需求很抱歉罗,目前我没有时间和精力去处理这个,我写这个插件也主要是为了方便工作,顺便分享出来。。。

本人能力有限,如果大家有好的idea,欢迎提交pr,或者fork重新发布一个插件也可以,期待fis3有更多更好的插件出来 🐱

from fis3-parser-vue-component.

Related Issues (20)

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.