mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-12-17 17:24:27 +08:00
automation实现inspect元素
This commit is contained in:
@@ -85,7 +85,9 @@ export default {
|
||||
},
|
||||
// 判断是否是转为表格的结果,表格结果不需要换行,第二行一般包含分隔符---
|
||||
isTable() {
|
||||
return this.runResult?.[0]?.split("\n")?.[1]?.includes("---");
|
||||
const result = this.runResult?.[0];
|
||||
if (typeof result !== "string") return false;
|
||||
return result.split("\n")?.[1]?.includes("---");
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
|
||||
@@ -37,13 +37,7 @@ export default defineComponent({
|
||||
},
|
||||
// 通用参数配置
|
||||
commonConfig() {
|
||||
return (
|
||||
// 过滤掉特定函数排除的参数, excludeConfig格式为[要排除的参数索引]
|
||||
this.modelValue.config?.filter(
|
||||
(_, index) =>
|
||||
!this.getSelectSubCommand()?.excludeConfig?.includes(index)
|
||||
) || []
|
||||
);
|
||||
return this.modelValue.config || [];
|
||||
},
|
||||
// 特定函数独有参数配置,config格式和通用的config一致
|
||||
subCommandConfig() {
|
||||
|
||||
Reference in New Issue
Block a user