Giter Site home page Giter Site logo

blryli / eff-table Goto Github PK

View Code? Open in Web Editor NEW
17.0 17.0 2.0 3.66 MB

eff-table纯div构建的table组件,支持虚拟滚动、行列拖动、编辑、校验

Home Page: https://blryli.github.io/eff-table/

JavaScript 31.81% Vue 59.76% SCSS 8.38% HTML 0.05%
drag draggable edit table validate virtual vue vue2 vuejs

eff-table's People

Contributors

blryli avatar czwu avatar q747985549 avatar vincentzhangsheng avatar zxcasongs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

eff-table's Issues

显示数据不一致

这个组件库挺好用的,不过有个问题,在prop包含数值型(不管类型是number还是string)的情况下,显示的数据可能会错乱。
下面的数据prop为3时对应的单元格显示为1,与data里字段3对应的数据不一致:
image

columns = [
        {
          show: true,
          prop: "3",
          title: "3",
        },
        {
          show: true,
          prop: "age",
          title: "age",
        },
        {
          show: true,
          prop: "id",
          title: "id",
        },
        {
          show: true,
          prop: "row",
          title: "row",
          fixed: "left",
        },
      ];
data = [
        {
          row: "row",
          id: "id",
          1: "name",
          age: "age",
          3: 3,
        },
        {
          row: "row",
          id: "id",
          1: "name",
          age: "age",
          3: 3,
        },
      ];

我在使用的时候把一个二维数组转为data里的对象数组形式时,如果为columns添加一个string类型的prop与data里的字段对应时会报如下错误:
image
把所有prop都改为string与data里的字段就可以正常显示了。

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.