Commit 35f2d074aec71827168aacbdca31537c5f500082
Committed by
GitHub
1 parent
c0e40fa0
fix: 修复#2030改动引起的可展开table失效 (#2042)
Showing
1 changed file
with
4 additions
and
4 deletions
src/views/demo/table/ExpandTable.vue
... | ... | @@ -4,11 +4,11 @@ |
4 | 4 | content="不可与scroll共用。TableAction组件可配置stopButtonPropagation来阻止操作按钮的点击事件冒泡,以便配合Table组件的expandRowByClick" |
5 | 5 | > |
6 | 6 | <BasicTable @register="registerTable"> |
7 | + <template #expandedRowRender="{ record }"> | |
8 | + <span>No: {{ record.no }} </span> | |
9 | + </template> | |
7 | 10 | <template #bodyCell="{ column, record }"> |
8 | - <template v-if="column.key === 'no'"> | |
9 | - <span>No: {{ record.no }} </span> | |
10 | - </template> | |
11 | - <template v-else-if="column.key === 'action'"> | |
11 | + <template v-if="column.key === 'action'"> | |
12 | 12 | <TableAction |
13 | 13 | stopButtonPropagation |
14 | 14 | :actions="[ | ... | ... |