import { FullscreenExitOutlined, FullscreenOutlined, RedoOutlined, SearchOutlined, SettingOutlined } from "@ant-design/icons"; import { Button, Col, Row, Space, Tooltip } from "antd"; import React, { useContext } from "react"; import { DispatchHeader } from "../TablePro"; /** * 头部 * @returns */ const Settings: React.FC = () => { /******************************/ const { isFullscreen, setIsFullscreen, isFull, toggleFull, setVisible, czChild, leftChild, ajax } = useContext(DispatchHeader)!; const colData = czChild ? { span: 24 } : { flex: '1 1 150px' } /******************************/ return {isFullscreen && leftChild} {czChild && {czChild}} {ajax && } } export default React.memo(Settings)