完善MECMAS21参数配置与分组交互
This commit is contained in:
1 parent
32f21f08ff
commit
be54070855
28 files changed
+3418
-202
No files matched your search
@@ -177,6 +177,63 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"parameterCondition": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"parameter",
|
||||
"values"
|
||||
],
|
||||
"properties": {
|
||||
"parameter": {
|
||||
"type": "string",
|
||||
"pattern": "^[A-Za-z][A-Za-z0-9_]*$"
|
||||
},
|
||||
"values": {
|
||||
"type": "array",
|
||||
"minItems": 1,
|
||||
"uniqueItems": true,
|
||||
"items": {
|
||||
"type": "number"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"parameterGroup": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"id",
|
||||
"label",
|
||||
"parameters",
|
||||
"order",
|
||||
"defaultExpanded"
|
||||
],
|
||||
"properties": {
|
||||
"id": {
|
||||
"$ref": "#/$defs/machineId"
|
||||
},
|
||||
"label": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
"parameters": {
|
||||
"type": "array",
|
||||
"minItems": 1,
|
||||
"uniqueItems": true,
|
||||
"items": {
|
||||
"type": "string",
|
||||
"pattern": "^[A-Za-z][A-Za-z0-9_]*$"
|
||||
}
|
||||
},
|
||||
"order": {
|
||||
"type": "integer"
|
||||
},
|
||||
"defaultExpanded": {
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
},
|
||||
"parameter": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
@@ -223,7 +280,8 @@
|
||||
"editor": {
|
||||
"enum": [
|
||||
"amesimGasReference",
|
||||
"amesimGasPropertyModel"
|
||||
"amesimGasPropertyModel",
|
||||
"choice"
|
||||
]
|
||||
},
|
||||
"options": {
|
||||
@@ -232,6 +290,13 @@
|
||||
"items": {
|
||||
"$ref": "#/$defs/parameterOption"
|
||||
}
|
||||
},
|
||||
"visibleWhen": {
|
||||
"type": "array",
|
||||
"minItems": 1,
|
||||
"items": {
|
||||
"$ref": "#/$defs/parameterCondition"
|
||||
}
|
||||
}
|
||||
},
|
||||
"allOf": [
|
||||
@@ -242,7 +307,10 @@
|
||||
],
|
||||
"properties": {
|
||||
"editor": {
|
||||
"const": "amesimGasPropertyModel"
|
||||
"enum": [
|
||||
"amesimGasPropertyModel",
|
||||
"choice"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -264,7 +332,10 @@
|
||||
],
|
||||
"properties": {
|
||||
"editor": {
|
||||
"const": "amesimGasPropertyModel"
|
||||
"enum": [
|
||||
"amesimGasPropertyModel",
|
||||
"choice"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -324,6 +395,13 @@
|
||||
"items": {
|
||||
"$ref": "#/$defs/parameter"
|
||||
}
|
||||
},
|
||||
"parameterGroups": {
|
||||
"type": "array",
|
||||
"minItems": 1,
|
||||
"items": {
|
||||
"$ref": "#/$defs/parameterGroup"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user