34 lines
741 B
Vue
Raw Normal View History

2022-01-20 21:25:35 +08:00
<template>
2022-01-29 23:58:56 +08:00
<div
class="go-edit-range"
:style="useSizeStyle(size)"
2022-01-30 14:20:28 +08:00
@mousedown="mousedownHandleUnStop($event, undefined)"
2022-01-29 23:58:56 +08:00
>
2022-01-20 21:25:35 +08:00
<slot></slot>
</div>
</template>
2022-01-27 23:16:51 +08:00
<script setup lang="ts">
import { useSizeStyle } from '../../hooks/useStyle.hook'
2022-01-30 19:38:12 +08:00
import { mousedownHandleUnStop } from '../../hooks/useDrop.hook'
2022-01-29 23:58:56 +08:00
2022-01-27 23:16:51 +08:00
const size = {
w: 1920,
h: 1080
}
2022-01-29 23:58:56 +08:00
2022-01-27 23:16:51 +08:00
</script>
2022-01-20 21:25:35 +08:00
<style lang="scss" scoped>
@include go(edit-range) {
position: relative;
border: 1px solid;
background-color: #333;
border-radius: 15px;
2022-01-20 21:25:35 +08:00
@include filter-bg-color('background-color2');
@include fetch-theme('box-shadow');
@include filter-border-color('hover-border-color');
@include fetch-theme-custom('border-color', 'background-color4');
}
</style>