import React, {useState} from 'react'; import {Row, Col, Card} from 'antd'; import './index.less' export interface GPanelProps { lColSpanC: number lTitle: string lToolButton?: any lContent: any rColSpanC: number rTitle: string rToolButton: any rContent: any } const GPanel: React.FC = (props) => { let {lColSpanC, lTitle, lToolButton, lContent, rColSpanC, rTitle, rToolButton, rContent} = props const [isShowLeft, setIsShowLeft] = useState(true) return (
{isShowLeft && {lContent} }
{ setIsShowLeft(!isShowLeft) }}>
{isShowLeft ? '<' : '>'}
{rContent}
); }; export default GPanel;