诸多优化
This commit is contained in:
@@ -341,7 +341,7 @@ const drawerDataList = ref<DrawerItem[]>([]);
|
||||
// 抽屉分页配置
|
||||
const drawerPagination = reactive({
|
||||
current: 1,
|
||||
pageSize: 20,
|
||||
pageSize: 10,
|
||||
total: 0,
|
||||
loading: false,
|
||||
hasMore: true, // 是否还有更多数据
|
||||
@@ -431,6 +431,8 @@ const loadDrawerData = () => {
|
||||
.CatePageList({
|
||||
cookieId: cookieId.value,
|
||||
cateType: cateType.value,
|
||||
pageIndex: drawerPagination.current,
|
||||
pageSize: drawerPagination.pageSize,
|
||||
})
|
||||
.then((res) => {
|
||||
if (res.code === 0) {
|
||||
@@ -1111,4 +1113,64 @@ html.dark-mode .drawer-card-container.grid-container .drawer-card-grid .ant-inpu
|
||||
.ant-alert-warning .ant-alert-icon {
|
||||
color: #faad14;
|
||||
}
|
||||
|
||||
// 抽屉滚动容器样式(核心修复)
|
||||
.drawer-scroll-container {
|
||||
width: 100%;
|
||||
height: calc(100vh - 120px); // 关键:固定高度,确保能滚动
|
||||
overflow-y: auto; // 开启垂直滚动
|
||||
overflow-x: hidden; // 隐藏水平滚动
|
||||
padding: 0 8px;
|
||||
box-sizing: border-box;
|
||||
|
||||
// 滚动条样式优化(可选)
|
||||
&::-webkit-scrollbar {
|
||||
width: 6px;
|
||||
}
|
||||
&::-webkit-scrollbar-track {
|
||||
background: transparent;
|
||||
}
|
||||
&::-webkit-scrollbar-thumb {
|
||||
background: rgba(0, 0, 0, 0.1);
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
// 黑暗模式滚动条
|
||||
html.dark-mode &::-webkit-scrollbar-thumb {
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
}
|
||||
}
|
||||
|
||||
// 加载中样式
|
||||
.drawer-loading {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
height: 200px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.loading-more {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
padding: 16px 0;
|
||||
font-size: 12px;
|
||||
color: rgba(0, 0, 0, 0.6);
|
||||
|
||||
html.dark-mode & {
|
||||
color: rgba(255, 255, 255, 0.6);
|
||||
}
|
||||
}
|
||||
|
||||
.no-more-data {
|
||||
text-align: center;
|
||||
padding: 16px 0;
|
||||
font-size: 12px;
|
||||
color: rgba(0, 0, 0, 0.45);
|
||||
|
||||
html.dark-mode & {
|
||||
color: rgba(255, 255, 255, 0.45);
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -14,10 +14,10 @@
|
||||
</a-form-item>
|
||||
|
||||
<a-form-item has-feedback label="单次最多" name="BatchCount" :wrapper-col="{ span: 20 }">
|
||||
<a-input-number v-model:value="formState.BatchCount" placeholder="请输入每次下载数量上限(最大30)" :min="10" :max="30" />
|
||||
<a-input-number v-model:value="formState.BatchCount" placeholder="请输入每次下载数量上限(最大40)" :min="10" :max="40" />
|
||||
<div class="flex items-start mt-1 text-sm text-gray-500">
|
||||
<InfoCircleOutlined class="text-blue-400 mr-1 mt-0.5" />
|
||||
<span>每次任务最多下载数量:10-30,拉取视频数据超出该值将会等待下次任务执行。</span>
|
||||
<span>每次任务最多下载数量:10-40,拉取视频数据超出该值将会等待下次任务执行。</span>
|
||||
</div>
|
||||
</a-form-item>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user