ayiaq1 / el-tree-select

基于element-ui2.x扩展下拉树
224 stars 93 forks source link

树点击事件disabled值判定无效 #52

Closed qq1390229143 closed 4 years ago

qq1390229143 commented 4 years ago

this.treeParams.props.disabled为空时,propsDisabled赋值是undefined,导致树点击事件判定有误 propsDisabled需要默认值

ayiaq1 commented 4 years ago

props 需要加上disabled

qq1390229143 commented 4 years ago

propsDisabled: 'disabled', this.propsDisabled = props.disabled; 这两句看的不矛盾? 不传值就是undefined了

qq1390229143 commented 4 years ago

if(props.disabled){ this.propsDisabled = props.disabled } 这样不是更好?

ayiaq1 commented 4 years ago

下次发包的时候会增加兼容性判断,再此之前可以加props.disabled

qq1390229143 commented 4 years ago

好的