dev #18

Merged
hy merged 3 commits from dev into staging 2025-09-25 15:48:08 +08:00
1 changed files with 4 additions and 1 deletions
Showing only changes of commit 4bc9a0a606 - Show all commits

View File

@ -44,7 +44,7 @@ const props = defineProps({
default: () => ({}),
},
});
const expands = ref<any[]>();
const table = ref<TableConfig>(props.tableConfig);
const tableShowColumn = ref<Record<string, TableColumn>>();
onBeforeMount(() => {
@ -338,6 +338,8 @@ function handleReloadPaged(reload = true) {
if (table.value.searchCallback) {
table.value.searchCallback(table.value.search);
}
//
if (table.value.expandColumn) expands.value = [];
fetchPagedData();
}
//
@ -459,6 +461,7 @@ function fetchPagedData() {
@selection-change="handleSelectionChange"
@sort-change="sortChange"
@expand-change="table.expandChange"
:expand-row-keys="expands"
>
<el-table-column v-if="table.selectColumn" type="selection" width="40" />
<el-table-column