Skip to content

Commit 46ac34b

Browse files
committed
update
1 parent fd05ba8 commit 46ac34b

3 files changed

Lines changed: 3 additions & 16 deletions

File tree

src/ScrollBar.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,10 @@ const ScrollBar = React.forwardRef<ScrollBarRef, ScrollBarProps>((props, ref) =>
210210
const thumbStyle: React.CSSProperties = {
211211
position: 'absolute',
212212
borderRadius: 99,
213+
background: 'var(--rc-virtual-list-scrollbar-bg)',
213214
cursor: 'pointer',
214215
userSelect: 'none',
216+
...propsThumbStyle,
215217
};
216218

217219
if (horizontal) {
@@ -260,7 +262,7 @@ const ScrollBar = React.forwardRef<ScrollBarRef, ScrollBarProps>((props, ref) =>
260262
className={classNames(`${scrollbarPrefixCls}-thumb`, {
261263
[`${scrollbarPrefixCls}-thumb-moving`]: dragging,
262264
})}
263-
style={{ ...thumbStyle, ...propsThumbStyle }}
265+
style={thumbStyle}
264266
onMouseDown={onThumbMouseDown}
265267
/>
266268
</div>

src/index.less

Lines changed: 0 additions & 14 deletions
This file was deleted.

src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import './index.less';
21
import List from './List';
32

43
export type { ListRef, ListProps } from './List';

0 commit comments

Comments
 (0)