1.0.0 • Published 1 year ago
jx-toast v1.0.0
介绍
基于vue3.0的toast弹窗组件
组件使用
安装
npm i jx-toast --save
初始化
import Toast from 'jx-toast';
Vue.use(Toast);
使用
<script>
export default {
name: 'App',
mounted() {
// 弹窗提示 ,2秒后自动关闭
this.$toast({title: '', duration: 2000}) // duration默认2000
// 加载中,默认title:加载中
this.$showLoading({title: '加载中'})
// 取消加载
this.$hideLoading()
},
}
</script>