import React, {Component, PropTypes} from 'react' import {render} from 'react-dom' import Search from './src/index'; class App extends Component{ constructor(props){ super(props); this.state={ "placeholder":"搜索" /**没有值的时候显示的内容(string)**/ ,"iconName":"sys-icon-sousuo" /**IconName 文字前面的图标**/ ,"value":"" //搜索框中的默认值 ,"active":false //input框激活--初始状态 ,"hidden":false //设置隐藏 ,"readonly":false //设置只读 ,"disabled":false //不可用状态 /* 支持事件 */ ,"method":function(){console.log('123')} ,"onClick":function(val){console.log(val)} ,"onBlur":function(val){console.log(val)} ,"onFocus":function(val){console.log(val)} ,"onChange":function(val){console.log(val)} } } test(){ this.setState({value:""}) } render () { return (