Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
tswj
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2022-05-15 19:32:56 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
a239745b836341aa4db87c62a9e335ab1e4a944a
a239745b
1 parent
18582226
vuesue工具库
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
src/common/vueuse.js
src/common/vueuse.js
0 → 100644
View file @
a239745
import
{
ref
}
from
'vue'
import
{
useBrowserLocation
,
useEventListener
,
useTitle
,
useUrlSearchParams
,
useWindowScroll
,
logicAnd
}
from
'@vueuse/core'
export
const
fn
=
()
=>
{
// const location = useBrowserLocation()
// console.warn(location.value);
// useEventListener(window, 'scroll', (evt) => {
// const { x, y } = useWindowScroll()
// // console.warn(x.value);
// console.warn(y.value);
// })
// useTitle('New Title')
const
a
=
ref
(
true
)
const
b
=
ref
(
true
)
const
flag
=
a
.
value
&&
b
.
value
console
.
warn
(
flag
);
}
Please
register
or
login
to post a comment