Skip to main content
Version: 3.7

BindStyle 元素绑定样式

1. 结构声明

class BindStyle extends BaseNode {
name: string = '';
expression: LogicItem;
playground: Array<LogicItem>;
}

2. 节点示例

(1) 示例

AST 如下:

{
"concept": "BindStyle",
"name": "background-color",
"expression": {
"concept": "Identifier",
"namespace": "",
"name": "bgColor"
},
"playground": []
}

对应的代码如下:

\`background-color\`: bgColor