MintUI的MessageBox的用法

第一步引入 

import { MessageBox } from 'mint-ui';
 
第二步如果点击确定按钮执行的函数要加回调函数
adoptHandle() {
        MessageBox({
        title: '确定采纳悬赏该回答?',
        message: '悬赏金额5元+8积分',
        showCancelButton: true,
        })
        .then(action => {
          if (action === 'confirm') {
            this.downadopt = !this.downadopt;
          }
        });
      },

  

 
 

猜你喜欢

转载自www.cnblogs.com/Narkea/p/10935960.html