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