Commit 2c57a5aa authored by wangwei's avatar wangwei

主页图片

菜单打开
parent a7a0a6ec
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
text-color="#fff" text-color="#fff"
background-color="#333333" background-color="#333333"
active-text-color="#ffd04b" active-text-color="#ffd04b"
:unique-opened="true"
:collapse="menuType" :collapse="menuType"
class="el-menu-vertical-demo"> class="el-menu-vertical-demo">
<div class="menu-btn" @click="menuType = !menuType"> <div class="menu-btn" @click="menuType = !menuType">
......
<template> <template>
<div> <div class="index">
<!-- 组件有两个属性 value 传入内容双向绑定 setting传入配置信息 --> <!-- 组件有两个属性 value 传入内容双向绑定 setting传入配置信息 -->
<editor class="editor" :value="content" :setting="editorSetting" @input="(content)=> content = content"></editor> <img :src="indexImg" class="indexImg"/>
</div> </div>
</template> </template>
<script> <script>
import editor from '@/components/textarea' import editor from '@/components/textarea'
import indexImg from '../../assets/index.jpg'
export default { export default {
data: function () { data: function () {
return { return {
indexImg:indexImg,
content:'我是富文本编辑器的内容', content:'我是富文本编辑器的内容',
//tinymce的配置信息 参考官方文档 https://www.tinymce.com/docs/configure/integration-and-setup/ //tinymce的配置信息 参考官方文档 https://www.tinymce.com/docs/configure/integration-and-setup/
editorSetting:{ editorSetting:{
...@@ -24,6 +26,13 @@ ...@@ -24,6 +26,13 @@
</script> </script>
<style scoped> <style scoped lang="less">
.index{
height: 100%;
background: #eee;
overflow: hidden;
.indexImg{
width: 90%;
}
}
</style> </style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment