未验证 提交 6d43c21d 编写于 作者: B break60 提交者: GitHub

[bug fix]Click the cancel button to prevent the input box from losing focus #3116 (#3115)

* [bugfix]Replace favicon icon with png

* Cancel the initial value of the node cache

* [bug fix]Click the cancel button to prevent the input box from losing focus
Co-authored-by: Ndailidong <dailidong66@gmail.com>
上级 5868af89
......@@ -260,7 +260,7 @@
</div>
<div class="bottom-box">
<div class="submit" style="background: #fff;">
<x-button type="text" @click="close()"> {{$t('Cancel')}} </x-button>
<x-button type="text" id="cancelBtn"> {{$t('Cancel')}} </x-button>
<x-button type="primary" shape="circle" :loading="spinnerLoading" @click="ok()" :disabled="isDetails">{{spinnerLoading ? 'Loading...' : $t('Confirm add')}} </x-button>
</div>
</div>
......@@ -580,6 +580,7 @@
}
this.isContentBox = false
// flag Whether to delete a node this.$destroy()
this.$emit('close', {
item: {
type: this.cacheBackfillItem.type,
......@@ -675,7 +676,11 @@
this.isContentBox = true
},
mounted () {
let self = this
$("#cancelBtn").mousedown(function(event){
event.preventDefault();
self.close()
});
},
updated () {
},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册