修改uview中u-input源代码:
加一行:if(this.disabled) style.pointerEvents = ‘none’;
getStyle() {
let style = {};
// 如果没有自定义高度,就根据type为input还是textare来分配一个默认的高度
style.minHeight = this.height ? this.height + 'rpx' : this.type == 'textarea' ?
this.textareaHeight + 'rpx' : this.inputHeight + 'rpx';
if(this.disabled) style.pointerEvents = 'none';
style = Object.assign(style, this.customStyle);
return style;
},