fix: 去掉表头排序及筛选
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user