2022-01-20 21:25:35 +08:00
|
|
|
<template>
|
|
|
|
<ContentBox
|
|
|
|
id="go-chart-edit-layout"
|
|
|
|
ref="editDomRef"
|
|
|
|
:flex="true"
|
|
|
|
:showTop="false"
|
|
|
|
:showBottom="true"
|
|
|
|
:depth="1"
|
|
|
|
>
|
|
|
|
<div id="go-chart-edit-content">
|
|
|
|
<!-- 中间区域 -->
|
2022-01-23 01:12:49 +08:00
|
|
|
<EditRange></EditRange>
|
2022-01-20 21:25:35 +08:00
|
|
|
</div>
|
|
|
|
<!-- 底部控制 -->
|
2022-01-23 01:12:49 +08:00
|
|
|
<template #bottom>
|
2022-01-21 17:55:35 +08:00
|
|
|
<EditBottom />
|
|
|
|
</template>
|
2022-01-20 21:25:35 +08:00
|
|
|
</ContentBox>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts" setup>
|
2022-01-24 14:28:31 +08:00
|
|
|
import { onUnmounted, onMounted } from 'vue'
|
2022-01-20 21:25:35 +08:00
|
|
|
import { ContentBox } from '../ContentBox/index'
|
|
|
|
import { EditRange } from './components/EditRange'
|
2022-01-21 17:55:35 +08:00
|
|
|
import { EditBottom } from './components/EditBottom'
|
2022-01-24 16:25:43 +08:00
|
|
|
import { useLayout } from './hooks/useLayout.hook'
|
2022-01-20 21:25:35 +08:00
|
|
|
|
2022-01-24 16:25:43 +08:00
|
|
|
// 布局处理
|
|
|
|
useLayout()
|
2022-01-20 21:25:35 +08:00
|
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
@include goId(chart-edit-layout) {
|
|
|
|
position: relative;
|
|
|
|
width: 100%;
|
2022-01-21 17:55:35 +08:00
|
|
|
overflow: hidden;
|
2022-01-23 01:12:49 +08:00
|
|
|
@include background-image("background-point");
|
2022-01-20 21:25:35 +08:00
|
|
|
@extend .go-point-bg;
|
|
|
|
@include goId(chart-edit-content) {
|
|
|
|
position: relative;
|
|
|
|
top: 20px;
|
|
|
|
left: 20px;
|
|
|
|
transform-origin: left top;
|
2022-01-23 01:12:49 +08:00
|
|
|
border: 1px solid rgba(0, 0, 0, 0);
|
|
|
|
overflow: hidden;
|
2022-01-20 21:25:35 +08:00
|
|
|
@extend .go-transition;
|
2022-01-23 01:12:49 +08:00
|
|
|
&.content-resize {
|
|
|
|
border-radius: 15px;
|
|
|
|
@include hover-border-color("hover-border-color");
|
|
|
|
}
|
2022-01-20 21:25:35 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|