fix CustomerDataCharts.vue style

This commit is contained in:
Timi
2026-10-30 11:54:25 +08:00
parent 98e14f318b
commit 267149868c
2 changed files with 119 additions and 118 deletions
+21 -21
View File
@@ -73,27 +73,6 @@ html.theme-dark body {
} }
} }
.pull-refresh {
flex: 1;
min-height: 0;
overflow-x: hidden;
overflow-y: auto;
padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 1rem);
-webkit-overflow-scrolling: touch;
.t-pull-down-refresh__track {
height: auto;
min-height: 100%;
}
&.has-dropdown-menu-navbar {
.t-pull-down-refresh__track {
// 覆盖 TDesign 展开菜单时写入的 overflow:hidden,避免 track 成为 sticky 的滚动容器。
overflow: visible !important;
}
}
.filters { .filters {
--td-search-bg-color: var(--tui-white); --td-search-bg-color: var(--tui-white);
--td-search-square-radius: 1rem; --td-search-square-radius: 1rem;
@@ -133,6 +112,27 @@ html.theme-dark body {
border-radius: 0 0 1rem 1rem; border-radius: 0 0 1rem 1rem;
} }
} }
.pull-refresh {
flex: 1;
min-height: 0;
overflow-x: hidden;
overflow-y: auto;
padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 1rem);
-webkit-overflow-scrolling: touch;
.t-pull-down-refresh__track {
height: auto;
min-height: 100%;
}
&.has-dropdown-menu-navbar {
.t-pull-down-refresh__track {
// 覆盖 TDesign 展开菜单时写入的 overflow:hidden,避免 track 成为 sticky 的滚动容器。
overflow: visible !important;
}
}
} }
} }
+6 -5
View File
@@ -1,4 +1,5 @@
<template> <template>
<div class="page-layout navbar customer-data-charts-page">
<t-navbar <t-navbar
fixed fixed
:z-index="20" :z-index="20"
@@ -6,7 +7,7 @@
left-arrow left-arrow
@left-click="$router.back()" @left-click="$router.back()"
/> />
<div v-can="permissionCodes.stat.read" class="customer-data-charts-page"> <main v-can="permissionCodes.stat.read" class="page-content scroll column">
<div class="filters glass"> <div class="filters glass">
<t-input <t-input
v-model="customerCode" v-model="customerCode"
@@ -81,6 +82,7 @@
@change="handleCustomerSelected" @change="handleCustomerSelected"
/> />
</div> </div>
</main>
</div> </div>
</template> </template>
@@ -285,11 +287,10 @@ function getDateEnd(date: Date): Date {
<style scoped lang="less"> <style scoped lang="less">
.customer-data-charts-page { .customer-data-charts-page {
gap: 1rem;
padding: var(--app-nav-height) 0 1rem 0;
display: flex;
flex-direction: column;
.filters {
margin-bottom: 0;
}
.customer { .customer {
margin: 0 1rem; margin: 0 1rem;