Showing
1 changed file
with
20 additions
and
0 deletions
src/common/vueuse.js
0 → 100644
| 1 | +import { ref } from 'vue' | ||
| 2 | +import { useBrowserLocation, useEventListener, useTitle, useUrlSearchParams, useWindowScroll, logicAnd } from '@vueuse/core' | ||
| 3 | +export const fn = () => { | ||
| 4 | + // const location = useBrowserLocation() | ||
| 5 | + // console.warn(location.value); | ||
| 6 | + | ||
| 7 | + // useEventListener(window, 'scroll', (evt) => { | ||
| 8 | + // const { x, y } = useWindowScroll() | ||
| 9 | + // // console.warn(x.value); | ||
| 10 | + // console.warn(y.value); | ||
| 11 | + // }) | ||
| 12 | + | ||
| 13 | + // useTitle('New Title') | ||
| 14 | + | ||
| 15 | + const a = ref(true) | ||
| 16 | + const b = ref(true) | ||
| 17 | + const flag = a.value && b.value | ||
| 18 | + console.warn(flag); | ||
| 19 | + | ||
| 20 | +} |
-
Please register or login to post a comment