SetterOption 设置器枚举选项
1. 结构声明
- TS Declaration
- JSON Schema
class SetterOption extends BaseNode {
value: string;
title: string;
icon?: string;
tooltip?: string;
tsIf?: TSExpression<'(target: T) => boolean'>;
tsDisabledIf?: TSExpression<'(target: T) => boolean'>;
}
{
"type": "object",
"properties": {
"composedBy": {
"type": "array",
"items": {
"type": "string"
}
},
"changedTime": {
"$ref": "#/definitions/long"
},
"value": {
"type": "string"
},
"title": {
"type": "string"
},
"icon": {
"type": "string"
},
"tooltip": {
"type": "string"
},
"tsIf": {
"$ref": "#/definitions/TSExpression%3C%22(target%3A%20T)%20%3D%3E%20boolean%22%3E"
},
"tsDisabledIf": {
"$ref": "#/definitions/TSExpression%3C%22(target%3A%20T)%20%3D%3E%20boolean%22%3E"
}
},
"required": [
"value",
"title"
],
"additionalProperties": false
}