From 8ff56a2b30b3159758c272e6f98b466f7df58dfc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B8=B8=E7=86=9F=E5=90=B4=E5=BD=A6=E7=A5=96?= Date: Sun, 28 Sep 2025 17:30:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E6=A0=88=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/scss/global.scss | 11 ++++++++--- .../modules/automatedWarehouse/palletPacking.vue | 8 ++++++++ 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/src/assets/scss/global.scss b/src/assets/scss/global.scss index 267c174..687aaca 100644 --- a/src/assets/scss/global.scss +++ b/src/assets/scss/global.scss @@ -891,15 +891,20 @@ a:hover{ /* ==================== Call料页面样式结束 ==================== */ .action-btn { - flex: 1; - padding: 12px; + /* 去掉 flex: 1 */ + padding: 8px 16px; /* 建议左右内边距稍大,如 16px */ border: 1px solid #17B3A3; background: white; color: #17B3A3; - border-radius: 20px; + border-radius: 20px; /* 胶囊形圆角 */ font-size: 14px; cursor: pointer; transition: all 0.2s ease; + + /* 可选:让按钮保持行内块,自然包裹内容 */ + display: inline-block; + min-width: 60px; /* 可选:设置最小宽度,防止太窄 */ + text-align: center; /* 文字居中 */ } .action-btn:hover { diff --git a/src/views/modules/automatedWarehouse/palletPacking.vue b/src/views/modules/automatedWarehouse/palletPacking.vue index 99ded88..67193a2 100644 --- a/src/views/modules/automatedWarehouse/palletPacking.vue +++ b/src/views/modules/automatedWarehouse/palletPacking.vue @@ -169,6 +169,7 @@ { + if (this.$refs.scanInput) { + this.$refs.scanInput.focus(); + } + }); + }, // 关闭扫码模态框 closeScanModal() { this.scanModalVisible = false;