mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-09-24 04:53:31 +08:00
优化ArrayDict/DictEditor参数传递,修复formatString处理Array时的BUG
This commit is contained in:
@@ -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,
|
||||
};
|
@@ -1,6 +0,0 @@
|
||||
const { showSaveDialog, showOpenDialog } = require("./dialog");
|
||||
|
||||
module.exports = {
|
||||
showSaveDialog,
|
||||
showOpenDialog,
|
||||
};
|
Reference in New Issue
Block a user