UNPKG

@opentiny/vue-renderless

Version:

An enterprise-class UI component library, support both Vue.js 2 and Vue.js 3, as well as PC and mobile.

20 lines (19 loc) 435 B
import "../chunk-G2ADBYYC.js"; const computedBindStyle = ({ constants, time }) => ({ [constants.ANIMATION_DURATION]: parseInt(time, 10) + "s" }); const stopAnimation = ({ props, state }) => () => { if (props.hoverStop) { state.isStop = true; } }; const startAnimation = ({ props, state }) => () => { if (props.hoverStop) { state.isStop = false; } }; export { computedBindStyle, startAnimation, stopAnimation };