myliang / x-spreadsheet

The project has been migrated to @wolf-table/table https://github.com/wolf-table/table
https://myliang.github.io/x-spreadsheet
MIT License
13.98k stars 1.67k forks source link

Cannot destructure property 'rows' of 'this.data' as it is undefined #602

Open Qujh97 opened 2 years ago

Qujh97 commented 2 years ago

复现步骤

Qujh97 commented 2 years ago

image 直接点击红框内标签会报错,点击绿框内进行添加/切换操作不会报错

dzorogh commented 1 year ago

I had same error with Vue 3 ref.

This variant will cause the error when switching tabs with preloaded data:

const ssRef = ref();
ssRef.value = new Spreadsheet(excelRef.value, { ... })

This will not cause error:

const ss = new Spreadsheet(excelRef.value, { ... })
RookieDouby commented 1 year ago

我也遇到相同的报错,有哪位大佬知道怎么解决吗?