File tree Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change 2
2
<section
3
3
id =" t_layout_page_item"
4
4
class =" t_layout_page_item"
5
- :class =" { 't_layout_page_item_bottm_margin ': isNoBottomMargin }"
5
+ :class =" { 'page_item_no_margin ': isNoMargin }"
6
6
>
7
7
<slot />
8
8
</section >
11
11
export default {
12
12
name: ' TLayoutPageItem' ,
13
13
props: {
14
- isNoBottomMargin : {
14
+ isNoMargin : {
15
15
type: Boolean ,
16
16
default: false
17
17
}
@@ -20,12 +20,12 @@ export default {
20
20
</script >
21
21
<style lang="scss" scoped>
22
22
.t_layout_page_item {
23
- // margin: 8px;
24
23
padding : 16px ;
25
24
background : #fff ;
26
25
border-radius : 4px ;
27
- & .t_layout_page_item_bottm_margin {
28
- margin-bottom : 0 ;
26
+ & .page_item_no_margin {
27
+ margin : 0 ;
28
+ padding : 0 ;
29
29
}
30
30
}
31
31
</style >
Original file line number Diff line number Diff line change 2
2
<div
3
3
id =" t_layout_page"
4
4
class =" t_layout_page"
5
+ :class =" { layout_page_no_margin: isNoMargin }"
5
6
ref =" TLayoutPageRef"
6
7
@scroll =" (e) => (scrollTop = e.target.scrollTop)"
7
8
>
@@ -18,6 +19,10 @@ export default {
18
19
name: ' TLayoutPage' ,
19
20
props: {
20
21
keepScrollDisabled: Boolean ,
22
+ isNoMargin: {
23
+ type: Boolean ,
24
+ default: false
25
+ },
21
26
// 是否显示返回顶部按钮
22
27
showGoTopButton: {
23
28
type: Boolean ,
@@ -110,4 +115,7 @@ export default {
110
115
}
111
116
}
112
117
}
118
+ .layout_page_no_margin {
119
+ padding : 0 ;
120
+ }
113
121
</style >
You can’t perform that action at this time.
0 commit comments