@kizmann/nano-ui 0.7.14 → 0.7.17
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/dist/nano-ui.js +2 -2
- package/dist/nano-ui.js.map +1 -1
- package/package.json +1 -1
- package/src/draggable/src/draglist/draglist.js +7 -0
- package/src/draggable/src/draglist-item/draglist-item.js +3 -5
- package/src/map/src/map/map.js +15 -1
- package/src/table/src/table-cell/table-cell.js +10 -10
- package/src/virtualscroller/src/virtualscroller/virtualscroller.beta.js +2 -2
package/package.json
CHANGED
@@ -75,18 +75,16 @@ export default {
|
|
75
75
|
if ( this.NDraggable.draggable ) {
|
76
76
|
this.timer = setTimeout(() => {
|
77
77
|
this.NDraggable.drag.bindNode(this);
|
78
|
-
},
|
78
|
+
}, 10);
|
79
79
|
}
|
80
80
|
|
81
81
|
this.init = true;
|
82
|
-
},
|
82
|
+
}, 5);
|
83
83
|
},
|
84
84
|
|
85
85
|
beforeUnmount()
|
86
86
|
{
|
87
|
-
|
88
|
-
clearTimeout(this.timer);
|
89
|
-
}
|
87
|
+
clearTimeout(this.timer);
|
90
88
|
|
91
89
|
this.NDraggable.drag.unbindNode(this);
|
92
90
|
},
|
package/src/map/src/map/map.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { Arr, Map } from "@kizmann/pico-js";
|
1
|
+
import { Arr, Map, Any } from "@kizmann/pico-js";
|
2
2
|
|
3
3
|
export default {
|
4
4
|
|
@@ -44,6 +44,20 @@ export default {
|
|
44
44
|
return { init: false, callbacks: [], tempMap: null };
|
45
45
|
},
|
46
46
|
|
47
|
+
watch: {
|
48
|
+
|
49
|
+
lat()
|
50
|
+
{
|
51
|
+
Any.delay(() => this.tempMap.focusMarkers(), 100);
|
52
|
+
},
|
53
|
+
|
54
|
+
lng()
|
55
|
+
{
|
56
|
+
Any.delay(() => this.tempMap.focusMarkers(), 100);
|
57
|
+
}
|
58
|
+
|
59
|
+
},
|
60
|
+
|
47
61
|
mounted()
|
48
62
|
{
|
49
63
|
this.tempMap = new Map(this.$el, {
|
@@ -54,18 +54,18 @@ export default {
|
|
54
54
|
|
55
55
|
data()
|
56
56
|
{
|
57
|
-
return { init:
|
57
|
+
return { init: true };
|
58
58
|
},
|
59
59
|
|
60
|
-
mounted()
|
61
|
-
{
|
62
|
-
|
63
|
-
},
|
64
|
-
|
65
|
-
beforeUnmount()
|
66
|
-
{
|
67
|
-
|
68
|
-
},
|
60
|
+
// mounted()
|
61
|
+
// {
|
62
|
+
// this.timer = setTimeout(() => this.init = true, 5);
|
63
|
+
// },
|
64
|
+
//
|
65
|
+
// beforeUnmount()
|
66
|
+
// {
|
67
|
+
// clearTimeout(this.timer);
|
68
|
+
// },
|
69
69
|
|
70
70
|
methods: {
|
71
71
|
|
@@ -99,7 +99,7 @@ export default {
|
|
99
99
|
framerate: {
|
100
100
|
default()
|
101
101
|
{
|
102
|
-
return
|
102
|
+
return 60;
|
103
103
|
},
|
104
104
|
type: [Number]
|
105
105
|
},
|
@@ -155,7 +155,7 @@ export default {
|
|
155
155
|
bindAdaptScroll()
|
156
156
|
{
|
157
157
|
this.refreshScroll = setInterval(this.onScrollupdate,
|
158
|
-
|
158
|
+
1000 / this.framerate);
|
159
159
|
},
|
160
160
|
|
161
161
|
unbindAdaptScroll()
|