npm.io
1.2.1 • Published 3 years ago

jx-vue2-toast

Licence
—
Version
1.2.1
Deps
1
Size
20 kB
Vulns
1
Weekly
0

介绍

基于vue2.0的toast弹窗组件

组件使用

安装

npm i jx-vue2-toast --save

初始化

import Toast from 'jx-vue2-toast';
Vue.use(Toast);

使用

 <script>

 export default {
   name: 'App', 
   mounted() {
      //  弹窗提示 ,2秒后自动关闭
      this.$toast({title: '', duration: 2000})  // duration默认2000
      // 加载中
      this.$showLoading({title: ''})
      // 取消加载 
      this.$hideLoading()

   },

 }
 </script>

 

Keywords