zoukankan      html  css  js  c++  java
  • VUE自定义提示语句confim

    let returnMsgList = [
                                        "1、是否确认",
                                        "2、页面中填写,请确认填写是否正确!"
                                    ];
                                    let threemsg = '';
                                    returnMsgList.push(threemsg);
                                    let newDatas = [];
                                    let h = this.$createElement;
                                    for (const i in returnMsgList) {
                                        if (i != 2) {
                                            newDatas.push(h('p', null, returnMsgList[i]))
                                        }else {
                                            newDatas.push(h('p', { style: 'color: red'}, returnMsgList[i]))
                                        }
                                    }
                                    this.$confirm( h('div', null, newDatas), '请确认信息', {
                                        confirmButtonText: '是',
                                        cancelButtonText: '否'
                                        })
                                        .then(() => {
                                                toDO();
                                        })
                                        .catch(action => {
                                          
                                            document.getElementById("totalOut").scrollIntoView();
                                        });
  • 相关阅读:
    在初次安vs2008时设置的为C#现在怎么将其改为其他类型的界面
    CREATEMUTEX
    ISO 18000-6c 访问标签--应用程序访问操作ISO 18000-6C标签的方法
    虚函数的特性
    关于命名空间
    ubuntu 卸载/安装 redis
    【分享】推荐一些不错的计算机书籍
    [转]十款提高开发效率的PHP编码工具
    当当网
    Yii框架第一步-- 安装
  • 原文地址:https://www.cnblogs.com/DIVEY/p/14439551.html
Copyright © 2011-2022 走看看