Skip to content

Commit

Permalink
fix: doc
Browse files Browse the repository at this point in the history
  • Loading branch information
MinJieLiu committed Jul 13, 2022
1 parent 4198eba commit e7b3377
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ function App() {

| Name | Type | Description |
| :-- | :-- | :-- |
| skin | 'white' \| 'dark' | Adapt to the background color of the container. Default 'white' |
| skin | 'light' \| 'dark' | Adapt to the background color of the container. Default 'light' |
| trackGap | number \| [startX: number, endX: number, startY: number, endY: number] | Gap at the cross end of the scroll bar. Default 16 |
| trackStyle | (horizontal?: boolean) => CSSProperties | |
| thumbStyle | (horizontal?: boolean) => CSSProperties | |
Expand Down
6 changes: 5 additions & 1 deletion packages/example/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,11 @@ function App() {
<MacScrollbar
as="main"
style={{ flex: 1, height: 500 }}
trackStyle={(horizontal) => ({ [horizontal ? 'height' : 'width']: 0 })}
trackStyle={(horizontal) => ({
[horizontal ? 'height' : 'width']: 0,
right: 2,
border: 0,
})}
thumbStyle={(horizontal) => ({ [horizontal ? 'height' : 'width']: 4 })}
suppressAutoHide
>
Expand Down
2 changes: 1 addition & 1 deletion packages/mac-scrollbar/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function App() {

| Name | Type | Description |
| :-- | :-- | :-- |
| skin | 'white' \| 'dark' | Adapt to the background color of the container. Default 'white' |
| skin | 'light' \| 'dark' | Adapt to the background color of the container. Default 'light' |
| trackGap | number \| [startX: number, endX: number, startY: number, endY: number] | Gap at the cross end of the scroll bar. Default 16 |
| trackStyle | (horizontal?: boolean) => CSSProperties | |
| thumbStyle | (horizontal?: boolean) => CSSProperties | |
Expand Down
2 changes: 1 addition & 1 deletion packages/mac-scrollbar/README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function App() {

| Name | Type | Description |
| :-- | :-- | :-- |
| skin | 'white' \| 'dark' | 适应容器的滚动条主题,默认 'white' |
| skin | 'light' \| 'dark' | 适应容器的滚动条主题,默认 'light' |
| trackGap | number \| [startX: number, endX: number, startY: number, endY: number] | 滚动条交叉末端的间隙,默认 16 |
| trackStyle | (horizontal?: boolean) => CSSProperties | |
| thumbStyle | (horizontal?: boolean) => CSSProperties | |
Expand Down
2 changes: 1 addition & 1 deletion packages/mac-scrollbar/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mac-scrollbar",
"version": "0.10.1",
"version": "0.10.2",
"description": "A macos style react scroll bar component",
"author": "MinJieLiu <[email protected]>",
"type": "module",
Expand Down

0 comments on commit e7b3377

Please sign in to comment.