Develop dictionary management function

This commit is contained in:
zyronon
2023-11-28 18:23:11 +08:00
parent 52b12771a2
commit 3e6bbfd282
8 changed files with 916 additions and 543 deletions

View File

@@ -71,6 +71,16 @@ watch(() => props.list, () => {
// listRef.scrollTo(0, 0)
})
function scrollToBottom() {
listRef.scrollToBottom()
}
function scrollToItem(index: number) {
listRef.scrollToItem(index)
}
defineExpose({scrollToBottom, scrollToItem})
</script>
<template>