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
76847e29
authored
2022-10-12 16:20:50 +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
43ac953b
13be7fe2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
15 deletions
src/components/tanchuang/index.vue
src/components/tanchuang/index.vue
View file @
76847e2
<
template
>
<transition
name=
"fade"
mode=
"out-in"
v-if=
"isShow"
>
<div
class=
"ls-mask"
v-loading=
"loading"
>
<div
class=
"ls-mask-window"
:style=
"
{'width':width,'minHeight':height}">
<div
:style=
"
{'text-align':titleStyle}">
<b>
{{
title
}}
</b></div>
<i
class=
"el-icon-close"
@
click=
"onCancel"
></i>
<div
class=
"ls-mask-content"
>
<div
class=
"ls-mask-window"
:style=
"
{'width':width,'height':height}">
<div
class=
"ls-head"
>
<div
class=
"ls-title"
:style=
"
{'text-align':titleStyle}">
<b>
{{
title
}}
</b></div>
<i
class=
"el-icon-close"
@
click=
"onCancel"
></i>
</div>
<div
class=
"ls-mask-content"
ref=
'contentRef'
:style=
"
{'height': contentHeight + 'px'}">
<component
:is=
"editItem"
ref=
'childRef'
@
loading=
'loadingFn'
:formData=
'formData'
/>
</div>
<div
class=
"ls-mask-footer"
>
...
...
@@ -30,10 +33,12 @@ export default {
editItem
:
""
,
titleStyle
:
'center'
,
width
:
"75%"
,
height
:
"
230px
"
,
height
:
"
auto
"
,
formData
:
""
,
//父组件传递的参数 负责传给子组件
contentHeight
:
""
,
}
},
props
:
{
loading
:
{
type
:
Boolean
,
default
:
false
},
},
...
...
@@ -42,6 +47,12 @@ export default {
this
.
editItem
=
this
.
loadViewFn
(
this
.
editItem
)
},
},
mounted
(){
// 计算滚动条高度
setTimeout
(()
=>
{
this
.
contentHeight
=
this
.
$refs
.
contentRef
.
offsetHeight
},
1000
);
},
methods
:
{
onCancel
()
{
this
.
isShow
=
false
...
...
@@ -86,34 +97,43 @@ export default {
}
.ls-mask-window
{
padding-top
:
20px
;
background
:
white
;
position
:
absolut
e
;
position
:
relativ
e
;
left
:
50%
;
top
:
50%
;
min-height
:
200px
;
transform
:
translate
(
-50%
,
-50%
);
border-radius
:
10px
;
}
.ls-head
{
position
:
relative
;
}
.ls-mask-window
b
{
padding-left
:
12px
;
}
.ls-title
{
padding
:
20px
;
background
:
#1E9FFF
;
color
:
#ffffff
;
}
.ls-mask-content
{
padding
:
20px
;
text-align
:
center
;
position
:
absolute
;
width
:
100%
;
overflow
:
scroll
;
}
.ls-mask-footer
{
height
:
65px
;
border-top
:
1px
solid
#f0f0f0
;
display
:
flex
;
justify-content
:
flex-end
;
padding
:
2px
;
justify-content
:
center
;
position
:
absolute
;
width
:
98
%
;
bottom
:
1
0px
;
right
:
12
px
;
padding-top
:
10px
;
width
:
100
%
;
bottom
:
0px
;
right
:
0
px
;
background
:
#202B3D
;
}
/
deep
/
.el-icon-close
{
...
...
@@ -122,10 +142,14 @@ export default {
right
:
12px
;
font-size
:
20px
;
cursor
:
pointer
;
color
:
#ffffff
;
}
/
deep
/
.el-loading-mask
{
background
:
none
;
}
/
deep
/
.el-button
{
margin
:
15px
10px
;
}
</
style
>
\ No newline at end of file
...
...
Please
register
or
sign in
to post a comment