e-virt-table 1.2.30 → 1.2.31

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.es.js CHANGED
@@ -834,6 +834,7 @@ class ut extends Yt {
834
834
  let a = this.displayText, h = this.drawTextColor;
835
835
  if (!this.ctx.database.getReadonly(this.rowKey, this.key) && r && ["", null, void 0].includes(this.text) && this.cellType === "body" && !(this.rowspan === 0 || this.colspan === 0) && (a = r, h = s), !a)
836
836
  return !1;
837
+ typeof a != "string" && (a = `${a}`);
837
838
  const d = `${a}_${this.drawTextWidth}`;
838
839
  return this.ellipsis = this.ctx.paint.drawText(
839
840
  a,
@@ -3184,7 +3185,7 @@ class ct extends Yt {
3184
3185
  ));
3185
3186
  }
3186
3187
  getText() {
3187
- return this.render ? "" : this.text;
3188
+ return this.render ? "" : `${this.text}`;
3188
3189
  }
3189
3190
  /**
3190
3191
  * 获取样式