ant-design/components/popconfirm/demo/locale.md
Marcela Bomfim b1c41c665e Fix typo (#10250)
Fix typo
2018-04-25 21:59:14 +08:00

406 B
Executable File
Raw Blame History

order title
1
zh-CN en-US
国际化 Locale text

zh-CN

使用 okTextcancelText 自定义按钮文字。

en-US

Set okText and cancelText props to customize the button's labels.

import { Popconfirm } from 'antd';

ReactDOM.render(
  <Popconfirm title="Are you sure" okText="Yes" cancelText="No">
    <a href="#">Delete</a>
  </Popconfirm>
, mountNode);