bkui-vue 2.0.1-beta.1 → 2.0.1-beta.10

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.
Files changed (216) hide show
  1. package/dist/index.cjs.js +166 -166
  2. package/dist/index.esm.js +31973 -31924
  3. package/dist/index.umd.js +166 -166
  4. package/dist/style.css +1 -1
  5. package/dist/style.variable.css +1 -1
  6. package/lib/affix/index.js +7 -7
  7. package/lib/alert/alert.d.ts +5 -5
  8. package/lib/alert/index.d.ts +11 -11
  9. package/lib/backtop/backtop.d.ts +1 -1
  10. package/lib/backtop/index.d.ts +3 -3
  11. package/lib/backtop/index.js +6 -6
  12. package/lib/badge/index.js +1 -1
  13. package/lib/button/button.d.ts +7 -7
  14. package/lib/button/index.d.ts +8 -8
  15. package/lib/button/index.js +6 -6
  16. package/lib/cascader/cascader-panel.d.ts +1 -1
  17. package/lib/cascader/cascader.css +3 -3
  18. package/lib/cascader/cascader.d.ts +1 -1
  19. package/lib/cascader/cascader.less +4 -4
  20. package/lib/cascader/cascader.variable.css +3 -3
  21. package/lib/cascader/index.js +35 -36
  22. package/lib/cascader/interface.d.ts +1 -1
  23. package/lib/checkbox/index.js +3 -3
  24. package/lib/checkbox/type.d.ts +1 -1
  25. package/lib/code-diff/index.js +8 -8
  26. package/lib/collapse/index.js +2 -2
  27. package/lib/collapse/utils.d.ts +2 -2
  28. package/lib/color-picker/color-picker.css +3 -3
  29. package/lib/color-picker/color-picker.less +3 -3
  30. package/lib/color-picker/color-picker.variable.css +3 -3
  31. package/lib/color-picker/index.js +45 -45
  32. package/lib/components.d.ts +32 -32
  33. package/lib/components.js +31 -31
  34. package/lib/config-provider/index.d.ts +1 -1
  35. package/lib/container/index.js +6 -6
  36. package/lib/date-picker/base/date-table.d.ts +1 -1
  37. package/lib/date-picker/base/month-table.d.ts +1 -1
  38. package/lib/date-picker/base/picker-dropdown.d.ts +1 -1
  39. package/lib/date-picker/base/year-table.d.ts +3 -3
  40. package/lib/date-picker/index.js +291 -213
  41. package/lib/date-picker/interface.d.ts +9 -9
  42. package/lib/date-picker/panel/date-range.d.ts +2 -64
  43. package/lib/date-picker/panel/date.d.ts +1 -1
  44. package/lib/date-picker/panel/time-range.d.ts +1 -1
  45. package/lib/date-picker/panel/time.d.ts +1 -1
  46. package/lib/date-picker/props.d.ts +1 -1
  47. package/lib/date-picker/utils.d.ts +5 -1
  48. package/lib/dialog/dialog.css +0 -4
  49. package/lib/dialog/dialog.d.ts +18 -18
  50. package/lib/dialog/dialog.variable.css +0 -4
  51. package/lib/dialog/index.d.ts +40 -40
  52. package/lib/dialog/index.js +22 -22
  53. package/lib/dialog/props.d.ts +7 -7
  54. package/lib/directives/index.d.ts +3 -3
  55. package/lib/directives/index.js +166 -166
  56. package/lib/directives/tooltips.d.ts +1 -1
  57. package/lib/dist.index.js +2 -2
  58. package/lib/divider/divider.d.ts +5 -5
  59. package/lib/divider/index.d.ts +11 -11
  60. package/lib/divider/index.js +2 -2
  61. package/lib/divider/props.d.ts +2 -2
  62. package/lib/dropdown/dropdown.d.ts +5 -5
  63. package/lib/dropdown/index.d.ts +11 -11
  64. package/lib/dropdown/index.js +7 -7
  65. package/lib/exception/exception.d.ts +9 -9
  66. package/lib/exception/index.d.ts +11 -11
  67. package/lib/exception/index.js +10 -10
  68. package/lib/exception/typings/index.d.ts +1 -1
  69. package/lib/fixed-navbar/index.js +2 -2
  70. package/lib/form/form.d.ts +2 -2
  71. package/lib/form/index.js +14 -14
  72. package/lib/form/type.d.ts +2 -2
  73. package/lib/icon/index.d.ts +11 -11
  74. package/lib/icon/index.js +11 -11
  75. package/lib/image/image-viewer.d.ts +1 -1
  76. package/lib/image/index.js +20 -20
  77. package/lib/index.d.ts +3 -3
  78. package/lib/index.js +3 -3
  79. package/lib/info-box/index.js +14 -14
  80. package/lib/info-box/info-box.d.ts +15 -15
  81. package/lib/input/index.d.ts +15 -15
  82. package/lib/input/index.js +16 -16
  83. package/lib/input/input.d.ts +15 -15
  84. package/lib/link/index.d.ts +11 -11
  85. package/lib/link/index.js +3 -3
  86. package/lib/link/link.d.ts +5 -5
  87. package/lib/loading/index.d.ts +4 -4
  88. package/lib/loading/index.js +6 -6
  89. package/lib/loading/loading.d.ts +6 -6
  90. package/lib/locale/index.d.ts +1 -1
  91. package/lib/menu/index.js +0 -1
  92. package/lib/menu/utils.d.ts +3 -3
  93. package/lib/message/index.js +18 -18
  94. package/lib/message/messageConstructor.d.ts +11 -11
  95. package/lib/modal/index.d.ts +3 -3
  96. package/lib/modal/index.js +7 -7
  97. package/lib/modal/modal.css +0 -4
  98. package/lib/modal/modal.d.ts +1 -1
  99. package/lib/modal/modal.less +0 -5
  100. package/lib/modal/modal.variable.css +0 -4
  101. package/lib/navigation/index.js +20 -20
  102. package/lib/navigation/navigation.d.ts +1 -1
  103. package/lib/notify/index.js +4 -4
  104. package/lib/overflow-title/components/overflow-title.d.ts +9 -9
  105. package/lib/overflow-title/index.d.ts +19 -19
  106. package/lib/overflow-title/index.js +61 -11
  107. package/lib/overflow-title/props.d.ts +18 -18
  108. package/lib/pagination/index.js +16 -16
  109. package/lib/pagination/type.d.ts +1 -1
  110. package/lib/pagination/use-limit.d.ts +1 -1
  111. package/lib/pagination/use-total.d.ts +1 -1
  112. package/lib/plugin-popover/index.js +18 -19
  113. package/lib/pop-confirm/index.js +9 -9
  114. package/lib/pop-confirm/props.d.ts +2 -2
  115. package/lib/popover/const.d.ts +3 -3
  116. package/lib/popover/index.d.ts +19 -19
  117. package/lib/popover/index.js +18 -19
  118. package/lib/popover/plugin-popover.d.ts +1 -1
  119. package/lib/popover/popover.d.ts +7 -7
  120. package/lib/popover/props.d.ts +4 -4
  121. package/lib/process/index.js +3 -3
  122. package/lib/progress/index.d.ts +11 -11
  123. package/lib/progress/index.js +10 -10
  124. package/lib/progress/progress.d.ts +7 -7
  125. package/lib/radio/index.js +18 -23
  126. package/lib/radio/type.d.ts +1 -1
  127. package/lib/rate/index.js +8 -8
  128. package/lib/rate/rate.css +27 -0
  129. package/lib/rate/rate.less +33 -0
  130. package/lib/rate/rate.variable.css +27 -0
  131. package/lib/resize-layout/index.d.ts +11 -11
  132. package/lib/resize-layout/index.js +7 -8
  133. package/lib/resize-layout/resize-layout.d.ts +5 -5
  134. package/lib/scrollbar/index.js +0 -1
  135. package/lib/scrollbar/scrollbar-core/index.d.ts +9 -9
  136. package/lib/search-select/index.js +66 -66
  137. package/lib/search-select/menu.d.ts +1 -1
  138. package/lib/search-select/selected.d.ts +1 -1
  139. package/lib/search-select/utils.d.ts +3 -3
  140. package/lib/select/index.d.ts +61 -61
  141. package/lib/select/index.js +69 -73
  142. package/lib/select/option.d.ts +1 -1
  143. package/lib/select/select.css +1 -2
  144. package/lib/select/select.d.ts +24 -24
  145. package/lib/select/select.less +1 -2
  146. package/lib/select/select.variable.css +1 -2
  147. package/lib/select/selectTagInput.d.ts +6 -6
  148. package/lib/select/type.d.ts +2 -2
  149. package/lib/shared/index.d.ts +1 -1
  150. package/lib/shared/index.js +38 -46
  151. package/lib/shared/popover.d.ts +3 -3
  152. package/lib/shared/token.d.ts +1 -1
  153. package/lib/shared/vue-types.d.ts +46 -46
  154. package/lib/shared/z-index-manager.d.ts +6 -6
  155. package/lib/sideslider/index.d.ts +3 -3
  156. package/lib/sideslider/index.js +11 -11
  157. package/lib/sideslider/sideslider.d.ts +1 -1
  158. package/lib/slider/index.js +21 -23
  159. package/lib/steps/index.d.ts +11 -11
  160. package/lib/steps/index.js +3 -3
  161. package/lib/steps/steps.d.ts +7 -7
  162. package/lib/styles/index.d.ts +0 -1
  163. package/lib/swiper/index.js +5 -5
  164. package/lib/switcher/index.js +2 -2
  165. package/lib/switcher/switcher.d.ts +2 -2
  166. package/lib/tab/index.d.ts +22 -22
  167. package/lib/tab/index.js +15 -15
  168. package/lib/tab/props.d.ts +15 -15
  169. package/lib/tab/tab-nav.d.ts +10 -10
  170. package/lib/tab/tab.d.ts +10 -10
  171. package/lib/table/components/table-column.d.ts +27 -87
  172. package/lib/table/const.d.ts +8 -8
  173. package/lib/table/events.d.ts +21 -21
  174. package/lib/table/index.d.ts +194 -244
  175. package/lib/table/index.js +164 -142
  176. package/lib/table/plugins/use-shift-key.d.ts +2 -0
  177. package/lib/table/props.d.ts +34 -34
  178. package/lib/table/table.d.ts +47 -47
  179. package/lib/table/use-attributes.d.ts +3 -3
  180. package/lib/table/use-column.d.ts +9 -129
  181. package/lib/table/use-common.d.ts +4 -4
  182. package/lib/table/utils.d.ts +5 -5
  183. package/lib/table-column/index.d.ts +42 -172
  184. package/lib/table-column/index.js +19 -19
  185. package/lib/tag/index.d.ts +11 -11
  186. package/lib/tag/index.js +2 -2
  187. package/lib/tag/tag.d.ts +5 -5
  188. package/lib/tag-input/common.d.ts +1 -1
  189. package/lib/tag-input/index.d.ts +8 -8
  190. package/lib/tag-input/index.js +30 -30
  191. package/lib/tag-input/tag-input.d.ts +4 -4
  192. package/lib/tag-input/tag-props.d.ts +2 -2
  193. package/lib/timeline/index.js +2 -2
  194. package/lib/transfer/const.d.ts +2 -2
  195. package/lib/transfer/index.js +19 -19
  196. package/lib/transfer/transfer.css +9 -9
  197. package/lib/transfer/transfer.less +3 -3
  198. package/lib/transfer/transfer.variable.css +9 -9
  199. package/lib/tree/constant.d.ts +20 -20
  200. package/lib/tree/index.d.ts +20 -20
  201. package/lib/tree/index.js +48 -48
  202. package/lib/tree/props.d.ts +6 -6
  203. package/lib/tree/tree.d.ts +6 -6
  204. package/lib/tree/tree.less +1 -1
  205. package/lib/tree/use-empty.d.ts +1 -1
  206. package/lib/tree/use-node-action.d.ts +2 -2
  207. package/lib/tree/use-search.d.ts +1 -1
  208. package/lib/tree/util.d.ts +1 -1
  209. package/lib/upload/index.js +41 -35
  210. package/lib/upload/props.d.ts +1 -1
  211. package/lib/upload/upload.type.d.ts +7 -7
  212. package/lib/upload/use-file-handler.d.ts +1 -1
  213. package/package.json +13 -49
  214. package/lib/rate/star.css +0 -27
  215. package/lib/rate/star.less +0 -34
  216. package/lib/rate/star.variable.css +0 -156
@@ -40,7 +40,7 @@ declare const BkTree: {
40
40
  };
41
41
  async: import("vue-types").VueTypeShape<{
42
42
  callback: (item: any, cb: any) => Promise<any>;
43
- cache: Boolean;
43
+ cache: boolean;
44
44
  deepAutoOpen?: string;
45
45
  }>;
46
46
  offsetLeft: import("vue-types").VueTypeValidableDef<number> & {
@@ -124,15 +124,15 @@ declare const BkTree: {
124
124
  default: boolean | (() => import("./props").IIntersectionObserver);
125
125
  };
126
126
  }>> & {
127
+ onNodeChecked?: (...args: any[]) => any;
127
128
  onNodeClick?: (...args: any[]) => any;
128
129
  onNodeCollapse?: (...args: any[]) => any;
129
- onNodeExpand?: (...args: any[]) => any;
130
- onNodeChecked?: (...args: any[]) => any;
131
- onNodeDragStart?: (...args: any[]) => any;
132
- onNodeDragOver?: (...args: any[]) => any;
133
130
  onNodeDragLeave?: (...args: any[]) => any;
131
+ onNodeDragOver?: (...args: any[]) => any;
132
+ onNodeDragStart?: (...args: any[]) => any;
134
133
  onNodeDrop?: (...args: any[]) => any;
135
134
  onNodeEnterView?: (...args: any[]) => any;
135
+ onNodeExpand?: (...args: any[]) => any;
136
136
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
137
137
  nodeClick: (..._args: any[]) => boolean;
138
138
  nodeCollapse: (..._args: any[]) => boolean;
@@ -184,7 +184,7 @@ declare const BkTree: {
184
184
  };
185
185
  async: import("vue-types").VueTypeShape<{
186
186
  callback: (item: any, cb: any) => Promise<any>;
187
- cache: Boolean;
187
+ cache: boolean;
188
188
  deepAutoOpen?: string;
189
189
  }>;
190
190
  offsetLeft: import("vue-types").VueTypeValidableDef<number> & {
@@ -268,15 +268,15 @@ declare const BkTree: {
268
268
  default: boolean | (() => import("./props").IIntersectionObserver);
269
269
  };
270
270
  }>> & {
271
+ onNodeChecked?: (...args: any[]) => any;
271
272
  onNodeClick?: (...args: any[]) => any;
272
273
  onNodeCollapse?: (...args: any[]) => any;
273
- onNodeExpand?: (...args: any[]) => any;
274
- onNodeChecked?: (...args: any[]) => any;
275
- onNodeDragStart?: (...args: any[]) => any;
276
- onNodeDragOver?: (...args: any[]) => any;
277
274
  onNodeDragLeave?: (...args: any[]) => any;
275
+ onNodeDragOver?: (...args: any[]) => any;
276
+ onNodeDragStart?: (...args: any[]) => any;
278
277
  onNodeDrop?: (...args: any[]) => any;
279
278
  onNodeEnterView?: (...args: any[]) => any;
279
+ onNodeExpand?: (...args: any[]) => any;
280
280
  }, {
281
281
  data: any[];
282
282
  height: number;
@@ -354,7 +354,7 @@ declare const BkTree: {
354
354
  };
355
355
  async: import("vue-types").VueTypeShape<{
356
356
  callback: (item: any, cb: any) => Promise<any>;
357
- cache: Boolean;
357
+ cache: boolean;
358
358
  deepAutoOpen?: string;
359
359
  }>;
360
360
  offsetLeft: import("vue-types").VueTypeValidableDef<number> & {
@@ -438,15 +438,15 @@ declare const BkTree: {
438
438
  default: boolean | (() => import("./props").IIntersectionObserver);
439
439
  };
440
440
  }>> & {
441
+ onNodeChecked?: (...args: any[]) => any;
441
442
  onNodeClick?: (...args: any[]) => any;
442
443
  onNodeCollapse?: (...args: any[]) => any;
443
- onNodeExpand?: (...args: any[]) => any;
444
- onNodeChecked?: (...args: any[]) => any;
445
- onNodeDragStart?: (...args: any[]) => any;
446
- onNodeDragOver?: (...args: any[]) => any;
447
444
  onNodeDragLeave?: (...args: any[]) => any;
445
+ onNodeDragOver?: (...args: any[]) => any;
446
+ onNodeDragStart?: (...args: any[]) => any;
448
447
  onNodeDrop?: (...args: any[]) => any;
449
448
  onNodeEnterView?: (...args: any[]) => any;
449
+ onNodeExpand?: (...args: any[]) => any;
450
450
  }, () => JSX.Element, {}, {}, {}, {
451
451
  data: any[];
452
452
  height: number;
@@ -521,7 +521,7 @@ declare const BkTree: {
521
521
  };
522
522
  async: import("vue-types").VueTypeShape<{
523
523
  callback: (item: any, cb: any) => Promise<any>;
524
- cache: Boolean;
524
+ cache: boolean;
525
525
  deepAutoOpen?: string;
526
526
  }>;
527
527
  offsetLeft: import("vue-types").VueTypeValidableDef<number> & {
@@ -605,15 +605,15 @@ declare const BkTree: {
605
605
  default: boolean | (() => import("./props").IIntersectionObserver);
606
606
  };
607
607
  }>> & {
608
+ onNodeChecked?: (...args: any[]) => any;
608
609
  onNodeClick?: (...args: any[]) => any;
609
610
  onNodeCollapse?: (...args: any[]) => any;
610
- onNodeExpand?: (...args: any[]) => any;
611
- onNodeChecked?: (...args: any[]) => any;
612
- onNodeDragStart?: (...args: any[]) => any;
613
- onNodeDragOver?: (...args: any[]) => any;
614
611
  onNodeDragLeave?: (...args: any[]) => any;
612
+ onNodeDragOver?: (...args: any[]) => any;
613
+ onNodeDragStart?: (...args: any[]) => any;
615
614
  onNodeDrop?: (...args: any[]) => any;
616
615
  onNodeEnterView?: (...args: any[]) => any;
616
+ onNodeExpand?: (...args: any[]) => any;
617
617
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
618
618
  nodeClick: (..._args: any[]) => boolean;
619
619
  nodeCollapse: (..._args: any[]) => boolean;
package/lib/tree/index.js CHANGED
@@ -17303,7 +17303,7 @@ __webpack_require__.d(__webpack_exports__, {
17303
17303
  ;// CONCATENATED MODULE: external "../shared"
17304
17304
  var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
17305
17305
  var y = x => () => x
17306
- const shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["debounce"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.debounce, ["resolveClassName"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.resolveClassName, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstall });
17306
+ const shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["debounce"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.debounce, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstall });
17307
17307
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
17308
17308
  function _arrayWithHoles(arr) {
17309
17309
  if (Array.isArray(arr)) return arr;
@@ -17454,15 +17454,15 @@ function _defineProperty(obj, key, value) {
17454
17454
  */
17455
17455
  var EVENTS;
17456
17456
  (function (EVENTS) {
17457
+ EVENTS["NODE_CHECKED"] = "nodeChecked";
17457
17458
  EVENTS["NODE_CLICK"] = "nodeClick";
17458
17459
  EVENTS["NODE_COLLAPSE"] = "nodeCollapse";
17459
- EVENTS["NODE_EXPAND"] = "nodeExpand";
17460
- EVENTS["NODE_CHECKED"] = "nodeChecked";
17461
- EVENTS["NODE_DRAG_START"] = "nodeDragStart";
17462
- EVENTS["NODE_DRAG_OVER"] = "nodeDragOver";
17463
17460
  EVENTS["NODE_DRAG_LEAVE"] = "nodeDragLeave";
17461
+ EVENTS["NODE_DRAG_OVER"] = "nodeDragOver";
17462
+ EVENTS["NODE_DRAG_START"] = "nodeDragStart";
17464
17463
  EVENTS["NODE_DROP"] = "nodeDrop";
17465
17464
  EVENTS["NODE_ENTER_VIEW"] = "nodeEnterView";
17465
+ EVENTS["NODE_EXPAND"] = "nodeExpand";
17466
17466
  })(EVENTS || (EVENTS = {}));
17467
17467
  var EMPTY = function EMPTY() {
17468
17468
  return true;
@@ -17475,24 +17475,24 @@ var TreeEmitEventsType = _defineProperty(_defineProperty(_defineProperty(_define
17475
17475
  var NODE_ATTRIBUTES;
17476
17476
  (function (NODE_ATTRIBUTES) {
17477
17477
  NODE_ATTRIBUTES["DEPTH"] = "__depth";
17478
- NODE_ATTRIBUTES["INDEX"] = "__index";
17479
- NODE_ATTRIBUTES["UUID"] = "__uuid";
17480
- NODE_ATTRIBUTES["PARENT"] = "__parent";
17481
17478
  NODE_ATTRIBUTES["HAS_CHILD"] = "__has_child";
17482
- NODE_ATTRIBUTES["PATH"] = "__path";
17483
- NODE_ATTRIBUTES["IS_ROOT"] = "__is_root";
17484
- NODE_ATTRIBUTES["ORDER"] = "__order";
17485
- NODE_ATTRIBUTES["IS_OPEN"] = "__is_open";
17486
- NODE_ATTRIBUTES["IS_CHECKED"] = "__is_checked";
17487
- NODE_ATTRIBUTES["IS_SELECTED"] = "__is_selected";
17479
+ NODE_ATTRIBUTES["INDEX"] = "__index";
17480
+ NODE_ATTRIBUTES["IS_ASYNC"] = "__is_async";
17488
17481
  NODE_ATTRIBUTES["IS_ASYNC_INIT"] = "__is_async_init";
17489
- NODE_ATTRIBUTES["IS_MATCH"] = "__is_match";
17490
- NODE_ATTRIBUTES["IS_NULL"] = "__IS_NULL";
17491
17482
  NODE_ATTRIBUTES["IS_CACHED"] = "__is_cached";
17492
- NODE_ATTRIBUTES["IS_ASYNC"] = "__is_async";
17483
+ NODE_ATTRIBUTES["IS_CHECKED"] = "__is_checked";
17484
+ NODE_ATTRIBUTES["IS_INDETERMINATE"] = "__is_indeterminate";
17493
17485
  NODE_ATTRIBUTES["IS_LOADING"] = "__is_loading";
17486
+ NODE_ATTRIBUTES["IS_MATCH"] = "__is_match";
17487
+ NODE_ATTRIBUTES["IS_NULL"] = "__IS_NULL";
17488
+ NODE_ATTRIBUTES["IS_OPEN"] = "__is_open";
17489
+ NODE_ATTRIBUTES["IS_ROOT"] = "__is_root";
17490
+ NODE_ATTRIBUTES["IS_SELECTED"] = "__is_selected";
17491
+ NODE_ATTRIBUTES["ORDER"] = "__order";
17492
+ NODE_ATTRIBUTES["PARENT"] = "__parent";
17493
+ NODE_ATTRIBUTES["PATH"] = "__path";
17494
17494
  NODE_ATTRIBUTES["TREE_NODE_ATTR"] = "__attr__";
17495
- NODE_ATTRIBUTES["IS_INDETERMINATE"] = "__is_indeterminate";
17495
+ NODE_ATTRIBUTES["UUID"] = "__uuid";
17496
17496
  })(NODE_ATTRIBUTES || (NODE_ATTRIBUTES = {}));
17497
17497
  var NODE_SOURCE_ATTRS = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, NODE_ATTRIBUTES.IS_OPEN, 'isOpen'), NODE_ATTRIBUTES.IS_SELECTED, 'selected'), NODE_ATTRIBUTES.IS_MATCH, 'isMatch'), NODE_ATTRIBUTES.HAS_CHILD, 'hasChild'), NODE_ATTRIBUTES.IS_CHECKED, 'checked'), NODE_ATTRIBUTES.IS_ASYNC, 'async'), NODE_ATTRIBUTES.IS_LOADING, 'loading'), NODE_ATTRIBUTES.IS_ROOT, 'isRoot');
17498
17498
  /**
@@ -17501,9 +17501,9 @@ var NODE_SOURCE_ATTRS = _defineProperty(_defineProperty(_defineProperty(_defineP
17501
17501
  var NodeContentActionEnum;
17502
17502
  (function (NodeContentActionEnum) {
17503
17503
  NodeContentActionEnum["CLICK"] = "click";
17504
- NodeContentActionEnum["SELECTED"] = "selected";
17505
- NodeContentActionEnum["EXPAND"] = "expand";
17506
17504
  NodeContentActionEnum["COLLAPSE"] = "collapse";
17505
+ NodeContentActionEnum["EXPAND"] = "expand";
17506
+ NodeContentActionEnum["SELECTED"] = "selected";
17507
17507
  })(NodeContentActionEnum || (NodeContentActionEnum = {}));
17508
17508
  ;// CONCATENATED MODULE: external "vue-types"
17509
17509
  var external_vue_types_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
@@ -17515,18 +17515,18 @@ const external_vue_types_namespaceObject = external_vue_types_x({ ["string"]: ()
17515
17515
 
17516
17516
  var ColumnTypeEnum;
17517
17517
  (function (ColumnTypeEnum) {
17518
- ColumnTypeEnum["ONCE"] = "once";
17519
17518
  ColumnTypeEnum["EVERY"] = "every";
17519
+ ColumnTypeEnum["ONCE"] = "once";
17520
17520
  })(ColumnTypeEnum || (ColumnTypeEnum = {}));
17521
17521
  var TreeSearchMatchEnum;
17522
17522
  (function (TreeSearchMatchEnum) {
17523
- TreeSearchMatchEnum["FUZZY"] = "fuzzy";
17524
17523
  TreeSearchMatchEnum["FULL"] = "full";
17524
+ TreeSearchMatchEnum["FUZZY"] = "fuzzy";
17525
17525
  })(TreeSearchMatchEnum || (TreeSearchMatchEnum = {}));
17526
17526
  var TreeSearchResultEnum;
17527
17527
  (function (TreeSearchResultEnum) {
17528
- TreeSearchResultEnum["TREE"] = "tree";
17529
17528
  TreeSearchResultEnum["LIST"] = "list";
17529
+ TreeSearchResultEnum["TREE"] = "tree";
17530
17530
  })(TreeSearchResultEnum || (TreeSearchResultEnum = {}));
17531
17531
  var treeProps = {
17532
17532
  /**
@@ -18334,13 +18334,11 @@ var getNodeItemClass = function getNodeItemClass(item, schema, props) {
18334
18334
  var _ref = schema.get(item) || {},
18335
18335
  __is_root = _ref.__is_root,
18336
18336
  __is_open = _ref.__is_open;
18337
- return {
18338
- 'is-root': __is_root,
18339
- 'bk-tree-node': true,
18340
- 'is-open': __is_open,
18341
- 'is-virtual-render': props.virtualRender,
18342
- 'level-line': props.levelLine && showTree
18343
- };
18337
+ var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
18338
+ resolveClassName = _usePrefix.resolveClassName;
18339
+ return _defineProperty(_defineProperty(_defineProperty(_defineProperty({
18340
+ 'is-root': __is_root
18341
+ }, "".concat(resolveClassName('tree-node')), true), 'is-open', __is_open), 'is-virtual-render', props.virtualRender), 'level-line', props.levelLine && showTree);
18344
18342
  };
18345
18343
  /**
18346
18344
  * 获取当前渲染节点Class List
@@ -18349,15 +18347,17 @@ var getNodeItemClass = function getNodeItemClass(item, schema, props) {
18349
18347
  */
18350
18348
  var getNodeRowClass = function getNodeRowClass(item, schema) {
18351
18349
  // eslint-disable-next-line @typescript-eslint/naming-convention
18352
- var _ref2 = schema.get(item) || {},
18353
- __is_checked = _ref2.__is_checked,
18354
- __is_selected = _ref2.__is_selected;
18350
+ var _ref3 = schema.get(item) || {},
18351
+ __is_checked = _ref3.__is_checked,
18352
+ __is_selected = _ref3.__is_selected;
18353
+ var _usePrefix2 = (0,config_provider_namespaceObject.usePrefix)(),
18354
+ resolveClassName = _usePrefix2.resolveClassName;
18355
18355
  return _defineProperty({
18356
18356
  'is-checked': __is_checked,
18357
18357
  'is-selected': __is_selected,
18358
18358
  'node-folder': item.is_folder,
18359
18359
  'node-leaf': item.is_leaf
18360
- }, (0,shared_namespaceObject.resolveClassName)('node-row'), true);
18360
+ }, "".concat(resolveClassName('node-row')), true);
18361
18361
  };
18362
18362
  /**
18363
18363
  * 根据路径更新指定节点Child-Data
@@ -18737,9 +18737,9 @@ var use_node_action_this = undefined;
18737
18737
  return (0,external_vue_namespaceObject.createVNode)("span", {
18738
18738
  "onClick": handleNodeCheckboxClick
18739
18739
  }, [(0,external_vue_namespaceObject.createVNode)(checkbox_namespaceObject["default"], {
18740
- "size": "small",
18741
- "modelValue": isNodeChecked(item),
18742
18740
  "indeterminate": isIndeterminate(item),
18741
+ "modelValue": isNodeChecked(item),
18742
+ "size": "small",
18743
18743
  "onChange": function onChange(val, event) {
18744
18744
  return handleNodeItemCheckboxChange(item, !!val, event);
18745
18745
  }
@@ -19004,8 +19004,8 @@ var use_node_action_this = undefined;
19004
19004
  // @ts-ignore:next-line
19005
19005
  .map(function (index) {
19006
19006
  return (0,external_vue_namespaceObject.createVNode)("span", {
19007
- "class": "node-virtual-line",
19008
- "style": getNodeLineStyle(maxDeep - index)
19007
+ "style": getNodeLineStyle(maxDeep - index),
19008
+ "class": "node-virtual-line"
19009
19009
  }, null);
19010
19010
  });
19011
19011
  };
@@ -19039,12 +19039,12 @@ var use_node_action_this = undefined;
19039
19039
  var _ctx$slots$nodeAppend, _ctx$slots4;
19040
19040
  var showTree = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
19041
19041
  return (0,external_vue_namespaceObject.createVNode)("div", {
19042
- "data-tree-node": getNodeId(item),
19043
19042
  "key": getNodeId(item),
19044
- "class": getNodeRowClass(item, flatData.schema)
19043
+ "class": getNodeRowClass(item, flatData.schema),
19044
+ "data-tree-node": getNodeId(item)
19045
19045
  }, [(0,external_vue_namespaceObject.createVNode)("div", {
19046
- "class": getNodeItemClass(item, flatData.schema, props, showTree),
19047
19046
  "style": getNodeItemStyle(item, props, flatData, showTree),
19047
+ "class": getNodeItemClass(item, flatData.schema, props, showTree),
19048
19048
  "onClick": function onClick(e) {
19049
19049
  return handleNodeContentClick(item, e);
19050
19050
  }
@@ -20068,18 +20068,18 @@ var use_tree_init_this = undefined;
20068
20068
  resolveClassName = _usePrefix.resolveClassName;
20069
20069
  return function () {
20070
20070
  return (0,external_vue_namespaceObject.createVNode)(virtual_render_namespaceObject["default"], {
20071
- "class": resolveClassName('tree'),
20071
+ "ref": root,
20072
20072
  "style": getTreeStyle(null, props),
20073
- "list": renderData.value,
20074
- "lineHeight": props.lineHeight,
20075
20073
  "height": props.height,
20074
+ "class": resolveClassName('tree'),
20075
+ "contentClassName": resolveClassName('container'),
20076
20076
  "enabled": props.virtualRender,
20077
- "rowKey": NODE_ATTRIBUTES.UUID,
20078
20077
  "keepAlive": true,
20079
- "contentClassName": resolveClassName('container'),
20078
+ "lineHeight": props.lineHeight,
20079
+ "list": renderData.value,
20080
+ "rowKey": NODE_ATTRIBUTES.UUID,
20080
20081
  "throttleDelay": 0,
20081
- "onContentScroll": handleContentScroll,
20082
- "ref": root
20082
+ "onContentScroll": handleContentScroll
20083
20083
  }, {
20084
20084
  "default": function _default(scoped) {
20085
20085
  return renderTreeContent(scoped.data || []);
@@ -1,11 +1,11 @@
1
1
  import { ExtractPropTypes } from 'vue';
2
2
  declare enum TreeSearchMatchEnum {
3
- FUZZY = "fuzzy",
4
- FULL = "full"
3
+ FULL = "full",
4
+ FUZZY = "fuzzy"
5
5
  }
6
6
  declare enum TreeSearchResultEnum {
7
- TREE = "tree",
8
- LIST = "list"
7
+ LIST = "list",
8
+ TREE = "tree"
9
9
  }
10
10
  /**
11
11
  * Tree Prop: prefixIcon function
@@ -231,7 +231,7 @@ export declare const treeProps: {
231
231
  };
232
232
  type AsyncOption = {
233
233
  callback: (item: any, cb: any) => Promise<any>;
234
- cache: Boolean;
234
+ cache: boolean;
235
235
  deepAutoOpen?: string;
236
236
  };
237
237
  export type IIntersectionObserver = {
@@ -239,7 +239,7 @@ export type IIntersectionObserver = {
239
239
  callback: (node: any, level: number, index: number) => void;
240
240
  };
241
241
  export type SearchOption = {
242
- value: string | number | boolean;
242
+ value: boolean | number | string;
243
243
  match?: `${TreeSearchMatchEnum}` | Function;
244
244
  resultType?: `${TreeSearchResultEnum}`;
245
245
  showChildNodes?: boolean;
@@ -45,7 +45,7 @@ declare const _default: import("vue").DefineComponent<{
45
45
  };
46
46
  async: import("vue-types").VueTypeShape<{
47
47
  callback: (item: any, cb: any) => Promise<any>;
48
- cache: Boolean;
48
+ cache: boolean;
49
49
  deepAutoOpen?: string;
50
50
  }>;
51
51
  offsetLeft: import("vue-types").VueTypeValidableDef<number> & {
@@ -182,7 +182,7 @@ declare const _default: import("vue").DefineComponent<{
182
182
  };
183
183
  async: import("vue-types").VueTypeShape<{
184
184
  callback: (item: any, cb: any) => Promise<any>;
185
- cache: Boolean;
185
+ cache: boolean;
186
186
  deepAutoOpen?: string;
187
187
  }>;
188
188
  offsetLeft: import("vue-types").VueTypeValidableDef<number> & {
@@ -269,15 +269,15 @@ declare const _default: import("vue").DefineComponent<{
269
269
  default: boolean | (() => import("./props").IIntersectionObserver);
270
270
  };
271
271
  }>> & {
272
+ onNodeChecked?: (...args: any[]) => any;
272
273
  onNodeClick?: (...args: any[]) => any;
273
274
  onNodeCollapse?: (...args: any[]) => any;
274
- onNodeExpand?: (...args: any[]) => any;
275
- onNodeChecked?: (...args: any[]) => any;
276
- onNodeDragStart?: (...args: any[]) => any;
277
- onNodeDragOver?: (...args: any[]) => any;
278
275
  onNodeDragLeave?: (...args: any[]) => any;
276
+ onNodeDragOver?: (...args: any[]) => any;
277
+ onNodeDragStart?: (...args: any[]) => any;
279
278
  onNodeDrop?: (...args: any[]) => any;
280
279
  onNodeEnterView?: (...args: any[]) => any;
280
+ onNodeExpand?: (...args: any[]) => any;
281
281
  }, {
282
282
  data: any[];
283
283
  height: number;
@@ -108,7 +108,7 @@
108
108
  }
109
109
  }
110
110
 
111
- &-drag-disabled{
111
+ &-drag-disabled {
112
112
 
113
113
  }
114
114
  }
@@ -1,4 +1,4 @@
1
1
  declare const _default: (props: any) => {
2
- renderEmpty: (type: '404' | '403' | '500' | 'building' | 'empty' | 'search-empty' | 'login') => JSX.Element;
2
+ renderEmpty: (type: '403' | '404' | '500' | 'building' | 'empty' | 'login' | 'search-empty') => JSX.Element;
3
3
  };
4
4
  export default _default;
@@ -8,7 +8,7 @@ declare const _default: (props: TreePropTypes, ctx: any, flatData: IFlatData, _r
8
8
  setNodeAction: (args: any | any[], action: string, value: any) => void;
9
9
  setNodeOpened: (item: any, isOpen?: any, e?: MouseEvent, fireEmit?: boolean) => void;
10
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: string | number | boolean | (string | number | boolean)[], loopParent?: 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;
13
13
  };
14
14
  export default _default;
@@ -1,6 +1,6 @@
1
1
  import { SearchOption, TreePropTypes } from './props';
2
2
  declare const _default: (props: TreePropTypes) => {
3
- searchFn: (itemValue: string | number, item: any) => any;
3
+ searchFn: (itemValue: number | string, item: any) => any;
4
4
  refSearch: import("vue").Ref<string | number | boolean | SearchOption>;
5
5
  isSearchActive: import("vue").ComputedRef<boolean>;
6
6
  isSearchDisabled: boolean;
@@ -34,8 +34,8 @@ export declare const getNodeItemStyle: any;
34
34
  * @returns
35
35
  */
36
36
  export declare const getNodeItemClass: (item: any, schema: WeakMap<Object, any>, props: TreePropTypes, showTree?: boolean) => {
37
+ [x: string]: any;
37
38
  'is-root': any;
38
- 'bk-tree-node': boolean;
39
39
  'is-open': any;
40
40
  'is-virtual-render': boolean;
41
41
  'level-line': boolean;