aui / artDialog

经典的网页对话框组件

Home Page:http://aui.github.com/artDialog/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

如何在content中添加自定义vue组件?

KappaFish0914 opened this issue · comments

如题,我这里使用了vue组件,但是没有渲染
image
image

commented

你应该在弹窗弹出的事件回调里,执行类似,$mount( '#content-id' )

大佬,我再问一个问题。如下图所示,我希望给我这个手动挂载的子组件传递参数,应该怎么做?
image

commented
var author = Vue.extend({
  template: "<p><a :href='url'>{{author}} & {{name}}</a></p>",
  data : function() {
    return {
      author : 'vamous',
      url : 'http://blog.csdn.net/Dear_Mr/article/details/72614370'
    }
  },
  props : ['name']
});

new author({propsData: {name : 'dear_mr'}}).$mount('#author');

Vue.extend构造器