Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
RuoYi Vue
Commits
78deee06
Commit
78deee06
authored
Mar 07, 2021
by
若依
Committed by
Gitee
Mar 07, 2021
Browse files
!180 富文本编辑组件支持只读
Merge pull request !180 from JOSWAY/master
parents
4ad00364
339b932a
Changes
1
Show whitespace changes
Inline
Side-by-side
ruoyi-ui/src/components/Editor/index.vue
View file @
78deee06
...
@@ -26,6 +26,11 @@ export default {
...
@@ -26,6 +26,11 @@ export default {
type
:
Number
,
type
:
Number
,
default
:
null
,
default
:
null
,
},
},
/* 只读 */
readOnly
:
{
type
:
Boolean
,
default
:
false
,
}
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -51,7 +56,7 @@ export default {
...
@@ -51,7 +56,7 @@ export default {
],
],
},
},
placeholder
:
"
请输入内容
"
,
placeholder
:
"
请输入内容
"
,
readOnly
:
false
,
readOnly
:
this
.
readOnly
,
},
},
};
};
},
},
...
...
Write
Preview
Supports
Markdown
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