Skip to content

Commit

Permalink
Merge pull request #6 from jamebal/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
jamebal authored Apr 26, 2021
2 parents 87f1c8d + a4a41f8 commit a30308a
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 13 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jmal-cloud-view",
"version": "2.2.32",
"version": "2.2.33",
"description": "jmalcloud",
"author": "Jmal <[email protected]>",
"license": "MIT",
Expand Down
1 change: 0 additions & 1 deletion src/components/Cropper/dialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@
}
},
changImg(file) {
console.log(file)
this.filename = file.name
if(file.size > 0){
this.loading = true
Expand Down
27 changes: 16 additions & 11 deletions src/components/ShowFile/ShowFile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@
>
</empty-file>
<img id="dragImage" draggable="false" style="position: fixed;opacity: 0" src="~@/assets/img/hide.png">
<div id="numberFiles" class="number-files">
<div id="numberFiles" class="number-files" v-if="!selectFile">
<img class="icon" src="~@/assets/img/arrow1_left.png" style="display: none"/>
<div class="number" style="display: inline">1个文件</div>
<div class="operate" style="display: none;white-space: nowrap;">
Expand Down Expand Up @@ -534,6 +534,7 @@ import '@/utils/directives.js'
import fileConfig from '@/utils/file-config'
import EditElement from "@/views/markdown/EditElement";
import SelectFile from "@/components/ShowFile/SelectFile";
var rowStyleExecuting = false
export default {
Expand Down Expand Up @@ -964,6 +965,9 @@ export default {
this.getFileList(true)
},
gridItemClick(row) {
if (this.selectFile) {
this.fileClick(row)
}
if (this.isCmd) {
this.pinSelect(null, row)
this.$refs.fileListTable.toggleRowSelection([{row: row}])
Expand Down Expand Up @@ -996,6 +1000,16 @@ export default {
},
// 画矩形选区
darwRectangle() {
let scrollDiv = document.querySelector('.el-table__body-wrapper')
if (this.grid) {
// 添加grid视图的scroll事件
document.querySelector('.van-grid').onscroll = (e) => {
this.tableBodyScroll(null, e)
}
scrollDiv = document.querySelector('.van-grid')
}
if(this.selectFile){
return
}
Expand Down Expand Up @@ -1127,15 +1141,6 @@ export default {
dragingDivs.forEach(el => draw.removeChild(el))
}
}
let scrollDiv = document.querySelector('.el-table__body-wrapper')
if (_this.grid) {
// 添加grid视图的scroll事件
document.querySelector('.van-grid').onscroll = function (e) {
_this.tableBodyScroll(null, e)
}
scrollDiv = document.querySelector('.van-grid')
}
// 禁止滚动
let noScroll = function () {
scrollDiv.onmousewheel = function (evt) {
Expand Down Expand Up @@ -2245,7 +2250,7 @@ export default {
// 单元格点击事件
cellClick(row, column) {
if(this.selectFile){
// this.fileClick(row)
this.fileClick(row)
return
}
clearTimeout(this.Loop);
Expand Down

0 comments on commit a30308a

Please sign in to comment.