fix: 去掉表头排序及筛选

This commit is contained in:
汪少伟
2025-03-25 09:15:17 +08:00
parent 4c5d4c7113
commit 66764e4d73
7 changed files with 239 additions and 239 deletions

View File

@@ -1,7 +1,6 @@
<template>
<d-table :data="dataSource" @sort-change="handleSortChange" :header-bg="true">
<d-column v-for="(column, index) in props.tableConfig" :field="column.field"
:header="column.header" :sortable="column.sortable" :sort-method="column.sortMethod"></d-column>
<d-column v-for="(column, index) in props.tableConfig" :field="column.field" :header="column.header"></d-column>
</d-table>
</template>
@@ -12,15 +11,14 @@ export default defineComponent({
props: {
tableConfig: {
type: Array,
default: () => [],
default: () => []
},
dataSource: {
type: Array,
default: () => [],
},
default: () => []
}
},
setup(props) {
onMounted(() => {
console.log('props', props);
});
@@ -37,10 +35,8 @@ export default defineComponent({
};
return { props, handleSortChange, sortDateMethod, sortNameMethod };
},
}
});
</script>
<style scoped lang="scss">
</style>
<style scoped lang="scss"></style>