File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 24
24
items () {
25
25
let values = this .schema .values ;
26
26
if (typeof (values) == " function" ) {
27
- return this .dataSorting (values .apply (this , [this .model , this .schema ]));
27
+ return this .groupValues (values .apply (this , [this .model , this .schema ]));
28
28
} else
29
- return this .dataSorting (values);
29
+ return this .groupValues (values);
30
30
}
31
31
},
32
32
33
33
methods: {
34
34
35
- dataSorting (values ){
35
+ groupValues (values ){
36
36
let array = [];
37
37
let arrayElement = {};
38
38
39
39
values .forEach ((item ) => {
40
40
41
41
arrayElement = null ;
42
42
43
- if (item .group ){
43
+ if (item .group && isObject (item) ){
44
44
// There is in a group.
45
45
46
46
// Find element with this group.
47
- arrayElement = find (array, i => { return i .group == item .group } );
47
+ arrayElement = find (array, i => i .group == item .group );
48
48
49
49
if (arrayElement){
50
50
// There is such a group.
You can’t perform that action at this time.
0 commit comments