<template>
  <div>
    <hive-breadcrumb @onItemClick="onItemClick">
      <hive-breadcrumb-item to="#/docs/start">
        vue-router跳转
      </hive-breadcrumb-item>
      <hive-breadcrumb-item to="/test/404.html">
        同host跳转
      </hive-breadcrumb-item>
      <hive-breadcrumb-item>
        <a
          href="http://www.qq.com"
          target="_blank"
        >http地址</a>
      </hive-breadcrumb-item>
      <hive-breadcrumb-item>无跳转</hive-breadcrumb-item>
    </hive-breadcrumb>
  </div>
</template>
<script>
export default {
  methods: {
    onItemClick([key, value]) {
      console.log(value);
    }
  }
};
</script>
