chore: update deps

This commit is contained in:
xingyu4j
2022-11-23 14:37:35 +08:00
parent 028810b201
commit a5287d7186
6 changed files with 15 additions and 12 deletions

View File

@ -1,6 +1,7 @@
<script setup lang="ts">
import { propTypes } from '@/utils/propTypes'
import { ref, onMounted } from 'vue'
import { propTypes } from '@/utils/propTypes'
const props = defineProps({
src: propTypes.string.def('')
})

View File

@ -137,7 +137,7 @@ const moveToCurrentTag = async () => {
const tagLinksRefs = useTemplateRefsList<RouterLinkProps>()
const moveToTarget = (currentTag: RouteLocationNormalizedLoaded) => {
const wrap$ = unref(scrollbarRef)?.wrap$
const wrap$ = unref(scrollbarRef)?.wrapRef
let firstTag: Nullable<RouterLinkProps> = null
let lastTag: Nullable<RouterLinkProps> = null
@ -233,7 +233,7 @@ const scroll = ({ scrollLeft }) => {
// 移动到某个位置
const move = (to: number) => {
const wrap$ = unref(scrollbarRef)?.wrap$
const wrap$ = unref(scrollbarRef)?.wrapRef
const { start } = useScrollTo({
el: wrap$!,
position: 'scrollLeft',