# 自定义页脚 - order: 2 更复杂的例子,点击提交后进入 loading 状态,完成后关闭。 --- ````jsx var Modal = antd.Modal; var Test = React.createClass({ getInitialState: function() { return { loading: false }; }, showModal() { this.refs.modal.show(); }, handleOk() { this.setState({ loading: true }); setTimeout(()=> { this.refs.modal.hide(); this.setState({ loading: false }); }, 3000); }, handleCancel() { this.refs.modal.hide(); }, render() { return
返 回, ]}>

对话框的内容

; } }); React.render( , document.getElementById('components-modal-demo-footer')); ````