SourceEditor.vue 856 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <template>
  2. <div class="editor">
  3. <source-tab-form class="left" :config="config" />
  4. <tool-bar />
  5. <source-tab-tools class="right" />
  6. </div>
  7. </template>
  8. <script setup>
  9. import bookSourceConfig from "@/utils/bookSourceEditConfig.js";
  10. import rssSourceConfig from "@/utils/rssSourceEditConfig.js";
  11. import "@/assets/main.css";
  12. const config = ref({});
  13. if (/bookSource/i.test(location.href)) {
  14. config.value = bookSourceConfig;
  15. document.title = "书源管理";
  16. } else {
  17. config.value = rssSourceConfig;
  18. document.title = "订阅源管理";
  19. }
  20. </script>
  21. <style lang="scss" scoped>
  22. .editor {
  23. display: flex;
  24. height: 100vh;
  25. overflow: hidden;
  26. .left {
  27. flex: 1;
  28. margin-left: 20px;
  29. }
  30. .right {
  31. flex: 1;
  32. width: 360px;
  33. margin-right: 20px;
  34. }
  35. #loading {
  36. position: fixed;
  37. top: 100px;
  38. left: 90vw;
  39. }
  40. }
  41. </style>