feat(node-resizer): add maxHeight and maxWidth props

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
braks
2023-03-07 20:43:31 +01:00
committed by Braks
parent f6491d13cf
commit afc29db489
4 changed files with 61 additions and 35 deletions

View File

@@ -7,7 +7,7 @@ defineProps(['label'])
</script>
<template>
<NodeResizer min-width="100" min-height="30" />
<NodeResizer min-width="100" min-height="30" max-height="200" max-width="200" keep-aspect-ratio />
<Handle type="target" :position="Position.Left" />
<div style="padding: 10px">{{ label }}</div>