Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
smart_gov_platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
smart_gov_platform
Commits
123742d9
Commit
123742d9
authored
May 11, 2023
by
“yiyousong”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pref:修改富文本编辑器
parent
a618eefe
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
10 deletions
+12
-10
base-manager-ui/admin/src/components/YQuillEditor.vue
base-manager-ui/admin/src/components/YQuillEditor.vue
+12
-10
No files found.
base-manager-ui/admin/src/components/YQuillEditor.vue
View file @
123742d9
...
...
@@ -14,12 +14,11 @@
<!-- 富文本 -->
<quill-editor
class=
"editor ql-editor"
v-model=
"
value
"
v-model=
"
contnet
"
ref=
"myQuillEditor"
:options=
"editorOption"
@
blur=
"onEditorBlur($event)"
@
focus=
"onEditorFocus($event)"
@
change=
"onEditorChange($event)"
>
</quill-editor>
</div>
...
...
@@ -106,9 +105,7 @@ export default {
data
()
{
return
{
quillUpdateImg
:
false
,
// 根据图片上传状态来确定是否显示loading动画,刚开始是false,不显示
api
:
process
.
env
.
VUE_APP_API_BASE_URL
.
includes
(
"
base
"
)
?
process
.
env
.
VUE_APP_API_BASE_URL
.
replace
(
"
base
"
,
""
)
:
process
.
env
.
VUE_APP_API_BASE_URL
+
"
/
"
,
api
:
process
.
env
.
VUE_APP_API_BASE_URL
+
"
/
"
,
editorOption
:
{
theme
:
"
snow
"
,
// or 'bubble'
placeholder
:
"
请输入文本......
"
,
...
...
@@ -151,7 +148,16 @@ export default {
},
};
},
computed
:
{
contnet
:
{
get
()
{
return
this
.
value
;
},
set
(
val
)
{
this
.
$emit
(
"
input
"
,
val
);
},
},
},
methods
:
{
onEditorBlur
()
{
//失去焦点事件
...
...
@@ -159,10 +165,6 @@ export default {
onEditorFocus
()
{
//获得焦点事件
},
onEditorChange
()
{
//内容改变事件
this
.
$emit
(
"
input
"
,
this
.
value
);
},
// 富文本图片上传前
beforeUpload
()
{
...
...
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