|
@@ -205,20 +205,19 @@
|
|
|
const disabled = !checkStrictly && isDisabled;
|
|
|
const events = { on: {} };
|
|
|
|
|
|
- if (!isLeaf) {
|
|
|
- if (expandTrigger === 'click') {
|
|
|
- events.on.click = this.handleExpand;
|
|
|
- } else {
|
|
|
- events.on.mouseenter = e => {
|
|
|
- this.handleExpand();
|
|
|
- this.$emit('expand', e);
|
|
|
- };
|
|
|
- events.on.focus = e => {
|
|
|
- this.handleExpand();
|
|
|
- this.$emit('expand', e);
|
|
|
- };
|
|
|
- }
|
|
|
- } else if (!isDisabled && !checkStrictly && !multiple) {
|
|
|
+ if (expandTrigger === 'click') {
|
|
|
+ events.on.click = this.handleExpand;
|
|
|
+ } else {
|
|
|
+ events.on.mouseenter = e => {
|
|
|
+ this.handleExpand();
|
|
|
+ this.$emit('expand', e);
|
|
|
+ };
|
|
|
+ events.on.focus = e => {
|
|
|
+ this.handleExpand();
|
|
|
+ this.$emit('expand', e);
|
|
|
+ };
|
|
|
+ }
|
|
|
+ if (isLeaf && !isDisabled && !checkStrictly && !multiple) {
|
|
|
events.on.click = this.handleCheckChange;
|
|
|
}
|
|
|
|