File tree Expand file tree Collapse file tree 3 files changed +39
-3
lines changed Expand file tree Collapse file tree 3 files changed +39
-3
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,18 @@ Component({
18
18
attached ( ) {
19
19
20
20
} ,
21
+ observers : {
22
+ 'key' : function ( ) {
23
+ const parent = this . getRelationNodes ( '../grid/index' ) [ 0 ] ;
24
+ if ( parent ) {
25
+ parent . setData ( {
26
+ gridItems : [ ] ,
27
+ childNum : 0
28
+ } ) ;
29
+ parent . initGrids ( ) ;
30
+ }
31
+ }
32
+ } ,
21
33
22
34
lifetimes : {
23
35
show ( ) {
@@ -31,4 +43,4 @@ Component({
31
43
} , { bubbles : true , composed : true } ) ;
32
44
} ,
33
45
}
34
- } ) ;
46
+ } ) ;
Original file line number Diff line number Diff line change @@ -18,6 +18,18 @@ Component({
18
18
attached ( ) {
19
19
20
20
} ,
21
+ observers : {
22
+ 'key' : function ( ) {
23
+ const parent = this . getRelationNodes ( '../grid/index' ) [ 0 ] ;
24
+ if ( parent ) {
25
+ parent . setData ( {
26
+ gridItems : [ ] ,
27
+ childNum : 0
28
+ } ) ;
29
+ parent . initGrids ( ) ;
30
+ }
31
+ }
32
+ } ,
21
33
22
34
lifetimes : {
23
35
show ( ) {
@@ -31,4 +43,4 @@ Component({
31
43
} , { bubbles : true , composed : true } ) ;
32
44
} ,
33
45
}
34
- } ) ;
46
+ } ) ;
Original file line number Diff line number Diff line change @@ -18,6 +18,18 @@ Component({
18
18
attached ( ) {
19
19
20
20
} ,
21
+ observers : {
22
+ 'key' : function ( ) {
23
+ const parent = this . getRelationNodes ( '../grid/index' ) [ 0 ] ;
24
+ if ( parent ) {
25
+ parent . setData ( {
26
+ gridItems : [ ] ,
27
+ childNum : 0
28
+ } ) ;
29
+ parent . initGrids ( ) ;
30
+ }
31
+ }
32
+ } ,
21
33
22
34
lifetimes : {
23
35
show ( ) {
@@ -31,4 +43,4 @@ Component({
31
43
} , { bubbles : true , composed : true } ) ;
32
44
} ,
33
45
}
34
- } ) ;
46
+ } ) ;
You can’t perform that action at this time.
0 commit comments