有类似luckysheet里的导入导出功能或者像window.luckysheet的输出吗? #2209
Replies: 3 comments
-
因为excel里有公式和样式单元格合并等,想直接通过将excel里的模板内容复制到univer sheet中然后用它的数据用来初始化,类似luckysheet里的api : getSheetData() |
Beta Was this translation helpful? Give feedback.
0 replies
-
Beta Was this translation helpful? Give feedback.
0 replies
-
createUnit(){
let data = localStorage.getItem('v')
data = data ? JSON.parse(data) : this.data
const unit = this.univer.createUnit(UniverInstanceType.UNIVER_SHEET, data);
return unit
},
save() {
this.data = this.unit.save()
localStorage.setItem('v', JSON.stringify(this.data))
}, save 方法能够保存所有配置包括数据源 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
就是想初始化表格,有类似luckysheet里的导入导出功能吗,想直接生成celldata的数据源用来初始化
或者有像window.luckysheet可在控制台查看的类似的吗?
Beta Was this translation helpful? Give feedback.
All reactions