You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, @bT0nG, We are so sorry for the bad experience. We will troubleshoot and fix the problem as soon as possible. Please pay attention to the follow-up change logs.
🏷 Version
Sheet Type
[ * ] PivotSheet
🖋 Description
自定义单元格展示内容,比如:
数据单元格
class CustomDataCell extends DataCell
行单元格
class CustomRowCell extends RowCell
列单元格
class CustomColCell extends ColCell
这三个单元格的基类DataCell,RowCell,ColCell都继承自BaseCell,问题就出在BaseCell的this.getActualText()方法中,如果重写单元格的drawTextShape()方法,在该方法中添加了多个TextShape文字图层,即:
this.getActualText()就会取不到this.actualText,this.actualText为undefined,导致BaseCell另一个方法isTextOverflowing()报错
只要鼠标hover到对应的单元格就会报
Cannot read properties of undefined (reading 'includes')
错误。⌨️ Code Snapshots
s2Options
自定义行单元格
🔗 Reproduce Link
https://codesandbox.io/p/sandbox/mystifying-rosalind-3xx4xw?file=%2Findex.ts
复现代码:
🤔 Steps to Reproduce
😊 Expected Behavior
希望采用自定义单元格添加多个TextShape,不会报错Cannot read properties of undefined (reading 'includes')
😅 Current Behavior
目前在自定义单元格类中显式声明actualText就不会再报错了,但我认为这仍然是一个Bug。具体代码:
💻 System information
The text was updated successfully, but these errors were encountered: