ztree点击节点会有一个底色变白的效果(如何阻止这个变白效果)

方法:设置回调ztreeBeforeOnClick,并return false

 setting: {
      check: {
          enable:true,
          chkStyle: "checkbox",
          chkboxType: {"Y":"ps","N":"ps"},
      },
      data: {
          simpleData: {
              enable: true,
              pIdKey:'pId',
              idKey: 'id',
              rootPId:''
          }
      },
      view: {
          showLine:false
      },
      callback: {
          onCheck: this.zTreeOnCheck,
          beforeClick: this.ztreeBeforeOnClick,
      }
  },
 ztreeBeforeOnClick(){
  		return false;
   },
©️2020 CSDN 皮肤主题: 游动-白 设计师:上身试试 返回首页