vue-draggable-resizable
vue-draggable-resizable copied to clipboard
Function props no effect in tsx
<VueDraggableResizable
key={column.id}
class={styles.tableDraggableHandle}
w={1}
x={
(column.width || column.realWidth) -
this.draggingPartition
}
z={1}
axis='x'
draggable={true}
resizable={false}
onDrag={(x: number, y: number) =>
this.onDrag(x, y, column)
}
onDragging={(x: number) => {
this.onDragging(x, column)
}}
onDragstop={(x: number) => {
this.onDragStop(x, column)
}}
></VueDraggableResizable>
onDrag prop not work,it is default function in devtools
I think on* not should use in props, vue jsx render will considers them events