Skip to content

Breadcrumb

Displays the location of the current page, making it easier to browser back.

Basic usage

In m-breadcrumb, each m-breadcrumb-item is a tag that stands for every level starting from homepage. This component has a String attribute separator, and it determines the separator. Its default value is '/'.

vue
<template>
  <m-breadcrumb separator="/">
    <m-breadcrumb-item>homepage</m-breadcrumb-item>
    <m-breadcrumb-item href="https://baodu.com" target='_blank'>promotion list</m-breadcrumb-item>
    <m-breadcrumb-item>promotion detail</m-breadcrumb-item>
  </m-breadcrumb>
</template>

Icon separator

vue

<template>
  <m-breadcrumb>
    <template #separator> 
      <m-icon name="right" />
    </template>
    <m-breadcrumb-item>homepage</m-breadcrumb-item>
    <m-breadcrumb-item href="https://baodu.com" target='_blank'>promotion list</m-breadcrumb-item>
    <m-breadcrumb-item>promotion detail</m-breadcrumb-item>
  </m-breadcrumb>
</template>

API

NameDescriptionTypeDefault
sepratorseparator characterstring/
参数Description
sepratorseparator character
参数DescriptionTypeDefault
hreflink urlstring-
targettargetstring-
disableddisabledbooleanfalse
labellabel textstring-
参数Description
defaultlabel default slots text

Released under the MIT License.