fix: checkedKeys use unref bug (#3198)

This commit is contained in:
bowen 2023-10-26 16:16:58 +08:00 committed by GitHub
parent 405ef9e2b3
commit ae61fa1186
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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';
@ -43,7 +43,7 @@
rowKey: 'id',
rowSelection: {
type: 'checkbox',
selectedRowKeys: unref(checkedKeys),
selectedRowKeys: checkedKeys,
onSelect: onSelect,
onSelectAll: onSelectAll,
},