laue
Version:
Modern charts for Vue.js
29 lines (24 loc) • 426 B
JavaScript
export default {
props: {
animated: Boolean,
animationDuration: {
default: 1,
type: Number
},
animationEffect: {
default: 'ease',
type: String
},
transition: String
},
computed: {
trans() {
return (
this.transition ||
(this.animated ?
`all ${this.animationDuration}s ${this.animationEffect}` :
'none')
)
}
}
}