This commit is contained in:
陈红丽 2024-07-08 12:52:49 +08:00
parent 0146a3c6c2
commit 7423baea13

View File

@ -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);