支持匹配文件夹

This commit is contained in:
fofolee
2024-12-21 14:44:31 +08:00
parent 4baab60804
commit b230088a3a
2 changed files with 88 additions and 49 deletions

View File

@@ -159,8 +159,9 @@ const commandTypes = {
matchToCmds: (rules, desc) => [{
type: "files",
label: desc,
match: rules,
"minLength": 1,
match: rules.match,
fileType: rules.fileType,
minLength: 1,
}, ],
verify: rules => !!rules > 0 || "正则不能为空",
tempPayload: () => window.convertFilePathToUtoolsPayload(utools.showOpenDialog({