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

fix: custome className added to container #456

Merged
merged 18 commits into from
May 18, 2020

Conversation

edison-hm
Copy link
Contributor

No description provided.

@netlify
Copy link

netlify bot commented May 14, 2020

Deploy preview for zarm ready!

Built with commit bde8945

https://deploy-preview-456--zarm.netlify.app

components/keyboard-picker/index.tsx Outdated Show resolved Hide resolved
Comment on lines 8 to 25
class Demo extends React.Component {
render() {
return (
<>
<Cell
description={
<Button
size="xs"
onClick={() => {
Toast.show('默认3秒自动关闭');
}}
>
开启
</Button>
}
>
开启
</Button>
}
>
普通
</Cell>
普通
</Cell>
Copy link
Collaborator

Choose a reason for hiding this comment

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

这里修改的目的是?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

之前要在demo里使用this.ref来测试挂载节点的问题,所以改成了Class形式,然后就没改回来了,如果要和之前保持统一的话,我这次一并修改下。

Copy link
Collaborator

@JeromeLin JeromeLin May 15, 2020

Choose a reason for hiding this comment

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

还原成function的方式吧

Copy link
Contributor Author

Choose a reason for hiding this comment

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

已修复

@@ -0,0 +1,20 @@
const getMountNode = (props: any): HTMLElement => {
Copy link
Collaborator

@JeromeLin JeromeLin May 15, 2020

Choose a reason for hiding this comment

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

看下应该可以并入dom.tsx

Copy link
Contributor Author

Choose a reason for hiding this comment

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

确实,我合并下。

Copy link
Collaborator

Choose a reason for hiding this comment

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

参数就别用props了吧,直接传container了

Copy link
Contributor Author

Choose a reason for hiding this comment

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

已修复

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants