使用ngRepeat
over items如何显示具有唯一层次结构的集合中的特定项目?<div>
我正在使用 CSS 框架 Bootstrap 3
假设我x
的集合中有项目,其中第一个y
总是按特定顺序排列,而其余的则(x-y)
回退到正常<div>
结构。以下是一些潜在结果的示例:
示例 1
<!-- Unique -->
<div class="row">
<div class="col col-lg-6">Item Text 0</div>
<div class="col col-lg-6">
<div class="row">
<div class="col col-lg-3">Item Text 1</div>
<div class="col col-lg-3">Item Text 2</div>
<div class="col col-lg-3">Item Text 3</div>
<div class="col col-lg-3">Item Text 4</div>
</div>
</div>
</div>
<!-- Remainder -->
<div class="row">
<div class="col col-lg-12">
<ul>
<li>Item Text 5</li>
<li>Item Text 6</li>
<li>Item Text 7</li>
<li>Item Text 8</li>
</ul>
</div>
</div>
示例 2
<!-- Unique -->
<div class="row">
<div class="col col-lg-8">Item Text 0</div>
<div class="col col-lg-4">
<div class="row">
<div class="col col-lg-12">Item Text 1</div>
<div class="col col-lg-12">Item Text 2</div>
</div>
</div>
</div>
<div class="row">
<div class="col col-lg-4">Item Text 3</div>
<div class="col col-lg-4">Item Text 4</div>
<div class="col col-lg-4">Item Text 5</div>
</div>
<!-- Remainder -->
<div class="row">
<div class="col col-lg-12">
<ul>
<li>Item Text 6</li>
<li>Item Text 7</li>
<li>Item Text 8</li>
</ul>
</div>
</div>