Skip to content

给列头设置了border后,单元格不能拖拽列宽了,并且经常报错 #2602

Closed Answered by lijinke666
Create-Peace asked this question in Q&A
Discussion options

You must be logged in to vote

基类的 getStyle 有一个可选参数, 你如果重写的话需要透传, 不然拖拽热区的颜色拿不到, 这里的文档有误, 后续修改下

public getStyle<K extends keyof InternalFullyTheme = CellType>(
name?: K,
): InternalFullyTheme[K] | InternalFullyCellTheme {
return get(this.theme, name || this.cellType);
}

class CustomColCell extends ColCell {
-  getStyle() {
-    const defaultStyle = super.getStyle()
-  }

+  getStyle(name) {
+    const defaultStyle = super.getStyle(name)
+  }
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Create-Peace
Comment options

Answer selected by Create-Peace
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants