Skip to content

Commit

Permalink
fix: checkedKeys use unref bug (#3198)
Browse files Browse the repository at this point in the history
  • Loading branch information
jiaowoxiaobala committed Oct 26, 2023
1 parent 405ef9e commit ae61fa1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/views/demo/table/FormTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
</BasicTable>
</template>
<script lang="ts">
import { defineComponent, ref, unref } from 'vue';
import { defineComponent, ref } from 'vue';
import { BasicTable, useTable } from '/@/components/Table';
import { getBasicColumns, getFormConfig } from './tableData';
import { Alert } from 'ant-design-vue';
Expand All @@ -43,7 +43,7 @@
rowKey: 'id',
rowSelection: {
type: 'checkbox',
selectedRowKeys: unref(checkedKeys),
selectedRowKeys: checkedKeys,
onSelect: onSelect,
onSelectAll: onSelectAll,
},
Expand Down

0 comments on commit ae61fa1

Please sign in to comment.