Dialog plugin for Vue.js.
The plugin provides services for pop dialog.
Available through Bower.
bower install vue-dialog
##Direct include
If you are using Vue globally, just include vue-dialog.js and it will automatically install the Vue.dialog method.
##Usage
The same as vue.js.
###Add button
//vue
Vue.dialog({
data:{
btn:[{
text:'confirm',
bind:'confirm'
},
{
text:'cancel',
bind: 'cancel' // In methods
}
]
}
})
###Close Pop
cancel: function(){
this.close();
}
###Template
You can use any method with vue.js in the content field
data:{
content:'<p>TEMPLATE</p>'
}
//or amd
data:{
content: require('xxx.html')
}
###Dialog Name
data:{
title:'xxx name'
}