内容简介:Simple Modal window Vue.js component that takes care of overlay, centering, animation, outside click/Can be used for alerts, modals, dialogs etc.
Modal Window
Simple Modal window Vue.js component that takes care of overlay, centering, animation, outside click/ Escape key/ X-mark closing and allows you to concentrate on its content only
Can be used for alerts, modals, dialogs etc.
How to use
You can install it via npm
npm install @vuesence/modal-window --save
or just copy/paste ModalWindow.vue component code into your Vue.js project
Usage:
<template> <div id="app"> <p>Click the button to open modal window</p> <button @click="showModal = true">Open Modal</button> <modal-window :visible="showModal" :close-on-escape="true" :close-on-outside-click="true" :show-x-mark="true" @close="showModal = false" > <h2>Modal window</h2> <p>Here be content</p> </modal-window> </div> </template>
import ModalWindow from "@vuesence/modal-window";
...
data() {
return {
showModal: false
};
}
All the props ( close-on-escape , close-on-outside-click , show-x-mark ) are optional. Above listed their default values
showModal property is used to open\close the window
There can be several instances of the ModalWindow.vue
Styling and animation can be customized - check out ModalWindow.vue 's <style> section for CSS class names
Demo
https://altrusl.github.io/vuesence-modal-window/
Playground
Try it on codesandbox.io
Check out my other Vue.js components
- Vuesence book - minimalistic Vue.js based documentation component
- Sliding header - Vue.js component representing sliding header (or two different headers)
- Cloud Sync Button - a button with cloud synchronization animation
You like Vuesence Modal Window? Star it and retweet it!
Troubleshooting
Any bugs, issues, feature and pull requests are welcome
Please use GitHub's issue reporter or send me an email
Contribution
Contribution is always welcome and recommended. Here is how:
- Fork the repository
- Clone to your machine
- Make your changes
- Create a pull request
License
@vuesence/modal-windowpackage is freely distributable under the terms of the MIT license .
以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网
本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
人机交互:以用户为中心的设计和评估
董建明、傅利民、[美]沙尔文迪 / 清华大学出版社 / 2003-9-1 / 28.00
本书综述部分介绍了与“用户为中心的设计和评估”方法相关的背景知识及发展概况。其后,分3篇分别介绍了解用户、用户界在设计和可用性评估的内容及一些相关的研究专题。最后,第11章讨论了在组织中实施以用户为中心的设计的专题。本书主要面向的读者包括:软件或网站的设计人员。同时本书也可成为“现代人因工程学”及“以用户为中心的设计”的教材,还可作为软件或网站公司经理的提高用户满意度或提升公司形象的手册。一起来看看 《人机交互:以用户为中心的设计和评估》 这本书的介绍吧!