目录结构
popup/index.vue
{ {title}}
{ {content}}
export default {
name: 'index',
data () {
return {
title: '提示',
content: null,
cancelText: '取消',
confirmText: '确认',
cancel: function () {},
confirm: function () {},
isSync: false,
isShow: false
}
},
methods: {
onCancel () {
if (!this.isSync) this.isShow = false
this.cancel()
},
onConfirm () {