vue中提示框 this.$confirm如何让提示框换行

    let  confirmText = ['案件号为'+response.businessInformation.claimNo,  '点击确认跳转到查勘继续操作该案件','点击取消跳转到新建赔案查询页面'] 
        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),
          // this.$confirm("案件号为"+response.businessInformation.claimNo +"\n点击确认跳转到查勘继续操作该案件,点击取消跳转到新建赔案查询页面", "赔案创建成功", {
            confirmButtonText: "确定",
            cancelButtonText: "取消",
            type: "success",
            showClose: false,
            center: true
          })

猜你喜欢

转载自blog.csdn.net/shileimohan/article/details/128224321
今日推荐