Element ui table 代码
<el-table header-align="center" v-loadmore="addData" :data="myData" height="300" v-loading="loading" style="width: 100%" class="el-table" > <el-table-column label="序号" type="index" width="60" align="center"></el-table-column> <el-table-column label="匹配度22" prop="dict_name"> </el-table-column> </el-table>
myData:[ {name: 'aaa'},
{name: 'aaa'},
{name: 'aaa'},
{name: 'aaa'},
{name: 'aaa'},
{name: 'aaa'},
{name: 'aaa'},
{name: 'aaa'},
{name: 'aaa'},
{name: 'aaa'}
]
methods: { addData() { alert(456); // 自行添加节流 // 自行判断暂无更多数据 this.myData.push( ...[ { name: "bbb" }, { name: "bbb" }, { name: "bbb" }, { name: "bbb" }, { name: "bbb" }, { name: "bbb" }, { name: "bbb" }, ] ); }, } 是不是非常的简单 标签:el,aaa,name,bbb,Element,ui,table From: https://www.cnblogs.com/dreammiao/p/17989405