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
829645ba
authored
2022-10-13 17:28:36 +0800
by
任超
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'master' of
http://yun.pashanhoo.com:9090/bdc/bdcdj-web
2 parents
987e3f93
57cae15e
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 @
829645b
...
...
@@ -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