Skip to content

Commit 2a8712a

Browse files
committed
docs: temporarily fixed error for docs with script
1 parent 5c8d112 commit 2a8712a

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

packages/docs/docs/guide/using-vue.md

+1
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ Sometimes you may need to apply some JavaScript or CSS only to the current page.
185185

186186
<script>
187187
export default {
188+
props: ['slot-key'],
188189
mounted () {
189190
document.querySelector(`.${this.$style.example}`)
190191
.textContent = 'This is rendered by inline script and styled by inline CSS'

packages/docs/docs/zh/guide/using-vue.md

+1
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ yarn add -D pug pug-plain-loader
185185

186186
<script>
187187
export default {
188+
props: ['slot-key'],
188189
mounted () {
189190
document.querySelector(`.${this.$style.example}`)
190191
.textContent = '这个块是被内联的脚本渲染的,样式也采用了内联样式。'

0 commit comments

Comments
 (0)