blockNode: boolean; selectable: boolean; /** * treeNode of tree * @type TreeNode[] */ treeData: TreeNode[];
/** * *@description Replace the title,key and children fields in treeNode with the corresponding fields in treeData */ replaceFields?: { /**@default 'children' */ children?: string; /**@default 'title' */ title?: string; /**@default 'key' */ key?: string; };
/** * Whether to automatically expand a parent treeNode * @defaulttrue * @typeboolean */ autoExpandParent: boolean;
/** * Adds a Checkbox before the treeNodes * @defaultfalse * @typeboolean */ checkable: boolean;
/** * (Controlled) Specifies the keys of the checked treeNodes * (PS: When this specifies the key of a treeNode which is also a parent treeNode, * all the children treeNodes of will be checked; and vice versa, * when it specifies the key of a treeNode which is a child treeNode, * its parent treeNode will also be checked. When checkable and checkStrictly is true, * its object has checked and halfChecked property. Regardless of whether the child or parent treeNode is checked, * they won't impact each other. * @default [] * @type string[] | number[] | { checked: string[]; halfChecked: string[] } */ checkedKeys: | string[] | number[] | { checked: string[]; halfChecked: string[]; };
/** * Check treeNode precisely; parent treeNode and children treeNodes are not associated * @defaultfalse * @typeboolean */ checkStrictly: boolean;
/** * Specifies the keys of the default checked treeNodes * @default [] * @type string[] | number[] */ defaultCheckedKeys: string[] | number[];
/** * Whether to expand all treeNodes by default * @defaultfalse * @typeboolean */ defaultExpandAll: boolean;
/** * Specify the keys of the default expanded treeNodes * @default [] * @type string[] | number[] */ defaultExpandedKeys: string[] | number[];
/** * auto expand parent treeNodes when init * @defaulttrue * @typeboolean */ defaultExpandParent: boolean;
/** * Specifies the keys of the default selected treeNodes * @default [] * @type string[] | number[] */ defaultSelectedKeys: string[] | number[];
/** * whether disabled the tree * @defaultfalse * @typeboolean */ disabled: boolean;
/** * Specifies whether this Tree is draggable (IE > 8) * @defaultfalse * @typeboolean */ draggable: boolean;
/** * (Controlled) Specifies the keys of the expanded treeNodes * @default [] * @type string[] | number[] */ expandedKeys: string[] | number[];
/** * Defines a function to filter (highlight) treeNodes. * When the function returns true, the corresponding treeNode will be highlighted * @typeFunction */ filterTreeNode: (node: TreeNode) => any;
/** * (Controlled) Specifies the keys of the selected treeNodes * @type string[] | number[] */ selectedKeys: string[] | number[];
/** * Shows the icon before a TreeNode's title. * There is no default style; you must set a custom style for it if set to true * @defaultfalse * @typeboolean */ showIcon: boolean;
/** * Shows a connecting line * @defaultfalse * @typeboolean */ showLine: boolean; }
/** * Class * @descriptionclassName * @typestring */ class: string;
/** * Style * @description style of tree node * @type string | object */ style: string | object;
/** * Disable Checkbox * @description Disables the checkbox of the treeNode * @defaultfalse * @typeboolean */ disableCheckbox: boolean;
/** * Disabled * @description Disabled or not * @defaultfalse * @typeboolean */ 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: any;rightClick
/** * Is Leaf? * @description Leaf node or not * @defaultfalse * @typeboolean */ 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 * @defaulttrue * @typeboolean */ selectable: boolean;
/** * Title * @description Content showed on the treeNodes * @default '---' * @type any (string | slot) */ title: any;
/** * Value * @description Will be treated as treeNodeFilterProp by default, should be unique in the tree * @defaultundefined * @typestring */ value: string;
/** * Slots * @description When using treeNodes, you can use this property to configure the properties that support the slot, * such as slots: { title: 'XXX'} * @typeobject */ slots: object;
/** * Scoped Slots * @description When using treeNodes, you can use this property to configure the properties that support the slot, * such as scopedSlots: { title: 'XXX'} * @typeobject */ scopedSlots: object;