Skip to content

The open source simple and complete warehouse management system is derived from our many years of experience in implementing erp projects. We stripped the original commercial system wms function and opened it up for free, hoping to help the majority of small and medium-sized enterprises. At present, the system supports cross-platform。

fix(style): The low resolution of the selection box ADAPTS to solve the problem that the scroll bar of the selection box button causes the button to disappear

fxysy125b158b1b71
diff --git a/frontend/src/constant/style.ts b/frontend/src/constant/style.ts
index d6d954b..9043ba7 100644
--- a/frontend/src/constant/style.ts
+++ b/frontend/src/constant/style.ts
@@ -12,12 +12,26 @@ export const primaryLightColor = '#ECE7F6'
export const lightGrey = '#999999'
export const errorColor = '#BA2828'
+// The low resolution of the selection box ADAPTS to solve the problem that the scroll bar of the selection box button causes the button to disappear
+let select_table_height = 445
+if (window?.innerHeight) {
+ if (window.innerHeight > 740) {
+ select_table_height = 500
+ } else {
+ const computed_table_height = window.innerHeight - 48 - 64 - 52 - 24 - 74
+
+ if (computed_table_height > 200) {
+ select_table_height = computed_table_height
+ }
+ }
+}
+
export const SYSTEM_HEIGHT = {
HEADER: 60,
TAB: 70,
OPERATE_BAR: 52,
VXE_PAGER: 48,
- SELECT_TABLE: 500,
+ SELECT_TABLE: select_table_height,
TOOLBAR: 40
}