mirror of https://github.com/vuejs/vue.git
23 lines
430 B
Vue
23 lines
430 B
Vue
<template>
|
|
<recycle-list for="item in longList" switch="type">
|
|
<cell-slot case="A">
|
|
<counter :start="item.number"></counter>
|
|
<text>other</text>
|
|
</cell-slot>
|
|
</recycle-list>
|
|
</template>
|
|
|
|
<script>
|
|
// require('./counter.vue')
|
|
module.exports = {
|
|
data () {
|
|
return {
|
|
longList: [
|
|
{ type: 'A', number: 24 },
|
|
{ type: 'A', number: 42 }
|
|
]
|
|
}
|
|
}
|
|
}
|
|
</script>
|