<v-task-dialog />
export default Vue.extend({
methods: {
onTaskAddClick () {
this.$dialog.show(VTaskDialog)
}
}
})
</script>
let dialog = {}
dialog['show'] = (command) => {
return command;
};
Vue.prototype.$dialog = dialog// регистрируете
onTaskAddClick () {
console.log(this.$dialog.show('i am show command'))
}