2016-03-31 09:40:55 +08:00
|
|
|
|
---
|
2016-10-14 21:45:48 +08:00
|
|
|
|
order: 1
|
2016-08-26 14:42:41 +08:00
|
|
|
|
title:
|
|
|
|
|
zh-CN: 国际化
|
2016-10-07 15:33:04 +08:00
|
|
|
|
en-US: Locale text
|
2016-03-31 09:40:55 +08:00
|
|
|
|
---
|
2015-11-24 11:21:37 +08:00
|
|
|
|
|
2016-08-26 14:42:41 +08:00
|
|
|
|
## zh-CN
|
|
|
|
|
|
2016-10-07 15:33:04 +08:00
|
|
|
|
使用 `okText` 和 `cancelText` 自定义按钮文字。
|
2015-11-24 11:21:37 +08:00
|
|
|
|
|
2016-08-26 14:42:41 +08:00
|
|
|
|
## en-US
|
|
|
|
|
|
2016-10-07 15:33:04 +08:00
|
|
|
|
Set `okText` and `cancelText` props to customise the button's labels.
|
2016-08-26 14:42:41 +08:00
|
|
|
|
|
2017-02-13 10:55:53 +08:00
|
|
|
|
````jsx
|
2015-11-24 11:21:37 +08:00
|
|
|
|
import { Popconfirm } from 'antd';
|
|
|
|
|
|
|
|
|
|
ReactDOM.render(
|
|
|
|
|
<Popconfirm title="Are you sure?" okText="Yes" cancelText="No">
|
2015-11-26 12:07:27 +08:00
|
|
|
|
<a href="#">Delete</a>
|
2015-11-24 11:21:37 +08:00
|
|
|
|
</Popconfirm>
|
2015-12-29 12:08:58 +08:00
|
|
|
|
, mountNode);
|
2015-11-24 11:21:37 +08:00
|
|
|
|
````
|