Avue 动态显隐

Avue 动态显隐

会有点卡顿

watch: {
    
    "form.deptCategory": {
      handler(val) {
        // 
        var highShotMeter = this.findObject(
          this.option.column,
          "highShotMeter"
        );
        //  
        var idCardReader = this.findObject(this.option.column, "idCardReader");
        // 
        var socialCardReader = this.findObject(
          this.option.column,
          "socialCardReader"
        );
        // val === 9 
        var showColum = (val === 9  ? true : false);
        socialCardReader.display = idCardReader.display = highShotMeter.display = showColum;    
      },
      immediate: true,
    },
  },

  

posted @ 2020-11-03 15:42  徒步阳光855  阅读(1321)  评论(0编辑  收藏  举报