3
3
* @Author : itchaox
4
4
* @Date : 2024-07-06 11:57
5
5
* @LastAuthor : itchaox
6
- * @LastTime : 2024-07-25 00:30
6
+ * @LastTime : 2024-07-25 10:54
7
7
* @desc :
8
8
-->
9
9
<script setup lang="ts">
@@ -49,7 +49,6 @@ async function copy() {
49
49
const treeData = ref ([])
50
50
51
51
// 忽略文件夹列表
52
- // const folderList: any = ref(['dist', 'build'])
53
52
const folderList: any = ref ([])
54
53
55
54
// 扫描目录
@@ -116,7 +115,7 @@ function getIgnoreFolderList() {
116
115
isFolderAndPush (treeData .value )
117
116
118
117
let uniquePaths = [... new Set (result )]
119
- folderList .value = [ ... folderList . value , ... uniquePaths ]
118
+ folderList .value = uniquePaths
120
119
}
121
120
122
121
// 设置
@@ -833,7 +832,7 @@ const handleScroll = (scrolledContainer, otherContainer) => {
833
832
忽略文件夹
834
833
<el-tooltip
835
834
effect =" dark"
836
- content =" 忽略不需要扫描的文件夹,避免性能损失甚至程序失去响应,比如:node_modules 文件夹,程序内部已自动忽略 node_modules 文件夹 "
835
+ content =" 忽略不需要扫描的文件夹,提高扫描效率。可新增需要过滤的文件夹,例如:macOS 下为 /build、/dist,Windows 下为 \build、\dist。 "
837
836
placement =" top"
838
837
>
839
838
<el-icon size =" 16" style =" margin-left : 3px " ><Warning /></el-icon >
@@ -848,6 +847,8 @@ const handleScroll = (scrolledContainer, otherContainer) => {
848
847
collapse-tags
849
848
:max-collapse-tags =" 3"
850
849
filterable
850
+ default-first-option
851
+ allow-create
851
852
>
852
853
<el-option
853
854
v-for =" item in folderList.filter((i) => i)"
@@ -903,7 +904,7 @@ const handleScroll = (scrolledContainer, otherContainer) => {
903
904
忽略文件类型
904
905
<el-tooltip
905
906
effect =" dark"
906
- content =" 可以选择忽略不需要的文件类型,以提高扫描效率"
907
+ content =" 可以选择忽略不需要的文件类型,以提高扫描效率。可新增需要过滤的文件类型。 "
907
908
placement =" top"
908
909
>
909
910
<el-icon size =" 16" style =" margin-left : 3px " ><Warning /></el-icon >
0 commit comments