mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-10-31 10:18:42 +08:00 
			
		
		
		
	v3.5.0 富文本编辑组件支持只读
This commit is contained in:
		| @@ -1,5 +1,5 @@ | ||||
| <template> | ||||
|     <div class="editor" ref="editor" :style="styles"></div> | ||||
|   <div class="editor" ref="editor" :style="styles"></div> | ||||
| </template> | ||||
|  | ||||
| <script> | ||||
| @@ -26,6 +26,11 @@ export default { | ||||
|       type: Number, | ||||
|       default: null, | ||||
|     }, | ||||
|     /* 只读 */ | ||||
|     readOnly: { | ||||
|       type: Boolean, | ||||
|       default: false, | ||||
|     } | ||||
|   }, | ||||
|   data() { | ||||
|     return { | ||||
| @@ -51,7 +56,7 @@ export default { | ||||
|           ], | ||||
|         }, | ||||
|         placeholder: "请输入内容", | ||||
|         readOnly: false, | ||||
|         readOnly: this.readOnly, | ||||
|       }, | ||||
|     }; | ||||
|   }, | ||||
| @@ -192,4 +197,4 @@ export default { | ||||
| .ql-snow .ql-picker.ql-font .ql-picker-item[data-value="monospace"]::before { | ||||
|   content: "等宽字体"; | ||||
| } | ||||
| </style> | ||||
| </style> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 YunaiV
					YunaiV