1
1
Component ( {
2
2
behaviors : [ 'wx://form-field' ] ,
3
- externalClasses : [ 'l-class' , 'l-disabled-class' ] ,
3
+ externalClasses : [ 'l-class' , 'l-disabled-class' , 'l-icon-class' ] ,
4
4
relations : {
5
5
'../checkbox-group/index' : {
6
6
type : 'parent'
@@ -61,7 +61,7 @@ Component({
61
61
} ,
62
62
ready ( ) {
63
63
const parent = this . getRelationNodes ( '../checkbox-group/index' ) [ 0 ] ;
64
- let { placement :parentPlacement } = parent . properties ;
64
+ let { placement : parentPlacement } = parent . properties ;
65
65
this . setData ( { parentPlacement} ) ;
66
66
} ,
67
67
methods : {
@@ -73,10 +73,10 @@ Component({
73
73
74
74
const parent = this . getRelationNodes ( '../checkbox-group/index' ) [ 0 ] ;
75
75
76
- if ( this . properties . checked ) {
77
- if ( this . isOverflow ( 'minSelected' ) ) return ;
76
+ if ( this . properties . checked ) {
77
+ if ( this . isOverflow ( 'minSelected' ) ) return ;
78
78
} else {
79
- if ( this . isOverflow ( 'maxSelected' ) ) return ;
79
+ if ( this . isOverflow ( 'maxSelected' ) ) return ;
80
80
}
81
81
82
82
const item = {
@@ -102,7 +102,11 @@ Component({
102
102
let isOverflow = type === 'minSelected' ? selectedLength <= limit : selectedLength >= limit ;
103
103
if ( isOverflow ) {
104
104
let backType = type === 'minSelected' ? 'min_selected' : 'max_selected' ;
105
- parent . onEmitOverflowHandle && parent . onEmitOverflowHandle ( { key : this . properties . key , limitNumber : limit , type : `overflow_${ backType } ` } ) ;
105
+ parent . onEmitOverflowHandle && parent . onEmitOverflowHandle ( {
106
+ key : this . properties . key ,
107
+ limitNumber : limit ,
108
+ type : `overflow_${ backType } `
109
+ } ) ;
106
110
}
107
111
return isOverflow ;
108
112
}
0 commit comments