mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-16 01:41:02 +08:00
25 lines
410 B
Markdown
Executable File
25 lines
410 B
Markdown
Executable File
---
|
||
order: 1
|
||
title:
|
||
zh-CN: 国际化
|
||
en-US: Locale text
|
||
---
|
||
|
||
## zh-CN
|
||
|
||
使用 `okText` 和 `cancelText` 自定义按钮文字。
|
||
|
||
## en-US
|
||
|
||
Set `okText` and `cancelText` props to customise the button's labels.
|
||
|
||
````__react
|
||
import { Popconfirm } from 'antd';
|
||
|
||
ReactDOM.render(
|
||
<Popconfirm title="Are you sure?" okText="Yes" cancelText="No">
|
||
<a href="#">Delete</a>
|
||
</Popconfirm>
|
||
, mountNode);
|
||
````
|