Skip to content

Commit

Permalink
docs: temporarily fixed error for docs with script
Browse files Browse the repository at this point in the history
  • Loading branch information
ulivz committed Oct 23, 2018
1 parent 5c8d112 commit 2a8712a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/docs/docs/guide/using-vue.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ Sometimes you may need to apply some JavaScript or CSS only to the current page.

<script>
export default {
props: ['slot-key'],
mounted () {
document.querySelector(`.${this.$style.example}`)
.textContent = 'This is rendered by inline script and styled by inline CSS'
Expand Down
1 change: 1 addition & 0 deletions packages/docs/docs/zh/guide/using-vue.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ yarn add -D pug pug-plain-loader

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

0 comments on commit 2a8712a

Please sign in to comment.