Commit d7134fec47e74e21de3bbfacd3946524e8c0c83a

Authored by ly525
1 parent 8fab5d5b

fix(animation) clone animation of other work

front-end/h5/src/components/core/models/element.js
@@ -34,7 +34,7 @@ class Element { @@ -34,7 +34,7 @@ class Element {
34 this.pluginProps = (typeof ele.pluginProps === 'object' && clone(ele.pluginProps)) || this.getDefaultPluginProps(ele.editorConfig || {}) 34 this.pluginProps = (typeof ele.pluginProps === 'object' && clone(ele.pluginProps)) || this.getDefaultPluginProps(ele.editorConfig || {})
35 this.commonStyle = (typeof ele.commonStyle === 'object' && clone(ele.commonStyle)) || { ...defaultStyle } 35 this.commonStyle = (typeof ele.commonStyle === 'object' && clone(ele.commonStyle)) || { ...defaultStyle }
36 this.events = [] 36 this.events = []
37 - this.animations = [] 37 + this.animations = ele.animations || []
38 } 38 }
39 39
40 getDefaultPluginProps (editorConfig) { 40 getDefaultPluginProps (editorConfig) {