bulk-operations v0.1 add opcaity for draged items

This commit is contained in:
Milos Holba
2020-11-29 17:50:59 +01:00
parent 7b70c81d4d
commit 58f7479380
11 changed files with 201 additions and 162 deletions
+1 -9
View File
@@ -17,7 +17,7 @@
<RenameItem/>
<!-- Multi Select Drag & Drop UI -->
<MultiSelected :draged-ghost="draged" :draged-item="dragedItem" v-show="draged" id="multi-select-ui"/>
<MultiSelected :is-ghost="true" v-show="draged" id="multi-select-ui"/>
<!--Mobile Menu-->
<MobileMenu/>
@@ -189,7 +189,6 @@
currentPage: undefined,
homeDirectory: undefined,
draged: false,
dragedItem: undefined
}
},
methods: {
@@ -269,15 +268,8 @@
},
created() {
// Handle default scrollbar for the macOS
if (!navigator.userAgent.indexOf('Mac OS X') != -1) {
let body = document.body
body.classList.add('scroll-bar')
}
// Hnadle Drag & Drop Ghost show
events.$on('dragstart', (data) => {
this.dragedItem = data
setTimeout(() => {
this.draged = true
}, 50);