mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 08:52:34 +00:00
Refactor #4196 - For SplitterPanel
This commit is contained in:
parent
584ca93acc
commit
77934bf361
2 changed files with 18 additions and 0 deletions
11
components/lib/splitterpanel/SplitterPanel.d.ts
vendored
11
components/lib/splitterpanel/SplitterPanel.d.ts
vendored
|
@ -19,6 +19,7 @@ export declare type SplitterPanelPassThroughOptionType = SplitterPanelPassThroug
|
||||||
export interface SplitterPanelPassThroughMethodOptions {
|
export interface SplitterPanelPassThroughMethodOptions {
|
||||||
instance: any;
|
instance: any;
|
||||||
props: SplitterPanelProps;
|
props: SplitterPanelProps;
|
||||||
|
context: SplitterPanelContext;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -44,6 +45,16 @@ export interface SplitterPanelPassThroughAttributes {
|
||||||
[key: string]: any;
|
[key: string]: any;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Defines options in SplitterPanel component.
|
||||||
|
*/
|
||||||
|
export interface SplitterPanelContext {
|
||||||
|
/**
|
||||||
|
* Current nested state of the panel.
|
||||||
|
*/
|
||||||
|
nested?: boolean;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defines valid properties in SplitterPanel component.
|
* Defines valid properties in SplitterPanel component.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -15,6 +15,13 @@ export default {
|
||||||
return this.$slots.default().some((child) => {
|
return this.$slots.default().some((child) => {
|
||||||
return child.type.name === 'Splitter';
|
return child.type.name === 'Splitter';
|
||||||
});
|
});
|
||||||
|
},
|
||||||
|
getPTOptions() {
|
||||||
|
return {
|
||||||
|
context: {
|
||||||
|
nested: this.isNested
|
||||||
|
}
|
||||||
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue