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的.
上面代码渲染结果:
图片描述

阅读 2.6k
1 个回答

升级一下就好了!

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进