routie dev init since i didn't adhere to any proper guidance up until now
This commit is contained in:
+21
@@ -0,0 +1,21 @@
|
||||
import { Qn as toRef, Yn as shallowRef, gn as watch } from "./vue.runtime.esm-bundler-BvoXUmaf.js";
|
||||
import { l as propsFactory } from "./defineComponent-DB6xIcDy.js";
|
||||
//#region 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
|
||||
};
|
||||
}
|
||||
//#endregion
|
||||
export { useLazy as n, makeLazyProps as t };
|
||||
|
||||
//# sourceMappingURL=lazy-DhsobH97.js.map
|
||||
Reference in New Issue
Block a user