aboutsummaryrefslogtreecommitdiffstats
path: root/components/base/ItemStack/ItemStackFormOptionLabel.vue
diff options
context:
space:
mode:
Diffstat (limited to 'components/base/ItemStack/ItemStackFormOptionLabel.vue')
-rw-r--r--components/base/ItemStack/ItemStackFormOptionLabel.vue18
1 files changed, 11 insertions, 7 deletions
diff --git a/components/base/ItemStack/ItemStackFormOptionLabel.vue b/components/base/ItemStack/ItemStackFormOptionLabel.vue
index ab067f8..e334950 100644
--- a/components/base/ItemStack/ItemStackFormOptionLabel.vue
+++ b/components/base/ItemStack/ItemStackFormOptionLabel.vue
@@ -1,20 +1,24 @@
<script setup lang="ts">
defineProps<{
- option: string
- label: string
- type: string
+ option: string;
+ label: string;
+ type: string;
isOptionSetFn: (option: string) => boolean;
removeOptionFn: (option: string) => void;
setOptionFn: (option: string, type: any) => void;
-}>()
+}>();
</script>
<template>
<div class="label-with-button">
<label :for="'itemstack-' + option">{{ label }}</label>
- <Button v-if="isOptionSetFn(option)" label="Remove" :icon="['fas', 'minus']"
- @click="removeOptionFn(option)"></Button>
+ <Button
+ v-if="isOptionSetFn(option)"
+ label="Remove"
+ :icon="['fas', 'minus']"
+ @click="removeOptionFn(option)"
+ ></Button>
</div>
</template>
@@ -23,4 +27,4 @@ defineProps<{
display: flex;
justify-content: space-between;
}
-</style> \ No newline at end of file
+</style>