fix: 新增图表居中拖拽

This commit is contained in:
MTrun
2022-01-27 23:16:51 +08:00
parent e8999a7fdf
commit dc7db58a8e
9 changed files with 83 additions and 34 deletions
@@ -1,16 +1,20 @@
<template>
<div class="go-edit-range">
<div class="go-edit-range" :style="useSizeStyle(size)">
<slot></slot>
</div>
</template>
<script setup lang="ts"></script>
<script setup lang="ts">
import { useSizeStyle } from '../../hooks/useStyle.hook'
const size = {
w: 1920,
h: 1080
}
</script>
<style lang="scss" scoped>
@include go(edit-range) {
position: relative;
height: 1080px;
width: 1920px;
border: 1px solid;
background-color: #333;
border-radius: 15px;