update Tree

update Tree
This commit is contained in:
梁灏 2017-02-07 15:01:46 +08:00
parent 07e243ffc1
commit b566d106c5
3 changed files with 9 additions and 15 deletions

View file

@ -4,10 +4,8 @@
<span :class="arrowCls(item)" @click="setExpand(item.disabled, $index)">
<Icon type="arrow-right-b"></Icon>
</span>
<!--<span v-if="showCheckbox" :class="checkboxCls(item)" @click="setCheck(item.disabled||item.disableCheckbox,$index)">-->
<!--<span :class="[prefixCls + '-checkbox-inner']"></span>-->
<!--</span>-->
<Checkbox
v-if="showCheckbox"
:checked="item.checked && item.childrenCheckedStatus == 2"
:disabled="item.disabled || item.disableCheckbox"
:indeterminate="item.checked && item.childrenCheckedStatus == 1"
@ -116,16 +114,6 @@
}
];
},
checkboxCls (item) {
return [
`${this.prefixCls}-checkbox`,
{
[`${this.prefixCls}-checkbox-disabled`]: item.disabled || item.disableCheckbox,
[`${this.prefixCls}-checkbox-checked`]: item.checked && item.childrenCheckedStatus == 2,
[`${this.prefixCls}-checkbox-indeterminate`]: item.checked && item.childrenCheckedStatus == 1
}
];
},
titleCls (item) {
return [
{