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, //关掉顶部 X 按钮执行的回调;
    btnsObj: {
        0: {
            btnText: "取消", 
            callBackFunc: leftCallback
        },
        1: {
            btnText: "确认",
            callBackFunc: rightCallback
        }
    },
    isShowCloseXFlag: true
}
this.$broadcast('show-strong-dlg', dlgMsgObj);

this.$broadcast('hide-strong-dlg');  //主动关闭 StrongDlg;