🤖 Merge PR #46645 [@types/react-custom-scrollbars] feat: add style props of react-custom-scrollbars by @RaoHai

* feat: add style props of react-custom-scrollbars

* feat: add tests

Co-authored-by: raohai.rh <raohai.rh@antgroup.com>
This commit is contained in:
陆沉 2020-08-12 08:41:41 +08:00 committed by GitHub
parent 26091d6853
commit 62aa131676
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 2 deletions

View File

@ -47,6 +47,8 @@ export interface ScrollbarProps extends React.HTMLProps<Scrollbars> {
autoHeight?: boolean;
autoHeightMin?: number | string;
autoHeightMax?: number | string;
style?: React.CSSProperties;
}
export class Scrollbars extends React.Component<ScrollbarProps> {

View File

@ -3,7 +3,7 @@ import { render } from 'react-dom';
import Scrollbars from "react-custom-scrollbars"
render(
<Scrollbars>
<Scrollbars style={{ width: 500 }}>
<div>Test</div>
</Scrollbars>,
document.getElementById("main")

View File

@ -39,6 +39,8 @@ export interface ScrollbarProps extends React.HTMLProps<Scrollbars> {
thumbSize?: number;
thumbMinSize?: number;
universal?: boolean;
style?: React.CSSProperties;
}
export class Scrollbars extends React.Component<ScrollbarProps> {

View File

@ -3,7 +3,7 @@ import { render } from 'react-dom';
import Scrollbars from "react-custom-scrollbars"
render(
<Scrollbars>
<Scrollbars style={{ width: 500 }}>
<div>Test</div>
</Scrollbars>,
document.getElementById("main")