Skip to content

Commit dd1abcc

Browse files
committed
调整scrollbar组件
1 parent 1b77acc commit dd1abcc

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

packages/scrollbar/src/index.vue

+1-2
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,7 @@ export default defineComponent({
9191
let style = this.wrapStyle
9292
if (gutter) {
9393
const gutterWith = `-${gutter}px`
94-
const gutterStyle = `padding-bottom: ${gutter}px; margin-bottom: ${gutterWith}; margin-right: ${gutterWith};`
95-
94+
const gutterStyle = `padding-bottom: ${gutter}px; padding-right: ${gutter}px; margin-bottom: ${gutterWith}; margin-right: ${gutterWith};`
9695
if (Array.isArray(this.wrapStyle)) {
9796
style = toObject(this.wrapStyle) as anyObject
9897
style.marginRight = style.marginBottom = gutterWith

packages/theme-chalk/src/scrollbar.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
}
1616

1717
@include e(wrap) {
18-
overflow: scroll;
18+
overflow: auto;
1919
height: 100%;
2020

2121
@include m(hidden-default) {

0 commit comments

Comments
 (0)