import React, { useState } from 'react'; import Icon from '../../Icon/index'; import { Popover } from 'antd'; import { gisChildLayer } from '../../../options/layout'; const LargeScreenAddGISChild = (props: IProps) => { const { layerListEvent } = props; const [isVisible, setIsVisible] = useState(false); //考关 const content = (

点击添加子组件 { setIsVisible(false); }} />

{gisChildLayer?.length > 0 && gisChildLayer.map((item) => { return (
{ setIsVisible(false); layerListEvent?.(e, item?.key, item, 'addGISLaryer'); }} > {item?.title} {item?.title}
); })}
); return (
子组件管理 {/* { setIsVisible(true); }} /> */}
); }; export default LargeScreenAddGISChild; export interface IProps { layerListEvent: Function; }