| | |
| | | import React, {Component} from 'react' |
| | | import PropTypes from 'prop-types' |
| | | import { Form, Row, Col, Input, Select, Icon } from 'antd' |
| | | import { Form, Row, Col, Input, Select } from 'antd' |
| | | |
| | | import MkIcon from '@/components/mk-icon' |
| | | import './index.scss' |
| | | |
| | | class MainSearch extends Component { |
| | |
| | | > |
| | | {item.options.map(option => |
| | | <Select.Option id={option.MenuID} key={option.MenuID} value={option.MenuID}> |
| | | {item.key === 'icon' && <Icon type={option.text} />} {option.text || option.MenuName} |
| | | {item.key === 'icon' && <MkIcon type={option.text} />} {option.text || option.MenuName} |
| | | </Select.Option> |
| | | )} |
| | | </Select> |