refactor: save
This commit is contained in:
parent
5439b0f43b
commit
6ce731447a
@ -35,7 +35,8 @@ const state = reactive({
|
||||
next: false,
|
||||
start: { x: 0, y: 0, time: 0 },
|
||||
move: { x: 0, y: 0 },
|
||||
wrapper: { width: 0, height: 0, childrenLength: 0 }
|
||||
wrapper: { width: 0, height: 0, childrenLength: 0 },
|
||||
isDown: false
|
||||
})
|
||||
|
||||
watch(
|
||||
@ -85,9 +86,9 @@ function canNext(isNext) {
|
||||
<div
|
||||
class="slide-list flex-direction-column"
|
||||
ref="wrapperEl"
|
||||
@touchstart="touchStart"
|
||||
@touchmove="touchMove"
|
||||
@touchend="touchEnd"
|
||||
@pointerdown="touchStart"
|
||||
@pointermove="touchMove"
|
||||
@pointerup="touchEnd"
|
||||
>
|
||||
<slot></slot>
|
||||
</div>
|
||||
|
||||
@ -6,7 +6,7 @@ export function useNav() {
|
||||
const router = useRouter()
|
||||
const store = useBaseStore()
|
||||
|
||||
return (path, query = {}, data) => {
|
||||
return (path, query = {}, data?: any) => {
|
||||
if (data) {
|
||||
store.routeData = cloneDeep(data)
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user