0.0.1 • Published 2 years ago

@roadhog/toast v0.0.1

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

Toast

指令式 API

基础用法

showToast('提示');
showToast({
	content: 'Hello World',
	afterClose: () => {
		console.log('after');
	}
});

图标

成功

showToast({
	icon: 'success',
	content: '保存成功'
});

失败

showToast({
	icon: 'fail',
	content: '名称已存在'
});