mirror of
https://github.com/VisActor/VTable
synced 2024-11-22 01:52:03 +00:00
fix: theme extend usage not work #2708
This commit is contained in:
parent
b355f901e4
commit
cb0c20d36a
@ -788,7 +788,8 @@ export class TableTheme implements ITableThemeDefine {
|
|||||||
return hasThemeProperty(obj, names) || hasThemeProperty(superTheme, names);
|
return hasThemeProperty(obj, names) || hasThemeProperty(superTheme, names);
|
||||||
}
|
}
|
||||||
extends(obj: PartialTableThemeDefine): TableTheme {
|
extends(obj: PartialTableThemeDefine): TableTheme {
|
||||||
return new TableTheme(ingoreNoneValueMerge({}, this.internalTheme.obj, obj), this.internalTheme.superTheme);
|
const cloneObj = ingoreNoneValueMerge({}, this.internalTheme.obj);
|
||||||
|
return new TableTheme(ingoreNoneValueMerge(cloneObj, obj), this.internalTheme.superTheme);
|
||||||
}
|
}
|
||||||
private getStyle(style: ThemeStyle) {
|
private getStyle(style: ThemeStyle) {
|
||||||
const that = this;
|
const that = this;
|
||||||
|
Loading…
Reference in New Issue
Block a user