pull/6537/head
tugcekucukoglu 2024-10-02 11:32:49 +03:00
parent 461652c39a
commit 3e04e743c3
1 changed files with 14 additions and 0 deletions

View File

@ -144,6 +144,11 @@ export interface TreeSelectPassThroughAttributes {
* Defines current inline state in TreeSelect component. * Defines current inline state in TreeSelect component.
*/ */
export interface TreeSelectState { export interface TreeSelectState {
/**
* Current id state as a string.
* @defaultValue null
*/
id: string;
/** /**
* Current focused state as a boolean. * Current focused state as a boolean.
* @defaultValue false * @defaultValue false
@ -172,6 +177,10 @@ export interface TreeSelectProps {
* An array of treenodes. * An array of treenodes.
*/ */
options?: TreeNode[] | undefined; options?: TreeNode[] | undefined;
/**
* A map of keys to represent the expansion state in controlled mode.
*/
expandedKeys?: TreeExpandedKeys;
/** /**
* Height of the viewport, a scrollbar is defined if height of list exceeds this value. * Height of the viewport, a scrollbar is defined if height of list exceeds this value.
* @defaultValue 20rem * @defaultValue 20rem
@ -441,6 +450,11 @@ export interface TreeSelectEmitsOptions {
* @param {*} value - New value. * @param {*} value - New value.
*/ */
'update:modelValue'(value: any): void; 'update:modelValue'(value: any): void;
/**
* Emitted when the expanded keys change.
* @param {TreeNode} value - New expanded keys.
*/
'update:expandedKeys'(value: TreeExpandedKeys): void;
/** /**
* Callback to invoke on value change. * Callback to invoke on value change.
* @param {*} value - Selected node keys * @param {*} value - Selected node keys