Vue 消息弹窗

8 篇文章 0 订阅
8 篇文章 0 订阅

iView弹窗大整理

前言

网上大部分文章毫无用处,最后我还得自己到官网学习整理

提示

在这里插入图片描述
在这里插入图片描述

this.$Message.info('This is a info tip');
this.$Message.success('This is a success tip');
this.$Message.warning('This is a warning tip');
this.$Message.error('This is an error tip');

在这里插入图片描述

const msg = this.$Message.loading({
                    content: 'Loading...',
                    duration: 0
                });
                setTimeout(msg, 3000);

提醒

在这里插入图片描述

                this.$Notice.info({
                    title: 'Notification title',
                    desc: 'Here is the notification description. Here is the notification description. '
                });
                this.$Notice.success({
                    title: 'Notification title',
                    desc: 'Here is the notification description. Here is the notification description. '
                });
                this.$Notice.warning({
                    title: 'Notification title',
                    desc: 'Here is the notification description. Here is the notification description. '
                });
                this.$Notice.error({
                    title: 'Notification title',
                    desc: 'Here is the notification description. Here is the notification description. '
                });

对话框

在这里插入图片描述

    <Modal
        v-model="modal6"
        title="Title"
        :loading="loading"
        @on-ok="asyncOK">
        <p>After you click ok, the dialog box will close in 2 seconds.</p>
    </Modal>
              asyncOK () {
                setTimeout(() => {
                    this.modal6 = false;
                }, 2000);
            }
     
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值