@fewangsit/wangsvue-fats 1.0.0-rc.1 → 1.0.1-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -101,6 +101,15 @@ export interface ButtonSelectTreeProps {
|
|
|
101
101
|
* Disable node 'All' selection
|
|
102
102
|
*/
|
|
103
103
|
disableNodeAll?: boolean;
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* A function to determine when the node should be disabled,
|
|
107
|
+
* When true, it will disabled selection on current node and all level childrend
|
|
108
|
+
*
|
|
109
|
+
* @return true to disabled
|
|
110
|
+
*/
|
|
111
|
+
disableNodeWhen?: (node: TreeNode) => boolean;
|
|
112
|
+
|
|
104
113
|
/**
|
|
105
114
|
* Old behavior is preventing select if there is no node selected.
|
|
106
115
|
*
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { TreeSelectionKeys } from 'primevue/tree';
|
|
2
1
|
import { Slot } from 'vue';
|
|
3
2
|
|
|
4
3
|
import { TreeNode } from '../basetree/BaseTree.vue.d';
|
|
@@ -6,6 +5,8 @@ import { QueryParams, ShortFetchResponse } from '../datatable/DataTable.vue.d';
|
|
|
6
5
|
import TreeInstance, { TreeProps } from '../tree/Tree.vue.d';
|
|
7
6
|
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
8
7
|
|
|
8
|
+
import { TreeSelectionKeys } from 'primevue/tree';
|
|
9
|
+
|
|
9
10
|
export interface DialogSelectTreeProps
|
|
10
11
|
extends Omit<TreeProps, 'type' | 'filter'> {
|
|
11
12
|
fetchTree?: (
|
|
@@ -58,6 +59,15 @@ export interface DialogSelectTreeProps
|
|
|
58
59
|
* A list of node keys that should be disabled, affecting only the specified nodes and not their children.
|
|
59
60
|
*/
|
|
60
61
|
exactDisableKeys?: number[];
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* A function to determine when the node should be disabled,
|
|
65
|
+
* When true, it will disabled selection on current node and all level childrend
|
|
66
|
+
*
|
|
67
|
+
* @return true to disabled
|
|
68
|
+
*/
|
|
69
|
+
disableNodeWhen?: (node: TreeNode) => boolean;
|
|
70
|
+
|
|
61
71
|
/**
|
|
62
72
|
* Defines the tree is readonly and disabled.
|
|
63
73
|
*/
|