mirror of
https://github.com/element-plus/element-plus.git
synced 2025-01-12 10:45:10 +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}
|
${this.displayDemoCode}
|
||||||
${'</sc' + 'ript>'}
|
${'</sc' + 'ript>'}
|
||||||
`
|
`
|
||||||
|
const innerStyle = this.codepen.style && this.codepen.style.trim() ? `<style>
|
||||||
|
${this.codepen.style}
|
||||||
|
</style>
|
||||||
|
` : ''
|
||||||
hlcode.innerHTML = sanitizeHTML(`<template>
|
hlcode.innerHTML = sanitizeHTML(`<template>
|
||||||
${this.codepen.html}
|
${this.codepen.html}
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
${this.displayDemoCode ? innerScript : ''}`)
|
${this.displayDemoCode ? innerScript : ''}${innerStyle}`)
|
||||||
|
|
||||||
nextTick(() => {
|
nextTick(() => {
|
||||||
if (this.$el.getElementsByClassName('description').length === 0) {
|
if (this.$el.getElementsByClassName('description').length === 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user