/* * @Author: your name * @Date: 2021-12-17 10:42:24 * @Description: * @FilePath: \zl-business\src\components\Unit\button\index.tsx */ import React, { useMemo, useRef } from 'react'; import { Upload } from 'antd'; import '../g.scss'; function LabelUploadLinkButton(props: LabelUploadLinkButton) { const { value, imgUrl, title='label', defaultButtonText, change, wrapStyle = { padding: '6px 20px 6px 20px' } } = props; const isShow = useRef(null); const enter = (e: any) => { isShow.current.style.display = 'block'; }; const leave = (e: any) => { isShow.current.style.display = 'none'; }; const Dom = useMemo(() => { return (