dashboard
repositories
filestore
activity
search
login
hbwri
/
bigScreen
湖北水利大屏
summary
reflog
commits
tree
docs
forks
compare
blame
|
history
|
raw
Merge branch 'master' of http://s16s652780.51mypc.cn:49896/r/hbwri/bigScreen
tengsx
2023-04-07
36c045a4f518f6506eab91e48ee48ce7d1aaa21d
[hbwri/bigScreen.git]
/
src
/
utils
/
fontSize.js
1
2
3
4
5
6
export function fontSize (size) {
let clientHeight = window.screen.availHeight
if (!clientHeight) return
let fontSize = size / 1080 * clientHeight
return fontSize
}