From 20d48496d92830dd981ddabdea9111053ec7da7d Mon Sep 17 00:00:00 2001 From: zhangjiming Date: Sat, 4 Jan 2025 09:55:27 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=8F=8D=E5=BA=94=E6=9D=BF?= =?UTF-8?q?=E6=95=B0=E7=9B=AE=E4=B8=80=E7=A7=8D=E5=AE=9E=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/eventBus.ts | 3 +- src/pages/Index/Regular/Consumables.vue | 26 +++---- .../Index/components/Consumables/ChangeNum.vue | 1 + .../Index/components/Consumables/SliderAreaEx.vue | 37 ++++++---- .../Index/components/Consumables/SpttingPlates.vue | 83 +++++++++++++++++----- 5 files changed, 106 insertions(+), 44 deletions(-) diff --git a/src/eventBus.ts b/src/eventBus.ts index 2127bcb..04211dd 100644 --- a/src/eventBus.ts +++ b/src/eventBus.ts @@ -14,9 +14,10 @@ export type ErrorModalData = { stackInfo?: null } +export type ConsumeType = 'Plate' | 'LittleBuf' | 'BigBuf' | 'Tip' type Events = { initDevice: void - confirm: { value: number; index: number } + confirm: { type: ConsumeType; value: number; index: number } 'show-error-modal': ErrorModalData 'show-stack-modal': ErrorModalData['stackInfo'] | null | undefined // 其他事件类型 diff --git a/src/pages/Index/Regular/Consumables.vue b/src/pages/Index/Regular/Consumables.vue index d8914bc..045167d 100644 --- a/src/pages/Index/Regular/Consumables.vue +++ b/src/pages/Index/Regular/Consumables.vue @@ -95,8 +95,8 @@ \ No newline at end of file +