mainTitle.vue 1006 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <template>
  2. <div class="mainTitleBox">
  3. <editBtn :id="id" :sort="sort" :type="1" :size="1"/>
  4. <img src="@/assets/template/component/newsIcon.png" />
  5. <div class="mainTitleText">习近平在中华全国供销合作社成立70周年</div>
  6. </div>
  7. </template>
  8. <script>
  9. import editBtn from '../../public/editBtn.vue'
  10. export default {
  11. components: {
  12. editBtn
  13. },
  14. props: {
  15. id:{
  16. type:Number,
  17. default:0
  18. },
  19. sort:{
  20. type:Number,
  21. default:0
  22. }
  23. },
  24. data() {
  25. return {
  26. };
  27. },
  28. methods: {
  29. },
  30. mounted() {
  31. },
  32. };
  33. </script>
  34. <style scoped lang="less">
  35. .mainTitleBox {
  36. width: 100%;
  37. display: flex;
  38. align-items: center;
  39. justify-content: center;
  40. img {
  41. width: 54px;
  42. height: 54px;
  43. margin-right: 40px;
  44. }
  45. .mainTitleText {
  46. font-size: 30px;
  47. color: #19499F;
  48. font-weight: bold;
  49. white-space: nowrap;
  50. overflow: hidden;
  51. text-overflow: ellipsis;
  52. }
  53. }
  54. </style>