Skip to main content
Version: 3.4

BindDirective 元素指令

下个版本迁移为 BindDirective。

1. 结构声明

class BindDirective extends BaseNode {
name: string = '';
rawName?: string;
type: 'string' | 'static' | 'dynamic';
value?: string;
expression?: LogicItem;
arg?: string;
modifiers?: string;
playground: Array<LogicItem>;
i18nKey: string;
}

2. 节点示例

(1) 示例

AST 如下:

{
"concept": "BindDirective",
"name": "if",
"type": "dynamic",
"expression": {
"concept": "Identifier",
"namespace": "",
"name": "visible"
},
"playground": []
}