MCPcopy
hub / github.com/miaolz123/vue-markdown / beforeMount

Function beforeMount

src/VueMarkdown.js:221–239  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

219 },
220
221 beforeMount() {
222 if (this.$slots.default) {
223 this.sourceData = ''
224 for (let slot of this.$slots.default) {
225 this.sourceData += slot.text
226 }
227 }
228
229 this.$watch('source', () => {
230 this.sourceData = this.prerender(this.source)
231 this.$forceUpdate()
232 })
233
234 this.watches.forEach((v) => {
235 this.$watch(v, () => {
236 this.$forceUpdate()
237 })
238 })
239 },
240}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected