Marker layer alternative

This commit is contained in:
2026-04-20 00:42:45 +02:00
parent bcc5e9e0cd
commit ef88e600e3
7 changed files with 138 additions and 81 deletions

View File

@@ -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>