Skip to content

Commit

Permalink
chore(*): remove warning of pagination & tableWidth
Browse files Browse the repository at this point in the history
  • Loading branch information
youluna committed Apr 26, 2020
1 parent 7513a19 commit cba19d4
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/button/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
vertical-align: middle;
}

> span,
> div {
display: inline-block;
vertical-align: middle;
Expand Down
4 changes: 2 additions & 2 deletions src/pagination/pagination.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ class Pagination extends Component {
const icon = (
<Icon
type="arrow-left"
className={[`${prefix}pagination-icon-prev`]}
className={`${prefix}pagination-icon-prev`}
/>
);

Expand Down Expand Up @@ -352,7 +352,7 @@ class Pagination extends Component {
const icon = (
<Icon
type="arrow-right"
className={[`${prefix}pagination-icon-next`]}
className={`${prefix}pagination-icon-next`}
/>
);

Expand Down
2 changes: 2 additions & 0 deletions src/table/base/body.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export default class Body extends React.Component {
onBodyMouseOut: PropTypes.func,
locale: PropTypes.object,
crossline: PropTypes.bool,
tableWidth: PropTypes.number,
};
static defaultProps = {
loading: false,
Expand Down Expand Up @@ -98,6 +99,7 @@ export default class Body extends React.Component {
expandedIndexSimulate,
rtl,
crossline,
tableWidth,
...others
} = this.props;

Expand Down
2 changes: 2 additions & 0 deletions src/table/base/header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export default class Header extends React.Component {
sortIcons: PropTypes.object,
onSort: PropTypes.func,
onResizeChange: PropTypes.func,
tableWidth: PropTypes.number,
};
static defaultProps = {
component: 'thead',
Expand Down Expand Up @@ -65,6 +66,7 @@ export default class Header extends React.Component {
onResizeChange,
pure,
rtl,
tableWidth,
...others
} = this.props;

Expand Down

0 comments on commit cba19d4

Please sign in to comment.