Major overhaul to the theme and now functioning.
This commit is contained in:
+32
@@ -0,0 +1,32 @@
|
||||
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
|
||||
Reference in New Issue
Block a user