From 659b2c9d26904b8ccbd3dfb550b28e24f142f263 Mon Sep 17 00:00:00 2001 From: xiaofan <130116940+fan5530@users.noreply.github.com> Date: Tue, 18 Apr 2023 20:28:41 +0800 Subject: [PATCH] fix(useCycleList): correctly wrap list with ref (#2988) Co-authored-by: Anthony Fu --- packages/core/useCycleList/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/useCycleList/index.ts b/packages/core/useCycleList/index.ts index 9f44468c8e3..967d7c33085 100644 --- a/packages/core/useCycleList/index.ts +++ b/packages/core/useCycleList/index.ts @@ -32,7 +32,7 @@ export function useCycleList(list: MaybeRefOrGetter, options?: UseCycleL const index = computed({ get() { - const targetList = toValue(list) + const targetList = listRef.value let index = options?.getIndexOf ? options.getIndexOf(state.value, targetList)