courseDesc.vue 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <template>
  2. <view class="tabs-content" :style="{ paddingBottom : `${props.paddingBottom || 0}rpx` }">
  3. <image :src="content" v-if="showType === 'image'" style="width: 100%" mode="widthFix"></image>
  4. <u-parse :html="content" :selectable="true" v-else></u-parse>
  5. 课程简介-测试用,看能不能看到底部
  6. </view>
  7. </template>
  8. <script setup>
  9. import {
  10. ref,
  11. defineProps
  12. } from 'vue'
  13. const props = defineProps({
  14. paddingBottom: {
  15. type: Number,
  16. required: false,
  17. default: 10
  18. },
  19. showType :{
  20. type: String,
  21. required: true,
  22. default: "image"
  23. },
  24. content: {
  25. type: String,
  26. required: true,
  27. default: ""
  28. }
  29. });
  30. // const content = ref("<p>20名协会成员于10月15adhjshajdhsadsajdakshdjahjkd,骄傲的噶说的话吗,计划的哈手机号,很多看啥看,撒海空军的卡号是,按开机动画就撒开,安达市快点哈尽快,打火机客户打款,收获颇丰。此次活动增进了大家对科技前沿的认识。</p><img src='/static/notice/ditu.png' /><img src='/static/notice/ditu.png' /><img src='/static/notice/ditu.png' /><img src='/static/notice/ditu.png' />")
  31. </script>
  32. <style lang="scss" scoped>
  33. .tabs-content{
  34. padding-top: 10rpx;
  35. height: inherit;
  36. position: relative;
  37. }
  38. </style>