<template>
  <div class="demo-anchor-basic">
    <ui-anchor
      :links="links"
      :fixed-top="100"></ui-anchor>
  </div>
</template>

<script>
import { Anchor } from "amumu-ui"
export default {
  components: {
    "ui-anchor": Anchor,
  },
  data() {
    return {
      links: [
        {
          href: "anchor-锚点",
          title: "anchor-锚点",
        },
        {
          href: "基本使用",
          title: "基本使用",
          children: [
            {
              href: "props1",
              title: "props1",
            },
            {
              href: "slots1",
              title: "slots1",
            },
          ],
        },
        {
          href: "props",
          title: "props",
        },
        {
          href: "slots",
          title: "slots",
        },
        {
          href: "methods",
          title: "methods",
        },
      ],
    }
  },
}
</script>
