npm.io
1.0.2 • Published 3 years ago

npm-qh-toast

Licence
ISC
Version
1.0.2
Deps
0
Size
3 kB
Vulns
0
Weekly
0

npm-qh-toast

toast 提示

如何引用

第一种方法 import Toast from 'npm-qh-toast'; import 'npm-qh-toast/toast/index.css'

new Toast({ msg: '成功吗?', duration: 6000, });

第二种方法 import Toast from '@/utils/toast'; import 'npm-qh-toast/toast/index.css'

// 全局toast app.config.globalProperties.$toast = (data: any) => { return new Toast({ msg: data.msg, duration: data.duration, }); };