BindStyle 元素绑定样式
结构声明
- TS Declaration
- Java Class
- JSON Schema
interface BindStyle {
"concept": "BindStyle", // 产品概念
"name": string, // 元素绑定样式名称
"expression": LogicItem, // 属性表达式
"playground": Array<LogicItem>, // 草稿态
}
class BindStyleTreeNode {
ConceptEnum concept; // 产品概念
String name; // 元素绑定样式名称
LogicItemTreeNode expression; // 属性表达式
List<LogicItemTreeNode> playground; // 草稿态
}
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$ref": "#/definitions/BindStyle",
"definitions": {
"BindStyle": {
"type": "object",
"properties": {
"concept": {
"type": "string",
"const": "BindStyle"
},
"name": {
"type": "string"
},
"expression": {
"$ref": "#/definitions/LogicItem"
},
"playground": {
"type": "array",
"items": {
"$ref": "#/definitions/LogicItem"
}
}
},
"required": [
"concept",
"name",
"expression",
"playground"
],
"additionalProperties": false
}
}
}
示例
简单示例
- JSON
- YAML
{
"concept": "BindStyle",
"name": "text",
"expression": null,
"playground": []
}
concept: BindStyle
name: text
expression: null
playground: []