File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 33 @mousedown =" (e) => e.preventDefault()"
44 @click =" (e) => (item.click && !item.disabled) ? item.click(e) : e.stopPropagation()" >
55
6- <span v-if =" item.icon" class =" material-icons icon" >{{ item.icon }}</span >
6+ <template v-if =" item .icon " >
7+ <component v-if =" typeof item.icon == 'object'" class =" icon" :is =" item.icon" ></component >
8+ <span v-else class =" material-icons icon" >{{ item.icon }}</span >
9+ </template >
710 <span v-if =" item.emoji" class =" emoji" >{{ get_emoji(item.emoji) }}</span >
811 <span v-if =" item.text" class =" label" >{{ item.text }}</span >
912 <span v-if =" item.html" class =" label" v-html =" item.html" ></span >
Original file line number Diff line number Diff line change 66 :title =" item.title"
77 :style =" { height: item.height+'px' }" >
88
9- <span v-if =" item.icon" class =" material-icons icon" >{{ item.icon }}</span >
9+ <template v-if =" item .icon " >
10+ <component v-if =" typeof item.icon == 'object'" class =" icon" :is =" item.icon" ></component >
11+ <span v-else class =" material-icons icon" >{{ item.icon }}</span >
12+ </template >
1013 <span v-if =" item.emoji" class =" emoji" >{{ get_emoji(item.emoji) }}</span >
1114 <span v-if =" item.text" class =" label" >{{ item.text }}</span >
1215 <span v-if =" item.html" class =" label" v-html =" item.html" ></span >
You can’t perform that action at this time.
0 commit comments