Files
lilishop-ui/seller/src/views/shop/wap/config-panel/index.js
pikachu1995@126.com f21ce6e252 refactor(decoration): 重构店铺装修组件配置并规范化环境变量
- 重构装修组件配置,新增 icon 与 group 分类字段
- 将组件"图片"重命名为"热区","图片轮播"重命名为"轮播图"
- 新增搜索、公告、视频组件配置项
- 统一为各图片项添加 model 字段标识跳转模式
- 将装修页面组件间 pageGap 间距由 10 调整为 0
- 移除 im 模块中 VUE_APP_COMMON 变量,统一使用 VUE_APP_BUYER
- 为 im 环境变量与配置文件添加详细注释说明
2026-10-21 15:17:05 +08:00

44 lines
1.3 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// 店铺端组件配置面板映射:type → 面板组件
// 面板契约:props res(整个楼层条目),直接修改 res.options.*,保存链路自动感知
import PanelBlank from "./PanelBlank.vue";
import PanelLine from "./PanelLine.vue";
import PanelRichText from "./PanelRichText.vue";
import PanelCoupon from "./PanelCoupon.vue";
import PanelFlexOne from "./PanelFlexOne.vue";
import PanelCarousel from "./PanelCarousel.vue";
import PanelAdCube from "./PanelAdCube.vue";
import PanelSearch from "./PanelSearch.vue";
import PanelNotice from "./PanelNotice.vue";
import PanelVideo from "./PanelVideo.vue";
import PanelTitle from "./PanelTitle.vue";
import PanelGoods from "./PanelGoods.vue";
// 图片魔方及其全部可选风格共用 PanelAdCube
const adCubeTypes = [
"tpl_ad_list",
"leftOneRightTwo",
"leftTwoRightOne",
"flexThree",
"flexTwo",
"topOneBottomTwo",
"topTwoBottomOne",
"flexFive",
"flexFour",
"textPicture",
];
export default {
blank: PanelBlank,
line: PanelLine,
richText: PanelRichText,
coupon: PanelCoupon,
flexOne: PanelFlexOne,
carousel: PanelCarousel,
search: PanelSearch,
notice: PanelNotice,
video: PanelVideo,
title: PanelTitle,
goods: PanelGoods,
...Object.fromEntries(adCubeTypes.map((t) => [t, PanelAdCube])),
};