UNPKG
dm-vue3-ui
Version:
latest (1.0.54)
1.0.54
1.0.53
1.0.52
1.0.51
1.0.50
1.0.49
1.0.48
1.0.47
1.0.46
1.0.45
1.0.44
1.0.43
1.0.42
1.0.41
1.0.40
1.0.39
1.0.38
1.0.37
1.0.36
1.0.34
1.0.33
1.0.32
1.0.31
1.0.30
1.0.29
1.0.27
1.0.26
1.0.25
1.0.24
1.0.23
1.0.22
1.0.21
1.0.20
1.0.19
1.0.18
1.0.17
1.0.16
1.0.15
1.0.14
1.0.13
1.0.12
1.0.11
1.0.10
1.0.9
0.0.108
0.0.107
0.0.106
0.0.105
0.0.104
0.0.103
0.0.102
0.0.101
0.0.100
0.0.99
0.0.98
0.0.97
0.0.97-3
0.0.97-2
0.0.97-1
0.0.96
0.0.95
0.0.94
0.0.93
0.0.92
0.0.92-0
0.0.91
0.0.90
0.0.89
0.0.88
0.0.87
0.0.86
0.0.85
0.0.84
0.0.83
0.0.82
0.0.81
0.0.71
0.0.8
0.0.7
0.0.6
0.0.5
0.0.4
This Components Library will help get you started developing in Vue 3.
dm-vue3-ui
/
lib
/
catalogue
/
useDraggable.js
2 lines
(1 loc)
•
240 B
JavaScript
View Raw
1
2
"use strict"
;
const
e=
require
(
"vue"
);
module
.
exports
=
t
=>
{
const
i=e.
ref
(!
1
),r=e.
reactive
({
minWidth
:t,
width
:t});
return
{
activeDraggable
:i,
draggableStyle
:r,
resizingHandle
:
(
e,t
)=>
{e.
w
>=t?
Object
.
assign
(r,{
width
:t}):
Object
.
assign
(r,{
width
:e.
w
})}}};