Window.vue 879 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <template>
  2. <div class="window">
  3. <div class="header">
  4. <span class="header-text"><slot name="header"></slot></span>
  5. </div>
  6. <slot></slot>
  7. </div>
  8. </template>
  9. <script>
  10. //-----------------------------------------------------------------------------
  11. import Vue from 'vue';
  12. import Component from 'vue-class-component';
  13. export default @Component({
  14. })
  15. class Window extends Vue {
  16. created() {
  17. }
  18. }
  19. //-----------------------------------------------------------------------------
  20. </script>
  21. <style scoped>
  22. .window {
  23. flex: 1;
  24. display: flex;
  25. flex-direction: column;
  26. background-color: #e5e7ea;
  27. margin: 10px;
  28. border: 1px solid black;
  29. box-shadow: 3px 3px 5px black;
  30. }
  31. .header {
  32. display: flex;
  33. align-items: center;
  34. height: 40px;
  35. }
  36. .header-text {
  37. margin-left: 10px;
  38. margin-right: 10px;
  39. }
  40. </style>