--- order: 6 title: 国际化 --- 设置 `okText` 与 `cancelText` 以自定义按钮文字。 ````jsx import { Modal, Button } from 'antd'; const LocalizedModal = React.createClass({ getInitialState() { return { visible: false }; }, showModal() { this.setState({ visible: true }); }, handleOk() { this.setState({ visible: false }); }, handleCancel() { this.setState({ visible: false }); }, render() { return (
Bla bla ...
Bla bla ...
Bla bla ...