This commit is contained in:
JimQing 2020-05-02 11:51:50 +08:00
parent 9a42d070eb
commit 2cd6eb54c8
2 changed files with 24 additions and 24 deletions

View File

@ -1,5 +1,5 @@
[*.{js,jsx,ts,tsx,vue}]
indent_style = space
indent_size = 2
indent_size = 4
trim_trailing_whitespace = true
insert_final_newline = true

View File

@ -1,6 +1,6 @@
<template>
<loading v-if="loading" />
<codemirror-editor v-else/>
<loading v-if="loading" />
<codemirror-editor v-else />
</template>
<script>
@ -8,30 +8,30 @@ import Loading from './components/Loading'
import CodemirrorEditor from './components/CodemirrorEditor'
import prettyPrint from 'prettify'
export default {
name: 'App',
components: {
Loading,
CodemirrorEditor
},
data () {
return {
loading: true
name: 'App',
components: {
Loading,
CodemirrorEditor
},
data() {
return {
loading: true
}
},
mounted() {
setTimeout(() => {
this.loading = false
}, 200)
window.console &&
window.console.log &&
(console.log("Think big, train fast, learn deep. See https://github.com/yanglbme"))
setTimeout(() => {
// document.body.addEventListener('load', prettyPrint())
}, 2000)
}
},
mounted () {
setTimeout(() => {
this.loading = false
}, 200)
window.console
&& window.console.log
&& (console.log("Think big, train fast, learn deep. See https://github.com/yanglbme"))
setTimeout(() => {
// document.body.addEventListener('load', prettyPrint())
}, 2000)
}
}
</script>
<style lang="scss" scoped>
</style>