import React, { useState, useRef } from 'react'; import Icon from 'src/components/Icon/index'; import '../g.scss'; function SelectIcon(props: ISelectIcon) { const { value, title = '样式', selectList = [ { value: 'icon-yeqian-xiala-copy', label: '线' }, { value: 'icon-xiangxiasanjiao-copy', label: '面' } ], change } = props; return (

{title}

{selectList?.map((item) => { return (
{ change?.(item?.value); }} >
); })}
); } export default SelectIcon; export interface ISelectIcon { value: string; title: string; selectList?: ISelect[]; change: Function; } export interface ISelect { key: string; value?: string; }