1.0.3 • Published 5 years ago

lcc_toast v1.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

ltoast

A Vue.js project

插件安装

npm i lcc_toast

引入插件

import Vue from 'vue';
import ltoast from 'lcc_toast';
import 'lcc_toast/lib/index.css';

Vue.use(ltoast);
// 全局配置
Vue.use(ltoast, {
type: 'info',
duration: 2000
});

用法示例

   this.$toast('Hello World');
   this.$toast('Hello World', 2000);
   this.$toast('Hello World', {type: 'success',duration: 3000});
   this.$toast.success('Hello World');

API

参数说明类型可选值默认值
type弹窗类型String'info', 'success', 'error''info'
duration持续的时间Number2000

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

# build for production and view the bundle analyzer report
npm run build --report
1.0.3

5 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago