fix: update ParentView tests to use mount options and improve mock implementations
All checks were successful
Chore App Build, Test, and Push Docker Images / build-and-push (push) Successful in 3m18s
All checks were successful
Chore App Build, Test, and Push Docker Images / build-and-push (push) Successful in 3m18s
This commit is contained in:
@@ -89,13 +89,6 @@ async function refresh() {
|
||||
loading.value = false
|
||||
}
|
||||
|
||||
defineExpose({
|
||||
refresh,
|
||||
items,
|
||||
centerItem,
|
||||
scrollToItem,
|
||||
})
|
||||
|
||||
const scrollToItem = async (itemId: string) => {
|
||||
await nextTick()
|
||||
const card = itemRefs.value[itemId]
|
||||
@@ -123,6 +116,13 @@ const centerItem = async (itemId: string) => {
|
||||
}
|
||||
}
|
||||
|
||||
defineExpose({
|
||||
refresh,
|
||||
items,
|
||||
centerItem,
|
||||
scrollToItem,
|
||||
})
|
||||
|
||||
const handleClicked = async (item: any) => {
|
||||
await nextTick()
|
||||
const wrapper = scrollWrapper.value
|
||||
|
||||
Reference in New Issue
Block a user