-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathcomponent.html
52 lines (48 loc) · 1.43 KB
/
component.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<!DOCTYPE html>
<html>
<head>
<title>虚拟DOM测试</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="avalon.js"></script>
</head>
<body ms-controller="test">
<div>{{aaa}}x{{bbb}}={{aaa * bbb}}</div>
<div ms-text="ccc">ccc</div>
<div>222{{ddd|html}}333</div>
<div ms-html="ddd">sdfdfdf</div>
<div ms-repeat="array">{{el}}</div>
<script>
avalon.VTree = {
nodeName:"html",
expr: "html",
children: [
{
nodeName:"body",
expr: "body",
children: [
{
nodeName:"div",
expr: "vid" //由于父亲不是组件,
children:[
{
component: true,
expr: "div{v-html0}"
signature: "v-html0",
children:{
{},{},{
component: true,
expr: "div{v-html0}{v-text0}"
signature: "v-text0",
}
}
}
]
}
]
}
]
}
</script>
</body>
</html>