zoukankan      html  css  js  c++  java
  • vue 移动端加载、提示框

    版权声明:本文为博主原创文章,未经博主允许不得转载。https://www.cnblogs.com/suisuisui/p/9771665.html

    用的是vue2.0+/vuex

    首先 在项目中npm install vux 下载vux 

    //全局注册 在入口文件全局引入main.js
    
    import Vue from 'vue'
    import { Loading,Toast,} from 'vux' Vue.component('loading', Loading)
    Vue.component('toast', Toast)
     
     

    加载

    this.$vux.loading.show({

         text: "加载中"

        });

    this.$vux.loading.hide();

    错误提示

    this.$vux.toast.show({

    type: "warn",

    text: result.AllMessages,

    '6em'

    });

    文本提示

    that.$vux.toast.show({

    text: "文本",

    type: "text"

    });

    需要其他插件直接参考文档(vux官网地址:https://doc.vux.li/zh-CN/components/actionsheet.html)

  • 相关阅读:
    高精度 模板
    《图论》邻接表
    模板整理
    H
    C
    同余定理的应用(处理大数
    H
    1153: 简易版最长序列
    1152: 二分搜索
    1151: 大整数加法(正数)
  • 原文地址:https://www.cnblogs.com/suisuisui/p/9771665.html
Copyright © 2011-2022 走看看