mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-24 14:41:20 -08:00
update property.js
This commit is contained in:
1 parent
a3b767f15d
commit
d34a6ba268
5 files changed
+14
-5
No files matched your search
@@ -10,6 +10,7 @@ import {
|
||||
addClass,
|
||||
setStyle,
|
||||
isMobile,
|
||||
mergeDeep,
|
||||
inverseClass,
|
||||
createElement,
|
||||
includeFromEvent,
|
||||
@@ -98,7 +99,8 @@ export default class Setting extends Component {
|
||||
this.remove();
|
||||
this.events = [];
|
||||
this.cache = new Map();
|
||||
const mergeSettings = [...this.defaultSettings, ...settings];
|
||||
const settingsCopy = settings.map((item) => mergeDeep({}, item));
|
||||
const mergeSettings = [...this.defaultSettings, ...settingsCopy];
|
||||
this.option = Setting.makeRecursion(mergeSettings);
|
||||
this.render(this.option);
|
||||
return this.option;
|
||||
|
||||
Reference in new issue
Block a user