Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pet-business-web
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
刘怀志
pet-business-web
Commits
c4a23b2c
Commit
c4a23b2c
authored
Jun 06, 2023
by
小费同学阿
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加lint代码校验
parent
e781f9d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
index.vue
src/components/Editor/index.vue
+9
-9
No files found.
src/components/Editor/index.vue
View file @
c4a23b2c
...
@@ -72,18 +72,18 @@ export default {
...
@@ -72,18 +72,18 @@ export default {
modules
:
{
modules
:
{
// 工具栏配置
// 工具栏配置
toolbar
:
[
toolbar
:
[
//
['bold', 'italic', 'underline', 'strike'], // 加粗 斜体 下划线 删除线
[
'bold'
,
'italic'
,
'underline'
,
'strike'
],
// 加粗 斜体 下划线 删除线
[
'bold'
,
'italic'
],
// 加粗 斜体 下划线 删除线
//
['bold', 'italic'], // 加粗 斜体 下划线 删除线
// ['blockquote', 'code-block'], // 引用 代码块
// ['blockquote', 'code-block'], // 引用 代码块
// [{ list: 'ordered' }, { list: 'bullet' }], // 有序、无序列表
// [{ list: 'ordered' }, { list: 'bullet' }], // 有序、无序列表
[{
indent
:
'-1'
},
{
indent
:
'+1'
}]
// 缩进
[{
indent
:
'-1'
},
{
indent
:
'+1'
}]
,
// 缩进
//
[{ size: ['small', false, 'large', 'huge'] }], // 字体大小
[{
size
:
[
'small'
,
false
,
'large'
,
'huge'
]
}],
// 字体大小
//
[{ header: [1, 2, 3, 4, 5, 6, false] }], // 标题
[{
header
:
[
1
,
2
,
3
,
4
,
5
,
6
,
false
]
}],
// 标题
//
[{ color: [] }, { background: [] }], // 字体颜色、字体背景颜色
[{
color
:
[]
},
{
background
:
[]
}],
// 字体颜色、字体背景颜色
//
[{ align: [] }], // 对齐方式
[{
align
:
[]
}],
// 对齐方式
//
['clean'], // 清除文本格式
[
'clean'
],
// 清除文本格式
// ['link', 'image', 'video'] // 链接、图片、视频
// ['link', 'image', 'video'] // 链接、图片、视频
//
['image'] // 链接、图片、视频
[
'image'
]
// 链接、图片、视频
]
]
},
},
placeholder
:
'请输入内容'
,
placeholder
:
'请输入内容'
,
...
...
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