1
0
mirror of https://gitee.com/vant-contrib/vant.git synced 2025-04-06 03:57:59 +08:00

chore(FloatingPanel): reuse windowHeight ()

This commit is contained in:
inottn 2023-06-27 21:35:10 +08:00 committed by GitHub
parent 99dd982aee
commit 7b31f0877f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -14,16 +14,15 @@ import {
makeArrayProp,
makeNumericProp,
truthProp,
windowHeight,
} from '../utils';
// Composables
import { useWindowSize, useEventListener } from '@vant/use';
import { useEventListener } from '@vant/use';
import { useLockScroll } from '../composables/use-lock-scroll';
import { useTouch } from '../composables/use-touch';
import { useSyncPropRef } from '../composables/use-sync-prop-ref';
const { height: windowHeight } = useWindowSize();
export const floatingPanelProps = {
height: makeNumericProp(0),
anchors: makeArrayProp<number>(),