fix layout

This commit is contained in:
Timi
2026-10-22 12:14:03 +08:00
parent 135b69bc15
commit 2e91964a5d
+19 -37
View File
@@ -52,9 +52,9 @@
</div>
</template>
</t-navbar>
<main v-can="permissionCodes.store.read" class="page-content scroll list">
<main v-can="permissionCodes.store.read" class="page-content column scroll list">
<t-pull-down-refresh
class="list-wrapper pull-refresh"
class="pull-refresh"
v-model="isRefreshing"
:refresh-timeout="30000"
@refresh="refresh"
@@ -120,6 +120,7 @@ import StoreAPI from "@/api/StoreAPI";
import StoreRemoveDialog from "@/components/StoreRemoveDialog.vue";
import { gaoRoleCodes, permissionCodes } from "@/utils/permission";
import { getStoreStatusText, getStoreStatusTheme } from "@/utils/store";
import type { Store } from "@/types/Store";
const pageNavBarActionVisible = ref(false);
const pageNavBarActionList = computed<NavBarAction[]>(() => (unref(actionList) as NavBarAction[]).filter(action => action.visible !== false));
@@ -129,8 +130,6 @@ async function handlePageNavBarAction(action: NavBarAction): Promise<void> {
await action.action();
}
import type { Store } from "@/types/Store";
defineOptions({
name: "StoreList"
});
@@ -309,42 +308,21 @@ onUnmounted(() => {
<style scoped lang="less">
.store-list {
gap: .75rem;
display: grid;
padding: calc(var(--app-nav-height) + 1rem) 0 1rem 0;
.list-wrapper {
min-height: 50vh;
.item {
.item {
.header {
gap: .5rem;
display: flex;
min-width: 0;
align-items: center;
}
:deep(.t-cell__title) {
flex: 1 1 0;
min-width: 0;
overflow: hidden;
}
.header {
gap: .5rem;
display: flex;
overflow: hidden;
min-width: 0;
align-items: center;
}
.description {
display: flex;
flex-direction: column;
}
.delete {
height: 100%;
padding: 0 1rem;
border-radius: 0;
}
.description {
display: flex;
flex-direction: column;
}
}
}
:global(html.theme-dark) {
@@ -376,9 +354,13 @@ onUnmounted(() => {
align-items: center;
justify-content: flex-end;
:deep(.t-popover__content) { border-radius: .875rem; }
:deep(.t-popover__content) {
border-radius: .875rem;
}
.trigger { padding: 0; }
.trigger {
padding: 0;
}
.menu {
gap: .25rem;