|
@@ -0,0 +1,89 @@
|
|
|
+<template>
|
|
|
+ <div class="channelMenuBox">
|
|
|
+ <div :class="['channelMenuSector', {buildingBorder: this.$store.state.template.previewStatus==false}]">
|
|
|
+ <convertBtn :id="id" :dataSort="dataSort" :sort="0" :type="12"/>
|
|
|
+ <div v-if="this.$store.state.template.pageData.list[dataSort].content.componentList[0].component_style == 1">
|
|
|
+ <menu1Style/>
|
|
|
+ </div>
|
|
|
+ <div v-if="this.$store.state.template.pageData.list[dataSort].content.componentList[0].component_style == 2">
|
|
|
+ <menu2Style/>
|
|
|
+ </div>
|
|
|
+ <div v-if="this.$store.state.template.pageData.list[dataSort].content.componentList[0].component_style > 2">
|
|
|
+ <atWork :dataStyle="2" :dataWidth="1200" :dataHeight="100" />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+//编辑按钮
|
|
|
+import editBtn from '../../../../../../public/editBtn.vue'
|
|
|
+import convertBtn from '../../../../../../public/convertBtn.vue'
|
|
|
+//1200x100
|
|
|
+import menu1Style from '../../../../../../style/components/menu/1200x100/1.vue'
|
|
|
+import menu2Style from '../../../../../../style/components/menu/1200x100/2.vue'
|
|
|
+//组件研发中
|
|
|
+import atWork from '../../../../../../public/atWork.vue'
|
|
|
+export default {
|
|
|
+ components: {
|
|
|
+ editBtn,
|
|
|
+ convertBtn,
|
|
|
+ menu1Style,
|
|
|
+ menu2Style,
|
|
|
+ atWork
|
|
|
+ },
|
|
|
+ props: {
|
|
|
+ id:{
|
|
|
+ type:Number,
|
|
|
+ default:0
|
|
|
+ },
|
|
|
+ y:{
|
|
|
+ type:Number,
|
|
|
+ default:0
|
|
|
+ },
|
|
|
+ dataSort:{
|
|
|
+ type:Number,
|
|
|
+ default:0
|
|
|
+ }
|
|
|
+ },
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ leftData:{
|
|
|
+ text:0,
|
|
|
+ img:3
|
|
|
+ },
|
|
|
+ rightData:{
|
|
|
+ text:9,
|
|
|
+ img:0
|
|
|
+ }
|
|
|
+ };
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+
|
|
|
+ },
|
|
|
+ mounted() {
|
|
|
+
|
|
|
+ },
|
|
|
+};
|
|
|
+</script>
|
|
|
+
|
|
|
+<style scoped lang="less">
|
|
|
+.buildingBorder {
|
|
|
+ border: 2px dashed #999;
|
|
|
+}
|
|
|
+.channelMenuBox {
|
|
|
+ width: 100%;
|
|
|
+ height: 100px;
|
|
|
+ box-sizing: content-box;
|
|
|
+ .channelMenuSector {
|
|
|
+ width: 1200px;
|
|
|
+ height: 100px;
|
|
|
+ margin: 0 auto;
|
|
|
+ position: relative;
|
|
|
+ .templateEditBtnBox {
|
|
|
+ right: 0;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+</style>
|
|
|
+
|