import React, { useMemo } from 'react'; import Wrap from '../wrap/Wrap'; import Icon from '../../Icon/index'; import { Select } from 'antd'; import { returnClass } from '../unit'; import '../g.scss'; const { Option } = Select; function LabelSearchSelect(props: ILabelSearchSelect) { const { title = 'label', size = 'lager', value, disabled=false, paddingSize = 'normal', placeholderValue='', selectList=[], selectLoading, change, wrapStyle = { padding: '6px 20px 6px 20px' } } = props; const optionsDom = () => { Array.isArray(selectList) && selectList?.length > 0 && selectList?.map((item) => { return ( ); }); }; const Redio = useMemo(() => { return (
{title}
); }, [ value, title, paddingSize, placeholderValue, selectList, selectList, selectLoading ]); return Redio; } export default LabelSearchSelect; export interface ILabelSearchSelect { title: string | number; change: Function; size: string; value?: string | number; paddingSize?: string; placeholderValue?: string; selectList?: any[]; disabled?: boolean; selectLoading?: boolean; wrapStyle?: React.CSSProperties; }