chore: rename api folder to composition

This commit is contained in:
chenjiahan
2020-08-26 15:32:30 +08:00
parent 216d326158
commit 2ec101f07b
22 changed files with 30 additions and 20 deletions

View File

@@ -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;
}