Git Product home page Git Product logo

vue-grid-canvas's Introduction

vue-grid-canvas

a vue component,基于vue的表格组件,主要解决大数据量的表格渲染性能问题,使用canvas绘制表格,同时支持类似excel的批量选中,复制黏贴删除,实时编辑等功能。

vue-grid-canvas

Install

NPM / Yarn

Install the package:

npm install vue-canvas-grid --save

Then import it in your project

import Vue from 'vue'
import Grid from 'vue-canvas-grid'

Vue.component('grid', Grid)

Usage

Simply use it like so:

<grid :grid-data="data" :columns="columns" showCheckbox columnSet></grid>

Description

  • 1,通过canvas实现,能处理万级数据
  • 2,类似excel,选中单元格并实时编辑
  • 3,复制黏贴,支持批量,从excel复制,复制到excel都可以
  • 4,撤销/前进
  • 5,checkbox勾选框,全选功能,可开关
  • 6,固定列(目前只支持固定到右侧)
  • 7,删除单元格,支持批量
  • 7,支持文本的重新计算渲染(通过计算的单元格不支持实时编辑)
  • 8,支持基础按钮显示及点击事件
  • 9,隐藏列功能,可开关

##TODO:

  • 1,由于使用canvas不支持浏览器的检索功能,以后加上表格的搜索功能
  • 2,行列拖拽
  • 3,基本公式计算

运行项目DEMO

npm install

npm run dev

vue-grid-canvas's People

Contributors

harveyzhao avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

saier

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.