Skip to content
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

Merged
merged 1 commit into from
Mar 21, 2022

Conversation

HaoGeShuoHuaNiHaoHaoTing
Copy link
Contributor

No description provided.

@@ -0,0 +1,167 @@
@import '../../styles/mixins/index';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

没有用到 mixins 可以删掉

Copy link
Contributor Author

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(''))
Copy link
Collaborator

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}>
Copy link
Collaborator

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,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

增加 ...rest

@oasis-cloud oasis-cloud merged commit e37ce20 into jdf2e:main Mar 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants