import React from 'react'; import './index.less'; import { Dropdown, Menu } from 'antd'; import Icon from '../Icon'; function More(props) { const { menu = [], size = '', children, onClick } = props; return ( onClick && onClick(key)}> {menu.map(item => { if (!item || !item.key) return null; return {item.label}; })} } trigger={['click']} >
{children || }
); } export default More;