king
2021-12-22 bd1dfc9e6c9b9f8076ca2783ce598e0936b4c664
src/templates/menuconfig/menuform/index.jsx
@@ -1,6 +1,8 @@
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 {
@@ -72,7 +74,7 @@
                >
                  {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>