refactor: ♻️ eslint 代码规范调整

This commit is contained in:
ray
2024-10-13 10:42:48 +08:00
parent 72eb87d005
commit a4ef6eb696
66 changed files with 376 additions and 376 deletions

View File

@@ -19,13 +19,13 @@
:limit="props.limit"
>
<el-button
type="primary"
v-if="props.showUploadBtn"
type="primary"
:disabled="fileList.length >= props.limit"
>
{{ props.uploadBtnText }}
</el-button>
<template #tip v-if="props.showTip">
<template v-if="props.showTip" #tip>
<div class="el-upload__tip">
{{ props.tip }}
</div>
@@ -36,8 +36,8 @@
<el-icon><Document /></el-icon>
<span class="el-upload-list__item-file-name">{{ file.name }}</span>
<span
class="el-icon--close"
v-if="props.showDelBtn"
class="el-icon--close"
@click.stop="handleRemove(file)"
>
<el-icon><Close /></el-icon>
@@ -47,13 +47,13 @@
</template>
</el-upload>
<el-progress
v-if="showUploadPercent"
:style="{
display: showUploadPercent ? 'inline-flex' : 'none',
width: '100%',
}"
:percentage="uploadPercent"
:color="customColorMethod"
v-if="showUploadPercent"
/>
</div>
</template>

View File

@@ -39,9 +39,9 @@
<el-image-viewer
v-if="viewVisible"
:zoom-rate="1.2"
@close="closePreview"
:initialIndex="initialIndex"
:url-list="viewFileList"
@close="closePreview"
/>
</template>
<script setup lang="ts">