Window.vue 899 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. min-width: 200px;
  27. max-width: 600px;
  28. background-color: #f5f7fa;
  29. margin: 10px;
  30. border: 1px solid black;
  31. box-shadow: 3px 3px 5px black;
  32. }
  33. .header {
  34. display: flex;
  35. align-items: center;
  36. height: 40px;
  37. }
  38. .header-text {
  39. margin-left: 10px;
  40. }
  41. </style>