Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
dj-scrm-wx-work-attachment-psd
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 73e734a2
authored
May 30, 2023
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改日历高度
1 parent
d949b7fa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
9 deletions
src/assets/css/index.scss
src/components/DatePopup.vue
src/assets/css/index.scss
View file @
73e734a
...
...
@@ -10,6 +10,10 @@ body .app {
height
:
100%
;
// overflow: hidden;
--themeColor
:
#3975C6
;
/* 兼容 IOS<11.2 先constant再env */
--constantSafeAreaInsetBottom
:
constant
(
safe-area-inset-bottom
);
/* 兼容 IOS>11.2 */
--envSafeAreaInsetBottom
:
env
(
safe-area-inset-bottom
);
}
img
{
...
...
src/components/DatePopup.vue
View file @
73e734a
...
...
@@ -3,11 +3,16 @@
v-model=
"show"
position=
"bottom"
class=
"date-popup"
closeable
round
@
close=
"close"
>
<div
class=
"date-title flex"
>
时间选择
</div>
<div
class=
"date-title flex"
>
时间选择
<i
class=
"van-icon van-icon-cross van-popup__close-icon van-popup__close-icon--top-right"
@
click=
"close"
></i>
</div>
<div
class=
"date-box"
>
<div
class=
"date-subtitle"
>
推送日期
</div>
<div
class=
"date-list flex"
>
...
...
@@ -122,11 +127,13 @@ export default {
max-height
:
95%
;
/deep/.van-popup__close-icon
{
z-index
:
3
;
margin-left
:
auto
;
position
:
static
;
}
/
deep
/
.van-calendar__day
{
font-size
:
14px
;
}
/
deep
/
.van-calendar__month-title
{
/
deep
/
.van-calendar__month-title
{
height
:
32px
;
line-height
:
32px
;
}
...
...
@@ -135,7 +142,7 @@ export default {
bottom
:
2px
;
}
.date-title
{
height
:
56
px
;
height
:
44
px
;
padding
:
0
16px
;
font-weight
:
500
;
font-size
:
16px
;
...
...
@@ -146,7 +153,8 @@ export default {
top
:
0
;
}
.date-box
{
padding
:
16px
;
padding
:
16px
16px
calc
(
var
(
--constantSafeAreaInsetBottom
)
+
76px
);
padding
:
16px
16px
calc
(
var
(
--envSafeAreaInsetBottom
)
+
76px
);
.date-subtitle
{
font-size
:
14px
;
color
:
#333333
;
...
...
@@ -171,14 +179,16 @@ export default {
}
}
.calendar
{
height
:
380px
;
margin-bottom
:
10px
;
height
:
320px
;
}
}
.date-btn
{
position
:
sticky
;
bottom
:
0
;
position
:
fixed
;
left
:
16px
;
bottom
:
calc
(
var
(
--constantSafeAreaInsetBottom
)
+
16px
);
bottom
:
calc
(
var
(
--envSafeAreaInsetBottom
)
+
16px
);
z-index
:
2
;
width
:
calc
(
100%
-
32px
);
}
}
</
style
>
\ No newline at end of file
Write
Preview
Markdown
is supported
Attach a file
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 post a comment