HistoryPage.vue 989 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <template>
  2. <div ref="main" class="main">
  3. <Window>
  4. <template slot="header">
  5. Прочитаные книги:
  6. </template>
  7. <div class="list">
  8. Test
  9. </div>
  10. </Window>
  11. </div>
  12. </template>
  13. <script>
  14. //-----------------------------------------------------------------------------
  15. import Vue from 'vue';
  16. import Component from 'vue-class-component';
  17. import Window from '../../share/Window.vue';
  18. export default @Component({
  19. components: {
  20. Window,
  21. },
  22. })
  23. class HistoryPage extends Vue {
  24. created() {
  25. this.commit = this.$store.commit;
  26. this.reader = this.$store.state.reader;
  27. }
  28. }
  29. //-----------------------------------------------------------------------------
  30. </script>
  31. <style scoped>
  32. .main {
  33. flex: 1;
  34. display: flex;
  35. flex-direction: column;
  36. align-items: center;
  37. }
  38. .list {
  39. flex: 1;
  40. background-color: #ffffff;
  41. }
  42. .list-item {
  43. }
  44. </style>