Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2020-1-CloudComputing
/
D_Team_Khuloud
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
박기범
2020-06-09 03:08:20 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c5e8df74b9305352ba6bffa7fbfe91d7bf94953c
c5e8df74
1 parent
45e2cd7c
complete drag and drop. not design...
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
front-end/src/components/FileList.vue
front-end/src/components/FileList.vue
View file @
c5e8df7
...
...
@@ -247,12 +247,14 @@
</v-list-item>
</v-list>
</v-menu>
<div v-cloak @drop.prevnet="addFile" @dragover.prevent>
<input
id="file-selector"
ref="uploadedfile"
type="file"
v-on:change="handleFileUpload()"
/>
</div>
<br />
<v-btn color="blue" @click="upload_file">upload</v-btn>
<v-btn bottom color="blue" dark fab fixed right @click="dialog = !dialog">
...
...
@@ -360,6 +362,11 @@ export default {
this.uploadedfile = this.$refs.uploadedfile.files[0];
console.log(this.uploadedfile);
},
addFile(event){
let droppedFiles = event.dataTransfer.files;
if(!droppedFiles) return;
console.log(droppedFiles);
},
initFolderName() {
this.foldername = '';
},
...
...
@@ -616,6 +623,7 @@ export default {
cur: this.cfilename.location,
fileName: this.cfilename.file_name
}
//확장자(txt)로 필터링해서 함수 실행여부 결정할것.
const detailData = await detailFile(currentData)
this.current_filename = detailData.data.file_name;
this.current_filedata = detailData.data.content;
...
...
Please
register
or
login
to post a comment