diff --git a/src/components/file/FileUpload.vue b/src/components/file/FileUpload.vue
index cd0176bb40ae7..75242cb6de15c 100644
--- a/src/components/file/FileUpload.vue
+++ b/src/components/file/FileUpload.vue
@@ -1,12 +1,10 @@
diff --git a/src/i18n/lang/zh/components/file.ts b/src/i18n/lang/zh/components/file.ts
index 153f774876bc4..1df828d2c8aa7 100644
--- a/src/i18n/lang/zh/components/file.ts
+++ b/src/i18n/lang/zh/components/file.ts
@@ -77,7 +77,7 @@ const file: LComponentsFile = {
files: '文件',
},
fileList: {
- title: '带上传文件',
+ title: '待上传文件',
},
},
actions: {
diff --git a/src/interfaces/components/file/index.d.ts b/src/interfaces/components/file/index.d.ts
index e8eb9bde2ed48..bfbaa5e1365ff 100644
--- a/src/interfaces/components/file/index.d.ts
+++ b/src/interfaces/components/file/index.d.ts
@@ -24,19 +24,7 @@ declare global {
theme: 'vs' | 'vs-dark' | 'hc-black';
}
- type FileEditorOptionDefinitionType = 'select' | 'input-number' | 'switch';
-
- interface FileEditorOptionDefinitionData {
- options?: string[];
- min?: number;
- step?: number;
- }
-
- interface FileEditorOptionDefinition {
- name: string;
- title: string;
- description: string;
- type: FileEditorOptionDefinitionType;
- data?: FileEditorOptionDefinitionData;
+ interface FileWithPath extends File {
+ path?: string;
}
}
diff --git a/src/interfaces/store/utils/file.d.ts b/src/interfaces/store/utils/file.d.ts
index 78e49987267ec..ba368ab446b19 100644
--- a/src/interfaces/store/utils/file.d.ts
+++ b/src/interfaces/store/utils/file.d.ts
@@ -1,40 +1,30 @@
-import { FileWithPath } from 'file-selector';
-
-declare global {
- interface BaseFileStoreState {
- fileNavItems: FileNavItem[];
- activeNavItem?: FileNavItem;
- fileMode: FileUploadMode;
- files: FileWithPath[];
- fileContent: string;
- defaultFilePaths: string[];
- }
+interface BaseFileStoreState {
+ fileNavItems: FileNavItem[];
+ activeNavItem?: FileNavItem;
+ fileContent: string;
+ defaultFilePaths: string[];
+}
- interface BaseFileStoreMutations {
- setFileNavItems: StoreMutation;
- setActiveFileNavItem: StoreMutation;
- resetActiveFileNavItem: StoreMutation;
- setFileMode: StoreMutation;
- resetFileMode: StoreMutation;
- setFiles: StoreMutation;
- resetFiles: StoreMutation;
- setFileContent: StoreMutation;
- resetFileContent: StoreMutation;
- setDefaultFilePaths: StoreMutation;
- resetDefaultFilePaths: StoreMutation;
- }
+interface BaseFileStoreMutations {
+ setFileNavItems: StoreMutation;
+ setActiveFileNavItem: StoreMutation;
+ resetActiveFileNavItem: StoreMutation;
+ setFileContent: StoreMutation;
+ resetFileContent: StoreMutation;
+ setDefaultFilePaths: StoreMutation;
+ resetDefaultFilePaths: StoreMutation;
+}
- interface BaseFileStoreActions {
- listDir: StoreAction;
- getFile: StoreAction;
- getFileInfo: StoreAction;
- saveFile: StoreAction;
- saveFileBinary: StoreAction;
- saveFilesBinary: StoreAction;
- saveDir: StoreAction;
- renameFile: StoreAction;
- deleteFile: StoreAction;
- copyFile: StoreAction;
- exportFiles: StoreAction;
- }
+interface BaseFileStoreActions {
+ listDir: StoreAction;
+ getFile: StoreAction;
+ getFileInfo: StoreAction;
+ saveFile: StoreAction;
+ saveFileBinary: StoreAction;
+ saveFilesBinary: StoreAction;
+ saveDir: StoreAction;
+ renameFile: StoreAction;
+ deleteFile: StoreAction;
+ copyFile: StoreAction;
+ exportFiles: StoreAction;
}
diff --git a/src/store/utils/file.ts b/src/store/utils/file.ts
index 1b28017a00ae4..32a27ad3a87a0 100644
--- a/src/store/utils/file.ts
+++ b/src/store/utils/file.ts
@@ -7,8 +7,6 @@ export const getBaseFileStoreState = (): BaseFileStoreState => {
return {
fileNavItems: [],
activeNavItem: undefined,
- fileMode: FILE_UPLOAD_MODE_DIR,
- files: [],
fileContent: '',
defaultFilePaths: [],
};
@@ -27,18 +25,6 @@ export const getBaseFileStoreMutations = <
resetActiveFileNavItem: (state: S) => {
state.activeNavItem = undefined;
},
- setFileMode: (state: S, mode: FileUploadMode) => {
- state.fileMode = mode;
- },
- resetFileMode: (state: S) => {
- state.fileMode = FILE_UPLOAD_MODE_DIR;
- },
- setFiles: (state: S, files) => {
- state.files = files;
- },
- resetFiles: (state: S) => {
- state.files = [];
- },
setFileContent: (state: S, content: string) => {
state.fileContent = content;
},