Open
Description
const VActiveStyle = {
handle(el, bindings) {
const [style, fn] = bindings.value;
if (fn()) {
el.style.color = style.color;
} else {
el.style.color = ''
}
},
beforeMount(el, bindings) {
VActiveStyle.handle(el, bindings)
},
beforeUpdate(el, bindings) {
VActiveStyle.handle(el, bindings)
}
};