Repo for the search and displace core module including the interface to select files and search and displace operations to run on them. https://searchanddisplace.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

59 lines
1.4 KiB

<template>
<div class="wrap">
<Panel header="Header">
<FileUpload
name="demo[]"
:customUpload="true"
:auto="true"
@uploader="myUploader"
>
<template #empty>
<p>Drag and drop files to here to upload.</p>
</template>
</FileUpload>
</Panel>
<!-- <process-file :files="files"></process-file>-->
<BlockUI :blocked="uiBlocked" :fullScreen="true"></BlockUI>
</div>
</template>
<script>
import FileUpload from 'primevue/fileupload';
import BlockUI from 'primevue/blockui';
import Panel from 'primevue/panel';
export default {
data() {
return {
uiBlocked: false,
files: [],
};
},
components: {
FileUpload,
BlockUI,
Panel,
},
methods: {
myUploader(event) {
this.uiBlocked = true;
event.files.forEach((file) => {
// Handle the file
this.files.push(file);
});
setTimeout(() => {
this.uiBlocked = false;
// this.$router.push('process-file');
}, 500);
},
},
};
</script>