bkui-vue 2.0.1-beta.28 → 2.0.1-beta.29

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.
package/lib/index.js CHANGED
@@ -4,5 +4,5 @@ export { default } from './preset';
4
4
  export * from './config-provider';
5
5
  export * from './directives';
6
6
  export * as plugins from './plugins';
7
- export const version = "2.0.1-beta.28";
7
+ export const version = "2.0.1-beta.29";
8
8
  window.__bkui_vue_version__ = version;
@@ -5,6 +5,7 @@ declare const useRows: (props: TablePropTypes) => {
5
5
  setRowExpand: (row: Record<string, unknown>, isExpand: boolean) => void;
6
6
  isRowChecked: (row: Record<string, unknown>, index: number) => any;
7
7
  setPageRowList: (rowList: Record<string, unknown>[]) => void;
8
+ setTableRowList: (data: unknown[]) => void;
8
9
  clearSelection: () => void;
9
10
  formatDataSchema: () => void;
10
11
  toggleRowSelection: (row: Record<string, unknown>) => void;
@@ -18,7 +19,8 @@ declare const useRows: (props: TablePropTypes) => {
18
19
  getRowCheckedAllValue: () => any;
19
20
  changePageRowIndex: (sourceIndex: any, targetIndex: any) => void;
20
21
  toggleAllSelection: (value?: boolean) => void;
21
- tableRowList: import("vue").ComputedRef<any[]>;
22
+ tableRowList: import("vue").Ref<any[]>;
23
+ tableRowSchema: WeakMap<object, any> & Omit<WeakMap<object, any>, keyof WeakMap<any, any>>;
22
24
  pageRowList: any[];
23
25
  };
24
26
  export type UseRows = ReturnType<typeof useRows>;
@@ -23297,10 +23297,7 @@ var useRows = function useRows(props) {
23297
23297
  /**
23298
23298
  * 全量数据
23299
23299
  */
23300
- var tableRowList = (0,external_vue_namespaceObject.computed)(function () {
23301
- var _props$data;
23302
- return (_props$data = props.data) !== null && _props$data !== void 0 ? _props$data : [];
23303
- });
23300
+ var tableRowList = (0,external_vue_namespaceObject.ref)([]);
23304
23301
  /**
23305
23302
  * 分页数据
23306
23303
  * 当前页数据
@@ -23359,13 +23356,6 @@ var useRows = function useRows(props) {
23359
23356
  });
23360
23357
  tableRowSchema.set(CHECK_ALL_OBJ, defineProperty_defineProperty(defineProperty_defineProperty({}, TABLE_ROW_ATTRIBUTE.ROW_SELECTION, hasSelectedRow), TABLE_ROW_ATTRIBUTE.ROW_SELECTION_INDETERMINATE, hasSelectedRow && hasUnSelectedRow));
23361
23358
  };
23362
- (0,external_vue_namespaceObject.watch)(function () {
23363
- return [tableRowList];
23364
- }, function () {
23365
- formatDataSchema();
23366
- }, {
23367
- immediate: true
23368
- });
23369
23359
  var getSelectionRowArgs = function getSelectionRowArgs(row, index) {
23370
23360
  return {
23371
23361
  row: row,
@@ -23531,11 +23521,18 @@ var useRows = function useRows(props) {
23531
23521
  return getRowAttribute(row, TABLE_ROW_ATTRIBUTE.ROW_SELECTION);
23532
23522
  });
23533
23523
  };
23524
+ var setTableRowList = function setTableRowList(data) {
23525
+ var _tableRowList$value;
23526
+ tableRowList.value.length = 0;
23527
+ (_tableRowList$value = tableRowList.value).push.apply(_tableRowList$value, _toConsumableArray(data));
23528
+ formatDataSchema();
23529
+ };
23534
23530
  return {
23535
23531
  setRowIndex: setRowIndex,
23536
23532
  setRowExpand: setRowExpand,
23537
23533
  isRowChecked: isRowChecked,
23538
23534
  setPageRowList: setPageRowList,
23535
+ setTableRowList: setTableRowList,
23539
23536
  clearSelection: clearSelection,
23540
23537
  formatDataSchema: formatDataSchema,
23541
23538
  toggleRowSelection: toggleRowSelection,
@@ -23550,6 +23547,7 @@ var useRows = function useRows(props) {
23550
23547
  changePageRowIndex: changePageRowIndex,
23551
23548
  toggleAllSelection: toggleAllSelection,
23552
23549
  tableRowList: tableRowList,
23550
+ tableRowSchema: tableRowSchema,
23553
23551
  pageRowList: pageRowList
23554
23552
  };
23555
23553
  };
@@ -24052,7 +24050,7 @@ var useSettings = function useSettings(props, ctx, columns, afterSetting) {
24052
24050
  setBodyHeight(Number("".concat(props.height).replace('px', '')));
24053
24051
  }
24054
24052
  };
24055
- var setTableData = function setTableData() {
24053
+ var setTableData = (0,lodash.debounce)(function () {
24056
24054
  var filterOrderList = getFilterAndSortList();
24057
24055
  if (!props.remotePagination) {
24058
24056
  pagination.setPagination({
@@ -24062,14 +24060,16 @@ var useSettings = function useSettings(props, ctx, columns, afterSetting) {
24062
24060
  var renderList = getRenderRowList(filterOrderList);
24063
24061
  rows.setPageRowList(renderList);
24064
24062
  (0,external_vue_namespaceObject.nextTick)(function () {
24063
+ var _refBody$value2;
24065
24064
  setOffsetRight();
24065
+ (_refBody$value2 = refBody.value) === null || _refBody$value2 === void 0 || _refBody$value2.scrollTo(0, 0);
24066
24066
  });
24067
- };
24067
+ }, 64);
24068
24068
  var observerResizing = (0,external_vue_namespaceObject.ref)(false);
24069
24069
  var observerResizingTimer = null;
24070
24070
  use_observer_resize(refRoot, function () {
24071
24071
  if (!observerResizing.value) {
24072
- var _refBody$value2;
24072
+ var _refBody$value3;
24073
24073
  observerResizing.value = true;
24074
24074
  if ((props.height === '100%' || props.virtualEnabled) && (0,lodash.isElement)(refRoot.value)) {
24075
24075
  if (isResizeBodyHeight.value) {
@@ -24085,7 +24085,7 @@ var useSettings = function useSettings(props, ctx, columns, afterSetting) {
24085
24085
  }
24086
24086
  computedColumnRect();
24087
24087
  setOffsetRight();
24088
- (_refBody$value2 = refBody.value) === null || _refBody$value2 === void 0 || _refBody$value2.scrollTo(0, 0);
24088
+ (_refBody$value3 = refBody.value) === null || _refBody$value3 === void 0 || _refBody$value3.scrollTo(0, 0);
24089
24089
  return;
24090
24090
  }
24091
24091
  observerResizingTimer && clearTimeout(observerResizingTimer);
@@ -24111,9 +24111,7 @@ var useSettings = function useSettings(props, ctx, columns, afterSetting) {
24111
24111
  (0,external_vue_namespaceObject.watch)(function () {
24112
24112
  return [columns.sortColumns, columns.filterColumns];
24113
24113
  }, function () {
24114
- (0,external_vue_namespaceObject.nextTick)(function () {
24115
- setTableData();
24116
- });
24114
+ setTableData();
24117
24115
  }, {
24118
24116
  deep: true
24119
24117
  });
@@ -24125,13 +24123,21 @@ var useSettings = function useSettings(props, ctx, columns, afterSetting) {
24125
24123
  immediate: true
24126
24124
  });
24127
24125
  (0,external_vue_namespaceObject.watch)(function () {
24128
- return [pagination.options.count, pagination.options.limit, pagination.options.current, props.data];
24126
+ return [props.data];
24129
24127
  }, function () {
24128
+ rows.setTableRowList(props.data);
24130
24129
  setTableData();
24131
24130
  }, {
24132
24131
  immediate: true,
24133
24132
  deep: true
24134
24133
  });
24134
+ (0,external_vue_namespaceObject.watch)(function () {
24135
+ return [pagination.options.count, pagination.options.limit, pagination.options.current];
24136
+ }, function () {
24137
+ setTableData();
24138
+ }, {
24139
+ immediate: true
24140
+ });
24135
24141
  ctx.expose({
24136
24142
  setRowExpand: rows.setRowExpand,
24137
24143
  setAllRowExpand: rows.setAllRowExpand,
@@ -1358,6 +1358,7 @@
1358
1358
  display: flex;
1359
1359
  align-items: center;
1360
1360
  justify-content: center;
1361
+ height: 100%;
1361
1362
  }
1362
1363
  .bk-table .bk-table-head table th .cell.expand-cell,
1363
1364
  .bk-table .bk-table-body table th .cell.expand-cell,
@@ -149,6 +149,7 @@
149
149
  display: flex;
150
150
  align-items: center;
151
151
  justify-content: center;
152
+ height: 100%;
152
153
  }
153
154
 
154
155
  &.expand-cell {
@@ -1748,6 +1748,7 @@
1748
1748
  display: flex;
1749
1749
  align-items: center;
1750
1750
  justify-content: center;
1751
+ height: 100%;
1751
1752
  }
1752
1753
  .bk-table .bk-table-head table th .cell.expand-cell,
1753
1754
  .bk-table .bk-table-body table th .cell.expand-cell,
@@ -39,7 +39,9 @@ declare const BkTree: {
39
39
  default: any;
40
40
  };
41
41
  async: import("vue-types").VueTypeShape<{
42
- callback: (item: any, cb: any) => Promise<any>;
42
+ callback: (item: any, cb: any) => Promise<string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
43
+ [key: string]: any;
44
+ }>>;
43
45
  cache: boolean;
44
46
  deepAutoOpen?: string;
45
47
  }>;
@@ -183,7 +185,9 @@ declare const BkTree: {
183
185
  default: any;
184
186
  };
185
187
  async: import("vue-types").VueTypeShape<{
186
- callback: (item: any, cb: any) => Promise<any>;
188
+ callback: (item: any, cb: any) => Promise<string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
189
+ [key: string]: any;
190
+ }>>;
187
191
  cache: boolean;
188
192
  deepAutoOpen?: string;
189
193
  }>;
@@ -353,7 +357,9 @@ declare const BkTree: {
353
357
  default: any;
354
358
  };
355
359
  async: import("vue-types").VueTypeShape<{
356
- callback: (item: any, cb: any) => Promise<any>;
360
+ callback: (item: any, cb: any) => Promise<string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
361
+ [key: string]: any;
362
+ }>>;
357
363
  cache: boolean;
358
364
  deepAutoOpen?: string;
359
365
  }>;
@@ -520,7 +526,9 @@ declare const BkTree: {
520
526
  default: any;
521
527
  };
522
528
  async: import("vue-types").VueTypeShape<{
523
- callback: (item: any, cb: any) => Promise<any>;
529
+ callback: (item: any, cb: any) => Promise<string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
530
+ [key: string]: any;
531
+ }>>;
524
532
  cache: boolean;
525
533
  deepAutoOpen?: string;
526
534
  }>;
package/lib/tree/index.js CHANGED
@@ -17367,7 +17367,7 @@ function _slicedToArray(arr, i) {
17367
17367
  ;// CONCATENATED MODULE: external "vue"
17368
17368
  var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
17369
17369
  var external_vue_y = x => () => x
17370
- const external_vue_namespaceObject = external_vue_x({ ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["h"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.h, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["onUnmounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onUnmounted, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["toRef"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRef, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch });
17370
+ const external_vue_namespaceObject = external_vue_x({ ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["h"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.h, ["isVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.isVNode, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["onUnmounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onUnmounted, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["toRef"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRef, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch });
17371
17371
  ;// CONCATENATED MODULE: external "../config-provider"
17372
17372
  var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
17373
17373
  var config_provider_y = x => () => x
@@ -18606,7 +18606,7 @@ var use_node_action_this = undefined;
18606
18606
  return val;
18607
18607
  }
18608
18608
  if (_typeof(val) === 'object' && val !== null) {
18609
- if (val.__v_isVNode) {
18609
+ if ((0,external_vue_namespaceObject.isVNode)(val)) {
18610
18610
  return val;
18611
18611
  }
18612
18612
  var node = val.node,
@@ -18689,7 +18689,7 @@ var use_node_action_this = undefined;
18689
18689
  });
18690
18690
  setNodeAttr(parent, NODE_ATTRIBUTES.IS_CHECKED, isNeedChecked);
18691
18691
  setNodeAttr(parent, NODE_ATTRIBUTES.IS_INDETERMINATE, (getChildNodes(parent) || []).some(function (node) {
18692
- return !isNodeChecked(node);
18692
+ return !isNodeChecked(node) || isIndeterminate(node);
18693
18693
  }));
18694
18694
  if (!isRootNode(parent)) {
18695
18695
  updateParentChecked(parent, isChecked);
@@ -1,4 +1,4 @@
1
- import { ExtractPropTypes } from 'vue';
1
+ import { ExtractPropTypes, VNode } from 'vue';
2
2
  declare enum TreeSearchMatchEnum {
3
3
  FULL = "full",
4
4
  FUZZY = "fuzzy"
@@ -7,6 +7,10 @@ declare enum TreeSearchResultEnum {
7
7
  LIST = "list",
8
8
  TREE = "tree"
9
9
  }
10
+ export type TreeNode = {
11
+ [key: string]: unknown;
12
+ children: TreeNode[];
13
+ };
10
14
  /**
11
15
  * Tree Prop: prefixIcon function
12
16
  * @param {} isRoot 是否为分跟节点
@@ -15,7 +19,7 @@ declare enum TreeSearchResultEnum {
15
19
  * @param {} renderType 当前渲染类型(action: 用来标识当前节点状态,展开 | 收起, node_type:节点类型,文件、文件夹)
16
20
  * @param {} item 当前节点数据
17
21
  */
18
- export type IPrefixIcon = (isRoot: boolean, hasChild: boolean, isOpen: boolean, renderType: string, item: any) => any;
22
+ export type IPrefixIcon = (isRoot: boolean, hasChild: boolean, isOpen: boolean, renderType: string, item: TreeNode) => VNode | string;
19
23
  export declare const treeProps: {
20
24
  /**
21
25
  * 渲染列表
@@ -230,17 +234,17 @@ export declare const treeProps: {
230
234
  };
231
235
  };
232
236
  type AsyncOption = {
233
- callback: (item: any, cb: any) => Promise<any>;
237
+ callback: (item: any, cb: any) => Promise<VNode | string>;
234
238
  cache: boolean;
235
239
  deepAutoOpen?: string;
236
240
  };
237
241
  export type IIntersectionObserver = {
238
242
  enabled: boolean;
239
- callback: (node: any, level: number, index: number) => void;
243
+ callback: (node: TreeNode, level: number, index: number) => void;
240
244
  };
241
245
  export type SearchOption = {
242
246
  value: boolean | number | string;
243
- match?: `${TreeSearchMatchEnum}` | Function;
247
+ match?: ((...args: any[]) => boolean) | `${TreeSearchMatchEnum}`;
244
248
  resultType?: `${TreeSearchResultEnum}`;
245
249
  showChildNodes?: boolean;
246
250
  };
@@ -44,7 +44,9 @@ declare const _default: import("vue").DefineComponent<{
44
44
  default: any;
45
45
  };
46
46
  async: import("vue-types").VueTypeShape<{
47
- callback: (item: any, cb: any) => Promise<any>;
47
+ callback: (item: any, cb: any) => Promise<string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
48
+ [key: string]: any;
49
+ }>>;
48
50
  cache: boolean;
49
51
  deepAutoOpen?: string;
50
52
  }>;
@@ -178,7 +180,9 @@ declare const _default: import("vue").DefineComponent<{
178
180
  default: any;
179
181
  };
180
182
  async: import("vue-types").VueTypeShape<{
181
- callback: (item: any, cb: any) => Promise<any>;
183
+ callback: (item: any, cb: any) => Promise<string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
184
+ [key: string]: any;
185
+ }>>;
182
186
  cache: boolean;
183
187
  deepAutoOpen?: string;
184
188
  }>;
@@ -1,14 +1,14 @@
1
- import { TreePropTypes } from './props';
1
+ import { TreeNode, TreePropTypes } from './props';
2
2
  import { IFlatData } from './util';
3
3
  declare const _default: (props: TreePropTypes, ctx: any, flatData: IFlatData, _renderData: any, initOption: any) => {
4
- renderTreeNode: (item: any, showTree?: boolean) => JSX.Element;
5
- handleTreeNodeClick: (item: any, e: MouseEvent) => void;
4
+ renderTreeNode: (item: TreeNode, showTree?: boolean) => JSX.Element;
5
+ handleTreeNodeClick: (item: TreeNode, e: MouseEvent) => void;
6
6
  deepAutoOpen: () => void;
7
7
  asyncNodeClick: (item: any) => Promise<any>;
8
- setNodeAction: (args: any | any[], action: string, value: any) => void;
9
- setNodeOpened: (item: any, isOpen?: any, e?: MouseEvent, fireEmit?: boolean) => void;
10
- setSelect: (nodes: any, selected?: boolean, autoOpen?: boolean) => void;
11
- setOpen: (item: any | any[], isOpen?: boolean, autoOpenParents?: boolean) => void;
12
- setNodeAttribute: (node: any, attrName: string | string[], value: (boolean | number | string)[] | boolean | number | string, loopParent?: boolean) => void;
8
+ setNodeAction: (args: TreeNode | TreeNode[], action: string, value: unknown) => void;
9
+ setNodeOpened: (item: TreeNode, isOpen?: any, e?: MouseEvent, fireEmit?: boolean) => void;
10
+ setSelect: (nodes: TreeNode | TreeNode[], selected?: boolean, autoOpen?: boolean) => void;
11
+ setOpen: (item: TreeNode, isOpen?: boolean, autoOpenParents?: boolean) => void;
12
+ setNodeAttribute: (node: TreeNode, attrName: string | string[], value: (boolean | number | string)[] | boolean | number | string, loopParent?: boolean) => void;
13
13
  };
14
14
  export default _default;
@@ -1,45 +1,53 @@
1
- import { TreePropTypes } from './props';
1
+ import { TreeNode, TreePropTypes } from './props';
2
2
  declare const _default: (flatData: {
3
- data: any[];
4
- schema: WeakMap<Object, any>;
3
+ data: TreeNode[];
4
+ schema: WeakMap<TreeNode, unknown>;
5
5
  }, props?: TreePropTypes) => {
6
- getSchemaVal: (node: any) => any;
7
- getNodeAttr: (node: any, attr: string) => any;
8
- getNodeId: (node: any) => any;
9
- getNodeById: (id: any) => any;
10
- getNodeParentId: (node: any) => any;
11
- getParentNodeData: (node: any) => any;
6
+ getSchemaVal: (node: TreeNode) => unknown;
7
+ getNodeAttr: (node: TreeNode, attr: string) => any;
8
+ getNodeId: (node: TreeNode) => any;
9
+ getNodeById: (id: string | unknown) => TreeNode;
10
+ getNodeParentId: (node: TreeNode) => any;
11
+ getParentNodeData: (node: TreeNode | string) => any;
12
12
  getNodePathById: (id: string) => any;
13
13
  getNodeAttrById: (id: string, attr: string) => any;
14
14
  getNodeParentIdById: (id: string) => any;
15
- getParentNodeAttr: (node: any, attrName: string) => any;
16
- getParentNode: (node: any) => any;
17
- setNodeAttr: (node: any, attr: string, val: any, id?: any) => void;
18
- setNodeAttrById: (id: any, attr: string, val: any) => void;
19
- getNodePath: (node: any) => any;
20
- isRootNode: (node: any | string) => any;
21
- isNodeOpened: (node: any) => any;
22
- hasChildNode: (node: any) => any;
23
- isItemOpen: (item: any) => any;
24
- isNodeChecked: (node: any) => any;
25
- isNodeMatched: (node: any) => any;
26
- isNodeLoading: (node: any) => any;
27
- checkNodeIsOpen: (node: any) => any;
28
- getSourceNodeByPath: (path: string, uid?: string) => any;
29
- getSourceNodeByUID: (uid: string) => any;
30
- isMatchedNode: (node: any) => any;
31
- resolveScopedSlotParam: (item: any) => {
15
+ getParentNodeAttr: (node: TreeNode, attrName: string) => any;
16
+ getParentNode: (node: TreeNode) => any;
17
+ setNodeAttr: (node: TreeNode, attr: string, val: unknown, id?: any) => void;
18
+ setNodeAttrById: (id: unknown, attr: string, val: unknown) => void;
19
+ getNodePath: (node: TreeNode) => any;
20
+ isRootNode: (node: TreeNode | string) => any;
21
+ isNodeOpened: (node: TreeNode) => any;
22
+ hasChildNode: (node: TreeNode) => any;
23
+ isItemOpen: (item: TreeNode) => any;
24
+ isNodeChecked: (node: TreeNode) => any;
25
+ isNodeMatched: (node: TreeNode) => any;
26
+ isNodeLoading: (node: TreeNode) => any;
27
+ checkNodeIsOpen: (node: TreeNode) => any;
28
+ getSourceNodeByPath: (path: string, uid?: string) => any[];
29
+ getSourceNodeByUID: (uid: string) => TreeNode;
30
+ isMatchedNode: (node: TreeNode) => any;
31
+ resolveScopedSlotParam: (item: TreeNode) => {
32
32
  [x: string]: any;
33
33
  fullPath: any;
34
34
  uuid: any;
35
35
  parent: any;
36
36
  parentId: any;
37
37
  };
38
- setTreeNodeLoading: (node: any, value: boolean) => void;
39
- extendNodeAttr: (item: any) => any;
40
- getChildNodes: (node: any) => any;
41
- extendNodeScopedData: (item: any) => {
42
- data: any;
38
+ setTreeNodeLoading: (node: TreeNode, value: boolean) => void;
39
+ extendNodeAttr: (item: TreeNode) => TreeNode & {
40
+ __attr__: {
41
+ [x: string]: any;
42
+ fullPath: any;
43
+ uuid: any;
44
+ parent: any;
45
+ parentId: any;
46
+ };
47
+ };
48
+ getChildNodes: (node: TreeNode) => TreeNode[];
49
+ extendNodeScopedData: (item: TreeNode) => {
50
+ data: TreeNode;
43
51
  attributes: {
44
52
  [x: string]: any;
45
53
  fullPath: any;
@@ -48,12 +56,12 @@ declare const _default: (flatData: {
48
56
  parentId: any;
49
57
  };
50
58
  };
51
- getIntersectionResponse: (target: HTMLElement | Record<string, any>) => {
59
+ getIntersectionResponse: (target: HTMLElement | TreeNode) => {
52
60
  level: any;
53
- target: HTMLElement | Record<string, any>;
61
+ target: HTMLElement | TreeNode;
54
62
  index: any;
55
63
  parent: any;
56
- node: HTMLElement | Record<string, any>;
64
+ node: HTMLElement | TreeNode;
57
65
  isRoot: any;
58
66
  };
59
67
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bkui-vue",
3
- "version": "2.0.1-beta.28",
3
+ "version": "2.0.1-beta.29",
4
4
  "workspaces": [
5
5
  "packages/**",
6
6
  "scripts/cli",