draw new field area on button click

pull/105/head
Alex Turchyn 2 years ago
parent e52035d852
commit 279409ad41

@ -28,7 +28,10 @@
/> />
</div> </div>
<div class="flex items-center space-x-1"> <div class="flex items-center space-x-1">
<span class="dropdown dropdown-end"> <span
v-if="field.areas?.length"
class="dropdown dropdown-end"
>
<label <label
tabindex="0" tabindex="0"
title="Areas" title="Areas"
@ -75,6 +78,17 @@
</li> </li>
</ul> </ul>
</span> </span>
<button
v-else
title="Areas"
class="relative cursor-pointer text-base-100 group-hover:text-base-content"
@click="$emit('set-draw', field)"
>
<IconShape
:width="18"
:stroke-width="1.6"
/>
</button>
<button <button
class="relative text-base-100 group-hover:text-base-content" class="relative text-base-100 group-hover:text-base-content"
title="Remove" title="Remove"

Loading…
Cancel
Save