-
-
Notifications
You must be signed in to change notification settings - Fork 49.7k
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
引入Popconfirm 报 'className' of undefined错误 #3924
Labels
help wanted
The suggestion or request has been accepted, we need you to help us by sending a pull request.
Comments
<Popconfirm>
- 删除
+ <span>删除</span>
</Popconfirm> |
Please read documentation & FAQ and search issues before open an issue, THX! It will be better if you read smart questions(提问的智慧). |
感觉可以做一层适配,如果 |
benjycui
added
the
help wanted
The suggestion or request has been accepted, we need you to help us by sending a pull request.
label
Nov 21, 2016
在 antd 这一层做适配即可。 |
benjycui
added a commit
that referenced
this issue
Dec 2, 2016
afc163
pushed a commit
that referenced
this issue
Dec 2, 2016
Similar issue with |
Similar issue with Dropdown I think |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
help wanted
The suggestion or request has been accepted, we need you to help us by sending a pull request.
发生问题的环境是:
您做了什么?请提供尽可能详细的重现步骤。
引入antd 的 Popconfirm
报错 Uncaught TypeError: Cannot read property 'className' of undefined
如果不用这个组件 代码正常
代码如下
const columns = [
{title: '昵称', dataIndex: 'nickName', key: 'nickName'},
{title: '登录名', dataIndex: 'loginName', key: 'loginName'},
{title: '姓名', dataIndex: 'name', key: 'name', render: (text)=>{text}},
{title: '操作', dataIndex: '', key: 'operation', render: (text)=>(
编辑
<Popconfirm title="确定要删除吗"
onConfirm={()=>Message.success("点击了确认删除")}
okText="Yes"
cancelText="No"
>删除
)}
];
The text was updated successfully, but these errors were encountered: