<Search
ref= "searchBar"
placeholder="请输入开关名称或开关描述"
enterButton="搜索"
size="large"
onSearch={this.inputSearch}
allowClear
/>
//清空操作
reset = () => {
this.refs.searchBar.input.state.value='';
}
ant的Search组件,搜索框内容清空
最新推荐文章于 2024-08-08 23:04:40 发布