TreeNode pt option updates

pull/6483/head
tugcekucukoglu 2024-09-26 15:38:30 +03:00
parent d8fde3e523
commit cc88a59a1a
2 changed files with 11 additions and 0 deletions

View File

@ -205,6 +205,10 @@ export interface TreeState {
* Defines current options in Tree component.
*/
export interface TreeContext {
/**
* Current tree node instance
*/
node: TreeNode;
/**
* Index of the node.
*/
@ -224,6 +228,11 @@ export interface TreeContext {
* @defaultValue false
*/
checked: boolean;
/**
* Current partial checked state of the node as a boolean.
* @defaultValue false
*/
partialChecked: boolean;
/**
* Current leaf state of the node as a boolean.
* @defaultValue false

View File

@ -137,10 +137,12 @@ export default {
getPTOptions(key) {
return this.ptm(key, {
context: {
node: this.node,
index: this.index,
expanded: this.expanded,
selected: this.selected,
checked: this.checked,
partialChecked: this.partialChecked,
leaf: this.leaf
}
});