提交 54be7128 编写于 作者: M mindspore-ci-bot 提交者: Gitee

!217 UI support search box clearable

Merge pull request !217 from 潘慧/master_ph2
...@@ -62,10 +62,14 @@ ...@@ -62,10 +62,14 @@
<el-input v-model="searchByTypeInput" <el-input v-model="searchByTypeInput"
v-if="statisticType === 0" v-if="statisticType === 0"
:placeholder="$t('profiler.searchByType')" :placeholder="$t('profiler.searchByType')"
clearable
@clear="searchOpCoreList()"
@keyup.enter.native="searchOpCoreList()"></el-input> @keyup.enter.native="searchOpCoreList()"></el-input>
<el-input v-model="searchByNameInput" <el-input v-model="searchByNameInput"
v-if="statisticType === 1" v-if="statisticType === 1"
:placeholder="$t('profiler.searchByName')" :placeholder="$t('profiler.searchByName')"
clearable
@clear="searchOpCoreList()"
@keyup.enter.native="searchOpCoreList()"></el-input> @keyup.enter.native="searchOpCoreList()"></el-input>
</div> </div>
</div> </div>
...@@ -171,6 +175,8 @@ ...@@ -171,6 +175,8 @@
<div class="cl-search-box"> <div class="cl-search-box">
<el-input v-model="searchByCPUNameInput" <el-input v-model="searchByCPUNameInput"
:placeholder="$t('profiler.searchByName')" :placeholder="$t('profiler.searchByName')"
clearable
@clear="searchOpCpuList()"
@keyup.enter.native="searchOpCpuList()"></el-input> @keyup.enter.native="searchOpCpuList()"></el-input>
</div> </div>
<el-table v-show="opCpuList.opDetailCol && opCpuList.opDetailCol.length" <el-table v-show="opCpuList.opDetailCol && opCpuList.opDetailCol.length"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册