Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bdc
/
bdcdj-web
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
57cae15e
authored
2022-10-13 17:27:56 +0800
by
liangyifan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
11
1 parent
f334ee31
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
4 deletions
src/components/tanchuang/index.vue
src/components/tanchuang/index.vue
View file @
57cae15
...
...
@@ -10,7 +10,7 @@
<svg-icon
icon-class=
'close'
class=
"closeStyle"
@
click=
"onCancel"
/>
</div>
<div
class=
"ls-mask-content"
ref=
'contentRef'
:style=
"
{'height': contentHeight
+ 'px'
}">
<div
class=
"ls-mask-content"
ref=
'contentRef'
:style=
"
{'height': contentHeight}">
<component
:is=
"editItem"
ref=
'childRef'
@
loading=
'loadingFn'
:key=
"key"
:formData=
'formData'
/>
</div>
<div
class=
"ls-mask-footer"
v-if=
'btnShow'
>
...
...
@@ -56,8 +56,21 @@ export default {
mounted
()
{
// 计算滚动条高度
setTimeout
(()
=>
{
this
.
contentHeight
=
this
.
$refs
.
contentRef
.
offsetHeight
},
1000
)
if
(
this
.
btnShow
){
if
(
this
.
height
==
'auto'
){
this
.
contentHeight
=
(
this
.
$refs
.
contentRef
.
offsetHeight
-
115
)
+
'px'
}
else
{
this
.
contentHeight
=
(
parseInt
(
this
.
height
)
-
parseInt
(
'115px'
))
+
'px'
;
}
}
else
{
if
(
this
.
height
==
'auto'
){
this
.
contentHeight
=
this
.
$refs
.
contentRef
.
offsetHeight
+
'px'
}
else
{
this
.
contentHeight
=
this
.
height
}
}
},
500
)
},
methods
:
{
onCancel
()
{
...
...
@@ -130,7 +143,6 @@ export default {
padding
:
20px
;
width
:
100%
;
overflow
:
scroll
;
max-height
:
500px
;
}
.ls-mask-footer
{
...
...
@@ -140,6 +152,9 @@ export default {
width
:
100%
;
box-shadow
:
0px
0px
2px
0px
;
border-radius
:
0
0
10px
10px
;
position
:
absolute
;
bottom
:
0
;
background
:
#ffffff
;
}
...
...
Please
register
or
sign in
to post a comment