优化ArrayDict/DictEditor参数传递,修复formatString处理Array时的BUG

This commit is contained in:
fofolee
2025-01-10 18:54:11 +08:00
parent 41b3501945
commit 5e70c4c9a0
10 changed files with 372 additions and 371 deletions

View File

@@ -1,50 +0,0 @@
const showSaveDialog = (
title,
defaultPath,
buttonLabel,
message,
extensions,
properties
) => {
return window.utools.showSaveDialog({
title,
defaultPath,
buttonLabel,
message,
properties,
filters: [
{
name: "文件",
extensions,
},
],
});
};
const showOpenDialog = (
title,
defaultPath,
buttonLabel,
message,
extensions,
properties
) => {
return window.utools.showOpenDialog({
title,
defaultPath,
buttonLabel,
message,
properties,
filters: [
{
name: "文件",
extensions,
},
],
});
};
module.exports = {
showSaveDialog,
showOpenDialog,
};

View File

@@ -1,6 +0,0 @@
const { showSaveDialog, showOpenDialog } = require("./dialog");
module.exports = {
showSaveDialog,
showOpenDialog,
};