@kizmann/nano-ui 0.7.6 → 0.7.9
Sign up to get free protection for your applications and to get access to all the features.
- package/demos/overview.html +1 -1
- package/dist/nano-ui.js +2 -2
- package/dist/nano-ui.js.map +1 -1
- package/package.json +1 -1
- package/src/draggable/src/draggrid/draggrid.js +8 -0
- package/src/draggable/src/draggrid-item/draggrid-item.js +8 -6
- package/src/draggable/src/draglist/draglist.js +8 -0
- package/src/draggable/src/draglist-item/draglist-item.js +8 -6
- package/src/scrollbar/src/scrollbar/scrollbar.next.js +2 -2
- package/src/table/src/table/table.js +22 -14
package/package.json
CHANGED
@@ -72,12 +72,14 @@ export default {
|
|
72
72
|
{
|
73
73
|
this.timer = setTimeout(() => {
|
74
74
|
|
75
|
-
this.
|
76
|
-
this.
|
77
|
-
|
75
|
+
if ( this.NDraggable.draggable ) {
|
76
|
+
this.timer = setTimeout(() => {
|
77
|
+
this.NDraggable.drag.bindNode(this);
|
78
|
+
}, 50);
|
79
|
+
}
|
78
80
|
|
79
81
|
this.init = true;
|
80
|
-
},
|
82
|
+
}, 40);
|
81
83
|
},
|
82
84
|
|
83
85
|
beforeUnmount()
|
@@ -189,7 +191,7 @@ export default {
|
|
189
191
|
|
190
192
|
let props = {};
|
191
193
|
|
192
|
-
if ( this.isDraggable() ) {
|
194
|
+
if ( this.NDraggable.draggable && this.isDraggable() ) {
|
193
195
|
props.draggable = true;
|
194
196
|
}
|
195
197
|
|
@@ -248,7 +250,7 @@ export default {
|
|
248
250
|
onDblclick: this.onDblclick,
|
249
251
|
};
|
250
252
|
|
251
|
-
if ( ! this.NDraggable.handle && this.isDraggable() ) {
|
253
|
+
if ( this.NDraggable.draggable && ! this.NDraggable.handle && this.isDraggable() ) {
|
252
254
|
props.draggable = true;
|
253
255
|
}
|
254
256
|
|
@@ -72,12 +72,14 @@ export default {
|
|
72
72
|
{
|
73
73
|
this.timer = setTimeout(() => {
|
74
74
|
|
75
|
-
this.
|
76
|
-
this.
|
77
|
-
|
75
|
+
if ( this.NDraggable.draggable ) {
|
76
|
+
this.timer = setTimeout(() => {
|
77
|
+
this.NDraggable.drag.bindNode(this);
|
78
|
+
}, 50);
|
79
|
+
}
|
78
80
|
|
79
81
|
this.init = true;
|
80
|
-
},
|
82
|
+
}, 40);
|
81
83
|
},
|
82
84
|
|
83
85
|
beforeUnmount()
|
@@ -231,7 +233,7 @@ export default {
|
|
231
233
|
|
232
234
|
let props = {};
|
233
235
|
|
234
|
-
if ( this.isDraggable() ) {
|
236
|
+
if ( this.NDraggable.draggable && this.isDraggable() ) {
|
235
237
|
props.draggable = true;
|
236
238
|
}
|
237
239
|
|
@@ -317,7 +319,7 @@ export default {
|
|
317
319
|
onDblclick: this.onDblclick,
|
318
320
|
};
|
319
321
|
|
320
|
-
if ( ! this.NDraggable.handle && this.isDraggable() ) {
|
322
|
+
if ( this.NDraggable.draggable && ! this.NDraggable.handle && this.isDraggable() ) {
|
321
323
|
props.draggable = true;
|
322
324
|
}
|
323
325
|
|
@@ -310,7 +310,7 @@ export default {
|
|
310
310
|
// Dom.find(this.$el).addClass('has-native-hbar');
|
311
311
|
// }
|
312
312
|
|
313
|
-
let hasVtrack = outerHeight && outerHeight < innerHeight;
|
313
|
+
let hasVtrack = outerHeight && outerHeight < innerHeight + 1;
|
314
314
|
|
315
315
|
if ( hasVtrack ) {
|
316
316
|
Dom.find(this.$el).addClass('has-vtrack');
|
@@ -388,7 +388,7 @@ export default {
|
|
388
388
|
// Dom.find(this.$el).addClass('has-native-vbar');
|
389
389
|
// }
|
390
390
|
|
391
|
-
let hasHtrack = outerWidth && outerWidth < innerWidth;
|
391
|
+
let hasHtrack = outerWidth && outerWidth < innerWidth + 1;
|
392
392
|
|
393
393
|
if ( hasHtrack ) {
|
394
394
|
Dom.find(this.$el).addClass('has-htrack');
|
@@ -22,6 +22,14 @@ export default {
|
|
22
22
|
type: [Array]
|
23
23
|
},
|
24
24
|
|
25
|
+
draggable: {
|
26
|
+
default()
|
27
|
+
{
|
28
|
+
return true;
|
29
|
+
},
|
30
|
+
type: [Boolean]
|
31
|
+
},
|
32
|
+
|
25
33
|
visible: {
|
26
34
|
default()
|
27
35
|
{
|
@@ -297,15 +305,15 @@ export default {
|
|
297
305
|
data()
|
298
306
|
{
|
299
307
|
return {
|
300
|
-
uid:
|
301
|
-
elements:
|
302
|
-
tempVisible:
|
308
|
+
uid: UUID(),
|
309
|
+
elements: [],
|
310
|
+
tempVisible: this.visible,
|
303
311
|
tempVisibleProps: [],
|
304
|
-
tempSelected:
|
305
|
-
tempSortProp:
|
306
|
-
tempSortDir:
|
307
|
-
tempFilter:
|
308
|
-
tempFilterProps:
|
312
|
+
tempSelected: this.selected,
|
313
|
+
tempSortProp: this.sortProp,
|
314
|
+
tempSortDir: this.sortDir,
|
315
|
+
tempFilter: this.filter,
|
316
|
+
tempFilterProps: [],
|
309
317
|
}
|
310
318
|
},
|
311
319
|
|
@@ -540,10 +548,10 @@ export default {
|
|
540
548
|
}
|
541
549
|
|
542
550
|
let props = {
|
543
|
-
modelValue:
|
551
|
+
modelValue: this.checked,
|
544
552
|
intermediate: this.intermediate,
|
545
|
-
disabled:
|
546
|
-
onClick:
|
553
|
+
disabled: !this.items.length,
|
554
|
+
onClick: this.selectAll
|
547
555
|
};
|
548
556
|
|
549
557
|
return (
|
@@ -609,10 +617,10 @@ export default {
|
|
609
617
|
];
|
610
618
|
|
611
619
|
let props = Obj.except(this.$props, except, {
|
612
|
-
items:
|
613
|
-
selected:
|
620
|
+
items: this.items,
|
621
|
+
selected: this.tempSelected,
|
614
622
|
overflowX: false,
|
615
|
-
useKeys:
|
623
|
+
useKeys: this.useKeys,
|
616
624
|
// renderNode: this.ctor('renderBody')
|
617
625
|
});
|
618
626
|
|