Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
najiu-admin-template
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
najiu-frontend
najiu-admin-template
Commits
b45f8c50
Commit
b45f8c50
authored
Jan 19, 2021
by
vben
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(modal): fullscreen height calculation error #203
parent
ca4f1a8f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
ModalWrapper.vue
src/components/Modal/src/components/ModalWrapper.vue
+6
-3
No files found.
src/components/Modal/src/components/ModalWrapper.vue
View file @
b45f8c50
...
@@ -36,8 +36,8 @@
...
@@ -36,8 +36,8 @@
props
:
{
props
:
{
loading
:
propTypes
.
bool
,
loading
:
propTypes
.
bool
,
useWrapper
:
propTypes
.
bool
.
def
(
true
),
useWrapper
:
propTypes
.
bool
.
def
(
true
),
modalHeaderHeight
:
propTypes
.
number
.
def
(
5
0
),
modalHeaderHeight
:
propTypes
.
number
.
def
(
5
7
),
modalFooterHeight
:
propTypes
.
number
.
def
(
5
4
),
modalFooterHeight
:
propTypes
.
number
.
def
(
7
4
),
minHeight
:
propTypes
.
number
.
def
(
200
),
minHeight
:
propTypes
.
number
.
def
(
200
),
height
:
propTypes
.
number
,
height
:
propTypes
.
number
,
footerOffset
:
propTypes
.
number
.
def
(
0
),
footerOffset
:
propTypes
.
number
.
def
(
0
),
...
@@ -137,7 +137,7 @@
...
@@ -137,7 +137,7 @@
if
(
props
.
fullScreen
)
{
if
(
props
.
fullScreen
)
{
realHeightRef
.
value
=
realHeightRef
.
value
=
window
.
innerHeight
-
props
.
modalFooterHeight
-
props
.
modalHeaderHeight
;
window
.
innerHeight
-
props
.
modalFooterHeight
-
props
.
modalHeaderHeight
-
28
;
}
else
{
}
else
{
realHeightRef
.
value
=
props
.
height
realHeightRef
.
value
=
props
.
height
?
props
.
height
?
props
.
height
...
@@ -145,6 +145,9 @@
...
@@ -145,6 +145,9 @@
?
maxHeight
?
maxHeight
:
realHeight
;
:
realHeight
;
}
}
console
.
log
(
'
======================
'
);
console
.
log
(
realHeightRef
.
value
,
props
);
console
.
log
(
'
======================
'
);
emit
(
'
height-change
'
,
unref
(
realHeightRef
));
emit
(
'
height-change
'
,
unref
(
realHeightRef
));
}
catch
(
error
)
{
}
catch
(
error
)
{
console
.
log
(
error
);
console
.
log
(
error
);
...
...
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