@kizmann/nano-ui 0.8.13 → 0.8.15
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.
package/package.json
CHANGED
@@ -276,7 +276,9 @@ export default {
|
|
276
276
|
props.onMousemove = Any.framerate(this.onHover(tempCascade), 30);
|
277
277
|
}
|
278
278
|
|
279
|
-
|
279
|
+
if ( ! disabled ) {
|
280
|
+
props['on' + Str.ucfirst(this.mousedown)] = this.onSelect(tempCascade);
|
281
|
+
}
|
280
282
|
|
281
283
|
let children = Obj.get(item, this.childProp);
|
282
284
|
|
@@ -334,10 +334,10 @@ export default {
|
|
334
334
|
this.drag = new NDraghandler(this);
|
335
335
|
|
336
336
|
Dom.find(window).on('keydown',
|
337
|
-
this.watchModifierDown, this.
|
337
|
+
this.watchModifierDown, this._.uid);
|
338
338
|
|
339
339
|
Dom.find(window).on('keyup',
|
340
|
-
this.watchModifierUp, this.
|
340
|
+
this.watchModifierUp, this._.uid);
|
341
341
|
},
|
342
342
|
|
343
343
|
mounted()
|
@@ -518,7 +518,17 @@ export default {
|
|
518
518
|
|
519
519
|
Arr.recursive(this.items, this.childProp, (node, cascade) => {
|
520
520
|
|
521
|
-
|
521
|
+
let val = node;
|
522
|
+
|
523
|
+
if ( !Any.isEmpty(key) ) {
|
524
|
+
val = Obj.get(val, key);
|
525
|
+
}
|
526
|
+
|
527
|
+
if ( ! Any.isFunction(value) ) {
|
528
|
+
value = (val) => val === value;
|
529
|
+
}
|
530
|
+
|
531
|
+
if ( ! value(val) ) {
|
522
532
|
return;
|
523
533
|
}
|
524
534
|
|