element/packages/breadcrumb
2016-12-16 10:57:54 +08:00
..
src add breadcrumb router props 2016-10-13 12:34:25 +08:00
_index.js component README update and fix 2016-12-16 10:57:54 +08:00
cooking.conf.js component README update and fix 2016-12-16 10:57:54 +08:00
index.js Components: use es2015 export module, fixed #907 2016-11-08 15:01:00 +08:00
package.json component README update and fix 2016-12-16 10:57:54 +08:00
README.md component README update and fix 2016-12-16 10:57:54 +08:00

element-breadcrumb

A element-breadcrumb component for Vue.js.

Demo

http://element-component.github.io/element-breadcrumb

Installation

npm i element-breadcrumb -D

Usage

import Vue from 'vue'
import ElBreadcrumb from 'element-breadcrumb'
import 'element-theme-default/dist/breadcrumb.css'

Vue.use(ElBreadcrumb)

or

import Vue from 'vue'
import { ElBreadcrumb } from 'element-breadcrumb'
import { ElBreadcrumbItem } from 'element-breadcrumb'

Vue.component('el-breadcrumb', ElBreadcrumb)
Vue.component('el-breadcrumb-item', ElBreadcrumbItem)

Breadcrumb Attributes

参数 说明 类型 可选值 默认值
separator 分隔符 string 斜杠'/'

Breadcrumb Item Attributes

参数 说明 类型 可选值 默认值
to 路由跳转对象,同 vue-routerto string/object
replace 在使用 to 进行路由跳转时,启用 replace 将不会向 history 添加新记录 boolean false

Development

make dev

## test
make test

## build
make build

License

MIT