table
This commit is contained in:
parent
0146a3c6c2
commit
7423baea13
@ -82,7 +82,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="s-table" ref="sTableRef" v-if="isShowTable">
|
||||
<el-table ref="tableElRef" v-bind="getBindValues" v-loading="getLoading">
|
||||
<el-table ref="tableElRef" v-bind="getBindValues" v-loading="getLoading" @selection-change="handleSelectionChange">
|
||||
<template v-for="item in getTableColumns" :key="item.prop">
|
||||
<el-table-column
|
||||
v-if="item.type === 'index' || item.type === 'selection'"
|
||||
@ -164,6 +164,7 @@
|
||||
'edit-row-end',
|
||||
'edit-change',
|
||||
'columns-change',
|
||||
'selection-change'
|
||||
]);
|
||||
|
||||
const striped = ref(false);
|
||||
@ -308,6 +309,9 @@
|
||||
};
|
||||
});
|
||||
|
||||
function handleSelectionChange(val){
|
||||
emit('selection-change', val);
|
||||
}
|
||||
//columns 列变动
|
||||
function columnsChange(columns) {
|
||||
emit('columns-change', columns);
|
||||
|
Loading…
Reference in New Issue
Block a user