使用方法
安装
npm install vue-prompt
引入
import prompt from 'vue-prompt'Vue.use(prompt)
使用
hint (气泡弹窗)
this.$hint("success");//默认消失时间为2秒this.$hint({message:"success",time:1000});
confirm
<prompt-confirm:visible.sync="confirm.visible":title="confirm.title":content="confirm.content"><div class="prompt_confirm_footer" slot="confirm_footer"><button @click="submitConfirm">确认</button><button @click="confirm.visible=false">取消</button></div></prompt-confirm>