index.vue 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <template>
  2. <div class="lr_layout">
  3. <BackTop class="back-top" :targetId="'collection-list'"></BackTop>
  4. <div class="lcon">
  5. <slot name="lcon"></slot>
  6. </div>
  7. <div id="collection-list" class="rcon">
  8. <slot name="rcon"></slot>
  9. </div>
  10. </div>
  11. </template>
  12. <script>
  13. import BackTop from "@/components/BackTop.vue";
  14. export default {
  15. components: {
  16. BackTop
  17. },
  18. }
  19. </script>
  20. <style lang="less" scoped>
  21. .lr_layout {
  22. position: relative;
  23. margin: 40px auto 0;
  24. padding-bottom: 40px;
  25. max-width: 1350px;
  26. width: 100%;
  27. display: flex;
  28. justify-content: space-between;
  29. align-items: flex-start;
  30. height: 100%;
  31. .lcon {
  32. width: 260px;
  33. flex-shrink: 0;
  34. }
  35. .rcon {
  36. flex: 4;
  37. padding-right: 20px;
  38. padding-left: 70px;
  39. text-align: center;
  40. max-height: 100%;
  41. overflow-y: auto;
  42. &::-webkit-scrollbar-thumb{
  43. background-color: #f1f1f1;
  44. }
  45. }
  46. }
  47. .back-top {
  48. position: absolute;
  49. right: -130px;
  50. bottom: 130px;
  51. width: 60px;
  52. height: 60px;
  53. border-radius: 8px;
  54. background-color: #fff;
  55. color: #C8C9CC;
  56. &:hover {
  57. color: #323233;
  58. }
  59. cursor: pointer;
  60. display: flex;
  61. justify-content: center;
  62. align-items: center;
  63. }
  64. </style>