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 114114 }
115115 },
116116 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 ;
120118 },
121119 mounted () {
122120 this .setScale ();
123121 },
124122 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 ();
129125 }
130126 };
131127 </script >
Original file line number Diff line number Diff line change 11<template >
22 <ul :class =" classes" >
33 <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 >
88 <Checkbox
99 v-if =" showCheckbox"
1010 :model-value =" data.checked"
101101 return [
102102 ` ${ prefixCls} -title` ,
103103 {
104- [` ${ prefixCls} -title-selected` ]: this .data .selected
104+ [` ${ prefixCls} -title-selected` ]: this .data .selected ,
105+ [` ${ prefixCls} -title-disabled` ]: this .data .disabled ,
105106 }
106107 ];
107108 },
Original file line number Diff line number Diff line change 4545 &-selected , &-selected :hover {
4646 background-color : tint(@primary-color , 80% );
4747 }
48+ &-disabled , &-disabled :hover {
49+ color : @btn-disable-color ;
50+ background-color : unset ;
51+ cursor : not-allowed ;
52+ }
4853 }
4954 &-arrow {
5055 cursor : pointer ;
You can’t perform that action at this time.
0 commit comments