Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

disabled属性与选择事件冲突 #52

Closed
DerekMar opened this issue Dec 15, 2018 · 4 comments
Closed

disabled属性与选择事件冲突 #52

DerekMar opened this issue Dec 15, 2018 · 4 comments

Comments

@DerekMar
Copy link

当我需要,点击contextmenu的指定项后,需要disable该项时,出现如下效果:
image

期望结果

实际结果

我希望,当指定项无效时,应该去掉selected的效果

复现步骤

绑定 :disabled="!isDrawing",点击该项后,将 isDrawing = !isDrawing,会出现上述结果

环境说明

  • 组件版本:
  • Vue 版本:
  • 操作系统及版本:
  • 浏览器及版本:
@nanachiOwQ
Copy link

不改代码只能加个css了..
css .v-contextmenu-item--disabled.v-contextmenu-item--hover{ color: #ccc; cursor: not-allowed; background: transparent !important; }

@DerekMar
Copy link
Author

DerekMar commented Mar 6, 2019

不改代码只能加个css了..
css .v-contextmenu-item--disabled.v-contextmenu-item--hover{ color: #ccc; cursor: not-allowed; background: transparent !important; }

我直接修改了源码,其实就是语句执行顺序换一下而已

@nanachiOwQ
Copy link

@DerekMar 是滴,disabled直接return了, 但是不想把代码拷到项目里- -

@CyberNika CyberNika mentioned this issue Mar 10, 2019
16 tasks
@CyberNika
Copy link
Owner

@DerekMar @Dracarys26 可以考虑提个 PR 😋

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants