jenesius-vue-modal
Advanced tools
Comparing version 1.0.3 to 1.0.4
{ | ||
"name": "jenesius-vue-modal", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"private": false, | ||
"description": "Simple modal", | ||
"description": "Simple modal plugin for Vue3", | ||
@@ -12,3 +12,3 @@ "homepage": "https://github.com/Jenesius/vue-modal#readme", | ||
"main": "./src/plugin/index.js", | ||
"keywords": ["modal", "modals", "vue3", "vue", "vue-modal", "vue modal"], | ||
"keywords": ["modal", "vue3", "front-end","modals", "vue3", "vue", "vue-modal", "vue modal", "dialogs", "popup", "alert"], | ||
"files": [ | ||
@@ -15,0 +15,0 @@ "src/plugin/*" |
@@ -5,2 +5,8 @@ # Jenesius Vue Modal | ||
### Installation | ||
```markdown | ||
npm i jenesius-vue-modal | ||
``` | ||
---- | ||
@@ -62,4 +68,4 @@ | ||
export default { | ||
props: { | ||
title: String | ||
props: { | ||
title: String | ||
} | ||
@@ -69,3 +75,3 @@ } | ||
``` | ||
For show this component | ||
To show this component | ||
```js | ||
@@ -72,0 +78,0 @@ import {useModal} from "jenesius-vue-modal" |
@@ -101,2 +101,14 @@ import {ref, watch, shallowRef} from "vue"; | ||
state.initialized = true; | ||
/** | ||
* If user press Escape then close last opened modal | ||
* */ | ||
document.addEventListener("keyup", e => { | ||
if (e.key === "Escape") popModal(); | ||
}) | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7814
82
84