fix: 解决合并会修改原属性的bug

This commit is contained in:
MTrun 2022-02-21 21:21:52 +08:00
parent 8f9e45e660
commit f06aafd14e
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ export default class Config extends publicConfig implements CreateComponentType
}, },
legend: { legend: {
top: '5%', top: '5%',
left: 'center', left: 'center'
}, },
series: [ series: [
{ {

View File

@ -22,5 +22,5 @@ export const mergeTheme = <T, U, E extends keyof U> (
themeSetting: U, themeSetting: U,
includes: E[] = [] includes: E[] = []
) => { ) => {
return merge(pick(themeSetting, includes), option) return merge({}, pick(themeSetting, includes), option)
} }