File tree Expand file tree Collapse file tree 3 files changed +14
-12
lines changed Expand file tree Collapse file tree 3 files changed +14
-12
lines changed Original file line number Diff line number Diff line change 114
114
}
115
115
},
116
116
beforeCreate () {
117
- this .$nextTick (() => {
118
- this .slotTemp = this .$slots .default ? this .$slots .default () : null ;
119
- });
117
+ this .slotTemp = this .$slots .default ? this .$slots .default () : null ;
120
118
},
121
119
mounted () {
122
120
this .setScale ();
123
121
},
124
122
updated () {
125
- this .$nextTick (() => {
126
- const slot = this .$slots .default ? this .$slots .default () : null ;
127
- if (slot && slot !== this .slotTemp ) this .setScale ();
128
- });
123
+ const slot = this .$slots .default ? this .$slots .default () : null ;
124
+ if (slot && slot !== this .slotTemp ) this .setScale ();
129
125
}
130
126
};
131
127
</script >
Original file line number Diff line number Diff line change 1
1
<template >
2
2
<ul :class =" classes" >
3
3
<li @contextmenu.stop =" handleContextmenu(data, $event)" @selectstart.stop =" handlePreventSelect(data, $event)" >
4
- <span :class =" arrowClasses" @click =" handleExpand" >
5
- <Icon v-if =" showArrow" :type =" arrowType" :custom =" customArrowType" :size =" arrowSize" />
6
- <Icon v-if =" showLoading" type =" ios-loading" class =" ivu-load-loop" />
7
- </span >
4
+ <span :class =" arrowClasses" @click =" handleExpand" >
5
+ <Icon v-if =" showArrow" :type =" arrowType" :custom =" customArrowType" :size =" arrowSize" />
6
+ <Icon v-if =" showLoading" type =" ios-loading" class =" ivu-load-loop" />
7
+ </span >
8
8
<Checkbox
9
9
v-if =" showCheckbox"
10
10
:model-value =" data.checked"
101
101
return [
102
102
` ${ prefixCls} -title` ,
103
103
{
104
- [` ${ prefixCls} -title-selected` ]: this .data .selected
104
+ [` ${ prefixCls} -title-selected` ]: this .data .selected ,
105
+ [` ${ prefixCls} -title-disabled` ]: this .data .disabled ,
105
106
}
106
107
];
107
108
},
Original file line number Diff line number Diff line change 45
45
&-selected , &-selected :hover {
46
46
background-color : tint(@primary-color , 80% );
47
47
}
48
+ &-disabled , &-disabled :hover {
49
+ color : @btn-disable-color ;
50
+ background-color : unset ;
51
+ cursor : not-allowed ;
52
+ }
48
53
}
49
54
&-arrow {
50
55
cursor : pointer ;
You can’t perform that action at this time.
0 commit comments