Merge branch 'dev' into runny827
feat(training): 新增精益培训视频与周任务管理 # Conflicts: # backend/app/models/__init__.py
This commit is contained in:
1 parent
85d27e9ffa
commit
91b7233872
812 files changed
+73763
-18908
No files matched your search
@@ -4,6 +4,7 @@
|
||||
* 用途:通用偏移分页条(摘要、每页条数、页码按钮)。
|
||||
* 依赖:buildOffsetPageButtons、common.pagination i18n、components-ds 样式类。
|
||||
* 逻辑:父组件 v-model:page / v-model:page-size,服务端或客户端分页均可复用。
|
||||
* 每页条数用自定义 SVG 箭头,并隐藏系统原生/::picker-icon,避免 Windows 下双箭头。
|
||||
*/
|
||||
import { computed } from 'vue';
|
||||
import { useI18n } from 'vue-i18n';
|
||||
@@ -95,10 +96,10 @@ const onPageSizeChange = (size: number): void => {
|
||||
<div class="flex flex-wrap items-center gap-2">
|
||||
<label class="flex items-center gap-2 text-xs text-secondary">
|
||||
<span>{{ t('common.pagination.perPage') }}</span>
|
||||
<span class="relative inline-flex items-center">
|
||||
<span class="pagination-page-size relative inline-flex items-center">
|
||||
<select
|
||||
:value="pageSize"
|
||||
class="admin-table-filter-input appearance-none pl-2 pr-7 py-1 text-xs leading-5"
|
||||
class="admin-table-filter-input appearance-none bg-none pl-2 pr-7 py-1 text-xs leading-5"
|
||||
@change="onPageSizeChange(Number(($event.target as HTMLSelectElement).value))"
|
||||
>
|
||||
<option v-for="size in pageSizeOptions" :key="`page-size-${size}`" :value="size">
|
||||
@@ -154,3 +155,25 @@ const onPageSizeChange = (size: number): void => {
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
/**
|
||||
* 隐藏系统原生下拉箭头(含 Chromium ::picker-icon / Edge ::-ms-expand)。
|
||||
* 只保留模板里的自定义 SVG,避免 Windows 下两个箭头叠在一起。
|
||||
*/
|
||||
.pagination-page-size select {
|
||||
-webkit-appearance: none;
|
||||
-moz-appearance: none;
|
||||
appearance: none;
|
||||
background-image: none;
|
||||
}
|
||||
|
||||
.pagination-page-size select::-ms-expand {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.pagination-page-size select::picker-icon {
|
||||
display: none;
|
||||
content: none;
|
||||
}
|
||||
</style>
|
||||
Reference in new issue
Block a user