Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fns_front_2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenqikuai
fns_front_2
Commits
c60acfd1
Commit
c60acfd1
authored
Oct 20, 2021
by
chenqikuai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
剪刘海
parent
c4dc5670
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
index.vue
src/components/NavBar/index.vue
+5
-1
No files found.
src/components/NavBar/index.vue
View file @
c60acfd1
...
@@ -89,12 +89,16 @@ export default defineComponent({
...
@@ -89,12 +89,16 @@ export default defineComponent({
default
:
false
default
:
false
}
}
},
},
mounted
(){
console
.
log
(
document
.
documentElement
.
clientWidth
,
window
.
screen
.
width
,
'show width'
);
console
.
log
(
window
.
devicePixelRatio
,
'show window.devicePixelRatio'
);
},
computed
:
{
computed
:
{
isBangs
()
{
isBangs
()
{
return
true
return
true
},
},
heightOfNotch
()
{
// 刘海屏的刘海高度 单位px
heightOfNotch
()
{
// 刘海屏的刘海高度 单位px
return
notchHeight
.
value
;
return
notchHeight
.
value
/
window
.
devicePixelRatio
;
// return 103;
// return 103;
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment