fix store list style

This commit is contained in:
Timi
2026-08-12 17:07:53 +08:00
parent a02fa239c2
commit 44a6153413
+5 -3
View File
@@ -1,6 +1,7 @@
<template> <template>
<div v-can="permissionCodes.store.read" class="store-list"> <div v-can="permissionCodes.store.read" class="store-list">
<t-pull-down-refresh <t-pull-down-refresh
class="list-wrapper"
v-model="isRefreshing" v-model="isRefreshing"
:refresh-timeout="30000" :refresh-timeout="30000"
@refresh="refresh" @refresh="refresh"
@@ -100,7 +101,6 @@ async function fetch(): Promise<void> {
if (isLoading.value || isNoMore.value) { if (isLoading.value || isNoMore.value) {
return; return;
} }
isLoading.value = true; isLoading.value = true;
try { try {
const result = await StoreAPI.list(page); const result = await StoreAPI.list(page);
@@ -121,7 +121,6 @@ async function exportExcel(): Promise<void> {
if (isExporting.value) { if (isExporting.value) {
return; return;
} }
isExporting.value = true; isExporting.value = true;
try { try {
const blob = await StoreAPI.exportXSSF({ const blob = await StoreAPI.exportXSSF({
@@ -140,7 +139,6 @@ async function toEdit(item: Store): Promise<void> {
if (!item.id) { if (!item.id) {
return; return;
} }
await router.push(`/management/stores/${item.id}`); await router.push(`/management/stores/${item.id}`);
} }
@@ -169,6 +167,9 @@ onUnmounted(() => {
display: grid; display: grid;
padding: calc(var(--app-nav-height) + 1rem) 0 6rem 0; padding: calc(var(--app-nav-height) + 1rem) 0 6rem 0;
.list-wrapper {
min-height: 50vh;
.item { .item {
.header { .header {
@@ -182,6 +183,7 @@ onUnmounted(() => {
flex-direction: column; flex-direction: column;
} }
} }
}
.actions { .actions {
gap: .75rem; gap: .75rem;