mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Refactor #4190 - For Steps
This commit is contained in:
parent
a7f0366b6a
commit
b947b4860f
2 changed files with 5 additions and 0 deletions
4
components/lib/steps/Steps.d.ts
vendored
4
components/lib/steps/Steps.d.ts
vendored
|
@ -70,6 +70,10 @@ export interface StepsPassThroughAttributes {
|
|||
* Defines current options in Steps component.
|
||||
*/
|
||||
export interface StepsContext {
|
||||
/**
|
||||
* Current menuitem
|
||||
*/
|
||||
item: any;
|
||||
/**
|
||||
* Index of the menuitem.
|
||||
*/
|
||||
|
|
|
@ -46,6 +46,7 @@ export default {
|
|||
getPTOptions(key, item, index) {
|
||||
return this.ptm(key, {
|
||||
context: {
|
||||
item,
|
||||
index,
|
||||
active: this.isActive(item),
|
||||
disabled: this.isItemDisabled(item)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue