bkui-vue 2.0.1-beta.6 → 2.0.1-beta.60.fix.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.
Files changed (215) hide show
  1. package/dist/index.cjs.js +166 -166
  2. package/dist/index.esm.js +32099 -32092
  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 -7
  16. package/lib/cascader/cascader-panel.d.ts +1 -1
  17. package/lib/cascader/cascader.d.ts +1 -1
  18. package/lib/cascader/cascader.less +1 -1
  19. package/lib/cascader/index.js +32 -32
  20. package/lib/cascader/interface.d.ts +1 -1
  21. package/lib/checkbox/checkbox.d.ts +7 -7
  22. package/lib/checkbox/index.d.ts +11 -11
  23. package/lib/checkbox/index.js +12 -4
  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/index.js +44 -44
  29. package/lib/components.d.ts +32 -32
  30. package/lib/components.js +31 -31
  31. package/lib/config-provider/index.d.ts +1 -1
  32. package/lib/container/index.js +6 -7
  33. package/lib/date-picker/base/date-table.d.ts +1 -1
  34. package/lib/date-picker/base/month-table.d.ts +1 -1
  35. package/lib/date-picker/base/picker-dropdown.d.ts +1 -1
  36. package/lib/date-picker/base/year-table.d.ts +1 -1
  37. package/lib/date-picker/date-picker.d.ts +0 -1
  38. package/lib/date-picker/index.d.ts +0 -3
  39. package/lib/date-picker/index.js +246 -220
  40. package/lib/date-picker/interface.d.ts +9 -9
  41. package/lib/date-picker/panel/date-range.d.ts +5 -5
  42. package/lib/date-picker/panel/date.d.ts +1 -1
  43. package/lib/date-picker/panel/time-range.d.ts +1 -1
  44. package/lib/date-picker/panel/time.d.ts +1 -1
  45. package/lib/date-picker/props.d.ts +1 -1
  46. package/lib/date-picker/utils.d.ts +1 -1
  47. package/lib/dialog/dialog.d.ts +25 -20
  48. package/lib/dialog/index.d.ts +55 -44
  49. package/lib/dialog/index.js +22 -22
  50. package/lib/dialog/props.d.ts +10 -8
  51. package/lib/directives/index.d.ts +3 -3
  52. package/lib/directives/index.js +166 -166
  53. package/lib/directives/tooltips.d.ts +1 -1
  54. package/lib/dist.index.js +2 -4
  55. package/lib/divider/divider.d.ts +5 -5
  56. package/lib/divider/index.d.ts +11 -11
  57. package/lib/divider/index.js +2 -2
  58. package/lib/divider/props.d.ts +2 -2
  59. package/lib/dropdown/dropdown.d.ts +5 -5
  60. package/lib/dropdown/index.d.ts +11 -11
  61. package/lib/dropdown/index.js +7 -7
  62. package/lib/exception/exception.d.ts +9 -9
  63. package/lib/exception/index.d.ts +11 -11
  64. package/lib/exception/index.js +10 -10
  65. package/lib/exception/typings/index.d.ts +1 -1
  66. package/lib/fixed-navbar/index.js +2 -2
  67. package/lib/form/form.d.ts +2 -2
  68. package/lib/form/index.js +14 -15
  69. package/lib/form/type.d.ts +2 -2
  70. package/lib/icon/index.d.ts +11 -11
  71. package/lib/icon/index.js +11 -11
  72. package/lib/image/image-viewer.d.ts +1 -1
  73. package/lib/image/index.js +20 -21
  74. package/lib/index.d.ts +9 -3
  75. package/lib/index.js +5 -29
  76. package/lib/info-box/index.js +13 -13
  77. package/lib/info-box/info-box.d.ts +15 -15
  78. package/lib/input/index.d.ts +15 -15
  79. package/lib/input/index.js +16 -17
  80. package/lib/input/input.d.ts +15 -15
  81. package/lib/link/index.d.ts +11 -11
  82. package/lib/link/index.js +3 -3
  83. package/lib/link/link.d.ts +5 -5
  84. package/lib/loading/index.d.ts +4 -4
  85. package/lib/loading/index.js +6 -6
  86. package/lib/loading/loading.d.ts +6 -6
  87. package/lib/locale/index.d.ts +1 -1
  88. package/lib/menu/index.js +0 -1
  89. package/lib/menu/utils.d.ts +3 -3
  90. package/lib/message/index.js +18 -18
  91. package/lib/message/messageConstructor.d.ts +11 -11
  92. package/lib/modal/index.d.ts +21 -8
  93. package/lib/modal/index.js +14 -8
  94. package/lib/modal/modal.d.ts +8 -3
  95. package/lib/modal/props.mixin.d.ts +3 -1
  96. package/lib/navigation/index.js +20 -20
  97. package/lib/navigation/navigation.d.ts +1 -1
  98. package/lib/notify/index.js +4 -4
  99. package/lib/overflow-title/components/overflow-title.d.ts +9 -9
  100. package/lib/overflow-title/index.d.ts +19 -19
  101. package/lib/overflow-title/index.js +61 -11
  102. package/lib/overflow-title/props.d.ts +18 -18
  103. package/lib/pagination/index.js +16 -16
  104. package/lib/pagination/type.d.ts +1 -1
  105. package/lib/pagination/use-limit.d.ts +1 -1
  106. package/lib/pagination/use-total.d.ts +1 -1
  107. package/lib/plugin-popover/index.js +18 -20
  108. package/lib/pop-confirm/index.d.ts +11 -11
  109. package/lib/pop-confirm/index.js +11 -10
  110. package/lib/pop-confirm/pop-confirm.d.ts +5 -5
  111. package/lib/pop-confirm/props.d.ts +4 -4
  112. package/lib/popover/const.d.ts +3 -3
  113. package/lib/popover/index.d.ts +19 -19
  114. package/lib/popover/index.js +18 -20
  115. package/lib/popover/plugin-popover.d.ts +1 -1
  116. package/lib/popover/popover.d.ts +7 -7
  117. package/lib/popover/props.d.ts +4 -4
  118. package/lib/preset.d.ts +0 -1
  119. package/lib/preset.js +0 -1
  120. package/lib/process/index.js +3 -3
  121. package/lib/progress/index.d.ts +11 -11
  122. package/lib/progress/index.js +10 -11
  123. package/lib/progress/progress.d.ts +7 -7
  124. package/lib/radio/index.d.ts +21 -21
  125. package/lib/radio/index.js +28 -17
  126. package/lib/radio/radio-button.d.ts +7 -7
  127. package/lib/radio/radio-group.d.ts +7 -7
  128. package/lib/radio/radio.d.ts +7 -7
  129. package/lib/radio/type.d.ts +1 -1
  130. package/lib/rate/index.js +8 -8
  131. package/lib/rate/rate.css +27 -0
  132. package/lib/rate/rate.less +33 -0
  133. package/lib/rate/rate.variable.css +27 -0
  134. package/lib/resize-layout/index.d.ts +34 -11
  135. package/lib/resize-layout/index.js +29 -14
  136. package/lib/resize-layout/resize-layout.d.ts +16 -5
  137. package/lib/scrollbar/index.js +0 -1
  138. package/lib/scrollbar/scrollbar-core/index.d.ts +9 -9
  139. package/lib/search-select/index.js +66 -66
  140. package/lib/search-select/menu.d.ts +1 -1
  141. package/lib/search-select/selected.d.ts +1 -1
  142. package/lib/search-select/utils.d.ts +3 -3
  143. package/lib/select/common.d.ts +4 -4
  144. package/lib/select/index.d.ts +88 -70
  145. package/lib/select/index.js +134 -125
  146. package/lib/select/option.d.ts +1 -1
  147. package/lib/select/select.d.ts +35 -27
  148. package/lib/select/selectTagInput.d.ts +6 -6
  149. package/lib/select/type.d.ts +2 -2
  150. package/lib/shared/index.d.ts +1 -1
  151. package/lib/shared/index.js +38 -46
  152. package/lib/shared/popover.d.ts +3 -3
  153. package/lib/shared/token.d.ts +1 -1
  154. package/lib/shared/vue-types.d.ts +46 -46
  155. package/lib/shared/z-index-manager.d.ts +6 -6
  156. package/lib/sideslider/index.d.ts +18 -7
  157. package/lib/sideslider/index.js +11 -11
  158. package/lib/sideslider/sideslider.d.ts +8 -3
  159. package/lib/slider/index.js +21 -23
  160. package/lib/steps/index.d.ts +11 -11
  161. package/lib/steps/index.js +3 -3
  162. package/lib/steps/steps.d.ts +7 -7
  163. package/lib/styles/index.d.ts +0 -1
  164. package/lib/swiper/index.js +5 -5
  165. package/lib/switcher/index.js +2 -2
  166. package/lib/switcher/switcher.d.ts +2 -2
  167. package/lib/tab/index.d.ts +22 -22
  168. package/lib/tab/index.js +15 -15
  169. package/lib/tab/props.d.ts +15 -15
  170. package/lib/tab/tab-nav.d.ts +10 -10
  171. package/lib/tab/tab.d.ts +10 -10
  172. package/lib/table/components/table-column.d.ts +27 -87
  173. package/lib/table/const.d.ts +8 -8
  174. package/lib/table/events.d.ts +21 -21
  175. package/lib/table/index.d.ts +194 -244
  176. package/lib/table/index.js +126 -130
  177. package/lib/table/props.d.ts +33 -33
  178. package/lib/table/table.css +3 -4
  179. package/lib/table/table.d.ts +47 -47
  180. package/lib/table/table.less +4 -12
  181. package/lib/table/table.variable.css +3 -4
  182. package/lib/table/use-attributes.d.ts +3 -3
  183. package/lib/table/use-column.d.ts +9 -129
  184. package/lib/table/use-common.d.ts +4 -4
  185. package/lib/table/utils.d.ts +5 -5
  186. package/lib/table-column/index.d.ts +42 -172
  187. package/lib/table-column/index.js +18 -18
  188. package/lib/tag/index.d.ts +11 -11
  189. package/lib/tag/index.js +2 -2
  190. package/lib/tag/tag.d.ts +5 -5
  191. package/lib/tag-input/common.d.ts +1 -1
  192. package/lib/tag-input/index.d.ts +8 -8
  193. package/lib/tag-input/index.js +30 -30
  194. package/lib/tag-input/tag-input.d.ts +4 -4
  195. package/lib/tag-input/tag-props.d.ts +2 -2
  196. package/lib/timeline/index.js +2 -2
  197. package/lib/transfer/const.d.ts +2 -2
  198. package/lib/transfer/index.js +3 -5
  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 -40
  202. package/lib/tree/props.d.ts +6 -6
  203. package/lib/tree/tree.d.ts +8 -14
  204. package/lib/tree/use-empty.d.ts +1 -1
  205. package/lib/tree/use-node-action.d.ts +2 -2
  206. package/lib/tree/use-search.d.ts +1 -1
  207. package/lib/upload/index.js +25 -26
  208. package/lib/upload/props.d.ts +1 -1
  209. package/lib/upload/upload.type.d.ts +6 -6
  210. package/lib/upload/use-file-handler.d.ts +1 -1
  211. package/lib/virtual-render/index.js +2 -3
  212. package/package.json +17 -55
  213. package/lib/rate/star.css +0 -27
  214. package/lib/rate/star.less +0 -34
  215. package/lib/rate/star.variable.css +0 -156
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,9 +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
+ var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
18338
+ resolveClassName = _usePrefix.resolveClassName;
18337
18339
  return _defineProperty(_defineProperty(_defineProperty(_defineProperty({
18338
18340
  'is-root': __is_root
18339
- }, (0,shared_namespaceObject.resolveClassName)('tree-node'), true), 'is-open', __is_open), 'is-virtual-render', props.virtualRender), 'level-line', props.levelLine && showTree);
18341
+ }, "".concat(resolveClassName('tree-node')), true), 'is-open', __is_open), 'is-virtual-render', props.virtualRender), 'level-line', props.levelLine && showTree);
18340
18342
  };
18341
18343
  /**
18342
18344
  * 获取当前渲染节点Class List
@@ -18348,12 +18350,14 @@ var getNodeRowClass = function getNodeRowClass(item, schema) {
18348
18350
  var _ref3 = schema.get(item) || {},
18349
18351
  __is_checked = _ref3.__is_checked,
18350
18352
  __is_selected = _ref3.__is_selected;
18353
+ var _usePrefix2 = (0,config_provider_namespaceObject.usePrefix)(),
18354
+ resolveClassName = _usePrefix2.resolveClassName;
18351
18355
  return _defineProperty({
18352
18356
  'is-checked': __is_checked,
18353
18357
  'is-selected': __is_selected,
18354
18358
  'node-folder': item.is_folder,
18355
18359
  'node-leaf': item.is_leaf
18356
- }, (0,shared_namespaceObject.resolveClassName)('node-row'), true);
18360
+ }, "".concat(resolveClassName('node-row')), true);
18357
18361
  };
18358
18362
  /**
18359
18363
  * 根据路径更新指定节点Child-Data
@@ -18733,9 +18737,9 @@ var use_node_action_this = undefined;
18733
18737
  return (0,external_vue_namespaceObject.createVNode)("span", {
18734
18738
  "onClick": handleNodeCheckboxClick
18735
18739
  }, [(0,external_vue_namespaceObject.createVNode)(checkbox_namespaceObject["default"], {
18736
- "size": "small",
18737
- "modelValue": isNodeChecked(item),
18738
18740
  "indeterminate": isIndeterminate(item),
18741
+ "modelValue": isNodeChecked(item),
18742
+ "size": "small",
18739
18743
  "onChange": function onChange(val, event) {
18740
18744
  return handleNodeItemCheckboxChange(item, !!val, event);
18741
18745
  }
@@ -19000,8 +19004,8 @@ var use_node_action_this = undefined;
19000
19004
  // @ts-ignore:next-line
19001
19005
  .map(function (index) {
19002
19006
  return (0,external_vue_namespaceObject.createVNode)("span", {
19003
- "class": "node-virtual-line",
19004
- "style": getNodeLineStyle(maxDeep - index)
19007
+ "style": getNodeLineStyle(maxDeep - index),
19008
+ "class": "node-virtual-line"
19005
19009
  }, null);
19006
19010
  });
19007
19011
  };
@@ -19035,12 +19039,12 @@ var use_node_action_this = undefined;
19035
19039
  var _ctx$slots$nodeAppend, _ctx$slots4;
19036
19040
  var showTree = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
19037
19041
  return (0,external_vue_namespaceObject.createVNode)("div", {
19038
- "data-tree-node": getNodeId(item),
19039
19042
  "key": getNodeId(item),
19040
- "class": getNodeRowClass(item, flatData.schema)
19043
+ "class": getNodeRowClass(item, flatData.schema),
19044
+ "data-tree-node": getNodeId(item)
19041
19045
  }, [(0,external_vue_namespaceObject.createVNode)("div", {
19042
- "class": getNodeItemClass(item, flatData.schema, props, showTree),
19043
19046
  "style": getNodeItemStyle(item, props, flatData, showTree),
19047
+ "class": getNodeItemClass(item, flatData.schema, props, showTree),
19044
19048
  "onClick": function onClick(e) {
19045
19049
  return handleNodeContentClick(item, e);
19046
19050
  }
@@ -19877,6 +19881,8 @@ var use_tree_init_this = undefined;
19877
19881
  hasChildNode = _useNodeAttribute.hasChildNode,
19878
19882
  getNodePath = _useNodeAttribute.getNodePath,
19879
19883
  getNodeId = _useNodeAttribute.getNodeId,
19884
+ getNodeAttr = _useNodeAttribute.getNodeAttr,
19885
+ getParentNode = _useNodeAttribute.getParentNode,
19880
19886
  getIntersectionResponse = _useNodeAttribute.getIntersectionResponse;
19881
19887
  var _useSearch = use_search(props),
19882
19888
  searchFn = _useSearch.searchFn,
@@ -20018,7 +20024,9 @@ var use_tree_init_this = undefined;
20018
20024
  scrollToTop: scrollToTop,
20019
20025
  asyncNodeClick: asyncNodeClick,
20020
20026
  getData: getData,
20021
- reset: reset
20027
+ reset: reset,
20028
+ getNodeAttr: getNodeAttr,
20029
+ getParentNode: getParentNode
20022
20030
  });
20023
20031
  var _useEmpty = use_empty(props),
20024
20032
  renderEmpty = _useEmpty.renderEmpty;
@@ -20064,18 +20072,18 @@ var use_tree_init_this = undefined;
20064
20072
  resolveClassName = _usePrefix.resolveClassName;
20065
20073
  return function () {
20066
20074
  return (0,external_vue_namespaceObject.createVNode)(virtual_render_namespaceObject["default"], {
20067
- "class": resolveClassName('tree'),
20075
+ "ref": root,
20068
20076
  "style": getTreeStyle(null, props),
20069
- "list": renderData.value,
20070
- "lineHeight": props.lineHeight,
20071
20077
  "height": props.height,
20078
+ "class": resolveClassName('tree'),
20079
+ "contentClassName": resolveClassName('container'),
20072
20080
  "enabled": props.virtualRender,
20073
- "rowKey": NODE_ATTRIBUTES.UUID,
20074
20081
  "keepAlive": true,
20075
- "contentClassName": resolveClassName('container'),
20082
+ "lineHeight": props.lineHeight,
20083
+ "list": renderData.value,
20084
+ "rowKey": NODE_ATTRIBUTES.UUID,
20076
20085
  "throttleDelay": 0,
20077
- "onContentScroll": handleContentScroll,
20078
- "ref": root
20086
+ "onContentScroll": handleContentScroll
20079
20087
  }, {
20080
20088
  "default": function _default(scoped) {
20081
20089
  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> & {
@@ -60,10 +60,7 @@ declare const _default: import("vue").DefineComponent<{
60
60
  default: string;
61
61
  } & {
62
62
  default: string;
63
- }; /**
64
- * 将制定元素滚动到顶部
65
- * @param option
66
- */
63
+ };
67
64
  draggable: import("vue-types").VueTypeValidableDef<boolean> & {
68
65
  default: boolean;
69
66
  } & {
@@ -182,7 +179,7 @@ declare const _default: import("vue").DefineComponent<{
182
179
  };
183
180
  async: import("vue-types").VueTypeShape<{
184
181
  callback: (item: any, cb: any) => Promise<any>;
185
- cache: Boolean;
182
+ cache: boolean;
186
183
  deepAutoOpen?: string;
187
184
  }>;
188
185
  offsetLeft: import("vue-types").VueTypeValidableDef<number> & {
@@ -197,10 +194,7 @@ declare const _default: import("vue").DefineComponent<{
197
194
  default: string;
198
195
  } & {
199
196
  default: string;
200
- }; /**
201
- * 将制定元素滚动到顶部
202
- * @param option
203
- */
197
+ };
204
198
  draggable: import("vue-types").VueTypeValidableDef<boolean> & {
205
199
  default: boolean;
206
200
  } & {
@@ -269,15 +263,15 @@ declare const _default: import("vue").DefineComponent<{
269
263
  default: boolean | (() => import("./props").IIntersectionObserver);
270
264
  };
271
265
  }>> & {
266
+ onNodeChecked?: (...args: any[]) => any;
272
267
  onNodeClick?: (...args: any[]) => any;
273
268
  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
269
  onNodeDragLeave?: (...args: any[]) => any;
270
+ onNodeDragOver?: (...args: any[]) => any;
271
+ onNodeDragStart?: (...args: any[]) => any;
279
272
  onNodeDrop?: (...args: any[]) => any;
280
273
  onNodeEnterView?: (...args: any[]) => any;
274
+ onNodeExpand?: (...args: any[]) => any;
281
275
  }, {
282
276
  data: any[];
283
277
  height: number;
@@ -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;
@@ -1294,10 +1294,10 @@ var EThemes;
1294
1294
  })(EThemes || (EThemes = {}));
1295
1295
  var EUploadStatus;
1296
1296
  (function (EUploadStatus) {
1297
+ EUploadStatus["FAIL"] = "fail";
1297
1298
  EUploadStatus["NEW"] = "new";
1298
- EUploadStatus["UPLOADING"] = "uploading";
1299
1299
  EUploadStatus["SUCCESS"] = "success";
1300
- EUploadStatus["FAIL"] = "fail";
1300
+ EUploadStatus["UPLOADING"] = "uploading";
1301
1301
  })(EUploadStatus || (EUploadStatus = {}));
1302
1302
  ;// CONCATENATED MODULE: ../../packages/upload/src/props.ts
1303
1303
  /*
@@ -1634,19 +1634,19 @@ function _isSlot(s) {
1634
1634
  };
1635
1635
  var PhotoItem = function PhotoItem(file) {
1636
1636
  return [(0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("img", {
1637
- "src": file.url,
1638
1637
  "class": "".concat(classBlock, "__picture-item-thumbnail"),
1639
- "alt": ""
1638
+ "alt": "",
1639
+ "src": file.url
1640
1640
  }, null), [[external_vue_namespaceObject.vShow, file.status !== 'uploading']]), (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [file.status === 'uploading' && (0,external_vue_namespaceObject.createVNode)(progress_namespaceObject["default"], {
1641
+ "width": 50,
1641
1642
  "class": "".concat(classBlock, "__picture-item-progress"),
1642
- "type": "circle",
1643
- "color": "#3a84ff",
1644
1643
  "bgColor": "#333",
1645
- "width": 50,
1644
+ "color": "#3a84ff",
1645
+ "percent": file.percentage,
1646
1646
  "titleStyle": {
1647
1647
  color: '#fff'
1648
1648
  },
1649
- "percent": file.percentage
1649
+ "type": "circle"
1650
1650
  }, null)]), (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [!disabled.value && (0,external_vue_namespaceObject.createVNode)("div", {
1651
1651
  "class": "".concat(classBlock, "__picture-item-actions")
1652
1652
  }, [(0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Del, {
@@ -1700,9 +1700,9 @@ function _isSlot(s) {
1700
1700
  return [(0,external_vue_namespaceObject.createVNode)("div", {
1701
1701
  "class": "".concat(classBlock, "__item-icon")
1702
1702
  }, [file.isPic ? (0,external_vue_namespaceObject.createVNode)("img", {
1703
- "src": file.url,
1704
1703
  "class": "".concat(classBlock, "__item-thumbnail"),
1705
- "alt": ""
1704
+ "alt": "",
1705
+ "src": file.url
1706
1706
  }, null) : FileIcon(file)]), (0,external_vue_namespaceObject.createVNode)("div", {
1707
1707
  "class": "".concat(classBlock, "__item-summary")
1708
1708
  }, [(0,external_vue_namespaceObject.createVNode)("div", {
@@ -1715,8 +1715,8 @@ function _isSlot(s) {
1715
1715
  "class": "".concat(classBlock, "__item-message-success-icon")
1716
1716
  }, null), file.statusText || t.value.uploadSuccess]), file.status === 'fail' && (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [file.statusText || t.value.uploadFailed])]), file.status === 'uploading' && (0,external_vue_namespaceObject.createVNode)(progress_namespaceObject["default"], {
1717
1717
  "class": "".concat(classBlock, "__item-progress"),
1718
- "showText": false,
1719
1718
  "percent": file.percentage,
1719
+ "showText": false,
1720
1720
  "size": "small"
1721
1721
  }, null), file.status !== 'fail' && (0,external_vue_namespaceObject.createVNode)("div", {
1722
1722
  "class": "".concat(classBlock, "__item-speed")
@@ -1895,9 +1895,9 @@ const button_less_namespaceObject = button_less_x({ });
1895
1895
  var classNames = (0,shared_namespaceObject.classes)(_defineProperty({}, "".concat(classBlock, "__draggable"), true));
1896
1896
  return (0,external_vue_namespaceObject.createVNode)("div", {
1897
1897
  "class": classNames,
1898
- "onDrop": handleDrop,
1898
+ "onDragleave": handleDragleave,
1899
1899
  "onDragover": handleDragover,
1900
- "onDragleave": handleDragleave
1900
+ "onDrop": handleDrop
1901
1901
  }, [slots["default"] ? slots["default"]() : (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [(0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Upload, {
1902
1902
  "class": "".concat(classBlock, "__draggable-icon")
1903
1903
  }, null), (0,external_vue_namespaceObject.createVNode)("div", {
@@ -1920,19 +1920,19 @@ const button_less_namespaceObject = button_less_x({ });
1920
1920
  };
1921
1921
  var SinglePicture = function SinglePicture(file) {
1922
1922
  return [(0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("img", {
1923
- "src": file.url,
1924
1923
  "class": "".concat(classBlock, "__picture-thumbnail"),
1925
- "alt": ""
1924
+ "alt": "",
1925
+ "src": file.url
1926
1926
  }, null), [[external_vue_namespaceObject.vShow, file.status !== 'uploading']]), (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [file.status === 'uploading' && (0,external_vue_namespaceObject.createVNode)(progress_namespaceObject["default"], {
1927
+ "width": 50,
1927
1928
  "class": "".concat(classBlock, "__picture-progress"),
1928
- "type": "circle",
1929
- "color": "#3a84ff",
1930
1929
  "bgColor": "#333",
1931
- "width": 50,
1930
+ "color": "#3a84ff",
1931
+ "percent": file.percentage,
1932
1932
  "titleStyle": {
1933
1933
  color: '#fff'
1934
1934
  },
1935
- "percent": file.percentage
1935
+ "type": "circle"
1936
1936
  }, null)]), (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [!props.disabled && (0,external_vue_namespaceObject.createVNode)("div", {
1937
1937
  "class": "".concat(classBlock, "__picture-actions")
1938
1938
  }, [(0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Del, {
@@ -1970,12 +1970,12 @@ const button_less_namespaceObject = button_less_x({ });
1970
1970
  }, [slots.trigger ? [slots.trigger(), slots === null || slots === void 0 || (_slots$default = slots["default"]) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots)] : Trigger(), (0,external_vue_namespaceObject.createVNode)("input", {
1971
1971
  "ref": inputEl,
1972
1972
  "class": "".concat(classBlock, "__input-file"),
1973
- "tabindex": "-1",
1974
- "onChange": handleFileChange,
1975
1973
  "accept": acceptTypes.value,
1976
- "multiple": multiple.value,
1977
1974
  "disabled": disabled.value,
1978
- "type": "file"
1975
+ "multiple": multiple.value,
1976
+ "tabindex": "-1",
1977
+ "type": "file",
1978
+ "onChange": handleFileChange
1979
1979
  }, null)]);
1980
1980
  };
1981
1981
  }
@@ -2193,7 +2193,6 @@ var ajaxSliceUpload = /*#__PURE__*/function () {
2193
2193
  // 请求分片上传,保存在progressList中
2194
2194
  var sliceSend = function sliceSend(option, file, blockCount, hash, progressList, chunkSize) {
2195
2195
  var _loop = function _loop(i) {
2196
- // eslint-disable-next-line no-loop-func
2197
2196
  var pooltask = new Promise(function (resolve, reject) {
2198
2197
  var start = i * chunkSize;
2199
2198
  var end = Math.min(file.size, start + chunkSize);
@@ -2829,10 +2828,10 @@ function upload_arrayLikeToArray(arr, len) { if (len == null || len > arr.length
2829
2828
  }), slots), slots.tip ? slots.tip() : props.tip && (0,external_vue_namespaceObject.createVNode)("div", {
2830
2829
  "class": "".concat(resolveClassName(CLASS_PREFIX), "__tip")
2831
2830
  }, [props.tip]), (0,external_vue_namespaceObject.createVNode)(upload_list, {
2832
- "files": fileList.value,
2833
- "theme": props.theme,
2834
2831
  "disabled": props.disabled,
2832
+ "files": fileList.value,
2835
2833
  "multiple": props.multiple,
2834
+ "theme": props.theme,
2836
2835
  "onRemove": handleRemove,
2837
2836
  "onRetry": handleRetry
2838
2837
  }, {
@@ -1,5 +1,5 @@
1
- import type { PropType } from 'vue';
2
1
  import { APIResponse, EThemes, ExtraFormData, FormDataAttr, HeaderDataAttr, MaxSize, UploadFile, UploadRawFile, UploadRequestHandler } from './upload.type';
2
+ import type { PropType } from 'vue';
3
3
  declare const _default: {
4
4
  theme: {
5
5
  type: PropType<"button" | "picture" | "draggable">;
@@ -8,21 +8,21 @@ export declare const enum EThemes {
8
8
  }
9
9
  export type Theme = Lowercase<keyof typeof EThemes>;
10
10
  export declare const enum EUploadStatus {
11
+ FAIL = "fail",
11
12
  NEW = "new",
12
- UPLOADING = "uploading",
13
13
  SUCCESS = "success",
14
- FAIL = "fail"
14
+ UPLOADING = "uploading"
15
15
  }
16
16
  export type UploadStatus = Lowercase<keyof typeof EUploadStatus>;
17
17
  export type FormDataAttr = {
18
18
  name: string;
19
- value: string | Blob | [string | Blob, string];
19
+ value: [Blob | string, string] | Blob | string;
20
20
  };
21
21
  export type HeaderDataAttr = {
22
22
  name: string;
23
23
  value: string;
24
24
  };
25
- export type ExtraFormData = Record<string, string | Blob | [string | Blob, string]>;
25
+ export type ExtraFormData = Record<string, [Blob | string, string] | Blob | string>;
26
26
  export type UploadFiles = UploadFile[];
27
27
  export type UploadFile = {
28
28
  name: string;
@@ -60,7 +60,7 @@ export interface UploadRequestOptions {
60
60
  formDataAttributes?: FormDataAttr | FormDataAttr[];
61
61
  filename: string;
62
62
  file: File;
63
- headers?: Headers | Record<string, string | number | null | undefined>;
63
+ headers?: Headers | Record<string, null | number | string | undefined>;
64
64
  header?: HeaderDataAttr | HeaderDataAttr[];
65
65
  withCredentials: boolean;
66
66
  sliceUrl: string;
@@ -71,7 +71,7 @@ export interface UploadRequestOptions {
71
71
  onSuccess: (res: SuccessResponse) => void;
72
72
  onComplete: () => void;
73
73
  }
74
- export type UploadRequestHandler = (options: UploadRequestOptions) => XMLHttpRequest | Promise<unknown>;
74
+ export type UploadRequestHandler = (options: UploadRequestOptions) => Promise<unknown> | XMLHttpRequest;
75
75
  export type HookHandler = (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
76
76
  export interface UploadHanderHooks {
77
77
  onRemove: HookHandler;
@@ -2,7 +2,7 @@ import { SuccessResponse, UploadFile, UploadHanderHooks, UploadProgressEvent, Up
2
2
  declare const _default: (props: UploadProps, hooks: UploadHanderHooks) => {
3
3
  fileList: import("vue").Ref<{
4
4
  name: string;
5
- status: "success" | "new" | "uploading" | "fail";
5
+ status: "success" | "fail" | "new" | "uploading";
6
6
  statusText?: string;
7
7
  percentage?: number;
8
8
  response?: unknown;
@@ -904,15 +904,14 @@ function virtual_render_objectSpread(e) { for (var r = 1; r < arguments.length;
904
904
  pos: pos
905
905
  });
906
906
  var start = pagination.startIndex * props.groupItemCount;
907
- var end = (pagination.endIndex + props.preloadItemCount) * props.groupItemCount;
907
+ var end = pagination.endIndex * props.groupItemCount;
908
908
  var total = localList.value.length;
909
909
  if (total < end) {
910
- calcList.value = localList.value.slice(start, total);
911
910
  end = total;
912
911
  start = end - Math.floor(refContent.value.offsetHeight / props.lineHeight);
913
912
  start = start < 0 ? 0 : start;
914
913
  }
915
- var value = localList.value.slice(start, end);
914
+ var value = localList.value.slice(start, end + props.preloadItemCount * props.groupItemCount);
916
915
  calcList.value = value;
917
916
  if (event) {
918
917
  ctx.emit('content-scroll', [event, pagination, value]);