Closed lily7630 closed 1 hour ago
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
Origin Title: [Bug] How to save cells styles as an object instead of a id string?
Title: [Bug] How to save cells styles as an object instead of a id string?
^0.4.2
I hope that when saving table data through universalAPI.getActiveWorkbook().save(), the style of the cell is an object, like this "s":{"ht":2,"bl":1}, and now when saving, the cell object is the id, like this "s": "style id"
The cell style is the id string
Chrome
No response
The id is designed as the index of the style object. If you need to save it as the style object itself, you'll need to handle that yourself and be responsible for any resulting bugs.
在您提交此问题之前,您是否检查了以下内容?
受影响的包和版本
^0.4.2
复现链接
预期行为
我希望通过univerAPI.getActiveWorkbook().save() 保存表格数据时,单元格的样式是对象,像这样 "s":{"ht":2,"bl":1},现在保存时单元格对象是id,像这样的 "s": "样式id"
实际行为
单元格样式是id字符串
运行环境
Chrome
系统信息
No response