Refactor #4196 - For SplitterPanel

pull/4208/head
Tuğçe Küçükoğlu 2023-07-25 12:22:30 +03:00
parent 584ca93acc
commit 77934bf361
2 changed files with 18 additions and 0 deletions

View File

@ -19,6 +19,7 @@ export declare type SplitterPanelPassThroughOptionType = SplitterPanelPassThroug
export interface SplitterPanelPassThroughMethodOptions {
instance: any;
props: SplitterPanelProps;
context: SplitterPanelContext;
}
/**
@ -44,6 +45,16 @@ export interface SplitterPanelPassThroughAttributes {
[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.
*/

View File

@ -15,6 +15,13 @@ export default {
return this.$slots.default().some((child) => {
return child.type.name === 'Splitter';
});
},
getPTOptions() {
return {
context: {
nested: this.isNested
}
};
}
}
};