FIX Contextmenu 多级菜单disabled后继续执行
This commit is contained in:
parent
c8ac9d5f93
commit
711e8cb570
|
@ -1,10 +1,10 @@
|
||||||
<!--
|
<!--
|
||||||
* @Descripttion: scContextmenuItem组件
|
* @Descripttion: scContextmenuItem组件
|
||||||
* @version: 1.2
|
* @version: 1.3
|
||||||
* @Author: sakuya
|
* @Author: sakuya
|
||||||
* @Date: 2021年7月23日16:29:36
|
* @Date: 2021年7月23日16:29:36
|
||||||
* @LastEditors: sakuya
|
* @LastEditors: sakuya
|
||||||
* @LastEditTime: 2022年2月8日15:51:07
|
* @LastEditTime: 2022年11月23日10:09:54
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
@ -50,6 +50,9 @@
|
||||||
if(!menu){
|
if(!menu){
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
if(this.disabled){
|
||||||
|
return false
|
||||||
|
}
|
||||||
menu.style.display = 'inline-block'
|
menu.style.display = 'inline-block'
|
||||||
var rect = menu.getBoundingClientRect()
|
var rect = menu.getBoundingClientRect()
|
||||||
var menuX = rect.left
|
var menuX = rect.left
|
||||||
|
|
Loading…
Reference in New Issue