<template>
    <div class="page-cell">
        <co-header title="原生能力">
            <fallback slot="left"></fallback>
        </co-header>
        <div class="wrapper">
            <co-cell v-for="nav in navs" :key="nav.name"
                     :title="nav.name"
                     :to="nav.path">
            </co-cell>
        </div>
    </div>
</template>
<script>
  import navs from '../../route.json';

  export default {
    data() {
      return {
        navs: navs[0].list
      };
    },
    methods: {
      // 返回
      goBack: function() {
        history.go(-1);
      },
      // 跳转各种类型API
      goType: function(path) {
        this.$router.push(path);
      },
      goHttp: function() {}
    }
  };
</script>

