feat(node-resizer): add shouldResize option

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
braks
2023-02-02 16:15:20 +01:00
committed by Braks
parent f0043258d0
commit 222b58afd4
5 changed files with 92 additions and 20 deletions
@@ -1,14 +1,14 @@
<script lang="ts" setup>
import ResizeControl from './ResizeControl.vue'
import type { ResizeControlLineProps, ResizeDragEvent, ResizeEventParams } from './types'
import type { OnResize, OnResizeStart, ResizeControlLineProps } from './types'
import { ResizeControlVariant } from './types'
const props = defineProps<ResizeControlLineProps>()
const emits = defineEmits<{
(event: 'resizeStart', data: { event: ResizeDragEvent; params: ResizeEventParams }): void
(event: 'resize', data: { event: ResizeDragEvent; params: ResizeEventParams }): void
(event: 'resizeEnd', data: { event: ResizeDragEvent; params: ResizeEventParams }): void
(event: 'resizeStart', resizeEvent: OnResizeStart): void
(event: 'resize', resizeEvent: OnResize): void
(event: 'resizeEnd', resizeEvent: OnResizeStart): void
}>()
</script>