vue模态对话框
语音模态对话 (vue-modal-dialogs)
Dialogs are a typical and essential user interaction in interactive applications. But implementing dialogs are not an easy thing in front-end web development.
对话框是交互式应用程序中典型且必不可少的用户交互。 但是,在前端Web开发中实现对话框并非易事。
vue-modal-dialogs is a super light-weighted library aimed to help developers to easily use dialogs by the advantage of Vue.js, Promise, and async function.
vue-modal-dialogs是一个超轻量级的库,旨在利用Vue.js,Promise和异步功能的优势,帮助开发人员轻松使用对话框。
特征 (Features)
✅ Light weighted (~1kb min+gzip)
✅轻量级(〜1kb min + gzip)
✅ Promise based
✅基于承诺
✅ Functional programming
✅功能编程
✅ Full customizable
✅完全可定制
✅ Place everything you want into that dialog
✅将您想要的所有内容放入该对话框
Features below is not provided. You can achieve them by yourself:
未提供以下功能。 您可以自己实现它们:
❌ Pre-defined dialog style
❌预定义对话框样式
❌ Shortcut function in Vue's prototype
ue Vue原型中的快捷功能
安装 (Installation)
Install via npm or yarn (recommended)
# Use npm
npm install vue-modal-dialogs --save
# Use yarn
yarn add vue-modal-dialogs
作者 (Author)
hjkcai
翻译自: https://vuejsexamples.com/a-promise-based-modal-dialog-helper-for-vue-js/
vue模态对话框