【修复】多标签鼠标右键关闭按钮出现"使用了错误的类型或对象"的问题

pull/143/head
diant 2023-07-26 10:10:00 +08:00 committed by 小诺
parent 833de14401
commit 802603f7e8
2 changed files with 12 additions and 5 deletions

View File

@ -68,11 +68,17 @@
},
//
contextMenuHandler(e) {
this.x = e.clientX
this.y = e.clientY
this.layout()
this.$emit('update:show', true)
this.$emit('get-context-menu', e)
//ie
let obj = e.srcElement ? e.srcElement : e.target
let cs = obj.attributes['class']
cs = cs ? cs.nodeValue : cs
if(cs&&cs!=='ant-tabs-tab-remove'){
this.x = e.clientX
this.y = e.clientY
this.layout()
this.$emit('update:show', true)
this.$emit('get-context-menu', e)
}
e.preventDefault()
},
//

View File

@ -77,6 +77,7 @@
class="record-img"
v-else-if="record.suffix === 'ppt' || record.suffix === 'pptx'"
/>
<img src="/src/assets/images/fileImg/pdf.png" class="record-img" v-else-if="record.suffix === 'pdf'" />
<img src="/src/assets/images/fileImg/txt.png" class="record-img" v-else-if="record.suffix === 'txt'" />
<img src="/src/assets/images/fileImg/html.png" class="record-img" v-else-if="record.suffix === 'html'" />
<img src="/src/assets/images/fileImg/file.png" class="record-img" v-else />