mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-26 01:42:30 +08:00
18 lines
279 B
Markdown
18 lines
279 B
Markdown
# 国际化
|
||
|
||
- order: 2
|
||
|
||
设置 `okText` `cancelText` 以自定义按钮文字。
|
||
|
||
---
|
||
|
||
````jsx
|
||
import { Popconfirm } from 'antd';
|
||
|
||
ReactDOM.render(
|
||
<Popconfirm title="Are you sure?" okText="Yes" cancelText="No">
|
||
<a href="#">Delete</a>
|
||
</Popconfirm>
|
||
, mountNode);
|
||
````
|