computer.vue 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <!--
  2. * @Author: June 1601745371@qq.com
  3. * @Date: 2024-04-12 11:31:10
  4. * @LastEditors: June 1601745371@qq.com
  5. * @LastEditTime: 2024-04-18 17:20:58
  6. * @FilePath: \sd-designer\src\views\Editor\index.vue
  7. * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
  8. -->
  9. <template>
  10. <div class="h-full" v-drop-image="{ url: 'UploadUrl', highlightStyle: { backgroundColor: 'lightblue' } }">
  11. <div class="layout-content flex">
  12. <CanvasLeft />
  13. <div class="layout-content-center">
  14. <CanvasHeader class="center-header relative flex justify-between py-[10px] text-[14px] select-none h-[39px]" />
  15. <CanvasCenter class="center-body" />
  16. <!-- <CanvasFooter class="center-footer h-[40px] relative leading-1.5 flex justify-between" /> -->
  17. <CanvasAffix class="center-affix"/>
  18. <!-- <CanvasICP />-->
  19. </div>
  20. <CanvasRight class="layout-content-right h-full w-[260px] bg-[#fff] flex flex-col" />
  21. <CanvasDom class="absolute -z-[200] -left-[300px]" />
  22. </div>
  23. <CanvasTour />
  24. </div>
  25. </template>
  26. <script lang="ts" setup>
  27. import CanvasLeft from "./CanvasLeft/index.vue";
  28. import CanvasHeader from "./CanvasHeader/index.vue";
  29. import CanvasCenter from "./CanvasCenter/index.vue";
  30. import CanvasRight from "./CanvasRight/index.vue";
  31. import CanvasFooter from "./CanvasFooter/index.vue";
  32. import CanvasICP from "./CanvasICP/index.vue";
  33. import CanvasAffix from "./CanvasAffix/index.vue";
  34. import CanvasDom from "./CanvasDom/index.vue";
  35. import CanvasTour from "./CanvasTour/index.vue";
  36. </script>
  37. <style lang="scss" scoped>
  38. .layout-content {
  39. height: calc(100% - 40px);
  40. }
  41. .layout-content-center {
  42. width: calc(100% - 50px /*- 160px*/ - 260px);
  43. .center-header {
  44. // border-left: 1px solid $borderColor;
  45. }
  46. .center-body {
  47. height: 100%;
  48. // margin: 100px;
  49. }
  50. .center-footer {
  51. border-top: 1px solid $borderColor;
  52. background-color: $lightGray;
  53. }
  54. }
  55. .layout-content-right {
  56. // border-left: solid 1px $borderColor;
  57. }
  58. </style>