mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-12-23 02:33:33 +08:00
统一VarInput变量的管理
This commit is contained in:
@@ -132,6 +132,7 @@
|
||||
<script>
|
||||
import { defineComponent } from "vue";
|
||||
import { parseFunction, stringifyArgv } from "js/composer/formatString";
|
||||
import { newVarInputVal } from "js/composer/varInputValManager";
|
||||
import VariableInput from "components/composer/common/VariableInput.vue";
|
||||
import NumberInput from "components/composer/common/NumberInput.vue";
|
||||
import DictEditor from "components/composer/common/DictEditor.vue";
|
||||
@@ -164,30 +165,18 @@ export default defineComponent({
|
||||
{ label: "Base64", value: "base64" },
|
||||
],
|
||||
defaultArgvs: {
|
||||
command: {
|
||||
value: "",
|
||||
isString: true,
|
||||
__varInputVal__: true,
|
||||
command: newVarInputVal("str"),
|
||||
},
|
||||
options: {
|
||||
cwd: {
|
||||
value: "",
|
||||
isString: true,
|
||||
__varInputVal__: true,
|
||||
},
|
||||
cwd: newVarInputVal("str"),
|
||||
env: {},
|
||||
autoEncoding: true,
|
||||
encoding: "buffer",
|
||||
timeout: 0,
|
||||
maxBuffer: 1024 * 1024, // 1MB
|
||||
shell: {
|
||||
value: "",
|
||||
isString: true,
|
||||
__varInputVal__: true,
|
||||
},
|
||||
windowsHide: true,
|
||||
},
|
||||
},
|
||||
shell: newVarInputVal("str"),
|
||||
windowsHide: true,
|
||||
},
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
|
||||
Reference in New Issue
Block a user