Giter VIP home page Giter VIP logo

Comments (5)

huangshuwei avatar huangshuwei commented on May 24, 2024

我试了下不会啊,看我写的测试:
https://jsfiddle.net/huangsw/d6caqzw3/

你隔行变色用的是内置的api吗,还是自己实现的?

from vue-easytable.

Zzeo avatar Zzeo commented on May 24, 2024

是用的内置api, 有一条用于渲染表格的数据data, 然后在mounted里面对数据二次加工,(push两条空数据之后), 就会出现那样的问题
image

from vue-easytable.

huangshuwei avatar huangshuwei commented on May 24, 2024

给数组对象通过push添加新属性会破坏对象的响应式
参考这里:
https://vuefe.cn/v2/api/#Vue-set

要么通过这种方式也可以
this.data = [...]

from vue-easytable.

huangshuwei avatar huangshuwei commented on May 24, 2024

我还是不太喜欢官方推荐的this.$set方式,但是有些情况下必须那么做。像你这个问题你可以通过对象赋值的方式做。看这个:
https://jsfiddle.net/huangsw/d6caqzw3/1/

from vue-easytable.

huangshuwei avatar huangshuwei commented on May 24, 2024

问题解决了没,先关掉了,有问题再反馈

from vue-easytable.

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.