diff --git a/openRenamerFront/package.json b/openRenamerFront/package.json index f60a449..57ac1db 100644 --- a/openRenamerFront/package.json +++ b/openRenamerFront/package.json @@ -8,6 +8,7 @@ "lint": "vue-cli-service lint" }, "dependencies": { + "@element-plus/icons": "^0.0.11", "axios": "^0.21.1", "core-js": "^3.6.5", "element-plus": "^1.0.2-beta.48", diff --git a/openRenamerFront/src/components/FileChose.vue b/openRenamerFront/src/components/FileChose.vue index 0554c01..77b8a6c 100644 --- a/openRenamerFront/src/components/FileChose.vue +++ b/openRenamerFront/src/components/FileChose.vue @@ -16,6 +16,13 @@
+ 全选 @@ -23,7 +30,7 @@ >全不选
-
+
{{ item.name }} @@ -48,8 +55,17 @@ export default { chosedFileList: [], //选中的文件节点 pathList: [], //选择的路径 loading: false, //加载 + filterText: "", //关键字过滤 }; }, + computed: { + filterFileList() { + let text = this.filterText.trim(); + return text === "" + ? this.fileList + : this.fileList.filter((item) => item.name.indexOf(text) > -1); + }, + }, async mounted() { this.isWindows = await HttpUtil.get("/file/isWindows"); await this.breadcrumbClick(-1); diff --git a/openRenamerFront/src/views/home/Home.vue b/openRenamerFront/src/views/home/Home.vue index 10d04d2..5a59738 100644 --- a/openRenamerFront/src/views/home/Home.vue +++ b/openRenamerFront/src/views/home/Home.vue @@ -50,15 +50,29 @@ >
+ {{ item.name }} + >
+ {{ item.name }} + + +
+
+
{{ item.name }}
@@ -86,12 +100,13 @@ @@ -220,9 +255,19 @@ export default { } } -.fileBlock { +.fileList { + margin-top: 20px; text-align: left; - display: inline-block; - width: 50%; + + .fileBlock { + text-align: left; + display: inline-block; + width: 50%; + + .oneFileName { + display: flex; + align-items: center; + } + } }