TreeNode pt option updates
parent
d8fde3e523
commit
cc88a59a1a
|
@ -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
|
||||
|
|
|
@ -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
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue