| 12345678910111213141516171819202122 |
- <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>
|