vue-data-ui
Version:
A user-empowering data visualization Vue 3 components library for eloquent data storytelling
2 lines (1 loc) • 355 B
JavaScript
const t=require("vue");function u({config:e}){const r=t.computed(()=>e.userOptions.showOnChartHover),n=t.computed(()=>e.userOptions.keepStateOnChartLeave),s=t.ref(!e.userOptions.showOnChartHover);function o(i=!1){r.value&&(s.value=i)}return{userOptionsVisible:s,keepUserOptionState:n,setUserOptionsVisibility:o}}exports.useUserOptionState=u;
;