mirror of
https://github.com/doocs/md.git
synced 2024-11-24 19:10:34 +08:00
38 lines
827 B
Vue
38 lines
827 B
Vue
<template>
|
|
<loading v-if="loading" />
|
|
<codemirror-editor v-else />
|
|
</template>
|
|
|
|
<script>
|
|
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
|
|
}
|
|
},
|
|
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>
|