mirror of https://gitee.com/xiaonuobase/snowy
【修复】多标签鼠标右键关闭按钮出现"使用了错误的类型或对象"的问题
parent
833de14401
commit
802603f7e8
|
@ -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()
|
||||
},
|
||||
// 布局
|
||||
|
|
|
@ -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 />
|
||||
|
|
Loading…
Reference in New Issue