Giter Club home page Giter Club logo

Comments (6)

kilohaty avatar kilohaty commented on August 30, 2024

look this case
http://jsbin.com/jejuqik/1/edit?html,output

what version are you using?

from v-feedback.

liujian10 avatar liujian10 commented on August 30, 2024

哈哈 还是说中文吧,我的意思是建议改成当设置 “” 空字符串的时候 v-feedback 不会生效,这样在动态赋值的时候,设置 "" 值的时候就不会触发v-feedback的逻辑了。

from v-feedback.

kilohaty avatar kilohaty commented on August 30, 2024

haha
明白了,能告诉一下这个需求的场景吗?因为我还没遇到这样的场景。

from v-feedback.

liujian10 avatar liujian10 commented on August 30, 2024

比如我想写一个组件,在有点击事件的时候有点击效果,没有点击事件的时候不绑定点击效果,但是 vue 不支持这种根级属性的动态添加,不过有个方案,可以动态修改渲染后的 dom 元素属性,哈哈,我就这么干吧,谢咯

from v-feedback.

kilohaty avatar kilohaty commented on August 30, 2024

已经支持了动态数据,请看一下demo是不是你想要的。
或者项目文件 src/example.html 也有相同的案例。
http://jsbin.com/wucazeq/edit?html,output

from v-feedback.

liujian10 avatar liujian10 commented on August 30, 2024

哈哈 点个赞

from v-feedback.

Related Issues (2)

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.