Skip to content
#

canvas

Here are 5,152 public repositories matching this topic...

Luckysheet
qflash
qflash commented Dec 16, 2020

一般情况,单元格JSON数据:
{
"ct": { //单元格值格式
"fa": "General", //格式名称为自动格式
"t": "n" //格式类型为数字类型
},
"v": 233, //内容的原始值为 233
"m": 233
}
里面的内容是保存在v里面的

而多行文本的内容却保存在ct里面的s里面的v里面,JSON结构如下
{
"ct": { //单元格值格式
"fa": "General", //格式名称为自动格式
"t": "inlineStr" ,
"s":[{"v":"多行文本\n多行文本"}]
}
}

这两种单元格的JSON结构都不一致呢,导致websocket后端保存数据 update

Improve this page

Add a description, image, and links to the canvas topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the canvas topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.