1.vue 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <template>
  2. <div class="headLineBigBox">
  3. <!--板式1-->
  4. <div v-if="templateData[0].component_style.toString()=='1'">
  5. <style1
  6. :templateData="templateData[0].componentData.data.textnum"
  7. :skinId="skinId"
  8. />
  9. </div>
  10. <!--板式2-->
  11. <div v-if="templateData[0].component_style.toString()=='2'">
  12. <style2
  13. :templateData="templateData[0].componentData.data.textnum"
  14. :skinId="skinId"
  15. />
  16. </div>
  17. </div>
  18. </template>
  19. <script setup>
  20. //样式1
  21. import style1 from '@/components/template/component/headLine/1200x140/1.vue'
  22. //样式2
  23. import style2 from '@/components/template/component/headLine/1200x140/2.vue'
  24. //暂无数据
  25. import nodata from '@/components/template/component/public/nodata.vue'
  26. const props = defineProps({
  27. skinId: Number,//皮肤id
  28. templateData:Object,//新闻数据
  29. });
  30. </script>
  31. <style lang="less" scoped>
  32. .headLineBigBox {
  33. width: 1200px;
  34. height: 110px;
  35. position: relative;
  36. margin: 0 auto;
  37. margin-bottom: 30px;
  38. .templateEditBtnBox {
  39. right: 0;
  40. }
  41. }
  42. </style>