2.vue 830 B

123456789101112131415161718192021222324252627
  1. <template>
  2. 2222
  3. </template>
  4. <script setup>
  5. //引入vue
  6. import {ref} from 'vue';
  7. //获得新闻数据
  8. const props = defineProps({
  9. titleLink:Object,//板块名称
  10. templateData:Array,//新闻数据
  11. skinId:String,//皮肤id
  12. templateAdData:Object,//广告
  13. });
  14. //样式1与样式2共用 start ---------------------------------------->
  15. // const component_style1_News1Array = ref({});
  16. // component_style1_News1Array.value = props.templateData.img.slice(0,2);
  17. // const component_style1_News1Array_2 = ref({});
  18. // component_style1_News1Array_2.value = props.templateData.img.slice(2,3);
  19. // const component_style1_News3 = ref({});
  20. // component_style1_News3.value = props.templateData.text.slice(0,4);
  21. //样式1与样式2共用 end ---------------------------------------->
  22. </script>
  23. <style lang="less" scoped>
  24. </style>