Socket
Socket
Sign inDemoInstall

jx-vue2-toast

Package Overview
Dependencies
1
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

jx-vue2-toast


Version published
Weekly downloads
22
increased by2100%
Maintainers
1
Created
Weekly downloads
 

Readme

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

FAQs

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc