chore: remove LazyContainer

This commit is contained in:
vben
2023-04-06 23:49:20 +08:00
parent 6890dd7201
commit 6a9bd686d5
11 changed files with 2 additions and 382 deletions

View File

@@ -1,8 +1,8 @@
import type { Ref } from 'vue';
import { onBeforeUpdate, ref } from 'vue';
import { onBeforeUpdate, shallowRef } from 'vue';
export function useRefs(): [Ref<HTMLElement[]>, (index: number) => (el: HTMLElement) => void] {
const refs = ref([]) as Ref<HTMLElement[]>;
const refs = shallowRef([]) as Ref<HTMLElement[]>;
onBeforeUpdate(() => {
refs.value = [];