refactor(Table): 修复 Table组件注册逻辑
- 将 elTableRef 参数改为 elTableRef.value,以正确传递 ref 对象
This commit is contained in:
parent
ff61902822
commit
7caf9cb28c
|
@ -56,7 +56,7 @@ export default defineComponent({
|
|||
// 注册
|
||||
onMounted(() => {
|
||||
const tableRef = unref(elTableRef)
|
||||
emit('register', tableRef?.$parent, elTableRef)
|
||||
emit('register', tableRef?.$parent, elTableRef.value)
|
||||
})
|
||||
|
||||
const pageSizeRef = ref(props.pageSize)
|
||||
|
|
Loading…
Reference in New Issue