elementui 自定义动态多级表头 报错Cannot read properties of null (reading 'emitsOptions')

要做自定义动态多级表头,使用elementui 表格做,拆分table和column为单独的组件,其中column组件中走遍历循环,一修改column文件就会报错,刷新变好,具体报错代码为
runtime-core.esm-bundler.js?5c40:1366 Uncaught (in promise) TypeError: Cannot read properties of null (reading 'emitsOptions')
具体代码如下:

img

img


报错图如下:

img

自己尝试去发现问题的过程中发现:
①table和column(循环遍历)在一个页面,修改文件后不报错;
②.table和column(只遍历一层)不在一个页面,修改文件后不报错;
③.table和column(循环遍历)不在一个页面,修改文件后报错;

不知道为什么会报这个错误,不知道怎么解决

你用的是vue2 还是vue3

找到问题了吗?我也遇到了同样问题