From 391a1481c611703731405844ee6a9e4d559f42b6 Mon Sep 17 00:00:00 2001 From: puhui999 Date: Sun, 19 Jan 2025 13:44:04 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E3=80=90=E4=BB=A3=E7=A0=81=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E3=80=91MALL:=20=E4=BF=AE=E5=A4=8D=E6=A8=A1=E6=9D=BF?= =?UTF-8?q?=E8=A3=85=E4=BF=AE=E6=97=B6=E7=BB=84=E4=BB=B6=E5=B1=9E=E6=80=A7?= =?UTF-8?q?=E5=93=8D=E5=BA=94=E5=BC=8F=E4=B8=A2=E5=A4=B1=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../NavigationBar/components/CellProperty.vue | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/src/components/DiyEditor/components/mobile/NavigationBar/components/CellProperty.vue b/src/components/DiyEditor/components/mobile/NavigationBar/components/CellProperty.vue index 2494e0691..ea0e7ca92 100644 --- a/src/components/DiyEditor/components/mobile/NavigationBar/components/CellProperty.vue +++ b/src/components/DiyEditor/components/mobile/NavigationBar/components/CellProperty.vue @@ -68,13 +68,18 @@ import { useVModel } from '@vueuse/core' // 导航栏属性面板 defineOptions({ name: 'NavigationBarCellProperty' }) -const props = defineProps<{ - modelValue: NavigationBarCellProperty[] - isMp: boolean -}>() +const props = withDefaults( + defineProps<{ + modelValue: NavigationBarCellProperty[] + isMp: boolean + }>(), + { + modelValue: () => [], + isMp: true + } +) const emit = defineEmits(['update:modelValue']) -const { formData: cellList } = usePropertyForm(props.modelValue, emit) -if (!cellList.value) cellList.value = [] +const cellList = useVModel(props, 'modelValue', emit) // 单元格数量:小程序6个(右侧胶囊按钮占了2个),其它平台8个 const cellCount = computed(() => (props.isMp ? 6 : 8)) -- Gitee From 5551c594ab3ad10ff807411ab8cfafa8ed4c1a3c Mon Sep 17 00:00:00 2001 From: puhui999 Date: Sun, 19 Jan 2025 13:45:56 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E3=80=90=E5=8A=9F=E8=83=BD=E5=AE=8C?= =?UTF-8?q?=E5=96=84=E3=80=91MALL:=20=E6=A8=A1=E6=9D=BF=E8=A3=85=E4=BF=AE?= =?UTF-8?q?=E4=BC=98=E6=83=A0=E5=88=B8=E7=BB=84=E4=BB=B6=E4=BC=98=E6=83=A0?= =?UTF-8?q?=E5=88=B8=E5=88=97=E8=A1=A8=E5=9B=9E=E6=98=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/mobile/CouponCard/property.vue | 25 +++++++++++++++---- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/src/components/DiyEditor/components/mobile/CouponCard/property.vue b/src/components/DiyEditor/components/mobile/CouponCard/property.vue index 5d151bf94..604afe9cf 100644 --- a/src/components/DiyEditor/components/mobile/CouponCard/property.vue +++ b/src/components/DiyEditor/components/mobile/CouponCard/property.vue @@ -68,7 +68,12 @@ - + -- Gitee