forked from hinesboy/mavonEditor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7b8c872
commit 83939a4
Showing
3 changed files
with
51 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<template> | ||
<div> | ||
<div class="navigate"> | ||
<span @click="viewIndex = 1">Full demo</span> | ||
<span @click="viewIndex = 2">Simple demo</span> | ||
</div> | ||
<div> | ||
<App v-if="viewIndex == 1"></App> | ||
<Editor v-if="viewIndex == 2"></Editor> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import app from './app.vue'; | ||
import editor from './editor.vue'; | ||
export default { | ||
name: 'demo', | ||
components: { | ||
App: app, | ||
Editor: editor, | ||
}, | ||
data() { | ||
return { | ||
viewIndex: 1, | ||
}; | ||
}, | ||
}; | ||
</script> | ||
<style> | ||
.navigate { | ||
text-align: center; | ||
font-size: 18px; | ||
color: blue; | ||
} | ||
.navigate span { | ||
margin-right: 5px; | ||
} | ||
.navigate span:hover { | ||
cursor: pointer; | ||
font-weight: bolder; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters