Marker layer alternative
This commit is contained in:
@@ -10,12 +10,15 @@ export default {
|
||||
},
|
||||
computed: {
|
||||
classNames() {
|
||||
return 'fa fa-'+this.icon+((this.margin || this.text && this.text!='')?' push':'')+(this.classes?' '+this.classes:'')
|
||||
return 'fa fa-'+this.icon+((this.margin || this.hasText)?' push':'')+(this.classes?' '+this.classes:'')
|
||||
},
|
||||
hasText() {
|
||||
return this.text && this.text != '';
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<span :title="title"><i :class="classNames"></i><span :class="textClasses">{{ text }}</span></span>
|
||||
<span :title="title"><i :class="classNames"></i><span v-if="hasText" :class="textClasses">{{ text }}</span></span>
|
||||
</template>
|
||||
Reference in New Issue
Block a user