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