0.1.12 • Published 5 years ago

@mu-ui/mu-toast v0.1.12

Weekly downloads
1
License
MIT
Repository
-
Last release
5 years ago

mu-toast

toast plugin for vue 2.x

Installation

yarn add @mu-ui/mu-toast

Usage

import Toast from '@mu-ui/mu-toast'

Vue.use(Toast)

// two ways to use
this.$toast('hello')
Vue.toast('world')

// more options
this.$toast({
  message: 'toast message',
  position: 'bottom', // top|middle|bottom(default)
  duration: 3000, // 3000(default)
  color: '#fff', // #fff(default)
  bgColor: 'rgba(0, 0, 0, 0.7)', // rgba(0, 0, 0, 0.7)(default)
  customClass: 'custom-class' // [optional]
})

Options

message

Type: String|Required

toast message

position

Type: String Default: bottom

the position of toast instance, one of top|middle|bottom

duration

Type: Number Default: 3000

stay time

color

Type: String Default: #fff

text color

bgColor

Type: String Default: rgba(0, 0, 0, 0.7)

backgroundColor

customClass

Type: String Default: ''

custom className to overwrite default style. Please pay attention to the CSS class scope

0.1.12

5 years ago

0.1.11

5 years ago

0.1.10

5 years ago

0.1.9

5 years ago

0.1.8

5 years ago

0.1.7

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

6 years ago