import React, { Component } from 'react'
import { Space, Tag, Typography } from 'antd'
import Highlighter from 'pages/system/doc/highlighter'

const { Title, Text } = Typography

export default class close extends Component {
    render() {
        return (
            <Space direction="vertical" className="w-100-p">
                <Text>可调用全局方法关闭窗口</Text>
                <Highlighter code={'window.closeContentWindow(key)'} language="javascript" />
                <Title level={4}>键</Title>
                <Text>
                    <Tag>String | Number</Tag>
                    非必传参数。指定关闭窗口的键。如果未指定键，则关闭当前选中的窗口。
                </Text>
            </Space>
        )
    }
}
