fix: 调整分页信息样式,修改间距并优化代码结构
This commit is contained in:
@@ -321,10 +321,8 @@
|
|||||||
.pagination-info {
|
.pagination-info {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
gap: 8px;
|
||||||
gap: 16px;
|
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
padding: 12px 16px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.pagination-text {
|
.pagination-text {
|
||||||
|
|||||||
@@ -199,23 +199,24 @@
|
|||||||
<button class="export-option" role="menuitem" onclick="exportData('excel')">导出 Excel</button>
|
<button class="export-option" role="menuitem" onclick="exportData('excel')">导出 Excel</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- 分页信息 -->
|
||||||
|
<div class="pagination-info">
|
||||||
|
<span class="pagination-text">
|
||||||
|
显示 {{.StartRecord}} - {{.EndRecord}} / {{.Total}} 条记录
|
||||||
|
</span>
|
||||||
|
<select class="per-page-select"
|
||||||
|
onchange="changePerPage(this.value)"
|
||||||
|
aria-label="每页显示条数">
|
||||||
|
<option value="10" {{if eq .PerPage 10}}selected{{end}}>10 条/页</option>
|
||||||
|
<option value="25" {{if eq .PerPage 25}}selected{{end}}>25 条/页</option>
|
||||||
|
<option value="50" {{if eq .PerPage 50}}selected{{end}}>50 条/页</option>
|
||||||
|
<option value="100" {{if eq .PerPage 100}}selected{{end}}>100 条/页</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 分页信息 -->
|
|
||||||
<div class="pagination-info">
|
|
||||||
<span class="pagination-text">
|
|
||||||
显示 {{.StartRecord}} - {{.EndRecord}} / {{.Total}} 条记录
|
|
||||||
</span>
|
|
||||||
<select class="per-page-select"
|
|
||||||
onchange="changePerPage(this.value)"
|
|
||||||
aria-label="每页显示条数">
|
|
||||||
<option value="10" {{if eq .PerPage 10}}selected{{end}}>10 条/页</option>
|
|
||||||
<option value="25" {{if eq .PerPage 25}}selected{{end}}>25 条/页</option>
|
|
||||||
<option value="50" {{if eq .PerPage 50}}selected{{end}}>50 条/页</option>
|
|
||||||
<option value="100" {{if eq .PerPage 100}}selected{{end}}>100 条/页</option>
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<!-- 主内容区域 -->
|
<!-- 主内容区域 -->
|
||||||
|
|||||||
Reference in New Issue
Block a user