From 046436f6e5615e0b3447dd677e6c366105493a98 Mon Sep 17 00:00:00 2001 From: zhengzhou Date: Tue, 13 Apr 2021 18:57:20 +0800 Subject: [PATCH] update --- .../workspace/components/file-item.vue | 33 ++++++++++++------- src/views/main_web/workspace/index.vue | 25 ++++++++------ src/views/main_web/workspace/service.js | 11 ++++++- 3 files changed, 46 insertions(+), 23 deletions(-) diff --git a/src/views/main_web/workspace/components/file-item.vue b/src/views/main_web/workspace/components/file-item.vue index cbc69ac5..6b15589c 100644 --- a/src/views/main_web/workspace/components/file-item.vue +++ b/src/views/main_web/workspace/components/file-item.vue @@ -1,6 +1,5 @@ +
@@ -240,6 +240,10 @@ export default { type: Object, default: () => ({}), }, + enableSelect: { + type: Boolean, + default: false, + }, // rightShowMenu: { // type: Function, // default: () => () => {} @@ -293,13 +297,13 @@ export default { fileItemEl: null, workspaceEl: null,//工作文件区域 fileImgEl: null, - fileImgClass: "" + fileImgClass: "", }; }, computed: { fileStoreKey() { - const { nodeName, extension, archName, relativePath } = this.file; - const folderName = nodeName ? `${nodeName}\\协作文件` : this.nodeFolder.folderName; + // const { nodeName, extension, archName, relativePath } = this.file; + // const folderName = nodeName ? `${nodeName}\\协作文件` : this.nodeFolder.folderName; return getFileStoreKey(this.file, this.nodeFolder); }, isInWorkFolder() { @@ -358,7 +362,7 @@ export default { isFileModified() { const { ipfsCid } = this.file; const localIpfsCid = this.localIpfsCid; - const [myLocalIpfsCid, status] = localIpfsCid.split(";"); + const [myLocalIpfsCid, status] = (localIpfsCid || '').split(";"); //本地修改 即hash最后一位是 1 return localIpfsCid && status == "1"; }, @@ -624,6 +628,11 @@ export default { box-shadow: 0 1px 2px rgb(#666, 0.2); } } + .select-icon { + width: 24px; + height: 24px; + border-radius: 50%; + }