Precipitate host contracts from task-plaza: visibleWhen equalsFrom, replaces gates, url openExternal, feishu data-sources (v1.0.128)
All checks were successful
技能自动化发布 / release (push) Successful in 14s
All checks were successful
技能自动化发布 / release (push) Successful in 14s
This commit is contained in:
@@ -91,7 +91,7 @@
|
||||
"type": ["string", "number", "boolean"]
|
||||
},
|
||||
"visibleWhenRule": {
|
||||
"description": "条件显隐规则。支持 {field,equals} / {field,in:[...]},或单键简写 {status:\"approved\"} / {status:[\"a\",\"b\"]}。",
|
||||
"description": "条件显隐规则。支持 {field,equals} / {field,in} / {field,equalsFrom} / {field,notEqualsFrom} / {all:[...]} / {any:[...]},或单键简写 {status:\"approved\"} / {status:[\"a\",\"b\"]}。",
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "object",
|
||||
@@ -115,6 +115,56 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"required": ["field", "equalsFrom"],
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"field": { "type": "string", "minLength": 1 },
|
||||
"equalsFrom": {
|
||||
"type": "string",
|
||||
"enum": ["currentUser.userId", "currentUser.username"],
|
||||
"description": "与宿主当前用户上下文比较(与 data-sources columns.defaultValueFrom 同键族)。"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"required": ["field", "notEqualsFrom"],
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"field": { "type": "string", "minLength": 1 },
|
||||
"notEqualsFrom": {
|
||||
"type": "string",
|
||||
"enum": ["currentUser.userId", "currentUser.username"],
|
||||
"description": "字段值不等于宿主当前用户上下文时才显示。"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"required": ["all"],
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"all": {
|
||||
"type": "array",
|
||||
"minItems": 1,
|
||||
"items": { "$ref": "#/$defs/visibleWhenRule" }
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"required": ["any"],
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"any": {
|
||||
"type": "array",
|
||||
"minItems": 1,
|
||||
"items": { "$ref": "#/$defs/visibleWhenRule" }
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"minProperties": 1,
|
||||
|
||||
Reference in New Issue
Block a user