export default {
	install(Vue) {
		Object.defineProperties(Vue.prototype, {
			$breadcrumbs: {
				get() {
					return this.$route.matched;
				}
			}
		});

		Vue.component('breadcrumbs', {
			methods: {
				getBreadcrumb: function (bc) {
					return typeof bc === 'function' ? bc() : bc;
				}
			},
			template: `
				<ol class="breadcrumb" v-if="$breadcrumbs.length">
					<li class="breadcrumb-item" v-if="crumb.meta.breadcrumb" v-for="(crumb, i) in $breadcrumbs">
						<router-link active-class="active" :to="{ path: crumb.path }" :tag="i != $breadcrumbs.length - 1 ? 'a' : 'span'">{{ getBreadcrumb(crumb.meta.breadcrumb) }}</router-link>
					</li>
				</ol>
				`
		});
	}
};

@@ -14,24 +14,26 @@
 t %7B%0A
-%09
+  
 install
+ 
 (Vue) %7B%0A
 %09%09Ob
@@ -28,18 +28,20 @@
 (Vue) %7B%0A
-%09%09
+    
 Object.d
@@ -73,19 +73,22 @@
 type, %7B%0A
-%09%09%09
+      
 $breadcr
@@ -99,25 +99,35 @@
 : %7B%0A
-%09%09%09%09
+        
 get
+ 
 () %7B%0A
-%09%09%09%09%09
+          
 retu
@@ -152,30 +152,325 @@
 ched
-;%0A%09%09%09%09%7D%0A%09%09%09%7D%0A%09%09
+.map(r =%3E %7B%0A            let path = ''%0A            let route = r%0A%0A            Object.keys(this.$route.params).map(e =%3E %7B%0A              path = route.path.replace(':' + e, this.$route.params%5Be%5D)%0A            %7D, this)%0A            route.path = path%0A            return route%0A          %7D, this)%0A        %7D%0A      %7D%0A    
 %7D)
-;
 %0A%0A
-%09%09
+    
 Vue.
@@ -496,19 +496,22 @@
 mbs', %7B%0A
-%09%09%09
+      
 methods:
@@ -513,20 +513,24 @@
 hods: %7B%0A
-%09%09%09%09
+        
 getBread
@@ -552,21 +552,26 @@
  (bc) %7B%0A
-%09%09%09%09%09
+          
 return t
@@ -609,25 +609,34 @@
 : bc
-;%0A%09%09%09%09%7D%0A%09%09%09%7D,%0A%09%09%09
+%0A        %7D%0A      %7D,%0A      
 temp
@@ -643,20 +643,24 @@
 late: %60%0A
-%09%09%09%09
+        
 %3Col clas
@@ -702,21 +702,26 @@
 ength%22%3E%0A
-%09%09%09%09%09
+          
 %3Cli clas
@@ -809,14 +809,20 @@
 s%22%3E%0A
-%09%09%09%09%09%09
+            
 %3Crou
@@ -991,43 +991,57 @@
 nk%3E%0A
-%09%09%09%09%09%3C/li%3E%0A%09%09%09%09%3C/ol%3E%0A%09%09%09%09%60%0A%09%09%7D);%0A%09
+          %3C/li%3E%0A        %3C/ol%3E%0A        %60%0A    %7D)%0A  
 %7D%0A%7D
-;
 %0A

fix breadcrumbs to populate params in matched routes