Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
A
admin-base
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
new-sing
admin-base
Commits
2c57a5aa
Commit
2c57a5aa
authored
Sep 07, 2018
by
wangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
主页图片
菜单打开
parent
a7a0a6ec
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
5 deletions
+13
-5
index.jpg
src/assets/index.jpg
+0
-0
leftMenu.vue
src/components/framework/leftMenu.vue
+0
-1
index.vue
src/components/main/index.vue
+13
-4
No files found.
src/assets/index.jpg
0 → 100644
View file @
2c57a5aa
270 KB
src/components/framework/leftMenu.vue
View file @
2c57a5aa
...
...
@@ -5,7 +5,6 @@
text-color=
"#fff"
background-color=
"#333333"
active-text-color=
"#ffd04b"
:unique-opened=
"true"
:collapse=
"menuType"
class=
"el-menu-vertical-demo"
>
<div
class=
"menu-btn"
@
click=
"menuType = !menuType"
>
...
...
src/components/main/index.vue
View file @
2c57a5aa
<
template
>
<div>
<div
class=
"index"
>
<!-- 组件有两个属性 value 传入内容双向绑定 setting传入配置信息 -->
<
editor
class=
"editor"
:value=
"content"
:setting=
"editorSetting"
@
input=
"(content)=> content = content"
></editor
>
<
img
:src=
"indexImg"
class=
"indexImg"
/
>
</div>
</
template
>
<
script
>
import
editor
from
'@/components/textarea'
import
indexImg
from
'../../assets/index.jpg'
export
default
{
data
:
function
()
{
return
{
indexImg
:
indexImg
,
content
:
'我是富文本编辑器的内容'
,
//tinymce的配置信息 参考官方文档 https://www.tinymce.com/docs/configure/integration-and-setup/
editorSetting
:{
...
...
@@ -24,6 +26,13 @@
</
script
>
<
style
scoped
>
<
style
scoped
lang=
"less"
>
.index{
height: 100%;
background: #eee;
overflow: hidden;
.indexImg{
width: 90%;
}
}
</
style
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment