From 7853408cc2e2bd824ab27f400bcc24f8fb5375ff Mon Sep 17 00:00:00 2001 From: jmal Date: Thu, 23 May 2024 09:42:46 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E4=BD=BF=E7=94=A8prettier=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F=E5=8C=96ShowFile.vue?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- prettier.config.js | 8 + src/components/ShowFile/ShowFile.vue | 3334 ++++++++++++++------------ 2 files changed, 1778 insertions(+), 1564 deletions(-) create mode 100644 prettier.config.js diff --git a/prettier.config.js b/prettier.config.js new file mode 100644 index 0000000..aaed975 --- /dev/null +++ b/prettier.config.js @@ -0,0 +1,8 @@ +module.exports = { + singleQuote: true, + semi: false, + trailingComma: 'es5', + tabWidth: 2, + printWidth: 80, + endOfLine: 'lf' +} diff --git a/src/components/ShowFile/ShowFile.vue b/src/components/ShowFile/ShowFile.vue index 06ec334..1add44f 100644 --- a/src/components/ShowFile/ShowFile.vue +++ b/src/components/ShowFile/ShowFile.vue @@ -19,7 +19,11 @@ > {{ item.label }} - +
{{ - singleFileType !== "" ? singleFileType : "上传文件" - }} + singleFileType !== '' ? singleFileType : '上传文件' + }}
  • @@ -173,9 +177,12 @@ >
    - - - {{sortName}} + + + {{ sortName }}
    @@ -183,14 +190,14 @@ 名称 @@ -200,14 +207,14 @@ 大小 @@ -217,14 +224,14 @@ 日期 @@ -241,9 +248,15 @@
    - {{this.pagination["total"]}}个结果:  + {{ this.pagination['total'] }}个结果:  获取更多数据... - {{ !finished ? "已加载 " + getSummaries3 : "已全部加载 " + getSummaries3 }} + {{ + !finished + ? '已加载 ' + getSummaries3 + : '已全部加载 ' + getSummaries3 + }}
    @@ -372,7 +385,7 @@ v-if="scope.row.ossPlatform" size="small" class="pc list oss-folder" - >{{ scope.row.ossPlatform }} + >{{ scope.row.ossPlatform }}
  • @@ -389,7 +402,10 @@ > @@ -512,7 +528,7 @@ 'box-shadow': fileListScrollTop > 0 ? '#a5a7a8 0px 0px 3px' - : '#ffffff 0px 0px 0px' + : '#ffffff 0px 0px 0px', }" >
    document
    @@ -661,18 +677,18 @@ {{ - rowContextData.isFolder ? "文件夹" : rowContextData.contentType - }} + rowContextData.isFolder ? '文件夹' : rowContextData.contentType + }}
    {{ rowContextData.music.singer }} - {{ "《" + rowContextData.music.album + "》" }} + {{ '《' + rowContextData.music.album + '》' }} - {{ "《" + rowContextData.music.songName + "》" }} + {{ '《' + rowContextData.music.songName + '》' }}
    - {{ rowContextData.w + " x " + rowContextData.h }} + {{ rowContextData.w + ' x ' + rowContextData.h }} - - {{formatSize(rowContextData.size)}} + {{ formatSize(rowContextData.size) }} - {{ - rowContextData.path - }} + {{ rowContextData.path }} {{ rowContextData.uploadDate }} @@ -711,18 +731,18 @@ 查看压缩文件 解压到...解压到... 解压到当前目录解压到当前目录 预览预览 @@ -777,36 +797,39 @@ size="small" @click="fileTreeAndNewFolder" :disabled="fileTreeAndNewFolderDisabled" - >  新建文件夹 + >  新建文件夹 移 动移 动 复制复制 解压解压 取 消取 消 - + 取消取消 确定确定 @@ -845,36 +868,36 @@ -