美文网首页
element this.$confirm确定框内容换行显示

element this.$confirm确定框内容换行显示

作者: 一名小IT | 来源:发表于2018-12-12 13:35 被阅读0次

    element 确定框

    // 把写的提示信心需要换行的地方分成数组 confirmText
    const confirmText = ['是否将基金产品从我的自选中移出?', '注意:此操作将从我的自选中的所有分组中移除该产品。']
    const newDatas = []
    const h = this.$createElement
    for (const i in confirmText) {
         newDatas.push(h('p', null, confirmText[i]))
    }
     this.$confirm(
         '提示',
         {
             title: '提示',
             message: h('div', null, newDatas),
             showCancelButton: true,
             confirmButtonText: '确定',
             cancelButtonText: '取消',
             type: 'warning'
         } ).then(() => { })


    换行效果图

    相关文章

      网友评论

          本文标题:element this.$confirm确定框内容换行显示

          本文链接:https://www.haomeiwen.com/subject/ikwuhqtx.html