md/src/pages/index/index.vue
JimQing b50ae32834
refactor: use uni-app framework (#55)
* update framework to uni-app

* fix: bug fix

* fix: bug fix

* 修改输出路径

* feat: publicPath

* feat: manifest update

* fix: cssEditor theme

* fix: style

* style: format code with prettier

* fix: table style & copy style on the night mode

* fix: upload image

* fix: style

Co-authored-by: yanglbme <szuyanglb@outlook.com>
2021-02-28 14:50:52 +08:00

44 lines
665 B
Vue

<template>
<transition name="fade" v-if="loading">
<loading />
</transition>
<codemirror-editor v-else />
</template>
<script>
import Loading from "../../components/Loading";
import CodemirrorEditor from "./view/CodemirrorEditor";
export default {
name: "App",
components: {
Loading,
CodemirrorEditor,
},
data() {
return {
loading: true,
};
},
mounted() {
setTimeout(() => {
this.loading = false;
}, 100);
},
};
</script>
<style scoped>
.fade-enter,
.fade-leave-to {
opacity: 0;
}
.fade-enter-to,
.fade-leave {
opacity: 1;
}
.fade-enter-active,
.fade-leave-active {
transition: all 1s;
}
</style>