Commit d7134fec47e74e21de3bbfacd3946524e8c0c83a
1 parent
8fab5d5b
fix(animation) clone animation of other work
Showing
1 changed file
with
1 additions
and
1 deletions
front-end/h5/src/components/core/models/element.js
| ... | ... | @@ -34,7 +34,7 @@ class Element { |
| 34 | 34 | this.pluginProps = (typeof ele.pluginProps === 'object' && clone(ele.pluginProps)) || this.getDefaultPluginProps(ele.editorConfig || {}) |
| 35 | 35 | this.commonStyle = (typeof ele.commonStyle === 'object' && clone(ele.commonStyle)) || { ...defaultStyle } |
| 36 | 36 | this.events = [] |
| 37 | - this.animations = [] | |
| 37 | + this.animations = ele.animations || [] | |
| 38 | 38 | } |
| 39 | 39 | |
| 40 | 40 | getDefaultPluginProps (editorConfig) { | ... | ... |