更新部分公共组件代码

This commit is contained in:
YeMingfei666 2024-09-14 18:25:13 +08:00
parent d43f6da535
commit 2ea09eeaad
2 changed files with 7 additions and 1 deletions

View File

@ -4,7 +4,7 @@
<slot name="title">
</slot>
<view class="item" @tap.stop="itemClick(index)" v-for="(item,index) in props.list" :key="index">
<button class="bg-fff btn" hover-class="btn-hover-class">{{item}}</button>
<button class="bg-fff btn" hover-class="btn-hover-class" :class="{'color-main':active==index}">{{item}}</button>
</view>
<view class="bock-gary"></view>
<view class="cancel-btn" @tap="close">
@ -18,6 +18,11 @@
<script setup>
import { ref } from 'vue';
const props=defineProps({
//
active:{
type:Number,
default:-1
},
autoClose:{
type:Boolean,
default:true

View File

@ -138,6 +138,7 @@
function cancel() {
show.value = false
emits('cancel')
emits('close')
}
function confirm() {