You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
410 B
22 lines
410 B
<template>
|
|
<recycle-list for="item in longList" switch="type">
|
|
<cell-slot case="A">
|
|
<image v-if="item.source" :src="item.source"></image>
|
|
<text v-if="!item.source">Title</text>
|
|
</cell-slot>
|
|
</recycle-list>
|
|
</template>
|
|
|
|
<script>
|
|
module.exports = {
|
|
data () {
|
|
return {
|
|
longList: [
|
|
{ type: 'A' },
|
|
{ type: 'A' }
|
|
]
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
|