Skip to content

Commit

Permalink
fix: 🐛 修复表格default-expand-all属性无效BUG
Browse files Browse the repository at this point in the history
  • Loading branch information
ShanYi-Hui committed Jun 26, 2024
1 parent c655733 commit 71b38f8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/components/Table/src/Table.vue
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export default defineComponent({
type: [Function, Object] as PropType<
(row: Recordable, rowIndex: number) => Recordable | CSSProperties
>,
default: () => undefined
default: undefined
},
cellClassName: {
type: [Function, String] as PropType<
Expand All @@ -110,7 +110,7 @@ export default defineComponent({
type: [Function, Object] as PropType<
(row: Recordable, column: any, rowIndex: number) => Recordable | CSSProperties
>,
default: () => undefined
default: undefined
},
headerRowClassName: {
type: [Function, String] as PropType<(row: Recordable, rowIndex: number) => string | string>,
Expand All @@ -120,7 +120,7 @@ export default defineComponent({
type: [Function, Object] as PropType<
(row: Recordable, rowIndex: number) => Recordable | CSSProperties
>,
default: () => undefined
default: undefined
},
headerCellClassName: {
type: [Function, String] as PropType<
Expand All @@ -132,14 +132,14 @@ export default defineComponent({
type: [Function, Object] as PropType<
(row: Recordable, column: any, rowIndex: number) => Recordable | CSSProperties
>,
default: () => undefined
default: undefined
},
rowKey: propTypes.string.def('id'),
emptyText: propTypes.string.def('No Data'),
defaultExpandAll: propTypes.bool.def(false),
expandRowKeys: {
type: Array as PropType<string[]>,
default: () => []
default: undefined
},
defaultSort: {
type: Object as PropType<{ prop: string; order: string }>,
Expand Down
2 changes: 2 additions & 0 deletions src/views/Components/Table/UseTableDemo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,9 @@ const getSelections = async () => {
v-model:currentPage="currentPage"
showAction
showSummary
default-expand-all
:columns="columns"
row-key="id"
:data="dataList"
:loading="loading"
:pagination="
Expand Down

0 comments on commit 71b38f8

Please sign in to comment.