import React, { useMemo } from 'react'; import Wrap from '../wrap/Wrap'; import { Select } from 'antd'; import { CaretDownOutlined } from '@ant-design/icons'; import '../g.scss'; const { Option } = Select; function TwoSelect(props: ITwoSelect) { const { oneValue, twoValue, oneSelectList=[], twoSelectList=[], change, wrapStyle = { padding: '6px 20px 6px 20px' } } = props; const returnOption = (rest: ISelect) => { if (typeof rest.value === 'number') { return ( ); } else { return ( ); } }; const Redio = useMemo(() => { return (
); }, [oneValue, twoValue, oneSelectList, twoSelectList]); return Redio; } export default TwoSelect; export interface ITwoSelect { change?: Function; oneValue?: string; twoValue?: string; oneSelectList?: ISelect[]; twoSelectList?: ISelect[]; wrapStyle?: React.CSSProperties; } export interface ISelect { key: string; value?: string; }