File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 11<eden-select >
22 <div class =" dropdown" >
33 <input type =" hidden" class =" d-none" each ={ (item , i ) in selected } name ={ props .multiple ? `${props .name }[${i }]` : props .name } value ={ item .value } />
4- <button if ={ props .type !== ' open' } class =" form-select text-overflow text-left" onclick ={ (e ) => onShow(e) }>
4+ <button if ={ props .type !== ' open' } class ={ props . type === ' button ' ? ` btn btn- ${ props . btn || ' primary ' }` : ` form-select text-overflow text-left ` } onclick ={ (e ) => onShow(e) }>
55 <span each ={ (item , i ) in selected } class =" mr-2 d-inline-flex align-items-center" >
66 <span if ={ item .color } class ={ `badge bg- ${item .color } mr- 2` }>
77
1515 <span if ={ props .placeholder && !selected .length }>
1616 { props .placeholder }
1717 </span >
18+ <span if ={ props .type === ' button' } class =" ml-2" >
19+ <i class =" fa fa-chevron-down" />
20+ </span >
1821 </button >
1922 <div class =" dropdown-menu" >
2023 <div class =" mb-2 p-2" >
188191 // on change
189192 if (this .props .onChange ) {
190193 // value
191- this .props .onChange (e, this .val ());
194+ this .props .onChange (e, this .val (), item . data );
192195 }
193196 }
194197
You can’t perform that action at this time.
0 commit comments