1. vue-table-optimization
A Vue.js project
vue-table-optimization
Package: vue-table-optimization
Last modified: Mon, 23 May 2022 19:21:22 GMT
Version: 1.0.10
License: MIT
Downloads: 5

Install

npm install vue-table-optimization
yarn add vue-table-optimization

nk-table-demo

Only study only, for the virtual scroll design,please refer the
wiki, Vue - Table表格渲染上千数据优化

Table enhancement with the thousands of data rendering:
add common table body with Reflow, requestAnimationFrame and virtual scroll enhancement

Build Setup

 # install dependencies
npm install

# serve with hot reload at localhost:7777
npm run dev

# build for production with minification
npm run build

Table Config

  • columnsConfig: require property, Each column config
  • data: table data.
  • filters(TBC): to filter table data.
  • renderType (default: common): display table body render type,VIRTUAL -> virtual scroll body; ANIMATION -> use window.requestAnimationFrame to render body with frame scroll.
  • recordKey: require property to optimize the table body to reuse the DOM elements.
  • height (default: 400): display height of the table in integer number, including header and body.
  • headerHeight (default: 40): display height of the header in integer number.
  • recordHeight (default: 36): display height of the items in integer number.For virtual body scroll render,it used to calculate the scroll height and position.

columnsConfig

  • title: 列头显示文字
  • key: 对应列内容的字段名
  • render: 自定义渲染列,使用 Vue 的 Render 函数

License

MIT

Dependencies

RELATED POST

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin