富文本编辑组件支持只读
This commit is contained in:
		
							parent
							
								
									0b5c7f4c96
								
							
						
					
					
						commit
						339b932a3d
					
				@ -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,
 | 
			
		||||
      },
 | 
			
		||||
    };
 | 
			
		||||
  },
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user