fix: 屏幕截图保存路径字段正名(目标文件路径->截图保存路径), 备用输出目录/文件名折叠进高级参数, 描述写清保存回退链
This commit is contained in:
parent
4a3e6e38c7
commit
41b999115e
@ -67132,14 +67132,14 @@
|
||||
},
|
||||
{
|
||||
"key": "image_path",
|
||||
"label": "目标文件路径",
|
||||
"label": "截图保存路径",
|
||||
"widget": "file",
|
||||
"type": "object",
|
||||
"displayType": "selectFile",
|
||||
"required": true,
|
||||
"defaultValue": "",
|
||||
"placeholder": "如 D:\\files\\demo.png",
|
||||
"description": "选择要截图的图片文件路径",
|
||||
"description": "截图保存的完整文件路径(含文件名),点右侧按钮可直接选保存位置;留空时保存到「截图输出目录+截图文件名称」,再留空则保存到流程资源目录",
|
||||
"advanced": false,
|
||||
"valueTypes": [
|
||||
"rpa_str_file",
|
||||
@ -67194,8 +67194,8 @@
|
||||
"required": false,
|
||||
"defaultValue": "",
|
||||
"placeholder": "如 D:\\output",
|
||||
"description": "输出目录为空,将会保存文件到流程资源目录",
|
||||
"advanced": false,
|
||||
"description": "备用输出目录;「截图保存路径」为空时,截图保存到该目录下的「截图文件名称」",
|
||||
"advanced": true,
|
||||
"valueTypes": [
|
||||
"rpa_str_folder",
|
||||
"rpa_str"
|
||||
@ -67210,8 +67210,8 @@
|
||||
"required": false,
|
||||
"defaultValue": "",
|
||||
"placeholder": "输入内容或 ${变量}",
|
||||
"description": "文件名称为空,将会自动生成文件名",
|
||||
"advanced": false,
|
||||
"description": "备用文件名;仅当「截图保存路径」为空时使用,留空则自动生成文件名",
|
||||
"advanced": true,
|
||||
"valueTypes": [
|
||||
"rpa_str"
|
||||
]
|
||||
|
||||
@ -190,8 +190,8 @@ register("Image_Screenshot", async (ctx, node, args) => {
|
||||
if (source === "2") {
|
||||
// 指定图片文件来源:image_path 为输入图片;输出走 输出目录+文件名,两者均未配置时直接返回源文件
|
||||
if (!imageArg.trim()) {
|
||||
throw new RuntimeError("validation_error", "图像来源为「指定图片文件」时,目标文件路径需填写源图片路径", {
|
||||
recommendation: "在目标文件路径选择一张已存在的图片,或将图像来源改回「当前屏幕」"
|
||||
throw new RuntimeError("validation_error", "图像来源为「指定图片文件」时,截图保存路径需填写源图片路径", {
|
||||
recommendation: "在截图保存路径选择一张已存在的图片,或将图像来源改回「当前屏幕」"
|
||||
});
|
||||
}
|
||||
const sourceFile = path.resolve(imageArg);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user