12345678910111213141516 |
- <div style="padding:3px 0;">
- <a ng-class="{ true: 'condition-selected', false: 'condition' }[selected.length == 0 || null == selected]"
- ng-click="selected = []">全部</a>
- <a style="cursor:pointer" ng-click="transfer()"><i class="glyphicon glyphicon-refresh" title="反选"></i></a>
- <table ng-hide="hide">
- <tr ng-repeat="row in rowList" ng-show="(!defaultCount || isShowAll || $index==0) && !hide">
- <td ng-repeat="item in row">
- <a ng-class="{ true: 'condition-selected', false: 'condition' }[isExists(item[valueField])]"
- ng-click="onClick(item[valueField])" ng-show="(!defaultCount || isShowAll || $index<limit) && !hide">{{item[textField]}}</a>
- </td>
- </tr>
- </table>
- <a ng-hide="!hide" ng-repeat="item in sourceList" ng-class="{ true: 'condition-selected', false: 'condition' }[isExists(item[valueField])]"
- ng-click="onClick(item[valueField])" ng-show="(!defaultCount || isShowAll || $index<limit) && hide">{{item[textField]}}</a>
- <a ng-show="defaultCount && (sourceList.length > limit)" class="right" ng-click="isShowAll = !isShowAll">{{showText}}</a>
- </div>
|