wip(freight): migration 0017 + model/column-list groundwork for add-freight-templates
This commit is contained in:
@@ -1,8 +1,11 @@
|
||||
<script setup lang="ts">
|
||||
const props = withDefaults(defineProps<{ images: { image: string; url?: string }[]; height?: number; interval?: number }>(), {
|
||||
height: 450,
|
||||
interval: 4000,
|
||||
});
|
||||
const props = withDefaults(
|
||||
defineProps<{ images: { image: string; url?: string }[]; height?: number; interval?: number }>(),
|
||||
{
|
||||
height: 450,
|
||||
interval: 4000,
|
||||
},
|
||||
);
|
||||
|
||||
const index = ref(0);
|
||||
let timer: ReturnType<typeof setInterval> | null = null;
|
||||
@@ -34,7 +37,10 @@ onBeforeUnmount(() => {
|
||||
class="block h-full w-full bg-cover bg-center"
|
||||
:style="{ backgroundImage: `url(${img.image})` }"
|
||||
/>
|
||||
<div v-if="images.length > 1" class="absolute bottom-[14px] left-0 right-0 flex justify-center gap-2">
|
||||
<div
|
||||
v-if="images.length > 1"
|
||||
class="absolute right-0 bottom-[14px] left-0 flex justify-center gap-2"
|
||||
>
|
||||
<button
|
||||
v-for="(_, i) in images"
|
||||
:key="i"
|
||||
|
||||
Reference in New Issue
Block a user