浏览代码

fix: filed修复

guoxiaoxiao8 5 年之前
父节点
当前提交
44d1dd887a
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/packages/field/field.vue

+ 1 - 0
src/packages/field/field.vue

@@ -110,6 +110,7 @@ export default {
       this.active = false;
     },
     focus(){
+      if (this.disabled || this.readonly) return;
       this.active=true;
     },
     handleInput(evt) {