vue-coe-breadcrumb
first breadcrumb with dynamic labels
Last updated 2 years ago by viniazvd .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install vue-coe-breadcrumb 
SYNC missed versions from official npm registry.

vue-coe-breadcrumb ✅

License


Example


Competitive Diferentials

  • intuitive and easy to set up
  • centralized in the store (that is, easy to debug)
  • accepts dynamic and static labels
  • data is persisted while reloading (though centralized in the store)

Install

yarn add vue-coe-breadcrumb or npm i vue-coe-breadcrumb

Include Plugin

import Vue from 'vue'

import { VueCoeBreadcrumb } from 'vue-coe-breadcrumb'

Vue.use(VueCoeBreadcrumb, store, options)

Register in component

<script>
import CoeBreadcrumb from 'vue-coe-breadcrumb'

export default {
  components: { CoeBreadcrumb }
  ...
</script>

Use

<script>
export default {
  // ...
  
  breadcrumb: {
    getters: 'anyGettersFromYourStore', // the label of this route / crumb will be populated by the called getters value
    name: 'nameOfTheCurrentRoute'
  }
  
  // ...
}
</script>

options: plugin instance

Name Default Required About
storeName coebreadcrumb false store name
store true instance of store
separatorText \| false separator text
hidden [] false array of strings with the name of the routes that will be hidden

slots: component

  • crumbs
  • name

Current Tags

  • 0.1.3                                ...           latest (2 years ago)

13 Versions

  • 0.1.3                                ...           2 years ago
  • 0.1.2                                ...           2 years ago
  • 0.1.1                                ...           2 years ago
  • 0.1.0                                ...           2 years ago
  • 0.0.9                                ...           2 years ago
  • 0.0.8                                ...           2 years ago
  • 0.0.7                                ...           2 years ago
  • 0.0.6                                ...           2 years ago
  • 0.0.5                                ...           2 years ago
  • 0.0.4                                ...           2 years ago
  • 0.0.3                                ...           2 years ago
  • 0.0.2                                ...           2 years ago
  • 0.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (3)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |