-
Notifications
You must be signed in to change notification settings - Fork 266
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(新增 tabs 选项卡切换组件): 新增 tabs 选项卡切换组件 #99
Conversation
@@ -0,0 +1,167 @@ | |||
@import '../../styles/mixins/index'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
没有用到 mixins 可以删掉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
下面有一行 @include oneline-ellipsis(); 用到了
}, [children]) | ||
|
||
const b = bem('tabs') | ||
const classes = classNames(direction, b('')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
props 需要支持 className和 style
} | ||
|
||
return ( | ||
<div className={classes}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
需要支持 props rest ,<div className={'demo'} {...rest}>
titleNode, | ||
children, | ||
onClick, | ||
onChange, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
增加 ...rest
No description provided.