chore: install prettier
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
<template>
|
||||
<div>
|
||||
<div class="file is-primary" id="ignore" v-if="position === 'left'">
|
||||
<div
|
||||
class="file is-primary"
|
||||
id="ignore"
|
||||
v-if="position === 'left'"
|
||||
>
|
||||
<label class="file-label">
|
||||
<input
|
||||
class="file-input"
|
||||
@@ -12,15 +16,17 @@
|
||||
/>
|
||||
<span class="file-cta px-2">
|
||||
<span class="icon-text is-clickable">
|
||||
<SvgIcon
|
||||
v-bind="{ name: 'attach-file.svg', type: 'white', size: 22 }"
|
||||
></SvgIcon>
|
||||
<SvgIcon v-bind="{ name: 'attach-file.svg', type: 'white', size: 22 }"></SvgIcon>
|
||||
<!--<span class="has-text-white">File</span>-->
|
||||
</span>
|
||||
</span>
|
||||
</label>
|
||||
</div>
|
||||
<div class="field is-grouped is-grouped-right" id="ignore" v-else>
|
||||
<div
|
||||
class="field is-grouped is-grouped-right"
|
||||
id="ignore"
|
||||
v-else
|
||||
>
|
||||
<div class="control">
|
||||
<div class="file is-primary">
|
||||
<label class="file-label">
|
||||
@@ -34,9 +40,7 @@
|
||||
/>
|
||||
<span class="file-cta is-primary px-1">
|
||||
<span class="icon-text is-clickable">
|
||||
<SvgIcon
|
||||
v-bind="{ name: 'attach-file.svg', type: 'white', size: 22 }"
|
||||
></SvgIcon>
|
||||
<SvgIcon v-bind="{ name: 'attach-file.svg', type: 'white', size: 22 }"></SvgIcon>
|
||||
</span>
|
||||
</span>
|
||||
</label>
|
||||
@@ -75,10 +79,10 @@ export default {
|
||||
const imageFormat = ["png", "jpg", "jpeg", "bmp", "gif", "svg", "webp"];
|
||||
const videoFormat = ["wmv", "avi", "mp4", "flv", "mov", "mpg", "amv", "rm"];
|
||||
|
||||
if (ext === 'pdf') return 'pdf';
|
||||
if (imageFormat.includes(ext)) return 'image';
|
||||
if (videoFormat.includes(ext)) return 'video';
|
||||
return 'file';
|
||||
if (ext === "pdf") return "pdf";
|
||||
if (imageFormat.includes(ext)) return "image";
|
||||
if (videoFormat.includes(ext)) return "video";
|
||||
return "file";
|
||||
},
|
||||
doChange() {
|
||||
this.dataFiles = [];
|
||||
|
||||
Reference in New Issue
Block a user