文件
OmniCard/mpuniapp/uni_modules/uni-recycle-view/components/uni-recycle-item/uni-recycle-item.uvue

25 行
382 B
Plaintext

<template>
<view class="recycle-item" :style="{transform: 'translateY(' + props.offset + 'px)'}">
<slot></slot>
</view>
</template>
<script setup>
const props = defineProps({
offset: {
type: Number,
default: 0
}
})
</script>
<style>
.recycle-item {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: auto;
}
</style>