2016-03-01 108 views

回答

0

我没有太多的时间看这个,但看来你的问题就在这里:

<tr ng-repeat-start="state in country.states | filter:{stateCode:stateCodeFilter}" ng-if="false"></tr> 

<tr ng-repeat="city in filteredMappings = (state.cities | filter:{category:categoryCodeFilter})"> 

    <th ng-if="$parent.$first && $first" rowspan="{{country.rowSpan}}"> 
     {{country.countryCode}} 
    </th> 

$父$第一设置为false,在过滤器的使用情况,因为$ parent。$ first是未过滤国家/地区列表中的第一个项目,但您从未在第二个中继器中找到此项目,因为它已被过滤器删除。这导致行中的第一个单元格被隐藏,因此整个表格设计正在变形。

我现在没有任何快速解决方案,但是如果我找到一些时间,我会稍后再看看。希望它至少帮助你一点。