前端eslint调整

This commit is contained in:
piexlMax
2023-09-14 18:47:47 +08:00
parent 636204bbaf
commit a4f86354d3
64 changed files with 3302 additions and 1096 deletions

View File

@@ -2,23 +2,52 @@
<div class="break-point">
<div class="gva-table-box">
<el-divider content-position="left">大文件上传</el-divider>
<form id="fromCont" method="post">
<div class="fileUpload" @click="inputChange">
<form
id="fromCont"
method="post"
>
<div
class="fileUpload"
@click="inputChange"
>
选择文件
<input v-show="false" id="file" ref="FileInput" multiple="multiple" type="file" @change="choseFile">
<input
v-show="false"
id="file"
ref="FileInput"
multiple="multiple"
type="file"
@change="choseFile"
>
</div>
</form>
<el-button :disabled="limitFileSize" type="primary" class="uploadBtn" @click="getFile">上传文件</el-button>
<el-button
:disabled="limitFileSize"
type="primary"
class="uploadBtn"
@click="getFile"
>上传文件</el-button>
<div class="el-upload__tip">请上传不超过5MB的文件</div>
<div class="list">
<transition name="list" tag="p">
<div v-if="file" class="list-item">
<transition
name="list"
tag="p"
>
<div
v-if="file"
class="list-item"
>
<el-icon>
<document />
</el-icon>
<span>{{ file.name }}</span>
<span class="percentage">{{ percentage }}%</span>
<el-progress :show-text="false" :text-inside="false" :stroke-width="2" :percentage="percentage" />
<el-progress
:show-text="false"
:text-inside="false"
:stroke-width="2"
:percentage="percentage"
/>
</div>
</transition>
</div>
@@ -39,6 +68,10 @@ import {
import { ref, watch } from 'vue'
import { ElMessage } from 'element-plus'
defineOptions({
name: 'BreakPoint'
})
const file = ref(null)
const fileMd5 = ref('')
const formDataList = ref([])
@@ -175,13 +208,6 @@ const inputChange = () => {
}
</script>
<script>
export default {
name: 'BreakPoint'
}
</script>
<style lang='scss' scoped>
h3 {
margin: 40px 0 0;