We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
import React from 'react' import ReactDOM from 'react-dom' import { Button } from '@kdcloudjs/kdesign' const Demo = () => { const hRef = React.useRef(null) React.useEffect(() => { console.log(hRef, '====hRef') }) const demoButtonStyle = { margin: '0px 8px 8px 0' } const overlay1 = [ { value: '1', label: '发布' }, { value: '2', label: '生成凭证' }, { value: '3', label: '打印' } ] const overlay2 = [ { value: '1', label: '暂存' }, { value: '2', label: '撤销' }, { value: '3', label: '废弃' } ] return ( <div> <Button.Dropdown overlay={overlay1} style={demoButtonStyle} onItemClick={() => console.log('onItemClick')} ref={hRef}> 更多 </Button.Dropdown> <Button.Dropdown style={demoButtonStyle} overlay={overlay2} type="similar" onClick={() => console.log('onClick')} onItemClick={() => console.log('onItemClick')}> 提交 </Button.Dropdown> </div> ) } ReactDOM.render(<Demo />, mountNode)
将此代码贴到任一组件的演示代码中,打印出来ref为null
组件库与浏览器均为最新版本
The text was updated successfully, but these errors were encountered:
fix: [button] 修复集合按钮无法获取实例问题 fix kingdee#909
c489505
5fa0070
kobehhh
No branches or pull requests
重现链接或代码
重现问题步骤
将此代码贴到任一组件的演示代码中,打印出来ref为null
期望的结果是什么
实际的结果是什么
组件库版本号、浏览器信息
组件库与浏览器均为最新版本
The text was updated successfully, but these errors were encountered: