mirror of
https://github.com/VisActor/VTable
synced 2024-11-21 17:40:10 +00:00
fix: theme extend problem
This commit is contained in:
parent
eddb82871f
commit
eb88b4334d
@ -788,8 +788,7 @@ export class TableTheme implements ITableThemeDefine {
|
||||
return hasThemeProperty(obj, names) || hasThemeProperty(superTheme, names);
|
||||
}
|
||||
extends(obj: PartialTableThemeDefine): TableTheme {
|
||||
const cloneObj = ingoreNoneValueMerge({}, this.internalTheme.obj);
|
||||
return new TableTheme(ingoreNoneValueMerge(cloneObj, obj), this.internalTheme.superTheme);
|
||||
return new TableTheme(obj, ingoreNoneValueMerge(this.internalTheme.superTheme, this.internalTheme.obj));
|
||||
}
|
||||
private getStyle(style: ThemeStyle) {
|
||||
const that = this;
|
||||
|
Loading…
Reference in New Issue
Block a user