mirror of
https://github.com/tenrok/vue-context.git
synced 2026-06-24 07:40:33 +03:00
Clickaway (#12)
This commit is contained in:
@@ -1,5 +1,15 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
# 3.3.1 (Oct 23, 2018)
|
||||||
|
|
||||||
|
## Changed
|
||||||
|
- Context menu now closes via [clickaway](https://github.com/simplesmiler/vue-clickaway)
|
||||||
|
instead of blur event. Credit to [robjbrain](https://github.com/robjbrain)
|
||||||
|
for pointing it out.
|
||||||
|
|
||||||
|
## Updated
|
||||||
|
- Updated vue and other dev dependencies.
|
||||||
|
|
||||||
# 3.3.0 (Oct 15, 2018)
|
# 3.3.0 (Oct 15, 2018)
|
||||||
|
|
||||||
## Added
|
## Added
|
||||||
|
|||||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Generated
+836
-3579
File diff suppressed because it is too large
Load Diff
+6
-5
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "vue-context",
|
"name": "vue-context",
|
||||||
"version": "3.3.0",
|
"version": "3.3.1",
|
||||||
"description": "A simple vue context menu component.",
|
"description": "A simple vue context menu component.",
|
||||||
"main": "dist/vue-context.js",
|
"main": "dist/vue-context.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
@@ -26,12 +26,13 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://github.com/rawilk/vue-context#readme",
|
"homepage": "https://github.com/rawilk/vue-context#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"vue": "^2.5.16"
|
"vue": "^2.5.17",
|
||||||
|
"vue-clickaway": "^2.2.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"babel-preset-env": "^1.7.0",
|
"babel-preset-env": "^1.7.0",
|
||||||
"cross-env": "^5.1.6",
|
"cross-env": "^5.2.0",
|
||||||
"laravel-mix": "^2.1.11",
|
"laravel-mix": "^2.1.14",
|
||||||
"node-sass": "^4.9.0"
|
"node-sass": "^4.9.4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+5
-1
@@ -3,7 +3,7 @@
|
|||||||
v-show="show"
|
v-show="show"
|
||||||
:style="style"
|
:style="style"
|
||||||
tabindex="-1"
|
tabindex="-1"
|
||||||
@blur="close"
|
v-on-clickaway="close"
|
||||||
@click="onClick"
|
@click="onClick"
|
||||||
@contextmenu.capture.prevent
|
@contextmenu.capture.prevent
|
||||||
>
|
>
|
||||||
@@ -12,7 +12,11 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import { mixin as clickaway } from 'vue-clickaway';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
mixins: [clickaway],
|
||||||
|
|
||||||
props: {
|
props: {
|
||||||
/**
|
/**
|
||||||
* Close the menu on click.
|
* Close the menu on click.
|
||||||
|
|||||||
Reference in New Issue
Block a user