Skip to content

Commit

Permalink
Update index.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
97vack authored May 20, 2024
1 parent 186575c commit 6943dba
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .dumi/component/ScrollBar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ export function ScrollBar(props: any) {
const mouses = noEvent
? {}
: {
onMouseEnter() {
document.body.style.overflow = 'hidden';
document.body.style.paddingRight = '17px';
},
onMouseLeave() {
document.body.style.overflow = 'auto';
document.body.style.paddingRight = '0px';
},
// onMouseEnter() {
// document.body.style.overflow = 'hidden';
// document.body.style.paddingRight = '17px';
// },
// onMouseLeave() {
// document.body.style.overflow = 'auto';
// document.body.style.paddingRight = '0px';
// },
};
return (
<SimpleBar className="dumi-default-simpleBar" {...rests} {...mouses}>
Expand Down

0 comments on commit 6943dba

Please sign in to comment.