diff --git a/src/components/Table/src/Table.vue b/src/components/Table/src/Table.vue index 858329a..c1ecfb1 100644 --- a/src/components/Table/src/Table.vue +++ b/src/components/Table/src/Table.vue @@ -53,7 +53,10 @@ export default defineComponent({ type: Array as PropType, default: () => [] }, - searchTableSelectionsList:[],//回显列表 + searchTableSelectionsList:{ + type: Array as PropType, + default: () => [] + },//回显列表 }, emits: ['update:pageSize', 'update:currentPage', 'register', 'update:sort'], setup(props, { attrs, slots, emit, expose }) { @@ -61,7 +64,7 @@ export default defineComponent({ // 注册 onMounted(() => { const tableRef = unref(elTableRef) - emit('register', tableRef?.$parent, elTableRef) + emit('register', tableRef?.$parent, elTableRef.value) if (props.searchTableSelectionsList && props.searchTableSelectionsList.length > 0) { props.searchTableSelectionsList.forEach(row => { elTableRef.value.toggleRowSelection(row, true);