SourceEditor.vue 817 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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 "@/config/bookSourceEditConfig";
  10. import rssSourceConfig from "@/config/rssSourceEditConfig";
  11. import "@/assets/sourceeditor.css"
  12. import { useDark } from "@vueuse/core";
  13. useDark();
  14. let config;
  15. if (/bookSource/i.test(location.href)) {
  16. config = bookSourceConfig;
  17. document.title = "书源管理";
  18. } else {
  19. config = rssSourceConfig;
  20. document.title = "订阅源管理";
  21. }
  22. </script>
  23. <style lang="scss" scoped>
  24. .editor {
  25. display: flex;
  26. height: 100vh;
  27. overflow: hidden;
  28. .left {
  29. flex: 1;
  30. margin-left: 20px;
  31. }
  32. .right {
  33. flex: 1;
  34. width: 360px;
  35. margin-right: 20px;
  36. }
  37. }
  38. </style>