chore: rename api folder to composition
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import { ref, Ref, watch } from 'vue';
|
||||
|
||||
export function useLazyRender(show: Ref<boolean>) {
|
||||
const inited = ref(show.value);
|
||||
|
||||
watch(show, (value) => {
|
||||
if (value) {
|
||||
inited.value = value;
|
||||
}
|
||||
});
|
||||
|
||||
return inited;
|
||||
}
|
||||
Reference in New Issue
Block a user