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

vue-z-toast

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-z-toast

a toast plugin for vue

1.2.2
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

vue-z-toast

vue的toast插件

Usage

  • install package yarn add vue-z-toast or npm install vue-z-toast

  • register

    import VueZToast from 'vue-z-toast'
    import 'vue-z-toast/dist/index.min.css'
    ...
    Vue.use(VueZToast)
    
  • use

    ...
    this.$toast('toast', 2500, { color: 'red', backgroundColor: 'rgba(125, 43, 86, .4)' })
    ...
    
  • options

    • message toast 内容
    • duration toast 持续时间,默认 2000ms
    • styleObj toast 样式,默认 { color: 'red', backgroundColor: 'rgba(125, 43, 86, .4)' }, 关于 styleObj 请参考vue 文档(与内联 style 绑定(Binding Inline Styles))

Keywords

toast

FAQs

Package last updated on 03 Jun 2019

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