File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
src/components/breadcrumbs Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -33,8 +33,12 @@ export default {
3333 color = `text-${ this . color } ` ,
3434 active = `text-${ this . activeColor } `
3535
36- this . $slots . default . forEach ( ( comp , i ) => {
37- if ( comp . componentOptions && comp . componentOptions . tag === 'q-breadcrumbs-el' ) {
36+ for ( const i in this . $slots . default ) {
37+ const comp = this . $slots . default [ i ]
38+ if (
39+ comp . componentOptions &&
40+ [ 'q-breadcrumbs-el' , 'QBreadcrumbsEl' , 'qBreadcrumbsEl' ] . includes ( comp . componentOptions . tag )
41+ ) {
3842 const middle = i < length
3943
4044 child . push ( h ( 'div' , {
@@ -48,7 +52,7 @@ export default {
4852 else {
4953 child . push ( comp )
5054 }
51- } )
55+ }
5256
5357 return h ( 'div' , {
5458 staticClass : 'q-breadcrumbs flex gutter-xs items-center overflow-hidden' ,
You can’t perform that action at this time.
0 commit comments