高频知识点
vue-draggable-resizable
vue-draggable-resizable
这是一个Vue2的可拖动和可调整大小的元素组件,允许开发者创建可拖动和可调整大小的元素,适用于需要用户交互和界面自定义的场景
version
3.0.0 •
downloads
26,148
repository
github.com/mauricius/vue-draggable-resizable
homepage
github.com/mauricius/vue-draggable-resizable
VueDraggableResizable 3
Vue Component for draggable and resizable elements.
If you are looking for the version 1 of the component, it is available on the v1 branch.
Table of Contents
-
Features
-
Live Playground
-
Install and basic usage
-
Props
-
Events
-
Styling
-
-
Contributing
-
License
Features
-
No dependencies
-
Use draggable, resizable or both
-
Define handles for resizing
-
Restrict size and movement to parent element
-
Snap element to custom grid
-
Restrict drag to vertical or horizontal axis
-
Maintain aspect ratio
-
Touch enabled
-
Use your own classes
-
Provide your own markup for handles
Register the component globally
|
|
基本使用
|
|
|
|
|
|
You may now use the component in your markup. The component itself does not include any CSS. You’ll need to include it
separately in your `App.vue`: