![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
vue3-draggable-resizable
Advanced tools
[ Vue3 Component ] Draggable and resizable component for vue3
$ npm install vue3-draggable-resizable
Register the Vue3DraggableResizable
// >main.js
import { createApp } from 'vue'
import App from './App.vue'
import Vue3DraggableResizable from 'vue3-draggable-resizable'
//default styles
import 'vue3-draggable-resizable/dist/Vue3DraggableResizable.css'
// You will have a global component named "Vue3DraggableResizable"
createApp(App).use(Vue3DraggableResizable).mount('#app')
You can also use it separately within the component
// >component.js
import { defineComponent } from 'vue'
import Vue3DraggableResizable from 'vue3-draggable-resizable'
//default styles
import 'vue3-draggable-resizable/dist/Vue3DraggableResizable.css'
export default defineComponent({
components:{ Vue3DraggableResizable },
// ...other
})
Here is a complete example of using "vue-template"
<template>
<div id="app">
<div class="parent">
<Vue3DraggableResizable
:initW="110"
:initH="120"
v-model:x="x"
v-model:y="y"
v-model:w="w"
v-model:h="h"
v-model:active="active"
:draggable="true"
:resizable="true"
@activated="print('activated')"
@deactivated="print('deactivated')"
@drag-start="print('drag-start')"
@resize-start="print('resize-start')"
@dragging="print('dragging')"
@resizing="print('resizing')"
@drag-end="print('drag-end')"
@resize-end="print('resize-end')"
>
This is a test example
</Vue3DraggableResizable>
</div>
</div>
</template>
<script>
import { defineComponent } from 'vue'
import Vue3DraggableResizable from 'vue3-draggable-resizable'
//default styles
import 'vue3-draggable-resizable/dist/Vue3DraggableResizable.css'
export default defineComponent({
components: { Vue3DraggableResizable },
data() {
return {
x: 100,
y: 100,
h: 100,
w: 100,
active: false
}
},
methods: {
print(val) {
console.log(val)
}
}
})
</script>
<style>
.parent {
width: 200px;
height: 200px;
position: absolute;
top: 100px;
left: 100px;
border: 1px solid #000;
user-select: none;
}
</style>
type: Number
default: null
Set initial width(px)
<vue3DraggableResizable :initW="100"/>
type: Number
default: null
Set initial height(px)
<vue3DraggableResizable :initH="100"/>
type: Number
default: 0
Current width(px) of the container.
You can use "v-model:w" to keeps it up-to-date
<vue3DraggableResizable v-model:w="100"/>
type: Number
default: 0
Current height(px) of the container.
You can use "v-model:h" to keeps it up-to-date
<vue3DraggableResizable v-model:h="100"/>
type: Number
default: 0
Current left(px) of the container.
You can use "v-model:x" to keeps it up-to-date
<vue3DraggableResizable v-model:x="100"/>
type: Number
default: 0
The current top(px) of the container.
You can use "v-model:y" to keeps it up-to-date
<vue3DraggableResizable v-model:y="100"/>
type: Number
default: 20
Minimum width(px)
<vue3DraggableResizable :minW="100"/>
type: Number
default: 20
Minimum height(px)
<vue3DraggableResizable :minH="100"/>
type: Boolean
default: false
Indicates whether the component is selected.
You can use "v-model:active" to keeps it up-to-date
<vue3DraggableResizable v-model:active="100"/>
type: Boolean
default: true
Defines the component can be draggable or not
<vue3DraggableResizable :draggable="true"/>
type: Boolean
default: true
Defines the component can be resizable or not
<vue3DraggableResizable :draggable="true"/>
payload: -
<vue3DraggableResizable @activated="activatedHandle"/>
payload: -
<vue3DraggableResizable @deactivated="deactivatedHandle"/>
payload: { x: number, y: number, w: number, h: number }
<vue3DraggableResizable @drag-start="dragStartHandle"/>
payload: { x: number, y: number, w: number, h: number }v
<vue3DraggableResizable @dragging="dragStartHandle"/>
payload: { x: number, y: number, w: number, h: number }
<vue3DraggableResizable @drag-end="dragEndHandle"/>
payload: { x: number, y: number, w: number, h: number }
<vue3DraggableResizable @resize-start="resizeStartHandle"/>
payload: { x: number, y: number, w: number, h: number }v
<vue3DraggableResizable @resizing="resizingHandle"/>
payload: { x: number, y: number, w: number, h: number }
<vue3DraggableResizable @resize-end="resizeEndHandle"/>
FAQs
[Vue3 Component] 拖拽缩放并具有自动吸附对齐、参考线等功能
The npm package vue3-draggable-resizable receives a total of 4,029 weekly downloads. As such, vue3-draggable-resizable popularity was classified as popular.
We found that vue3-draggable-resizable demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.