统一VarInput变量的管理

This commit is contained in:
fofolee
2025-01-08 14:39:08 +08:00
parent b528cfa97d
commit 7a43695e2d
24 changed files with 190 additions and 516 deletions

View File

@@ -383,6 +383,7 @@ import { defineComponent } from "vue";
import VariableInput from "components/composer/common/VariableInput.vue";
import NumberInput from "components/composer/common/NumberInput.vue";
import { stringifyArgv, parseFunction } from "js/composer/formatString";
import { newVarInputVal } from "js/composer/varInputValManager";
// 静态选项数据
const ENCODING_OPTIONS = [
@@ -463,11 +464,7 @@ export default defineComponent({
manageOperationOptions: MANAGE_OPERATION_OPTIONS,
defaultArgvs: {
operation: "read",
filePath: {
value: "",
isString: true,
__varInputVal__: true,
},
filePath: newVarInputVal("str"),
encoding: "utf8",
readMode: "all",
readFlag: "async",