diff --git a/src/components/DiyEditor/components/mobile/CouponCard/property.vue b/src/components/DiyEditor/components/mobile/CouponCard/property.vue index 5d151bf946c4bb8aea67f6eeba0e8d54837721cc..604afe9cf528f6b79e7a9883290d5949f7d1c9c9 100644 --- a/src/components/DiyEditor/components/mobile/CouponCard/property.vue +++ b/src/components/DiyEditor/components/mobile/CouponCard/property.vue @@ -68,7 +68,12 @@ - + diff --git a/src/components/DiyEditor/components/mobile/NavigationBar/components/CellProperty.vue b/src/components/DiyEditor/components/mobile/NavigationBar/components/CellProperty.vue index 2494e06910e1a0b6acb17d93821f2ed0ba2be794..ea0e7ca92ef7fe88ed3a1b64537f999caac488d0 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))