Fixed #4286 - SelectButton: passthrough option
parent
dd74bcd821
commit
dfdc462fe9
|
@ -93,6 +93,10 @@ export interface SelectButtonContext {
|
||||||
* @defaultValue false
|
* @defaultValue false
|
||||||
*/
|
*/
|
||||||
focused: boolean;
|
focused: boolean;
|
||||||
|
/**
|
||||||
|
* Available option.
|
||||||
|
*/
|
||||||
|
option: any;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -66,7 +66,8 @@ export default {
|
||||||
return this.ptm(key, {
|
return this.ptm(key, {
|
||||||
context: {
|
context: {
|
||||||
active: this.isSelected(option),
|
active: this.isSelected(option),
|
||||||
disabled: this.isOptionDisabled(option)
|
disabled: this.isOptionDisabled(option),
|
||||||
|
option
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue