Skip to content

Commit 027fa40

Browse files
committed
feat(Icon): support rtl
1 parent d34959c commit 027fa40

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/icon/index.jsx

+4-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ class Icon extends Component {
2020
* 指定图标大小
2121
*/
2222
size: PropTypes.oneOf(['xxs', 'xs', 'small', 'medium', 'large', 'xl', 'xxl', 'xxxl']),
23-
className: PropTypes.string
23+
className: PropTypes.string,
24+
rtl: PropTypes.bool,
2425
};
2526

2627
static defaultProps = {
@@ -31,7 +32,8 @@ class Icon extends Component {
3132
static _typeMark = 'icon';
3233

3334
render() {
34-
const { prefix, type, size, className, ...other } = this.props;
35+
/* eslint-disable no-unused-vars*/
36+
const { prefix, type, size, className, rtl, ...other } = this.props;
3537

3638
const classes = cx({
3739
[`${prefix}icon`]: true,

0 commit comments

Comments
 (0)