当前位置:   article > 正文

数据量大的table优化插件(上万+条数据)_table 插件

table 插件

umy-ui

免费的虚拟表格,帮助解决数据量太大导致的卡顿问题

安装
npm install umy-ui

引入
import Vue from ‘vue’;
import UmyUi from ‘umy-ui’
import ‘umy-ui/lib/theme-chalk/index.css’;// 引入样式
import App from ‘./App.vue’;

Vue.use(UmyUi);

  new Vue({
    el: '#app',
    render: h => h(App)
  });
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6

使用

<u-table ref="productionTable" v-loading="table.loading" stripe :border="false" class="mb8 mt12 production-table" :data="table.tableData" show-body-overflow="tooltip" highlight-current-row height="480" :row-height="32" use-virtual @selection-change="handleSelectionChange">
                        <u-table-column type="selection" width="44" align="center" fixed></u-table-column>
                        <u-table-column label="No." type="index" width="55" align="left" fixed></u-table-column>
                        <u-table-column label="
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/weixin_40725706/article/detail/529736
推荐阅读
相关标签