feat: Added default octicon
This commit is contained in:
parent
26e90609f0
commit
f21c5b7253
1 changed files with 10 additions and 1 deletions
|
|
@ -15,7 +15,7 @@
|
|||
<div class="module-box-link">
|
||||
<h4 class="h4">
|
||||
<a :href="type === 'module' ? '#modules/' + module_name : link">
|
||||
<i :class="icon" style="color:#8d99a6;font-size:18px;margin-right:6px;"></i>
|
||||
<i :class="iconClass" style="color:#8d99a6;font-size:18px;margin-right:6px;"></i>
|
||||
{{ label }}
|
||||
</a>
|
||||
</h4>
|
||||
|
|
@ -68,6 +68,15 @@ export default {
|
|||
hovered: 0
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
iconClass() {
|
||||
if (this.icon) {
|
||||
return this.icon;
|
||||
} else {
|
||||
return "octicon octicon-primitive-dot";
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
on_dragstart() {
|
||||
this.$emit("box-dragstart", this.index);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue