fix layout
This commit is contained in:
@@ -52,9 +52,9 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</t-navbar>
|
</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
|
<t-pull-down-refresh
|
||||||
class="list-wrapper pull-refresh"
|
class="pull-refresh"
|
||||||
v-model="isRefreshing"
|
v-model="isRefreshing"
|
||||||
:refresh-timeout="30000"
|
:refresh-timeout="30000"
|
||||||
@refresh="refresh"
|
@refresh="refresh"
|
||||||
@@ -120,6 +120,7 @@ import StoreAPI from "@/api/StoreAPI";
|
|||||||
import StoreRemoveDialog from "@/components/StoreRemoveDialog.vue";
|
import StoreRemoveDialog from "@/components/StoreRemoveDialog.vue";
|
||||||
import { gaoRoleCodes, permissionCodes } from "@/utils/permission";
|
import { gaoRoleCodes, permissionCodes } from "@/utils/permission";
|
||||||
import { getStoreStatusText, getStoreStatusTheme } from "@/utils/store";
|
import { getStoreStatusText, getStoreStatusTheme } from "@/utils/store";
|
||||||
|
import type { Store } from "@/types/Store";
|
||||||
|
|
||||||
const pageNavBarActionVisible = ref(false);
|
const pageNavBarActionVisible = ref(false);
|
||||||
const pageNavBarActionList = computed<NavBarAction[]>(() => (unref(actionList) as NavBarAction[]).filter(action => action.visible !== 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();
|
await action.action();
|
||||||
}
|
}
|
||||||
|
|
||||||
import type { Store } from "@/types/Store";
|
|
||||||
|
|
||||||
defineOptions({
|
defineOptions({
|
||||||
name: "StoreList"
|
name: "StoreList"
|
||||||
});
|
});
|
||||||
@@ -309,42 +308,21 @@ onUnmounted(() => {
|
|||||||
|
|
||||||
<style scoped lang="less">
|
<style scoped lang="less">
|
||||||
.store-list {
|
.store-list {
|
||||||
gap: .75rem;
|
|
||||||
display: grid;
|
|
||||||
padding: calc(var(--app-nav-height) + 1rem) 0 1rem 0;
|
|
||||||
|
|
||||||
.list-wrapper {
|
.item {
|
||||||
min-height: 50vh;
|
|
||||||
|
|
||||||
.item {
|
.header {
|
||||||
|
gap: .5rem;
|
||||||
|
display: flex;
|
||||||
|
min-width: 0;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
:deep(.t-cell__title) {
|
.description {
|
||||||
flex: 1 1 0;
|
display: flex;
|
||||||
min-width: 0;
|
flex-direction: column;
|
||||||
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;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
:global(html.theme-dark) {
|
:global(html.theme-dark) {
|
||||||
@@ -376,9 +354,13 @@ onUnmounted(() => {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: flex-end;
|
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 {
|
.menu {
|
||||||
gap: .25rem;
|
gap: .25rem;
|
||||||
|
|||||||
Reference in New Issue
Block a user