From 14eef62db43d4d1b7a5bada04032faaecffecb9e Mon Sep 17 00:00:00 2001 From: liyong <18434998025@163.com> Date: 星期五, 25 四月 2025 14:20:23 +0800 Subject: [PATCH] feat: 单丝扫码 --- src/pages/production/components/ProductionCard.vue | 18 +++++++++++++++--- 1 files changed, 15 insertions(+), 3 deletions(-) diff --git a/src/pages/production/components/ProductionCard.vue b/src/pages/production/components/ProductionCard.vue index d89a77d..d691c8c 100644 --- a/src/pages/production/components/ProductionCard.vue +++ b/src/pages/production/components/ProductionCard.vue @@ -1,9 +1,11 @@ <template> <wd-row> <wd-col v-for="(item, index) in data" :key="index" :span="item.span ?? 12" class="my-1"> - <view class="flex justify-between pr-1 w-full h-[20px]"> - <view class="text-[#646874]">{{ item.label }}</view> - <view class="font-medium" :style="{ color: item.color ?? color }">{{ item.value }}</view> + <view class="flex justify-between w-full h-[20px]"> + <view class="text-[#646874] pl-1">{{ item.label }}</view> + <view class="font-medium pr-1" :style="{ color: item.color ?? color }"> + {{ value[item.prop] }} {{ value[item.unitProp] }} {{ item.unit }} + </view> </view> </wd-col> </wd-row> @@ -17,9 +19,19 @@ return []; }, }, + value: { + type: Object, + default: () => { + return {}; + }, + }, color: { type: String, default: "#333333", }, + unit: { + type: String, + default: "", + }, }); </script> -- Gitblit v1.9.3