# 列表更多

<e-list-view @fetch="handleFetch" :loading.sync="loading" :is-more="isMore">
  <e-cellbox :gutter="20" middle v-for="(item, index) in list" :key="index" style="padding:10px 0" class="divider">
    <e-cell-item style="width:60px">
      <e-avatar style="height:60px;width:60px" />
    </e-cell-item>
    <e-cell-item>
      {{item.name}}
    </e-cell-item>
  </e-cellbox>
</e-list-view>

```html
<template>
  <e-list-view @fetch="handleFetch" :loading.sync="loading" :is-more="isMore">
    <e-cellbox :gutter="20" middle v-for="(item, index) in list" :key="index" style="padding:10px 0" class="divider">
      <e-cell-item style="width:60px">
        <e-avatar style="height:60px;width:60px" />
      </e-cell-item>
      <e-cell-item>
        {{item.name}}
      </e-cell-item>
    </e-cellbox>
  </e-list-view>
</template>
<script>
  import EListView from 'e-ui/ListView'
  export default {
    components: {
      EListView
    },
    data () {
      return {
        loading: false,
        list: [],
        isMore: true
      }
    },
    methods: {
      handleFetch() {
        setTimeout(() => {
          let list = Object([], this.list)
          for (let i = 0; i < 20; i++) {
            list.push({
              name: 'name' + Math.random()
            })
          }
          this.list = this.list.concat(list)
          this.loading = false
          if (this.list.length > 50) {
            this.isMore = false
          }
        }, 500)
      }
    }
  }
</script>
```

### Props
| 参数      | 说明    | 类型      | 可选值       | 默认值   |
|---------- |-------- |---------- |------------- |--------- |
| loading     | 加载状态   | boolean  |   -       |    false    |
| isMore     | 是否有更多   | boolean  |   -       |    true    |
| moreText     | 更多文本   | string  |   -       |    更多    |
| moreLoadingText     | 更多加载状态文本   | string  |   -       |    努力加载中...    |
| moreEndText     | 没有更多文本   | string  |   -       |    没有更多了    |
| params     | 下一页的参数，用于SEO   | object  |   -       |    -    |
| scrollDom     | 绑定滚动dom元素   | dom  |   -       |    document    |

### Events
| 事件名称 | 说明 | 回调参数 |
|---------|--------|---------|
| fetch | 触发加载更多 | - |

### Slots
| 名称 | 说明 | 
|---------|--------|
| default | - |