<template>
  <component :is="comName" :tab="tab"></component>
</template>
<script>
/** 店招 **/
import shopFront from "./lib/shopFront";
/** 搜索框 **/
import shopSearch from "./lib/shopSearch";
/** 空白 **/
import showBlank from "./lib/showBlank";
/** 辅助线 **/
import showLines from "./lib/showLines";
/** 导航栏 **/
import shopNav from "./lib/shopNav";
/** 商品列表 **/
import goodList from "./lib/goodList";
/** 标题 **/
import blockTitle from "./lib/blockTitle";
/** 文本 **/
import descText from "./lib/descText";
/** 富文本 **/
import richText from "./lib/richText";
/** 广告 **/
import imageLink from "./lib/imageLink";
/** 语音 **/
import voiceLink from "./lib/voiceLink";
/** 视频 **/
import videoLink from "./lib/videoLink";
/** 公告 **/
import shopNotice from "./lib/shopNotice";
/** 客服电话 **/
import shopTel from "./lib/shopTel";
/** 图块 **/
import imageBlock from "./lib/imageBlock";
/** 限时抢购 **/
import goodDiscount from "./lib/goodDiscount";
/** 团购抢购 **/
import groupBuying from "./lib/groupBuying";
/** 专区商品 **/
import goodSpecial from "./lib/goodSpecial";
/** 优惠限购 **/
import goodFine from "./lib/goodFine";
/** 积分商品 **/
import goodIntegral from "./lib/goodIntegral";

export default {
  components: {
    /** 组件块start **/
    shopFront,
    shopSearch,
    showBlank,
    showLines,
    shopNav,
    goodList,
    blockTitle,
    descText,
    richText,
    imageLink,
    voiceLink,
    videoLink,
    shopNotice,
    shopTel,
    goodDiscount,
    goodSpecial,
    goodFine,
    imageBlock,
    goodIntegral,
    groupBuying,
    /** 组件块end **/
  },
  props: {
    tab: {
      type: Object,
      default() {
        return {};
      },
    },
  },
  data() {
    return {
      delFlag: true,
      isShow: false,
      showFlag: false,
      comName: "",
    };
  },
  created() {
    this.comName = this.tab.type;
  },
};
</script>
