diff --git a/src/components/ui/search.js b/src/components/ui/search.js
index a81de99..38ea62e 100644
--- a/src/components/ui/search.js
+++ b/src/components/ui/search.js
@@ -2,27 +2,33 @@ import React from 'react'
import styles from './search.less'
import { Input, Select, Button, Icon } from 'antd'
-const Search = (props) => {
- const handleSearch = () => {
+class Search extends React.Component {
+ state = {
+ clearVisible: false
+ }
+ handleSearch = () => {
// console.log(this.refs.searchInput)
}
- const handleInputChange = () => {
+ handleInputChange = (e) => {
+ console.log(e.target.value)
+ }
+ handleClearInput = () => {
}
- const handleClearInput = () => {
-
+ render () {
+ const {size, select, selectOptions, selectProps, onSearch} = this.props
+ const {clearVisible} = this.state
+ return (
+
+ {select && }
+
+
+ {clearVisible && }
+
+ )
}
- const {size, select, selectOptions, selectProps, onSearch} = props
- return (
-
- {select ? : ''}
-
-
-
-
- )
}
export default Search