refactor: 模块节点可回车保存

Closes #1413
This commit is contained in:
shiziyuan9527 2021-02-18 17:08:22 +08:00
parent 9f74130dc8
commit e2efd5c55b
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@
<span class="custom-tree-node father" @click="handleNodeSelect(node)">
<span v-if="data.isEdit" @click.stop>
<el-input @blur.stop="save(node, data)" v-model="data.name" class="name-input" size="mini" ref="nameInput"/>
<el-input @blur.stop="save(node, data)" @keyup.enter.native.stop="$event.target.blur" v-model="data.name" class="name-input" size="mini" ref="nameInput"/>
</span>
<span v-if="!data.isEdit" class="node-icon">