You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

jx-vue2-toast

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jx-vue2-toast

A Vue.js project,vue-toast,vuejs,vue

1.2.1
latest
npmnpm
Version published
Maintainers
1
Created
Source

介绍

基于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

toast

FAQs

Package last updated on 18 Nov 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts