1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- <template>
- <div class="lr_layout">
- <BackTop class="back-top" :targetId="'collection-list'"></BackTop>
- <div class="lcon">
- <slot name="lcon"></slot>
- </div>
- <div id="collection-list" class="rcon">
- <slot name="rcon"></slot>
- </div>
- </div>
- </template>
- <script>
- import BackTop from "@/components/BackTop.vue";
- export default {
- components: {
- BackTop
- },
- }
- </script>
- <style lang="less" scoped>
- .lr_layout {
- position: relative;
- margin: 40px auto 0;
- padding-bottom: 40px;
- max-width: 1350px;
- width: 100%;
- display: flex;
- justify-content: space-between;
- align-items: flex-start;
- height: 100%;
- .lcon {
- width: 260px;
- flex-shrink: 0;
- }
- .rcon {
- flex: 4;
- padding-right: 20px;
- padding-left: 70px;
- text-align: center;
- max-height: 100%;
- overflow-y: auto;
- &::-webkit-scrollbar-thumb{
- background-color: #f1f1f1;
- }
- }
- }
- .back-top {
- position: absolute;
- right: -130px;
- bottom: 130px;
- width: 60px;
- height: 60px;
- border-radius: 8px;
- background-color: #fff;
- color: #C8C9CC;
- &:hover {
- color: #323233;
- }
- cursor: pointer;
- display: flex;
- justify-content: center;
- align-items: center;
- }
- </style>
|