Commit 5c24a1c4c49cf6fd010c51e53221afcbf783c920
1 parent
e91d7571
fix: Table Title Error
Showing
1 changed file
with
4 additions
and
2 deletions
src/components/Table/src/BasicTable.vue
@@ -25,10 +25,12 @@ | @@ -25,10 +25,12 @@ | ||
25 | <template #[item]="data" v-for="item in Object.keys($slots)" :key="item"> | 25 | <template #[item]="data" v-for="item in Object.keys($slots)" :key="item"> |
26 | <slot :name="item" v-bind="data || {}"></slot> | 26 | <slot :name="item" v-bind="data || {}"></slot> |
27 | </template> | 27 | </template> |
28 | - | ||
29 | - <template #headerCell v-for="(column, index) in columns" :key="index"> | 28 | + <template #headerCell="{ column }"> |
30 | <HeaderCell :column="column" /> | 29 | <HeaderCell :column="column" /> |
31 | </template> | 30 | </template> |
31 | + <!-- <template #[`header-${column.dataIndex}`] v-for="(column, index) in columns" :key="index">--> | ||
32 | + <!-- <HeaderCell :column="column" />--> | ||
33 | + <!-- </template>--> | ||
32 | </Table> | 34 | </Table> |
33 | </div> | 35 | </div> |
34 | </template> | 36 | </template> |