import React from 'react'; import { Menu, List, Icon } from 'semantic-ui-react'; class DevList extends React.Component { render() { let {list, sel,selectDevice, openModal, delData} = this.props; return ( 裝置列表 openModal('device')} /> { list.map((t,idx)=>( selectDevice(t.devuid)}>{t.name} delData('device', t.devuid)} /> openModal('device', 1, t)} /> )) } ) } } export default DevList;