mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-23 12:43:48 -04:00
spelling - fix handling empty tags
This commit is contained in:
parent
1efe971d45
commit
9f8f771915
@ -7,7 +7,18 @@
|
||||
text: {},
|
||||
},
|
||||
render(h) {
|
||||
return h('span', {domProps: { innerHTML: this.handleSpelling(this.text !== undefined ? this.text : this.$slots.default[0].text) }});
|
||||
return h('span', {domProps: { innerHTML: this.handleSpelling(this.val) }});
|
||||
},
|
||||
computed: {
|
||||
val() {
|
||||
if (this.text !== undefined) {
|
||||
return this.text;
|
||||
}
|
||||
if (this.$slots.default && this.$slots.default.length) {
|
||||
return this.$slots.default[0].text;
|
||||
}
|
||||
return ''
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
Loading…
x
Reference in New Issue
Block a user