init
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
<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>
|
||||
Reference in New Issue
Block a user