Skip to content

Commit 8fa49c8

Browse files
committed
update
1 parent 5512c42 commit 8fa49c8

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

perf/widget/index3.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<div ms-controller='widget1' >
1010
<ms-button ms-attr="{title:@t}">{{@aaa}}</ms-button>
1111
</div>
12-
<h1>你会看到111</h1>
12+
<h1>你会看到111, 注意ms-attr会绑不上</h1>
1313
<script type="text/javascript">
1414
avalon.component('ms-button', {
1515
template: '<button type="button" ><span><slot /></span></button>',

perf/widget/index4.html

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ <h1>你会看到111,然后又变成222</h1>
2323
aaa: 111
2424
})
2525
setTimeout(function(){
26+
console.log('0000')
2627
vm.aaa = 222
2728
},2000)
2829

perf/widget/index5.html

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
</head>
88
<body>
99
<div ms-controller='widget1' >
10-
<ms-button ms-if="@bbb">{{@aaa}}</ms-button>
10+
<div ms-if="@bbb">
11+
<ms-button >{{@aaa}}</ms-button>
12+
</div>
1113
<p ms-attr='{title:@ddd}'>这个元素不受影响</p>
1214
</div>
1315
<h1>使用ms-if, 开始看不见, 后来又出现 </h1>

0 commit comments

Comments
 (0)