用户交互新增选择对话框,VarInput支持多选,新增CheckGroup组件

This commit is contained in:
fofolee
2025-01-09 16:37:41 +08:00
parent fe26f98809
commit 036b6fa934
14 changed files with 507 additions and 60 deletions

View File

@@ -6,6 +6,7 @@ const quickcomposer = {
network: require("./quickcomposer/network"),
coding: require("./quickcomposer/coding"),
math: require("./quickcomposer/math"),
ui: require("./quickcomposer/ui"),
};
module.exports = quickcomposer;

View File

@@ -0,0 +1,50 @@
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

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