From ff58ca0972ae1d61ca0229cd053d6f45e30f4ad8 Mon Sep 17 00:00:00 2001 From: revive <1664535558@qq.com> Date: Wed, 25 Nov 2020 15:48:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=9B=BE=E6=A0=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package-lock.json | 7 +- public/static/css/main.css | 99 +++++++++++++++++-- public/static/img/fileType/ae.svg | 35 +++++++ public/static/img/fileType/ai.svg | 35 +++++++ public/static/img/fileType/idml.svg | 38 +++++++ public/static/img/fileType/indd.svg | 38 +++++++ public/static/img/fileType/mp3.svg | 37 +++++++ public/static/img/fileType/pr.svg | 35 +++++++ public/static/img/fileType/ps.svg | 34 +++++++ public/static/img/fileType/sketch.svg | 29 ++++++ public/static/img/fileType/txt.svg | 33 +++++++ public/static/img/fileType/video.svg | 38 +++++++ public/static/img/fileType/xmind.svg | 24 +++++ public/static/img/fileType/zip.svg | 36 +++++++ .../workspace/components/file-item.vue | 8 +- 15 files changed, 509 insertions(+), 17 deletions(-) create mode 100644 public/static/img/fileType/ae.svg create mode 100644 public/static/img/fileType/ai.svg create mode 100644 public/static/img/fileType/idml.svg create mode 100644 public/static/img/fileType/indd.svg create mode 100644 public/static/img/fileType/mp3.svg create mode 100644 public/static/img/fileType/pr.svg create mode 100644 public/static/img/fileType/ps.svg create mode 100644 public/static/img/fileType/sketch.svg create mode 100644 public/static/img/fileType/txt.svg create mode 100644 public/static/img/fileType/video.svg create mode 100644 public/static/img/fileType/xmind.svg create mode 100644 public/static/img/fileType/zip.svg diff --git a/package-lock.json b/package-lock.json index 65a38f03..c2c3838f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3506,8 +3506,7 @@ "boolean": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/boolean/-/boolean-3.0.1.tgz", - "integrity": "sha512-HRZPIjPcbwAVQvOTxR4YE3o8Xs98NqbbL1iEZDCz7CL8ql0Lt5iOyJFxfnAB0oFs8Oh02F/lLlg30Mexv46LjA==", - "optional": true + "integrity": "sha512-HRZPIjPcbwAVQvOTxR4YE3o8Xs98NqbbL1iEZDCz7CL8ql0Lt5iOyJFxfnAB0oFs8Oh02F/lLlg30Mexv46LjA==" }, "bowser": { "version": "1.9.4", @@ -6245,7 +6244,7 @@ }, "echarts": { "version": "4.9.0", - "resolved": "https://registry.npm.taobao.org/echarts/download/echarts-4.9.0.tgz", + "resolved": "https://registry.npm.taobao.org/echarts/download/echarts-4.9.0.tgz?cache=0&sync_timestamp=1605024603472&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fecharts%2Fdownload%2Fecharts-4.9.0.tgz", "integrity": "sha1-qbm6oD8Doqcx5jQMVb77V6nhNH0=", "requires": { "zrender": "4.3.2" @@ -18952,7 +18951,7 @@ }, "zrender": { "version": "4.3.2", - "resolved": "https://registry.npm.taobao.org/zrender/download/zrender-4.3.2.tgz?cache=0&sync_timestamp=1605884445437&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fzrender%2Fdownload%2Fzrender-4.3.2.tgz", + "resolved": "https://registry.npm.taobao.org/zrender/download/zrender-4.3.2.tgz?cache=0&sync_timestamp=1605884142817&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fzrender%2Fdownload%2Fzrender-4.3.2.tgz", "integrity": "sha1-7HQy+UFcgsc1hLa3uMR+GwFiCcY=" } } diff --git a/public/static/css/main.css b/public/static/css/main.css index cf030467..2d14af2b 100644 --- a/public/static/css/main.css +++ b/public/static/css/main.css @@ -2750,18 +2750,105 @@ button:focus { .gif-mid { background: url("/static/img/bgtupian.png") no-repeat -827px -200px; } +.txt-mid, +.ae-mid, +.ai-mid, +.idml-mid, +.indd-mid, +.mp3-mid, +.pr-mid, +.ps-mid, +.sketch-mid, +.xmind-mid, +.zip-mid, +.video-mid{ + position: relative; + top: 18px; + left: 15px; +} .txt { - background: url("/static/img/bgtupian.png") no-repeat -1260px 0; + background: url("/static/img/fileType/txt.svg") no-repeat; } .txt-mid { - background: url("/static/img/bgtupian.png") no-repeat -963px -200px; + background: url("/static/img/fileType/txt.svg") no-repeat; + background-size:80% 80%; } - .zip{ - background: url("/static/img/bgtupian.png") no-repeat -1620px 0; + background: url("/static/img/fileType/zip.svg") no-repeat; +} +.zip-mid{ + background: url("/static/img/fileType/zip.svg") no-repeat; + background-size:80% 80%; +} +.ae{ + background: url("/static/img/fileType/ae.svg") no-repeat; +} +.ae-mid{ + background: url("/static/img/fileType/ae.svg") no-repeat; + background-size:80% 80%; +} +.ai{ + background: url("/static/img/fileType/ai.svg") no-repeat; +} +.ai-mid{ + background: url("/static/img/fileType/ai.svg") no-repeat; + background-size:80% 80%; +} +.idml{ + background: url("/static/img/fileType/idml.svg") no-repeat; +} +.idml-mid{ + background: url("/static/img/fileType/idml.svg") no-repeat; + background-size:80% 80%; +} +.indd{ + background: url("/static/img/fileType/indd.svg") no-repeat; +} +.indd-mid{ + background: url("/static/img/fileType/indd.svg") no-repeat; + background-size:80% 80%; +} +.mp3{ + background: url("/static/img/fileType/mp3.svg") no-repeat; +} +.mp3-mid{ + background: url("/static/img/fileType/mp3.svg") no-repeat; + background-size:80% 80%; +} +.pr{ + background: url("/static/img/fileType/pr.svg") no-repeat; +} +.pr-mid{ + background: url("/static/img/fileType/pr.svg") no-repeat; + background-size:80% 80%; +} +.ps{ + background: url("/static/img/fileType/ps.svg") no-repeat; +} +.ps-mid{ + background: url("/static/img/fileType/ps.svg") no-repeat; + background-size:80% 80%; +} +.sketch{ + background: url("/static/img/fileType/sketch.svg") no-repeat; +} +.sketch-mid{ + background: url("/static/img/fileType/sketch.svg") no-repeat; + background-size:80% 80%; +} +.video{ + background: url("/static/img/fileType/video.svg") no-repeat; +} +.video-mid{ + background: url("/static/img/fileType/video.svg") no-repeat; + background-size:80% 80%; +} +.xmind{ + background: url("/static/img/fileType/xmind.svg") no-repeat; } -.zip-mid{ - background: url("/static/img/bgtupian.png") no-repeat -1235px -200px; +.xmind-mid{ + background: url("/static/img/fileType/xmind.svg") no-repeat; + background-size:80% 80%; } .skp{ background: url("/static/img/bgtupian.png") no-repeat -1800px 0; diff --git a/public/static/img/fileType/ae.svg b/public/static/img/fileType/ae.svg new file mode 100644 index 00000000..f2f7a6dd --- /dev/null +++ b/public/static/img/fileType/ae.svg @@ -0,0 +1,35 @@ + + + 模块/文件/组件/定制图标/ae + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Ae + + + \ No newline at end of file diff --git a/public/static/img/fileType/ai.svg b/public/static/img/fileType/ai.svg new file mode 100644 index 00000000..96f26e66 --- /dev/null +++ b/public/static/img/fileType/ai.svg @@ -0,0 +1,35 @@ + + + 模块/文件/组件/定制图标/ai + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Ai + + + \ No newline at end of file diff --git a/public/static/img/fileType/idml.svg b/public/static/img/fileType/idml.svg new file mode 100644 index 00000000..eb00137b --- /dev/null +++ b/public/static/img/fileType/idml.svg @@ -0,0 +1,38 @@ + + + 模块/文件/组件/定制图标/id + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Id + + + idml + + + \ No newline at end of file diff --git a/public/static/img/fileType/indd.svg b/public/static/img/fileType/indd.svg new file mode 100644 index 00000000..14cb4229 --- /dev/null +++ b/public/static/img/fileType/indd.svg @@ -0,0 +1,38 @@ + + + 模块/文件/组件/定制图标/id备份 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Id + + + indd + + + \ No newline at end of file diff --git a/public/static/img/fileType/mp3.svg b/public/static/img/fileType/mp3.svg new file mode 100644 index 00000000..e2570b00 --- /dev/null +++ b/public/static/img/fileType/mp3.svg @@ -0,0 +1,37 @@ + + + 模块/文件/组件/定制图标/zip备份 2 + + + + + + + + + + + + + + + + + + + + + + + + + + + + MP3 + + + + + + \ No newline at end of file diff --git a/public/static/img/fileType/pr.svg b/public/static/img/fileType/pr.svg new file mode 100644 index 00000000..2aaff2ca --- /dev/null +++ b/public/static/img/fileType/pr.svg @@ -0,0 +1,35 @@ + + + 模块/文件/组件/定制图标/pr + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Pr + + + \ No newline at end of file diff --git a/public/static/img/fileType/ps.svg b/public/static/img/fileType/ps.svg new file mode 100644 index 00000000..578b7178 --- /dev/null +++ b/public/static/img/fileType/ps.svg @@ -0,0 +1,34 @@ + + + 模块/文件/组件/定制图标/ps + + + + + + + + + + + + + + + + + + + + + + + + + + + + Ps + + + \ No newline at end of file diff --git a/public/static/img/fileType/sketch.svg b/public/static/img/fileType/sketch.svg new file mode 100644 index 00000000..4a7b9333 --- /dev/null +++ b/public/static/img/fileType/sketch.svg @@ -0,0 +1,29 @@ + + + 模块/文件/组件/定制图标/sketch + + + + + + + + + + + + + + + + + + + Sketch + + + + + + + \ No newline at end of file diff --git a/public/static/img/fileType/txt.svg b/public/static/img/fileType/txt.svg new file mode 100644 index 00000000..0acc5d5b --- /dev/null +++ b/public/static/img/fileType/txt.svg @@ -0,0 +1,33 @@ + + + 模块/文件/组件/定制图标/word备份 + + + + + + + + + + + + + + + + + + + + + + + + + + + TXT + + + \ No newline at end of file diff --git a/public/static/img/fileType/video.svg b/public/static/img/fileType/video.svg new file mode 100644 index 00000000..6190a82f --- /dev/null +++ b/public/static/img/fileType/video.svg @@ -0,0 +1,38 @@ + + + 模块/文件/组件/定制图标/视频类 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/public/static/img/fileType/xmind.svg b/public/static/img/fileType/xmind.svg new file mode 100644 index 00000000..4beea497 --- /dev/null +++ b/public/static/img/fileType/xmind.svg @@ -0,0 +1,24 @@ + + + 模块/文件/组件/定制图标/xmind + + + + + + + + + + + + + + + + + XMind + + + + \ No newline at end of file diff --git a/public/static/img/fileType/zip.svg b/public/static/img/fileType/zip.svg new file mode 100644 index 00000000..9cfa17de --- /dev/null +++ b/public/static/img/fileType/zip.svg @@ -0,0 +1,36 @@ + + + 模块/文件/组件/定制图标/zip + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ZIP + + + \ No newline at end of file diff --git a/src/views/main_web/workspace/components/file-item.vue b/src/views/main_web/workspace/components/file-item.vue index 49a78625..571c610f 100644 --- a/src/views/main_web/workspace/components/file-item.vue +++ b/src/views/main_web/workspace/components/file-item.vue @@ -11,7 +11,7 @@