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

MessageBox: add 'message' support for VNode #4550

Merged
merged 1 commit into from
May 2, 2017

Conversation

Leopoldthecoder
Copy link
Contributor

Please makes sure these boxes are checked before submitting your PR, thank you!

  • Make sure you follow Element's contributing guide (中文 | English).
  • Make sure you are merging your commits to dev branch.
  • Add some descriptions and refer relative issues for you PR.

用了 Notification 的方法

@baiyaaaaa baiyaaaaa merged commit fb4a786 into ElemeFE:dev May 2, 2017
@Leopoldthecoder Leopoldthecoder deleted the msgbox-vnode branch May 5, 2017 00:49
@leo4stone
Copy link

这种支持方式没解决根本问题啊
用messagebox就是为了全局使用,有时候缺少vue对象,根本无法使用vue.createElement去创建vnode,而导致无法实现支持html的string内容

@Leopoldthecoder
Copy link
Contributor Author

@wfesorg

import Vue from 'vue'
const Ctor = Vue.extend()
const createElement = new Ctor().$createElement

Now you have createElement

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

Successfully merging this pull request may close these issues.

None yet

4 participants