diff --git a/components/popconfirm/demo/basic.md b/components/popconfirm/demo/basic.md index 62d6ad8ee9..c4f90d1cd0 100755 --- a/components/popconfirm/demo/basic.md +++ b/components/popconfirm/demo/basic.md @@ -17,16 +17,16 @@ The basic example. import { Popconfirm, message } from 'antd'; function confirm() { - message.success('点击了确定'); + message.success('Click on Yes'); } function cancel() { - message.error('点击了取消'); + message.error('Click on No'); } ReactDOM.render( - - 删除 + + Delete , mountNode); ```` diff --git a/components/popconfirm/demo/dynamic-trigger.md b/components/popconfirm/demo/dynamic-trigger.md index 1c42fbe970..0b93476dfc 100755 --- a/components/popconfirm/demo/dynamic-trigger.md +++ b/components/popconfirm/demo/dynamic-trigger.md @@ -20,7 +20,7 @@ const App = React.createClass({ getInitialState() { return { visible: false, - condition: true, // 是否满足条件,不满足则弹出确认框 + condition: true, // Whether meet the condition, if not show popconfirm. }; }, changeCondition(value) { @@ -28,37 +28,39 @@ const App = React.createClass({ }, confirm() { this.setState({ visible: false }); - message.success('进行下一步操作. next step.'); + message.success('Next step.'); }, cancel() { this.setState({ visible: false }); - message.error('点击了取消'); + message.error('Click on cancel.'); }, handleVisibleChange(visible) { if (!visible) { this.setState({ visible }); return; } - // 打开前进行判断 + // Determining condition before show the popconfirm. console.log(this.state.condition); if (this.state.condition) { - this.confirm(); // 直接执行下一步 + this.confirm(); // next step } else { - this.setState({ visible }); // 进行确认 + this.setState({ visible }); // show the popconfirm } }, render() { return (
- - 删除某任务 + Delete a task

- 点击是否直接执行: + Whether directly execute:
); }, diff --git a/components/popconfirm/demo/placement.md b/components/popconfirm/demo/placement.md index bd6a7e3717..2b720b8b17 100755 --- a/components/popconfirm/demo/placement.md +++ b/components/popconfirm/demo/placement.md @@ -16,55 +16,55 @@ There are 12 `placement` options available. Use `arrowPointAtCenter` if you want ````jsx import { Popconfirm, message, Button } from 'antd'; -const text = '确定要删除这个任务吗?'; +const text = 'Are you sure delete this task?'; function confirm() { - message.info('点击了确定'); + message.info('Click on Yes.'); } ReactDOM.render(
- - + + - - + + - - + +
- - + + - - + + - - + +
- - + + - - + + - - + +
- - + + - - + + - - + +
, mountNode);