美文网首页
vue-element this.$confirm中提示的文字

vue-element this.$confirm中提示的文字

作者: IssunRadiance | 来源:发表于2020-11-10 17:19 被阅读0次

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: 'success'

            }

          ).then(() => {


          }).catch(() => {


          })

相关文章

网友评论

      本文标题:vue-element this.$confirm中提示的文字

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