You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
81 lines
2.0 KiB
81 lines
2.0 KiB
// Project: https://github.com/vueComponent/ant-design-vue
|
|
// Definitions by: akki-jat <https://github.com/akki-jat>
|
|
// Definitions: https://github.com/vueComponent/ant-design-vue/types
|
|
|
|
import { AntdComponent, AntdProps } from './component';
|
|
import { VNodeChild } from 'vue';
|
|
|
|
export declare class TreeNode extends AntdComponent {
|
|
$props: AntdProps & {
|
|
/**
|
|
* When Tree is checkable, set TreeNode display Checkbox or not
|
|
* @version 1.5.0
|
|
*/
|
|
checkable?: boolean;
|
|
|
|
/**
|
|
* Disable Checkbox
|
|
* @description Disables the checkbox of the treeNode
|
|
* @default false
|
|
* @type boolean
|
|
*/
|
|
disableCheckbox?: boolean;
|
|
|
|
/**
|
|
* Disabled
|
|
* @description Disabled or not
|
|
* @default false
|
|
* @type boolean
|
|
*/
|
|
disabled?: boolean;
|
|
|
|
/**
|
|
* Icon
|
|
* @description customize icon. When you pass component, whose render will receive full TreeNode props as component props
|
|
* @type any (slot | slot-scope)
|
|
*/
|
|
icon?: VNodeChild | JSX.Element;
|
|
|
|
/**
|
|
* Is Leaf?
|
|
* @description Leaf node or not
|
|
* @default false
|
|
* @type boolean
|
|
*/
|
|
isLeaf?: boolean;
|
|
|
|
/**
|
|
* Key
|
|
* @description Required property, should be unique in the tree
|
|
* (In tree: Used with (default)ExpandedKeys / (default)CheckedKeys / (default)SelectedKeys)
|
|
* @default internal calculated position of treeNode or undefined
|
|
* @type string | number
|
|
*/
|
|
key?: string | number;
|
|
|
|
/**
|
|
* Selectable
|
|
* @description Set whether the treeNode can be selected
|
|
* @default true
|
|
* @type boolean
|
|
*/
|
|
selectable?: boolean;
|
|
|
|
/**
|
|
* Title
|
|
* @description Content showed on the treeNodes
|
|
* @default '---'
|
|
* @type any (string | slot)
|
|
*/
|
|
title?: VNodeChild | JSX.Element;
|
|
|
|
/**
|
|
* Value
|
|
* @description Will be treated as treeNodeFilterProp by default, should be unique in the tree
|
|
* @default undefined
|
|
* @type string
|
|
*/
|
|
value?: string;
|
|
};
|
|
}
|