mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-15 17:31:25 +08:00
6776bb8916
* docs: update demo * chore: add script * test: fix demo test * docs: convert demos * chore: move script * test: remove react-dom import * chore: update deps * docs: update riddle js * test: fix image test * docs: fix riddle demo
399 B
Executable File
399 B
Executable File
order | title | ||||
---|---|---|---|---|---|
1 |
|
zh-CN
使用 okText
和 cancelText
自定义按钮文字。
en-US
Set okText
and cancelText
props to customize the button's labels.
import { Popconfirm } from 'antd';
export default () => (
<Popconfirm title="Are you sure?" okText="Yes" cancelText="No">
<a href="#">Delete</a>
</Popconfirm>
);