import React from "react"; import { Spin, Button, Tabs, Table, message, Modal } from "antd"; const ShowModal = React.createClass({ getInitialState() { return { newVisible: false }; }, componentWillReceiveProps(nextProps) { this.setState({ newVisible: nextProps.ShowModal }); }, handleOk() { this.setState({ newVisible: false }); // window.setTimeout( () => { // this.setState({ // newVisible: true // }); // },) }, render() { return (
您有新消息尚未查看,请及时查看信息! 点我查看信息
); } }); export default ShowModal;