| 12345678910111213141516171819202122232425262728 |
- <template>
- <recycle-list :list-data="longList" template-key="type" alias="item">
- <cell-slot template-type="A">
- <text v-on:click="toggle()" @longpress="toggle(item.key)"></text>
- <text @appear="onappear(item.index, 'static', item.type, $event)">Button</text>
- <text @disappear="onappear(25, 'static')">Tips</text>
- </cell-slot>
- </recycle-list>
- </template>
- <script>
- module.exports = {
- data () {
- return {
- longList: [
- { type: 'A' },
- { type: 'A' }
- ]
- }
- },
- methods: {
- hide () {},
- toggle () {},
- onappear () {}
- }
- }
- </script>
|