StrongDialog
引入:
import strongDialog from 'strongDialog';
使用:
function leftCallback(){
console.log('leftCallback To Here');
}
function rightCallback(){
console.log('rightCallback To Here');
}
var dlgMsgObj = {
titleText: "&温馨提示&",
bodyText: text+'<b>JeffJade|www.jeffjade.com</b>',
closeXCallBack: null,
btnsObj: {
0: {
btnText: "取消",
callBackFunc: leftCallback
},
1: {
btnText: "确认",
callBackFunc: rightCallback
}
},
isShowCloseXFlag: true
}
this.$broadcast('show-strong-dlg', dlgMsgObj);
this.$broadcast('hide-strong-dlg');