Skip to content

Commit a16e273

Browse files
author
wanyu.chen
committed
docs: fix the side effect by global el-scrollbar style
1 parent 603d94a commit a16e273

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

examples/pages/template/component.tpl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
height: calc(100% - 80px);
44
margin-top: 80px;
55
6-
.el-scrollbar__wrap {
6+
> .el-scrollbar__wrap {
77
overflow-x: auto;
88
}
99
}
@@ -24,8 +24,9 @@
2424
margin-top: 80px;
2525
transition: padding-top .3s;
2626
27-
.el-scrollbar__wrap {
27+
> .el-scrollbar__wrap {
2828
height: 100%;
29+
overflow-x: auto;
2930
}
3031
3132
&.is-extended {

0 commit comments

Comments
 (0)