# Dynamic Unordered List

TIP

Dynamic unordered lists often appear in lists sorted by heat, such as HackerNews

  • The parameter automatically carries seen_ids, which is the id of all items that have been fetched, such as seen_ids:'1,2,3,4,5'
<template>
  <ListView
    ref="loader"
    func="getListBySeenIds"
    type="seenIds"
    :query="requestParams"
    display-no-more
    unique-key="data.number_id"
  >
    <ul slot-scope="{ list }">
      <item v-for="item in list" :key="item.data.number_id" :item="item" />
    </ul>
    <template #no-more>
      custom no more text
    </template>
  </ListView>
</template>
<script>
export default {
  computed: {
    requestParams() {
      const { query } = this.$route
      return {
        id: query.id,
        count: 10
      }
    }
  }
}
</script>