fix(admin): 成员面板分页器去除原生箭头并将表头 sticky 下沉到 th
This commit is contained in:
1 parent
2cee02bec1
commit
ace836c1af
1 file changed
+9
-6
@@ -270,13 +270,14 @@ onMounted(() => {
|
|||||||
<col class="w-[18%]" />
|
<col class="w-[18%]" />
|
||||||
<col class="w-[16%]" />
|
<col class="w-[16%]" />
|
||||||
</colgroup>
|
</colgroup>
|
||||||
<thead class="text-xs text-muted sticky top-0 z-10 admin-table-sticky-head">
|
<!-- sticky 放在 th 上(thead 级 sticky 在部分浏览器不生效,行会从表头上方滚出) -->
|
||||||
|
<thead class="text-xs text-muted">
|
||||||
<tr>
|
<tr>
|
||||||
<th class="px-5 py-3 text-left font-medium">{{ t('admin.dept.members.columns.name') }}</th>
|
<th class="px-5 py-3 text-left font-medium sticky top-0 z-10 admin-table-sticky-head">{{ t('admin.dept.members.columns.name') }}</th>
|
||||||
<th class="px-5 py-3 text-left font-medium">{{ t('admin.dept.members.columns.contact') }}</th>
|
<th class="px-5 py-3 text-left font-medium sticky top-0 z-10 admin-table-sticky-head">{{ t('admin.dept.members.columns.contact') }}</th>
|
||||||
<th class="px-5 py-3 text-left font-medium">{{ t('admin.dept.members.columns.employeeId') }}</th>
|
<th class="px-5 py-3 text-left font-medium sticky top-0 z-10 admin-table-sticky-head">{{ t('admin.dept.members.columns.employeeId') }}</th>
|
||||||
<th class="px-5 py-3 text-left font-medium">{{ t('admin.dept.members.columns.department') }}</th>
|
<th class="px-5 py-3 text-left font-medium sticky top-0 z-10 admin-table-sticky-head">{{ t('admin.dept.members.columns.department') }}</th>
|
||||||
<th class="px-5 py-3 text-left font-medium">{{ t('admin.dept.members.columns.status') }}</th>
|
<th class="px-5 py-3 text-left font-medium sticky top-0 z-10 admin-table-sticky-head">{{ t('admin.dept.members.columns.status') }}</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@@ -310,8 +311,10 @@ onMounted(() => {
|
|||||||
<span>{{ t('admin.dept.members.total', { total: memberData.total }) }}</span>
|
<span>{{ t('admin.dept.members.total', { total: memberData.total }) }}</span>
|
||||||
<div class="flex items-center gap-2">
|
<div class="flex items-center gap-2">
|
||||||
<div class="relative">
|
<div class="relative">
|
||||||
|
<!-- appearance:none 同时写内联样式,防止工具类未命中时原生箭头与自绘箭头重叠 -->
|
||||||
<select
|
<select
|
||||||
:value="memberPageSize"
|
:value="memberPageSize"
|
||||||
|
style="appearance: none; -webkit-appearance: none; -moz-appearance: none;"
|
||||||
class="admin-table-filter-input py-1.5 pl-3 pr-8 appearance-none"
|
class="admin-table-filter-input py-1.5 pl-3 pr-8 appearance-none"
|
||||||
@change="setMemberPageSize(Number(($event.target as HTMLSelectElement).value))"
|
@change="setMemberPageSize(Number(($event.target as HTMLSelectElement).value))"
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in new issue
Block a user