Files
personal_development/ServerManagerWebApp/frontend/node_modules/.vite/deps/chunk-YGX2Z63P.js
T

33 lines
662 B
JavaScript

import {
propsFactory
} from "./chunk-LZ5T2ERG.js";
import {
shallowRef,
toRef,
watch
} from "./chunk-2MKFL3BX.js";
// node_modules/vuetify/lib/composables/lazy.js
var makeLazyProps = propsFactory({
eager: Boolean
}, "lazy");
function useLazy(props, active) {
const isBooted = shallowRef(false);
const hasContent = toRef(() => isBooted.value || props.eager || active.value);
watch(active, () => isBooted.value = true);
function onAfterLeave() {
if (!props.eager) isBooted.value = false;
}
return {
isBooted,
hasContent,
onAfterLeave
};
}
export {
makeLazyProps,
useLazy
};
//# sourceMappingURL=chunk-YGX2Z63P.js.map