-
-
Notifications
You must be signed in to change notification settings - Fork 225
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
Conversation
Deploy preview for zarm ready! Built with commit bde8945 |
components/toast/demo.md
Outdated
class Demo extends React.Component { | ||
render() { | ||
return ( | ||
<> | ||
<Cell | ||
description={ | ||
<Button | ||
size="xs" | ||
onClick={() => { | ||
Toast.show('默认3秒自动关闭'); | ||
}} | ||
> | ||
开启 | ||
</Button> | ||
} | ||
> | ||
开启 | ||
</Button> | ||
} | ||
> | ||
普通 | ||
</Cell> | ||
普通 | ||
</Cell> |
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.
这里修改的目的是?
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.
之前要在demo里使用this.ref来测试挂载节点的问题,所以改成了Class形式,然后就没改回来了,如果要和之前保持统一的话,我这次一并修改下。
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.
还原成function的方式吧
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.
已修复
components/utils/getMountNode.tsx
Outdated
@@ -0,0 +1,20 @@ | |||
const getMountNode = (props: any): HTMLElement => { |
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.
看下应该可以并入dom.tsx
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.
确实,我合并下。
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了吧,直接传container了
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.
已修复
No description provided.