This commit is contained in:
qsh
2024-08-12 17:54:34 +08:00
parent 1be86c7699
commit db22a8ae8a
9 changed files with 345 additions and 77 deletions

View File

@@ -3,6 +3,8 @@
<div class="flex">
<el-table
:data="tableObject.tableList"
:row-key="rowkey"
:expand-row-keys="expandRowKeys"
border
style="flex: 1"
@selection-change="handleSelectionChange"
@@ -58,7 +60,9 @@ import { useRoute } from 'vue-router'
const props = defineProps({
tableObject: { type: Object, default: () => ({ tableList: [] }) },
tableColumns: { type: Array, default: () => [] }
tableColumns: { type: Array, default: () => [] },
rowkey: { type: String, default: 'id' },
expandRowKeys: { type: Array, default: () => [] }
})
const emit = defineEmits(['update:tableObject', 'getList', 'getCheckedColumns', 'selection-change'])