每个节点的格式:
{
attrs: [
{
dynamic: undefined,
start: 5,
end: 13,
name: 'id',
value: '"app"'
}
],
attrsList: [
{
start: 5,
end: 13,
name: 'id',
value: 'app'
},
{
end: 60
name: "@click"
start: 44
value: "{click}"
}
],
events: {
click: {
start: 44,
end: 60,
dynamic: false,
value: ''
}
},
attrsMap: {
class: 'container',
id: 'app'
@click: '{click}'
},
rawAttrsMap: {
class: {
start: 14,
end: 31,
name: 'class',
value: 'container'
},
id: {
start: 5,
end: 13,
name: 'id',
value: 'app'
}
}
start: 0,
end: 95,
children: [],
parent: undefined,
tag: 'div',
type: 1
}