Vue.component('train-add', {
template: `
{{item.contact}}
{{item.mobile}}
`,
data() {
return {}
},
props: {
list: {
type: Array,
default: [],
},
},
methods: {
onAdd(id) {
this.$dialog.confirm({
title: '提示',
message: '确定添加?',
}).then(() => {
this.$emit('add', id);
})
},
},
});