twtit.vue 649 B

12345678910111213141516171819202122232425262728293031
  1. <template>
  2. <div class="module-item-twtit flex-y-center flex-grow-1">
  3. <moduleText :class="miaosha?'flex-grow-0':'flex-grow-1'" :text="title" :type="type" />
  4. <moduleMiaosha class="flex-grow-1" :text="title" v-if="miaosha" :miaosha='miaosha' />
  5. </div>
  6. </template>
  7. <script>
  8. import moduleText from './text.vue'
  9. import moduleMiaosha from './miaosha.vue'
  10. export default {
  11. name: 'moduleTwtit',
  12. props: ['title', 'type','miaosha'],
  13. components: {
  14. moduleText,
  15. moduleMiaosha
  16. }
  17. }
  18. </script>
  19. <style scoped>
  20. .module-item-twtit {
  21. font-size: 14px;
  22. position: relative;
  23. z-index: 1;
  24. padding: 0 12px;
  25. padding-top: 10px;
  26. }
  27. </style>