js-kompo-utils 1.0.12 → 1.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -135,6 +135,9 @@ export default {
|
|
|
135
135
|
},
|
|
136
136
|
openOnClick(){
|
|
137
137
|
return this.$_config('openOnClick')
|
|
138
|
+
},
|
|
139
|
+
closeDelayMs(){
|
|
140
|
+
return this.$_config('closeDelay') ?? 200
|
|
138
141
|
}
|
|
139
142
|
},
|
|
140
143
|
mounted() {
|
|
@@ -221,7 +224,6 @@ export default {
|
|
|
221
224
|
this.clearCloseTimeout()
|
|
222
225
|
},
|
|
223
226
|
onRootMouseLeave() {
|
|
224
|
-
this.isHoveringRoot = false
|
|
225
227
|
this.scheduleClose()
|
|
226
228
|
},
|
|
227
229
|
onMenuMouseEnter() {
|
|
@@ -229,7 +231,6 @@ export default {
|
|
|
229
231
|
this.clearCloseTimeout()
|
|
230
232
|
},
|
|
231
233
|
onMenuMouseLeave() {
|
|
232
|
-
this.isHoveringMenu = false
|
|
233
234
|
this.scheduleClose()
|
|
234
235
|
},
|
|
235
236
|
clearCloseTimeout() {
|
|
@@ -241,12 +242,12 @@ export default {
|
|
|
241
242
|
scheduleClose() {
|
|
242
243
|
this.clearCloseTimeout()
|
|
243
244
|
this._closeTimeout = setTimeout(() => {
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
245
|
+
this.isHoveringRoot = false
|
|
246
|
+
this.isHoveringMenu = false
|
|
247
|
+
if (this.openOnClick) {
|
|
248
|
+
this.open = false
|
|
248
249
|
}
|
|
249
|
-
},
|
|
250
|
+
}, this.closeDelayMs)
|
|
250
251
|
},
|
|
251
252
|
checkClickable(){
|
|
252
253
|
if(this.openOnClick){
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "js-kompo-utils",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.14",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "app.js",
|
|
6
6
|
"scripts": {
|
|
@@ -33,6 +33,6 @@
|
|
|
33
33
|
"postcss": "^8.4.14",
|
|
34
34
|
"sass": "^1.83.0",
|
|
35
35
|
"tailwindcss": "^3.1.6",
|
|
36
|
-
"vue-kompo": "^
|
|
36
|
+
"vue-kompo": "^4.0.3"
|
|
37
37
|
}
|
|
38
38
|
}
|