modalTitle.vue 658 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <template>
  2. <div class="modalTitle">
  3. <span>
  4. {{ title }}
  5. </span>
  6. <i style="font-size: 20px;" 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. },
  19. methods:{
  20. fullscreen(){
  21. this.$emit('setFullscreen')
  22. }
  23. }
  24. };
  25. </script>
  26. <style lang="scss" scoped>
  27. .modalTitle{
  28. width: 100%;
  29. display: flex;
  30. justify-content: space-between;
  31. align-items: center;
  32. font-size: 16px;
  33. i{
  34. margin-right: 15px;
  35. cursor: pointer;
  36. }
  37. }
  38. </style>