| | |
| | | import React, {Component} from 'react' |
| | | import PropTypes from 'prop-types' |
| | | import { Form, Row, Col, Input, Select, Icon, Radio, notification, Tooltip } from 'antd' |
| | | import { btnIcons, btnClasses } from '@/utils/option.js' |
| | | import './index.scss' |
| | | |
| | | const { TextArea } = Input |
| | | |
| | | const btnIcons = [{ |
| | | MenuID: '', |
| | | text: 'unset' |
| | | }, { |
| | | MenuID: 'plus', |
| | | text: 'plus' |
| | | }, { |
| | | MenuID: 'plus-circle', |
| | | text: 'plus-circle' |
| | | }, { |
| | | MenuID: 'edit', |
| | | text: 'edit' |
| | | }, { |
| | | MenuID: 'form', |
| | | text: 'form' |
| | | }, { |
| | | MenuID: 'close', |
| | | text: 'close' |
| | | }, { |
| | | MenuID: 'close-circle', |
| | | text: 'close-circle' |
| | | }, { |
| | | MenuID: 'delete', |
| | | text: 'delete' |
| | | }] |
| | | |
| | | const btnClasses = [{ |
| | | MenuID: 'default', |
| | | text: '默认(黑边白底)' |
| | | }, { |
| | | MenuID: 'primary', |
| | | text: '蓝色' |
| | | }, { |
| | | MenuID: 'yellow', |
| | | text: '黄色' |
| | | }, { |
| | | MenuID: 'danger', |
| | | text: '红色' |
| | | }, { |
| | | MenuID: 'green', |
| | | text: '绿色' |
| | | }, { |
| | | MenuID: 'dgreen', |
| | | text: '深绿色' |
| | | }, { |
| | | MenuID: 'purple', |
| | | text: '紫色' |
| | | }, { |
| | | MenuID: 'gray', |
| | | text: '灰色' |
| | | }] |
| | | |
| | | class MainSearch extends Component { |
| | | static propTpyes = { |