Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
template_vue
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨硕
template_vue
Commits
d1820cc1
Commit
d1820cc1
authored
Feb 26, 2024
by
高宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024/01/24 需求变更
parent
0d468f9f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
9 deletions
+12
-9
rem.js
src/utils/rem.js
+5
-2
checkList.vue
src/views/checkList.vue
+7
-7
No files found.
src/utils/rem.js
View file @
d1820cc1
...
@@ -4,11 +4,14 @@ const baseSize = 16
...
@@ -4,11 +4,14 @@ const baseSize = 16
function
setRem
()
{
function
setRem
()
{
// 当前页面宽度相对于 1920 宽的缩放比例,可根据自己需要修改。
// 当前页面宽度相对于 1920 宽的缩放比例,可根据自己需要修改。
const
scale
=
document
.
documentElement
.
clientWidth
/
1920
const
scale
=
document
.
documentElement
.
clientWidth
/
1920
// 设置页面根节点字体大小, 字体大小最小为12
const
fontSize
=
(
baseSize
*
Math
.
min
(
scale
,
2
))
>
7.2
?
(
baseSize
*
Math
.
min
(
scale
,
2
))
:
7.2
document
.
documentElement
.
style
.
fontSize
=
baseSize
*
Math
.
min
(
scale
,
2
)
+
'px'
console
.
log
(
'fontSize'
,
(
baseSize
*
Math
.
min
(
scale
,
2
)))
document
.
documentElement
.
style
.
fontSize
=
fontSize
+
'px'
}
}
// 初始化
// 初始化
setRem
()
setRem
()
// 初始化
// 改变窗口大小时重新设置 rem,这里最好加上节流
// 改变窗口大小时重新设置 rem,这里最好加上节流
window
.
onresize
=
function
()
{
window
.
onresize
=
function
()
{
setRem
()
setRem
()
...
...
src/views/checkList.vue
View file @
d1820cc1
...
@@ -282,7 +282,7 @@ export default {
...
@@ -282,7 +282,7 @@ export default {
<
style
scoped
lang=
"scss"
>
<
style
scoped
lang=
"scss"
>
.CheckBobyList
{
.CheckBobyList
{
::v-deep
.el-form-item__content
{
::v-deep
.el-form-item__content
{
margin-left
:
3
.1rem
!
important
;
//
margin-left: 3.1rem !important;
}
}
::v-deep
.el-input__inner
{
::v-deep
.el-input__inner
{
padding-right
:
13px
;
padding-right
:
13px
;
...
@@ -303,11 +303,11 @@ export default {
...
@@ -303,11 +303,11 @@ export default {
//检查表主题
//检查表主题
.checkList
{
.checkList
{
.smallInput
{
.smallInput
{
width
:
1
4
rem
;
width
:
1
1
rem
;
}
}
.normalInput
{
.normalInput
{
width
:
3
8
.9rem
;
;
width
:
3
4rem
;
height
:
32px
;
height
:
32px
;
background
:
#ffffff
;
background
:
#ffffff
;
border
:
1px
solid
#d9d9d9
;
border
:
1px
solid
#d9d9d9
;
...
@@ -390,7 +390,7 @@ export default {
...
@@ -390,7 +390,7 @@ export default {
}
}
.appearance
{
.appearance
{
width
:
3
8
.9
rem
;
width
:
3
4
rem
;
height
:
5
.1rem
;
height
:
5
.1rem
;
margin-left
:
0
.5rem
;
margin-left
:
0
.5rem
;
background
:
#f4f4f4
;
background
:
#f4f4f4
;
...
@@ -443,7 +443,7 @@ export default {
...
@@ -443,7 +443,7 @@ export default {
.recordOneContainer
{
.recordOneContainer
{
margin-top
:
16px
;
margin-top
:
16px
;
width
:
3
8
.9rem
;
width
:
3
4rem
;
;
height
:
37rem
;
height
:
37rem
;
background
:
rgba
(
0
,
87
,
255
,
0
.05
);
background
:
rgba
(
0
,
87
,
255
,
0
.05
);
border-radius
:
4px
;
border-radius
:
4px
;
...
@@ -512,7 +512,7 @@ export default {
...
@@ -512,7 +512,7 @@ export default {
.recordTwoContainer
{
.recordTwoContainer
{
margin-top
:
16px
;
margin-top
:
16px
;
width
:
3
8
.9rem
;
width
:
3
4rem
;
;
height
:
37rem
;
height
:
37rem
;
background
:
rgba
(
0
,
87
,
255
,
0
.05
);
background
:
rgba
(
0
,
87
,
255
,
0
.05
);
border-radius
:
4px
;
border-radius
:
4px
;
...
@@ -672,7 +672,7 @@ export default {
...
@@ -672,7 +672,7 @@ export default {
.imgText
{
.imgText
{
margin-top
:
8px
;
margin-top
:
8px
;
width
:
48px
;
width
:
5rem
;
height
:
16px
;
height
:
16px
;
font-size
:
12px
;
font-size
:
12px
;
font-family
:
Microsoft
YaHei
,
Microsoft
YaHei-400
;
font-family
:
Microsoft
YaHei
,
Microsoft
YaHei-400
;
...
...
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