modalTitle.vue 623 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <template>
  2. <div class="modalTitle">
  3. <span>
  4. {{ title }}
  5. </span>
  6. <i class="el-icon-full-screen" @click="fullscreen"></i>
  7. </div>
  8. </template>
  9. <script>
  10. export default {
  11. components: {},
  12. props: {
  13. title: ''
  14. },
  15. data() {
  16. return {};
  17. },
  18. methods: {
  19. fullscreen() {
  20. this.$emit('setFullscreen');
  21. }
  22. }
  23. };
  24. </script>
  25. <style lang="scss" scoped>
  26. .modalTitle {
  27. width: 100%;
  28. display: flex;
  29. justify-content: space-between;
  30. align-items: center;
  31. font-size: 16px;
  32. i {
  33. margin-right: 15px;
  34. cursor: pointer;
  35. }
  36. }
  37. </style>