Open Qujh97 opened 2 years 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, { ... })
我也遇到相同的报错,有哪位大佬知道怎么解决吗?
复现步骤
JSON.stringify(sheet.getData())
sheet.loadData(JSON.parse(...))
Uncaught TypeError: Cannot destructure property 'rows' of 'data' as it is undefined.