This repository was archived by the owner on Mar 30, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +19
-2
lines changed Expand file tree Collapse file tree 2 files changed +19
-2
lines changed Original file line number Diff line number Diff line change 7
7
</li >
8
8
<li v-for =" item in items" >
9
9
<router-link :to =" item.to" >
10
- <q-icon :name =" item.icon" ></q-icon >
10
+ <template v-if =" displayIcon .show " >
11
+ <q-icon :name =" item.icon" ></q-icon >
12
+ </template >
13
+ <template v-else =" displayIcon .show " >{{ displayIcon.caracter }}</template >
11
14
<small class =" breadcrumb-label" >{{ item.label }}</small >
12
15
</router-link >
13
16
<app-tooltip :disable =" !item.tooltip" >{{ item.tooltip }}</app-tooltip >
25
28
icon: {
26
29
type: String ,
27
30
default: ' home'
31
+ },
32
+ displayIcon: {
33
+ type: Object ,
34
+ default : () => ({
35
+ show: true ,
36
+ caracter: ' '
37
+ })
28
38
}
29
39
},
30
40
data : () => ({
Original file line number Diff line number Diff line change 50
50
51
51
<slot name =" breadcrumb" >
52
52
<div class =" breadcrumb-wrapper" >
53
- <app-breadcrumb v-bind =" {icon: home}" ></app-breadcrumb >
53
+ <app-breadcrumb v-bind =" {icon: home, displayIcon: displayIcon }" ></app-breadcrumb >
54
54
</div >
55
55
</slot >
56
56
95
95
type: String ,
96
96
default: ' home'
97
97
},
98
+ displayIcon: {
99
+ type: Object ,
100
+ default : () => ({
101
+ show: true ,
102
+ caracter: ' '
103
+ })
104
+ },
98
105
viewport: {
99
106
type: Object ,
100
107
default : () => ({
You can’t perform that action at this time.
0 commit comments