Files
2026-05-26 15:52:30 +08:00

46 lines
879 B
Vue

<template>
<uni-list>
<uni-list-item
:title="v.title"
:rightText="v.rightText"
:disabled="v.disabled"
v-for="(v, i) in arr"
:link="v.link"
:to="v.to"
:key="i"
>
<template v-slot:footer>
<slot :name="`footer-${v.id}`"></slot>
</template>
</uni-list-item>
</uni-list>
</template>
<script setup>
import { ref, reactive, toRaw, watch, onMounted, onUnmounted, getCurrentInstance } from 'vue';
const props = defineProps({
arr: {
type: Array,
default() {
return [];
},
},
});
</script>
<style lang="scss">
:deep(.uni-list--border) {
display: none;
}
:deep(.uni-list-item__extra-text) {
font-size: 28rpx;
color: #666666;
}
:deep(.uni-list--border-top) {
display: none;
}
:deep(.uni-list--border-bottom) {
display: none;
}
</style>