Skip to content

Commit 9c45e7a

Browse files
committed
docs bug fixed
1 parent 6e7f09f commit 9c45e7a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+14
-14
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

docs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,5 +116,5 @@
116116
<script src="https://s2.ssl.qhres.com/static/c92cea7b7b861985.js"></script>
117117
<script src="https://s3.ssl.qhres.com/static/5499ce5be9b03632.js"></script>
118118
-->
119-
<script type="text/javascript" src="main.38e0c41399c922b5905f.js"></script></body>
119+
<script type="text/javascript" src="main.4992b4d857c4f69898e6.js"></script></body>
120120
</html>

docs/main.38e0c41399c922b5905f.js renamed to docs/main.4992b4d857c4f69898e6.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

site/components/BlockDemo.vue

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export default {
4343
source: String
4444
},
4545
46-
data() {
46+
data () {
4747
return {
4848
editor: null,
4949
visible: true,
@@ -54,16 +54,16 @@ export default {
5454
}
5555
},
5656
57-
mounted() {
57+
mounted () {
5858
let tip = this.tip.split(',')
5959
6060
try {
6161
tip = JSON.parse(JSON.stringify(tip))
62-
} catch (e) {}
62+
} catch (e) { }
6363
6464
let innerWidth = window.innerWidth
6565
this.isFullscreen = tip.indexOf('fullscreen') > -1
66-
;(this.showEditor = innerWidth >= 768) && this.initSplit()
66+
; (this.showEditor = innerWidth >= 768) && this.initSplit()
6767
6868
this.initEditor()
6969
try {
@@ -76,7 +76,7 @@ export default {
7676
},
7777
7878
methods: {
79-
copyCode() {
79+
copyCode () {
8080
let val = this.editor.getDoc().getValue()
8181
let $text = this.$refs['copytxt']
8282
$text.value = val
@@ -85,21 +85,21 @@ export default {
8585
document.execCommand('copy')
8686
alert('复制成功!')
8787
},
88-
toggle() {
88+
toggle () {
8989
this.visible = !this.visible
9090
},
9191
92-
unescape(html) {
92+
unescape (html) {
9393
return unescape(html)
9494
},
9595
96-
initSplit() {
96+
initSplit () {
9797
Split([this.$refs['preview'], this.$refs['editor']], {
9898
sizes: [50, 50]
9999
})
100100
},
101101
102-
initEditor() {
102+
initEditor () {
103103
this.editor = CodeMirror.fromTextArea(this.$refs['textarea'], {
104104
mode: 'jsx',
105105
extraKeys: {
@@ -114,7 +114,7 @@ export default {
114114
this.editor.getDoc().setValue(this.unescape(this.source))
115115
},
116116
117-
syncCode() {
117+
syncCode () {
118118
const oDemo = this.$refs['demo']
119119
oDemo.innerHTML = `<iframe class="chart-frame" frameborder="0"></iframe>`
120120
const iframe = oDemo.querySelector('iframe')
@@ -131,7 +131,7 @@ export default {
131131
<script crossorigin="anonymous" integrity="sha384-/6abeKukkMgqKqL8g8JINA6J38IKDXwd1XiKRHwF1y6IWpMAuCI+4KSBLOj3bv+k" src="//lib.baomitu.com/react-dom/16.9.0-alpha.0/umd/react-dom.production.min.js"><\/script>
132132
<script crossorigin="anonymous" integrity="sha384-LYxFDCinsAkMityIwlndisTOMBM5FXNysu758VzqiuCRZmCw7aDRDVn9HlHPi80A" src="//lib.baomitu.com/prop-types/15.7.2/prop-types.min.js"><\/script>
133133
<script src="https://unpkg.com/spritejs/dist/spritejs.min.js"><\/script>
134-
<script src="https://unpkg.com/@qcharts/core/lib/index.js"><\/script>
134+
<script src="https://unpkg.com/@qcharts/core@0.1/lib/index.js"><\/script>
135135
<script src="https://unpkg.com/cat-charts-react/lib/index.js"><\/script>
136136
<script>
137137
function require(name) {
@@ -149,7 +149,7 @@ export default {
149149
)
150150
},
151151
152-
fullscreen() {
152+
fullscreen () {
153153
this.isFullscreen = !this.isFullscreen
154154
if (window.parent) {
155155
window.parent.postMessage({ fullScreen: this.isFullscreen }, '*')

0 commit comments

Comments
 (0)