赞
踩
免费的虚拟表格,帮助解决数据量太大导致的卡顿问题
安装
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)
});
使用
<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
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。