首页加横线区分分类

This commit is contained in:
lcq 2021-12-25 00:05:39 +08:00
parent 7b0ed143d4
commit 27f1ccdb1a
2 changed files with 7 additions and 2 deletions

View File

@ -88,6 +88,11 @@ app.controller('tagsCtr', ['$scope', '$filter', '$state', '$window', '$statePara
clearInterval(id); clearInterval(id);
} }
}, 10); }, 10);
} else if ($scope.showMode == 'item' && bookmarks.length == $scope.pageSize) {
$timeout(() => {
$("#" + bookmarks[bookmarks.length * 2 / 5 - 1].id).after(`<div class="ui divider" style="width:100%;margin:0px 15px"></div>`);
$("#" + bookmarks[bookmarks.length * 4 / 5 - 1].id).after(`<div class="ui divider" style="width:100%;margin:0px 15px"></div>`);
}, 100);
} }
$timeout(function () { $timeout(function () {

View File

@ -49,7 +49,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="ui huge text centered inline loader" style="margin: 10px 0px;" ng-class="{active:loading, disabled: !loading}">正在加载中...</div> <div class="ui huge text centered inline loader" style="margin: 10px 0px" ng-class="{active:loading, disabled: !loading}">正在加载中...</div>
<table class="ui selectable sortable celled table js-tags-table" ng-if="showMode=='table'" style="margin-top: -15px" ng-show="!loading && !editMode"> <table class="ui selectable sortable celled table js-tags-table" ng-if="showMode=='table'" style="margin-top: -15px" ng-show="!loading && !editMode">
<thead> <thead>
<tr> <tr>
@ -104,7 +104,7 @@
<span ng-if="(currentPage!=0) || ($index!=0 && $index!=pageSize*2/5 && $index!=pageSize*4/5)">{{bookmark.title}}</span> <span ng-if="(currentPage!=0) || ($index!=0 && $index!=pageSize*2/5 && $index!=pageSize*4/5)">{{bookmark.title}}</span>
</div> </div>
</div> </div>
<div class="ui divider"></div> <div class="ui divider" style="width:100%;margin:14px 15px"></div>
<div class="ui grid"> <div class="ui grid">
<div class="five wide column" style="margin-top: 10px" ng-show="currentPage>0"> <div class="five wide column" style="margin-top: 10px" ng-show="currentPage>0">
<div class="ui three column grid" style="cursor: default"> <div class="ui three column grid" style="cursor: default">