营销:优化商城装修组件

This commit is contained in:
owen 2023-12-15 17:12:02 +08:00
parent 33162a12c0
commit 80355f3acd
5 changed files with 6 additions and 5 deletions

View File

@ -29,6 +29,7 @@
:key="appLinkIndex"
:content="appLink.path"
placement="bottom"
:show-after="300"
>
<el-button
class="m-b-8px m-r-8px m-l-0px!"

View File

@ -37,7 +37,7 @@ const emit = defineEmits<{
'update:modelValue': [link: string]
}>()
watch(
() => appLink,
() => appLink.value,
() => emit('update:modelValue', appLink.value)
)
</script>

View File

@ -28,7 +28,7 @@
<!-- 标题 -->
<span
v-if="property.layout === 'iconText'"
class="text-14px"
class="text-12px"
:style="{
color: item.titleColor,
height: `${TITLE_HEIGHT}px`,
@ -51,7 +51,7 @@ const props = defineProps<{ property: MenuSwiperProperty }>()
//
const TITLE_HEIGHT = 20
//
const ICON_SIZE = 50
const ICON_SIZE = 42
//
const SPACE_Y = 16

View File

@ -23,7 +23,7 @@
</el-form-item>
<el-card header="菜单设置" class="property-group" shadow="never">
<Draggable v-model="formData.list" :empty-item="cloneDeep(EMPTY_MENU_SWIPER_ITEM_PROPERTY">
<Draggable v-model="formData.list" :empty-item="cloneDeep(EMPTY_MENU_SWIPER_ITEM_PROPERTY)">
<template #default="{ element }">
<el-form-item label="图标" prop="iconUrl">
<UploadImg v-model="element.iconUrl" height="80px" width="80px">

View File

@ -1,6 +1,6 @@
<template>
<div class="title-bar">
<el-image :src="property.bgImgUrl" fit="cover" class="w-full" />
<el-image v-if="property.bgImgUrl" :src="property.bgImgUrl" fit="cover" class="w-full" />
<div class="absolute left-0 top-0 w-full">
<!-- 标题 -->
<div