diff --git a/apps/web-antd/src/views/mall/promotion/components/diy-editor/components/mobile/navigation-bar/components/cell-property.vue b/apps/web-antd/src/views/mall/promotion/components/diy-editor/components/mobile/navigation-bar/components/cell-property.vue index f85293f7d..c894f76f4 100644 --- a/apps/web-antd/src/views/mall/promotion/components/diy-editor/components/mobile/navigation-bar/components/cell-property.vue +++ b/apps/web-antd/src/views/mall/promotion/components/diy-editor/components/mobile/navigation-bar/components/cell-property.vue @@ -1,18 +1,18 @@ @@ -73,12 +80,20 @@ const handleHotAreaSelected = ( class="m-b-16px" @hot-area-selected="handleHotAreaSelected" /> - + - - + + 文字 图片 搜索框 @@ -86,38 +101,69 @@ const handleHotAreaSelected = ( - + - + - + - + 建议尺寸 56*56 - + - + + + + + + + - - + + + + + + + + + + + + + + + + + + + diff --git a/apps/web-antd/src/views/mall/promotion/components/diy-editor/components/mobile/navigation-bar/index.vue b/apps/web-antd/src/views/mall/promotion/components/diy-editor/components/mobile/navigation-bar/index.vue index 81894a0e1..923e65d5e 100644 --- a/apps/web-antd/src/views/mall/promotion/components/diy-editor/components/mobile/navigation-bar/index.vue +++ b/apps/web-antd/src/views/mall/promotion/components/diy-editor/components/mobile/navigation-bar/index.vue @@ -42,13 +42,13 @@ const cellWidth = computed(() => { }); /** 获取单元格样式 */ -const getCellStyle = (cell: NavigationBarCellProperty) => { +function getCellStyle(cell: NavigationBarCellProperty) { return { width: `${cell.width * cellWidth.value + (cell.width - 1) * 10}px`, left: `${cell.left * cellWidth.value + (cell.left + 1) * 10}px`, position: 'absolute', } as StyleValue; -}; +} /** 获取搜索框属性配置 */ const getSearchProp = computed(() => (cell: NavigationBarCellProperty) => { @@ -61,7 +61,10 @@ const getSearchProp = computed(() => (cell: NavigationBarCellProperty) => { }); - + (cell: NavigationBarCellProperty) => { v-if="property._local?.previewMp" :src="appNavbarMp" alt="" - class="w-22 h-8" + style="width: 86px; height: 30px" /> -