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

Contextmenu mounted 钩子 this.$contextmenuId这个时候是不是undefined的哈 #56

Closed
yunyi5310440 opened this issue Mar 11, 2019 · 2 comments

Comments

@yunyi5310440
Copy link

@snokier 看到 Contextmenu mounted 的代码的时候 有一点不明白 这里 this.$contextmenuId 应该都是undefined的吧 我看contextmenuId 都是在 指令 inserted的时候才赋值的 。

 mounted () {
      const elm = document.querySelector(this.containerSelector)

      elm.appendChild(this.$el)

      if (window.$$VContextmenu) {
        window.$$VContextmenu[this.$contextmenuId] = this
      } else {
        window.$$VContextmenu = { [this.$contextmenuId]: this }
      }
    },
@CyberNika
Copy link
Owner

CyberNika commented Mar 11, 2019

@CyberNika CyberNika mentioned this issue Mar 11, 2019
16 tasks
@yunyi5310440
Copy link
Author

^_^ 希望作者可以尽快修复 我好可以基于您这个组件写一个自己的小东西

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

2 participants