WEB端的 弹框尺寸可以放大,但不做缩小。

This commit is contained in:
aixianling
2024-08-19 11:06:00 +08:00
parent 438cbaa978
commit 1ea55c9e13
2 changed files with 59 additions and 9 deletions

View File

@@ -0,0 +1,35 @@
<template>
<section class="AiDrag">
<vue-draggable-resizable v-bind="$attrs">
<slot/>
</vue-draggable-resizable>
</section>
</template>
<script>
import 'vue-draggable-resizable/dist/VueDraggableResizable.css'
import VueDraggableResizable from 'vue-draggable-resizable'
export default {
name: "AiDrag",
components: {VueDraggableResizable},
props: {
type: {default: "show"} //show:只拖拽
}
}
</script>
<style lang="scss" scoped>
.AiDrag {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
pointer-events: none;
:deep(.vdr) {
pointer-events: auto;
}
}
</style>