xk-toast

1.0.2 • Public • Published

xkToast 组件.

使用方法

VM.xkToast(content, type)

import Vue from 'vue'
import xkToast from 'xk-toast'

Vue.use(xkToast)

Vue.component('some-component', {
  // ...
  methods: {
    doSomething: function () {
      this.xkToast('成功!', 'success')
    }
  }
}) 

传入参数

  • content: 提示内容.
  • type: 提示类型, success || caution || error || info.
  • position: 弹窗位置, "top" || "center" || "bottom".

Readme

Keywords

none

Package Sidebar

Install

npm i xk-toast

Weekly Downloads

4

Version

1.0.2

License

ISC

Unpacked Size

3.71 kB

Total Files

4

Last publish

Collaborators

  • oneion