fix: theme extend problem

This commit is contained in:
fangsmile 2024-10-31 16:47:15 +08:00
parent eddb82871f
commit eb88b4334d

View File

@ -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;