Refactor #4196 - For SplitterPanel
parent
584ca93acc
commit
77934bf361
|
@ -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.
|
||||
*/
|
||||
|
|
|
@ -15,6 +15,13 @@ export default {
|
|||
return this.$slots.default().some((child) => {
|
||||
return child.type.name === 'Splitter';
|
||||
});
|
||||
},
|
||||
getPTOptions() {
|
||||
return {
|
||||
context: {
|
||||
nested: this.isNested
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue