mirror of
https://github.com/element-plus/element-plus.git
synced 2024-12-27 03:01:14 +08:00
docs(other): missing style tag problem (#2539)
This commit is contained in:
parent
c28d7b3738
commit
9999f2fd10
@ -201,11 +201,15 @@ export default {
|
||||
${this.displayDemoCode}
|
||||
${'</sc' + 'ript>'}
|
||||
`
|
||||
const innerStyle = this.codepen.style && this.codepen.style.trim() ? `<style>
|
||||
${this.codepen.style}
|
||||
</style>
|
||||
` : ''
|
||||
hlcode.innerHTML = sanitizeHTML(`<template>
|
||||
${this.codepen.html}
|
||||
</template>
|
||||
|
||||
${this.displayDemoCode ? innerScript : ''}`)
|
||||
${this.displayDemoCode ? innerScript : ''}${innerStyle}`)
|
||||
|
||||
nextTick(() => {
|
||||
if (this.$el.getElementsByClassName('description').length === 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user