修改DNS组件

This commit is contained in:
fofolee
2025-01-07 18:19:25 +08:00
parent a13580d53f
commit 807da38e2e
7 changed files with 221 additions and 251 deletions

View File

@@ -36,9 +36,15 @@ export default defineComponent({
},
// 通用参数配置
commonConfig() {
return this.modelValue.config || [];
return (
// 过滤掉特定函数排除的参数, excludeConfig格式为[要排除的参数索引]
this.modelValue.config?.filter(
(_, index) =>
!this.getSelectFunction()?.excludeConfig?.includes(index)
) || []
);
},
// 特定函数独有参数配置
// 特定函数独有参数配置config格式和通用的config一致
functionConfig() {
return this.getSelectFunction()?.config || [];
},