<Search
ref="searchBar"
placeholder="房间发送消息"
enterButton="发送"
size="large"
allowClear="true"
onSearch={value => this.sentRoomMsg(value)}
/>
this.refs.searchBar.state.value = '';
<Search
ref="searchBar"
placeholder="房间发送消息"
enterButton="发送"
size="large"
allowClear="true"
onSearch={value => this.sentRoomMsg(value)}
/>
this.refs.searchBar.state.value = '';