de/frontend/src/components/canvas/store/animation.js
2021-06-24 13:54:58 +08:00

12 lines
240 B
JavaScript

export default {
mutations: {
addAnimation({ curComponent }, animation) {
curComponent.animations.push(animation)
},
removeAnimation({ curComponent }, index) {
curComponent.animations.splice(index, 1)
}
}
}