diff options
| author | Leonardo Bishop <me@leonardobishop.com> | 2024-03-11 00:32:51 +0000 |
|---|---|---|
| committer | Leonardo Bishop <me@leonardobishop.com> | 2024-03-11 00:32:51 +0000 |
| commit | 27d85f0cda4d6f71a5a8eab8f416f29f01602b38 (patch) | |
| tree | 13e7c6b1956030170cef6ce5bade5224e56b1c17 /components/base/ItemStack/ItemStackFormOptionLabel.vue | |
| parent | aceef6edd8bd1663249e9d06fc1d4a063add4689 (diff) | |
Add rest of item stack picker
Diffstat (limited to 'components/base/ItemStack/ItemStackFormOptionLabel.vue')
| -rw-r--r-- | components/base/ItemStack/ItemStackFormOptionLabel.vue | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/components/base/ItemStack/ItemStackFormOptionLabel.vue b/components/base/ItemStack/ItemStackFormOptionLabel.vue new file mode 100644 index 0000000..ab067f8 --- /dev/null +++ b/components/base/ItemStack/ItemStackFormOptionLabel.vue @@ -0,0 +1,26 @@ +<script setup lang="ts"> +defineProps<{ + 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> + </div> +</template> + +<style scoped> +.label-with-button { + display: flex; + justify-content: space-between; +} +</style>
\ No newline at end of file |
