Vue.component("keyword", { props: ["v-word"], data: function () { let word = this.vWord if (word == null) { word = "" } let slot = this.$slots["default"][0] let text = slot.text if (word.length > 0) { text = text.replace(new RegExp(word, "g"), "" + word + "") } return { word: word, text: text } }, template: `` })