12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- <template>
- <span
- class="ctrl-pano-c fun-ctrl strengthen-left strengthen-top strengthen-bottom"
- v-if="custom.shwoRightCtrlPano"
- @click="hidePano"
- :class="{ active: custom.showRightPano }">
- <ui-icon type="extend" class="icon"></ui-icon>
- </span>
- <ui-editor-toolbox :toolbox="true" disabledAnimation>
- <slot></slot>
- </ui-editor-toolbox>
- </template>
- <script setup lang="ts">
- import { custom } from '@/env'
- const hidePano = () => {
- custom.showRightPano = !custom.showRightPano
- custom.showLeftPano = !custom.showRightPano
- console.log(custom.showRightPano)
- }
- </script>
- <style lang="scss" scoped>
- .ctrl-pano-c {
- position: absolute;
- right: calc(var(--editor-menu-right) + var(--editor-toolbox-width));
- width: 20px;
- height: 80px;
- background: rgba(26, 26, 26, 0.8);
- border-radius: 6px 0px 0px 6px;
- top: 50%;
- transform: translateY(-50%);
- z-index: 1;
- display: flex;
- align-items: center;
- justify-content: center;
- color: rgba(255, 255, 255, 0.6);
- font-size: 14px;
- cursor: pointer;
- transition: inset .3s ease, color .3s ease;
- &:hover {
- color: rgba(255, 255, 255, 1);
- }
- &:active {
- color: var(--colors-primary-base);
- }
- .icon {
- display: inline-block;
- transition: transform .3s ease;
- transform: rotate(180deg);
- }
- &.active {
- .icon {
- transform: rotate(0)
- }
- }
- }
- </style>
|