<template>
  <div>
    <list :list="list" @click-item="clickItem"></list>
  </div>
</template>
<script>
import List from '../components/list';
export default {
  name: 'list-demo',
  data () {
    return {
      list: [
        { icon: 'arrow-right', name: '王小明', url: '/', color: 'red' },
        { name: '朱大装', url: '', img: '../src/assets/demo/1.jpg' }
      ]
    };
  },
  methods: {
    clickItem (obj) {
      console.log(obj)
    }
  },
  components: {
    List
  }
};
</script>