File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
packages/core/useDraggable Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -36,10 +36,12 @@ export const UseDraggable = /* #__PURE__ */ defineComponent<UseDraggableProps>({
36
36
'onEnd' ,
37
37
'disabled' ,
38
38
'buttons' ,
39
+ 'containerElement' ,
39
40
] as unknown as undefined ,
40
41
setup ( props , { slots } ) {
41
42
const target = ref ( )
42
43
const handle = computed ( ( ) => props . handle ?? target . value )
44
+ const containerElement = computed ( ( ) => props . containerElement as ( HTMLElement | SVGElement | null | undefined ) ?? undefined )
43
45
const disabled = computed ( ( ) => ! ! props . disabled )
44
46
const storageValue = props . storageKey && useStorage (
45
47
props . storageKey ,
@@ -65,6 +67,7 @@ export const UseDraggable = /* #__PURE__ */ defineComponent<UseDraggableProps>({
65
67
initialValue,
66
68
onEnd,
67
69
disabled,
70
+ containerElement,
68
71
} ) )
69
72
70
73
return ( ) => {
You can’t perform that action at this time.
0 commit comments