Toast 轻提示框

轻提示框,支持自定义位置、显示时间、css


例子

基本用法

this.$toast('提示信息');
this.$toast(options);

options 对象字段说明:

参数说明类型可选值默认值
message文本内容String
positionToast 的位置String'top'
'bottom'
'middle'
'middle'
duration持续时间(毫秒)Number2500