@a2simcode/ui 0.0.273 → 0.0.275

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.
@@ -16,6 +16,7 @@ declare const JTreeSelect: {
16
16
  clearable: boolean;
17
17
  readonly: boolean;
18
18
  checkStrictly: boolean;
19
+ lazy: boolean;
19
20
  dataCode: string;
20
21
  idKey: string;
21
22
  renderAfterExpand: boolean;
@@ -41,6 +42,7 @@ declare const JTreeSelect: {
41
42
  clearable: boolean;
42
43
  readonly: boolean;
43
44
  checkStrictly: boolean;
45
+ lazy: boolean;
44
46
  dataCode: string;
45
47
  idKey: string;
46
48
  renderAfterExpand: boolean;
@@ -66,6 +68,7 @@ declare const JTreeSelect: {
66
68
  clearable: boolean;
67
69
  readonly: boolean;
68
70
  checkStrictly: boolean;
71
+ lazy: boolean;
69
72
  dataCode: string;
70
73
  idKey: string;
71
74
  renderAfterExpand: boolean;
@@ -3,6 +3,10 @@ export interface TreeSelectProps {
3
3
  modelValue: string | number | (string | number)[] | undefined;
4
4
  /** 树形数据选项列表 */
5
5
  options?: Record<string, any>[];
6
+ /** 是否懒加载子节点数据,配合 load 方法使用 */
7
+ lazy?: boolean;
8
+ /** 加载子树数据的方法,仅当 lazy 为 true 时生效 */
9
+ load?: (node: Record<string, any>, resolve: (data: Record<string, any>[]) => void) => void;
6
10
  /** 在点击节点时,是否只关注本级节点而不关注父子节点的关系 */
7
11
  checkStrictly?: boolean;
8
12
  /** 是否在第一次展开时才进行渲染 */
@@ -49,6 +53,7 @@ declare const _default: import('vue').DefineComponent<TreeSelectProps, {}, {}, {
49
53
  clearable: boolean;
50
54
  readonly: boolean;
51
55
  checkStrictly: boolean;
56
+ lazy: boolean;
52
57
  dataCode: string;
53
58
  idKey: string;
54
59
  renderAfterExpand: boolean;