rapid-spreadjs 1.0.181 → 1.0.182

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -1296,7 +1296,8 @@ const BusinessUtils = {
1296
1296
  .indicatorColor(commentColor)
1297
1297
  .indicatorSize(commentSize)
1298
1298
  .fontSize('10pt')
1299
- .width(200);
1299
+ .width(250)
1300
+ .height(Math.ceil(item.tipMsg.length / 20) * 30);
1300
1301
  if (commentDefaultTextIsSet) {
1301
1302
  sheet.setValue(item.row, item.col, commentDefaultText);
1302
1303
  }
@@ -1367,7 +1368,13 @@ const BusinessUtils = {
1367
1368
  try {
1368
1369
  //设置批注
1369
1370
  if (eval(lastFor)) {
1370
- sheet.comments.add(item.row, item.col, item.tipMsg).indicatorColor(commentColor).indicatorSize(commentSize).fontSize('10pt').width(200);
1371
+ sheet.comments
1372
+ .add(item.row, item.col, item.tipMsg)
1373
+ .indicatorColor(commentColor)
1374
+ .indicatorSize(commentSize)
1375
+ .fontSize('10pt')
1376
+ .width(250)
1377
+ .height(Math.ceil(item.tipMsg.length / 20) * 30);
1371
1378
  if (commentDefaultTextIsSet) {
1372
1379
  sheet.setValue(item.row, item.col, commentDefaultText);
1373
1380
  }