首页 > avalon 渲染BUG ?

avalon 渲染BUG ?

avalon-version:built in 2016-8-9:11 version 2.111 by 司徒正美
chrome: 52.0.2743.116 m

<!doctype html>
<html lang="en">
 <head>
  <meta charset="UTF-8">
  <meta name="Generator" content="EditPlus®">
  <meta name="Author" content="">
  <meta name="Keywords" content="">
  <meta name="Description" content="">
  <title>Document</title>
  <script src="avalon.js"></script>
 </head>
 <body :controller="content">
      <table>
        <thead>
            <tr>
                <th>1</th>
                <th>2</th>
                <th>3</th>
                <th>4</th>
                <th>5</th>
            </tr>
        </thead>

        <tbody>
            <tr :for="(i,e) in @data">
                <!-- 去掉这个正常 -->
                <td :text="i"></td>
                <td><input type="text" style="color:red"/></td>
                <td><input type="text"/></td>
                <td><input type="text"/></td>
                <!-- 或者xy改成字符长度!=2的也正常 -->
                <td>
                    <a href="###">xy</a>
                </td>
            </tr>
        </tbody>
    </table>


 </body>

 <script>
        vm = avalon.define({
            $id: 'content',
            data: [],
            search: function() {
                for(var i = 0; i < 10; i ++) {
                    vm.data.push({});
                }
            }
        });
        vm.$watch('onReady', function() {
            vm.search();
        });
 </script>
</html>

2,3,4列应该都是input的.
上面代码渲染结果:


升级一下就好了!

【热门文章】
【热门文章】