File tree Expand file tree Collapse file tree 3 files changed +20
-5
lines changed
docs/src/pages/components Expand file tree Collapse file tree 3 files changed +20
-5
lines changed Original file line number Diff line number Diff line change 70
70
<md-table-cell ><code >Boolean</code ></md-table-cell >
71
71
<md-table-cell >Disable the item and prevent his actions. Default <code >false</code ></md-table-cell >
72
72
</md-table-row >
73
+ </md-table-row >
74
+
75
+ <md-table-row >
76
+ <md-table-cell >md-expand-multiple</md-table-cell >
77
+ <md-table-cell ><code >Boolean</code ></md-table-cell >
78
+ <md-table-cell >Allow multiple items be expanded in same time in md-list. Default <code >false</code ></md-table-cell >
79
+ </md-table-row >
73
80
</md-table-body >
74
81
</md-table >
75
82
845
852
<div slot =" demo" >
846
853
<div class =" phone-viewport" >
847
854
<md-list >
848
- <md-list-item >
855
+ <md-list-item md-expand-multiple >
849
856
<md-icon >whatshot</md-icon >
850
857
<span >News</span >
851
858
858
865
</md-list-expand >
859
866
</md-list-item >
860
867
861
- <md-list-item >
868
+ <md-list-item md-expand-multiple >
862
869
<md-icon >videogame_asset</md-icon >
863
870
<span >Games</span >
864
871
871
878
</md-list-expand >
872
879
</md-list-item >
873
880
874
- <md-list-item >
881
+ <md-list-item md-expand-multiple >
875
882
<md-icon >video_library</md-icon >
876
883
<span >Video</span >
877
884
Original file line number Diff line number Diff line change 288
288
}
289
289
}
290
290
291
+ & .md-active + .md-active :before {
292
+ background : none ;
293
+ }
294
+
291
295
> .md-list-item-container .md-list-expand-indicator {
292
296
transform : rotateZ (180deg ) translate3D (0 , 0 , 0 );
293
297
}
Original file line number Diff line number Diff line change 20
20
export default {
21
21
name: ' md-list-item' ,
22
22
props: {
23
- disabled: Boolean
23
+ disabled: Boolean ,
24
+ mdExpandMultiple: Boolean
24
25
},
25
26
data () {
26
27
return {
67
68
});
68
69
},
69
70
toggleExpandList () {
70
- this .resetSiblings ();
71
+ if (! this .mdExpandMultiple ) {
72
+ this .resetSiblings ();
73
+ }
74
+
71
75
this .calculatePadding ();
72
76
this .active = ! this .active ;
73
77
},
You can’t perform that action at this time.
0 commit comments