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
339b932a
Commit
339b932a
authored
Feb 22, 2021
by
Josway
Browse files
富文本编辑组件支持只读
parent
0b5c7f4c
Changes
1
Show whitespace changes
Inline
Side-by-side
ruoyi-ui/src/components/Editor/index.vue
View file @
339b932a
...
@@ -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