Skip to content

Commit

Permalink
fix css
Browse files Browse the repository at this point in the history
  • Loading branch information
gheorghelupu17 committed Oct 17, 2023
1 parent 139bafd commit 1f61ac5
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions resources/js/Components/RepeaterComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,19 @@
<p class="text-sm leading-5 text-gray-700" v-show="description" v-text="description"/>
</div>
<div class="flex w-full border-t border-gray-300 pb-1.5" v-for="(item, index) in tmpElements" :key="index">
<template v-for="(struct, indexStruct) in structure">
<Input
class="w-1/3"
<Input
v-for="(struct, indexStruct) in structure"
:key="indexStruct"
class="w-1/3 mx-2"
:label="$t(struct.label)"
color="gray-700"
type="text"
v-model="item[struct.key]"
:error = "struct.error"
/>

</template>

<DangerButton
class="mt-8 ml-4"
class="mt-6"
type="button"
hover="red-400"
color="white"
Expand All @@ -27,7 +26,7 @@
/>
</div>
<SecondaryButton
class="mt-8 ml-4"
class="mt-4"
hover="primary-400"
color="white"
@click="() => {tmpElements.push({ url: '' });}"
Expand Down Expand Up @@ -68,12 +67,6 @@ const props = defineProps({
required: true,
},
});
console.log(props.elements);
const tmpElements = ref(props.elements);
console.log(tmpElements.value);
emit('upload', tmpElements);
</script>

0 comments on commit 1f61ac5

Please sign in to comment.