fix logo, delete card
This commit is contained in:
@@ -4,7 +4,8 @@
|
||||
<div ref="el" class="w-full flex flex-col relative h-full test">
|
||||
<CardItem v-for="(item,i) in props?.items" :key="i" v-model:sliderIndex="index" :card-number="item?.cart_number"
|
||||
:color="colors[i%3]"
|
||||
:self-index="i" :shaba="item?.shaba_number" :title="item?.bank_name" :active="item.sts === 2"/>
|
||||
:self-index="i" :shaba="item?.shaba_number" :title="item?.bank_name" :active="item.sts === 2" :id="item?.id"
|
||||
@cardDeleted="handleCardDeleted"/>
|
||||
<div class="absolute bottom-15vh right-0 left-0 z-100 flex justify-center items-center opacity-70">
|
||||
<div class="flex gap-1 bg-gray-500 px-2 py-1 rounded-lg">
|
||||
<Transition name="slide-up" mode="out-in" v-for="i in items.length" :key="i">
|
||||
@@ -35,7 +36,11 @@ interface Prop {
|
||||
}
|
||||
|
||||
const props = defineProps<Prop>()
|
||||
const emits = defineEmits(['update:id'])
|
||||
const emits = defineEmits(['update:id', 'cardDeleted'])
|
||||
|
||||
function handleCardDeleted() {
|
||||
emits('cardDeleted')
|
||||
}
|
||||
|
||||
const localValue = computed({
|
||||
get() {
|
||||
|
||||
Reference in New Issue
Block a user