Commit 4f770b24a478fb0d142060cbd9e0b3b10664da94

Authored by YunaiV
1 parent bc41aa70

v3.5.0 富文本编辑组件支持只读

yudao-ui-admin/src/components/Editor/index.vue
1 <template> 1 <template>
2 - <div class="editor" ref="editor" :style="styles"></div> 2 + <div class="editor" ref="editor" :style="styles"></div>
3 </template> 3 </template>
4 4
5 <script> 5 <script>
@@ -26,6 +26,11 @@ export default { @@ -26,6 +26,11 @@ export default {
26 type: Number, 26 type: Number,
27 default: null, 27 default: null,
28 }, 28 },
  29 + /* 只读 */
  30 + readOnly: {
  31 + type: Boolean,
  32 + default: false,
  33 + }
29 }, 34 },
30 data() { 35 data() {
31 return { 36 return {
@@ -51,7 +56,7 @@ export default { @@ -51,7 +56,7 @@ export default {
51 ], 56 ],
52 }, 57 },
53 placeholder: "请输入内容", 58 placeholder: "请输入内容",
54 - readOnly: false, 59 + readOnly: this.readOnly,
55 }, 60 },
56 }; 61 };
57 }, 62 },
@@ -192,4 +197,4 @@ export default { @@ -192,4 +197,4 @@ export default {
192 .ql-snow .ql-picker.ql-font .ql-picker-item[data-value="monospace"]::before { 197 .ql-snow .ql-picker.ql-font .ql-picker-item[data-value="monospace"]::before {
193 content: "等宽字体"; 198 content: "等宽字体";
194 } 199 }
195 -</style>  
196 \ No newline at end of file 200 \ No newline at end of file
  201 +</style>
更新日志.md
@@ -32,6 +32,7 @@ TODO @@ -32,6 +32,7 @@ TODO
32 * 【优化】使用 Lombok 简化 JsonUtils 工具类 [#73](https://github.com/YunaiV/ruoyi-vue-pro/pull/73) 32 * 【优化】使用 Lombok 简化 JsonUtils 工具类 [#73](https://github.com/YunaiV/ruoyi-vue-pro/pull/73)
33 * 【新增】兼容 Node 16 版本,通过升级 BPMN-JS 相关库 [commit](https://gitee.com/zhijiantianya/ruoyi-vue-pro/commit/4c169cbc58eb0d0cc4aead73ca127a2957e6a3aa) 33 * 【新增】兼容 Node 16 版本,通过升级 BPMN-JS 相关库 [commit](https://gitee.com/zhijiantianya/ruoyi-vue-pro/commit/4c169cbc58eb0d0cc4aead73ca127a2957e6a3aa)
34 * 【新增】前端的表格右侧工具栏组件支持显隐列,具体可见【用户管理】功能 [commit](https://gitee.com/zhijiantianya/ruoyi-vue-pro/commit/20e34e35a3bdc48e6a4c58e3849aa729bd18efe5) 34 * 【新增】前端的表格右侧工具栏组件支持显隐列,具体可见【用户管理】功能 [commit](https://gitee.com/zhijiantianya/ruoyi-vue-pro/commit/20e34e35a3bdc48e6a4c58e3849aa729bd18efe5)
  35 +* 【新增】跟进 ruoyi-vue 3.4.0 版本
35 36
36 ### 🐞 Bug Fixes 37 ### 🐞 Bug Fixes
37 38