@hailin-zheng/editor-core 2.0.20 → 2.0.21

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/index.js CHANGED
@@ -4328,7 +4328,7 @@ class TableCellElement extends BlockContainerElement {
4328
4328
  const cellRender = new TableCellRenderObject(this);
4329
4329
  cellRender.rect.width = cellWidth;
4330
4330
  //cellRender.rect.maxWidth = cellWidth;
4331
- cellRender.padding = new PaddingProps(0, 0, 5, 5);
4331
+ cellRender.padding = new PaddingProps(0, 0, 0, 0);
4332
4332
  cellRender.rect.x = cellOffset;
4333
4333
  return cellRender;
4334
4334
  }
@@ -13583,8 +13583,10 @@ class DocumentContext {
13583
13583
  const dataEle = this.getControlById(id);
13584
13584
  if (dataEle) {
13585
13585
  dataEle.setValue(value);
13586
+ if (dataEle.isFocused) {
13587
+ this.ss.clear();
13588
+ }
13586
13589
  }
13587
- this.ss.clear();
13588
13590
  }
13589
13591
  setControlValueByName(name, val) {
13590
13592
  const dataEle = this.getControlByName(name);