UNPKG

tav-ui

Version:
17 lines (14 loc) 447 B
import { ref, unref, watch, computed } from 'vue'; function useMasking(props) { const maskingRef = ref(unref(props).masking); watch(() => unref(props).masking, (masking) => { maskingRef.value = masking; }); const getMasking = computed(() => unref(maskingRef)); function setMasking(masking) { maskingRef.value = masking; } return { getMasking, setMasking }; } export { useMasking }; //# sourceMappingURL=useMasking2.mjs.map