bkui-vue 0.0.2-beta.75 → 0.0.2-beta.78

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 (144) hide show
  1. package/dist/index.cjs.js +48 -48
  2. package/dist/index.esm.js +8323 -8377
  3. package/dist/index.umd.js +48 -48
  4. package/lib/affix/index.js +5 -3
  5. package/lib/alert/index.js +2 -3
  6. package/lib/backtop/index.js +2 -2
  7. package/lib/badge/index.js +3 -4
  8. package/lib/breadcrumb/index.js +4 -4
  9. package/lib/button/index.js +6 -6
  10. package/lib/card/index.js +16 -5
  11. package/lib/cascader/index.js +70 -53
  12. package/lib/checkbox/index.js +4 -4
  13. package/lib/collapse/index.js +58 -6
  14. package/lib/color-picker/index.js +14 -11
  15. package/lib/config-provider/index.js +51 -3
  16. package/lib/container/index.js +55 -7
  17. package/lib/date-picker/index.js +202 -156
  18. package/lib/dialog/index.js +140 -431
  19. package/lib/directives/index.js +59 -19
  20. package/lib/dropdown/index.js +8 -8
  21. package/lib/exception/index.js +5 -5
  22. package/lib/form/index.js +22 -16
  23. package/lib/icon/angle-double-down-line.js +84 -374
  24. package/lib/icon/angle-double-left-line.js +84 -374
  25. package/lib/icon/angle-double-left.js +84 -374
  26. package/lib/icon/angle-double-right-line.js +84 -374
  27. package/lib/icon/angle-double-right.js +84 -374
  28. package/lib/icon/angle-double-up-line.js +84 -374
  29. package/lib/icon/angle-down-fill.js +84 -374
  30. package/lib/icon/angle-down-line.js +84 -374
  31. package/lib/icon/angle-down.js +84 -374
  32. package/lib/icon/angle-left.js +84 -374
  33. package/lib/icon/angle-right.js +84 -374
  34. package/lib/icon/angle-up-fill.js +84 -374
  35. package/lib/icon/angle-up.js +84 -374
  36. package/lib/icon/archive-fill.js +84 -374
  37. package/lib/icon/arrows-left.js +84 -374
  38. package/lib/icon/arrows-right.js +84 -374
  39. package/lib/icon/assistant.js +84 -374
  40. package/lib/icon/audio-fill.js +84 -374
  41. package/lib/icon/bk.js +84 -374
  42. package/lib/icon/circle.js +84 -374
  43. package/lib/icon/close-line.js +84 -374
  44. package/lib/icon/close.js +84 -374
  45. package/lib/icon/code.js +84 -374
  46. package/lib/icon/cog-shape.js +84 -374
  47. package/lib/icon/collapse-left.js +84 -374
  48. package/lib/icon/copy-shape.js +84 -374
  49. package/lib/icon/copy.js +84 -374
  50. package/lib/icon/data-shape.js +84 -374
  51. package/lib/icon/del.js +84 -374
  52. package/lib/icon/doc-fill.js +84 -374
  53. package/lib/icon/done.js +84 -374
  54. package/lib/icon/down-shape.js +84 -374
  55. package/lib/icon/down-small.js +84 -374
  56. package/lib/icon/edit-line.js +84 -374
  57. package/lib/icon/ellipsis.js +84 -374
  58. package/lib/icon/enlarge-line.js +84 -374
  59. package/lib/icon/error.js +84 -374
  60. package/lib/icon/excel-fill.js +84 -374
  61. package/lib/icon/exclamation-circle-shape.js +84 -374
  62. package/lib/icon/eye.js +84 -374
  63. package/lib/icon/filliscreen-line.js +84 -374
  64. package/lib/icon/fix-line.js +84 -374
  65. package/lib/icon/fix-shape.js +84 -374
  66. package/lib/icon/folder-open.js +84 -374
  67. package/lib/icon/folder-shape-open.js +84 -374
  68. package/lib/icon/folder-shape.js +84 -374
  69. package/lib/icon/folder.js +84 -374
  70. package/lib/icon/funnel.js +84 -374
  71. package/lib/icon/help-document-fill.js +84 -374
  72. package/lib/icon/help-fill.js +84 -374
  73. package/lib/icon/help.js +84 -374
  74. package/lib/icon/image-fill.js +131 -382
  75. package/lib/icon/img-error.js +131 -382
  76. package/lib/icon/img-placehoulder.js +131 -382
  77. package/lib/icon/index.js +563 -531
  78. package/lib/icon/info-line.js +131 -382
  79. package/lib/icon/info.js +131 -382
  80. package/lib/icon/left-shape.js +131 -382
  81. package/lib/icon/left-turn-line.js +131 -382
  82. package/lib/icon/narrow-line.js +131 -382
  83. package/lib/icon/original.js +131 -382
  84. package/lib/icon/pdf-fill.js +131 -382
  85. package/lib/icon/play-shape.js +131 -382
  86. package/lib/icon/plus.js +131 -382
  87. package/lib/icon/ppt-fill.js +131 -382
  88. package/lib/icon/qq.js +131 -382
  89. package/lib/icon/right-shape.js +131 -382
  90. package/lib/icon/right-turn-line.js +131 -382
  91. package/lib/icon/search.js +131 -382
  92. package/lib/icon/share.js +131 -382
  93. package/lib/icon/spinner.js +131 -382
  94. package/lib/icon/success.js +131 -382
  95. package/lib/icon/switcher-loading.js +131 -382
  96. package/lib/icon/text-file.js +131 -382
  97. package/lib/icon/text-fill.js +131 -382
  98. package/lib/icon/transfer.js +131 -382
  99. package/lib/icon/tree-application-shape.js +131 -382
  100. package/lib/icon/unfull-screen.js +131 -382
  101. package/lib/icon/unvisible.js +131 -382
  102. package/lib/icon/up-shape.js +131 -382
  103. package/lib/icon/upload.js +131 -382
  104. package/lib/icon/video-fill.js +131 -382
  105. package/lib/icon/warn.js +131 -382
  106. package/lib/icon/weixin-pro.js +131 -382
  107. package/lib/icon/weixin.js +131 -382
  108. package/lib/image/index.js +57 -9
  109. package/lib/info-box/index.js +145 -436
  110. package/lib/input/index.js +105 -415
  111. package/lib/link/index.js +2 -2
  112. package/lib/loading/index.js +18 -16
  113. package/lib/menu/index.js +22 -23
  114. package/lib/message/index.js +62 -57
  115. package/lib/modal/index.js +77 -18
  116. package/lib/navigation/index.js +11 -11
  117. package/lib/notify/index.js +51 -48
  118. package/lib/overflow-title/index.js +6 -5
  119. package/lib/plugin-popover/index.js +202 -364
  120. package/lib/popover/index.js +202 -364
  121. package/lib/process/index.js +55 -395
  122. package/lib/progress/index.js +51 -48
  123. package/lib/radio/index.js +4 -4
  124. package/lib/rate/index.js +2 -2
  125. package/lib/resize-layout/index.js +4 -5
  126. package/lib/search-select/index.js +179 -486
  127. package/lib/select/index.js +148 -479
  128. package/lib/shared/index.js +176 -352
  129. package/lib/sideslider/index.js +82 -373
  130. package/lib/slider/index.js +48 -386
  131. package/lib/steps/index.js +67 -405
  132. package/lib/swiper/index.js +10 -10
  133. package/lib/switcher/index.js +2 -2
  134. package/lib/tab/index.js +63 -8
  135. package/lib/table/index.js +262 -424
  136. package/lib/table-column/index.js +7 -6
  137. package/lib/tag/index.js +2 -2
  138. package/lib/tag-input/index.js +29 -21
  139. package/lib/timeline/index.js +6 -7
  140. package/lib/transfer/index.js +8 -8
  141. package/lib/tree/index.js +139 -319
  142. package/lib/upload/index.js +104 -423
  143. package/lib/virtual-render/index.js +60 -16
  144. package/package.json +2 -1
package/lib/tree/index.js CHANGED
@@ -6,274 +6,8 @@ import * as __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__ from "vue-types";
6
6
  import * as __WEBPACK_EXTERNAL_MODULE__exception_12c197e0__ from "../exception";
7
7
  import * as __WEBPACK_EXTERNAL_MODULE__checkbox_a57bcb84__ from "../checkbox";
8
8
  import * as __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__ from "../icon";
9
- /******/ var __webpack_modules__ = ({
10
-
11
- /***/ 8022:
12
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
13
-
14
- var v1 = __webpack_require__(4481);
15
- var v4 = __webpack_require__(6426);
16
-
17
- var uuid = v4;
18
- uuid.v1 = v1;
19
- uuid.v4 = v4;
20
-
21
- module.exports = uuid;
22
-
23
-
24
- /***/ }),
25
-
26
- /***/ 8725:
27
- /***/ ((module) => {
28
-
29
- /**
30
- * Convert array of 16 byte values to UUID string format of the form:
31
- * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
32
- */
33
- var byteToHex = [];
34
- for (var i = 0; i < 256; ++i) {
35
- byteToHex[i] = (i + 0x100).toString(16).substr(1);
36
- }
37
-
38
- function bytesToUuid(buf, offset) {
39
- var i = offset || 0;
40
- var bth = byteToHex;
41
- // join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4
42
- return ([
43
- bth[buf[i++]], bth[buf[i++]],
44
- bth[buf[i++]], bth[buf[i++]], '-',
45
- bth[buf[i++]], bth[buf[i++]], '-',
46
- bth[buf[i++]], bth[buf[i++]], '-',
47
- bth[buf[i++]], bth[buf[i++]], '-',
48
- bth[buf[i++]], bth[buf[i++]],
49
- bth[buf[i++]], bth[buf[i++]],
50
- bth[buf[i++]], bth[buf[i++]]
51
- ]).join('');
52
- }
53
-
54
- module.exports = bytesToUuid;
55
-
56
-
57
- /***/ }),
58
-
59
- /***/ 9157:
60
- /***/ ((module) => {
61
-
62
- // Unique ID creation requires a high quality random # generator. In the
63
- // browser this is a little complicated due to unknown quality of Math.random()
64
- // and inconsistent support for the `crypto` API. We do the best we can via
65
- // feature-detection
66
-
67
- // getRandomValues needs to be invoked in a context where "this" is a Crypto
68
- // implementation. Also, find the complete implementation of crypto on IE11.
69
- var getRandomValues = (typeof(crypto) != 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto)) ||
70
- (typeof(msCrypto) != 'undefined' && typeof window.msCrypto.getRandomValues == 'function' && msCrypto.getRandomValues.bind(msCrypto));
71
-
72
- if (getRandomValues) {
73
- // WHATWG crypto RNG - http://wiki.whatwg.org/wiki/Crypto
74
- var rnds8 = new Uint8Array(16); // eslint-disable-line no-undef
75
-
76
- module.exports = function whatwgRNG() {
77
- getRandomValues(rnds8);
78
- return rnds8;
79
- };
80
- } else {
81
- // Math.random()-based (RNG)
82
- //
83
- // If all else fails, use Math.random(). It's fast, but is of unspecified
84
- // quality.
85
- var rnds = new Array(16);
86
-
87
- module.exports = function mathRNG() {
88
- for (var i = 0, r; i < 16; i++) {
89
- if ((i & 0x03) === 0) r = Math.random() * 0x100000000;
90
- rnds[i] = r >>> ((i & 0x03) << 3) & 0xff;
91
- }
92
-
93
- return rnds;
94
- };
95
- }
96
-
97
-
98
- /***/ }),
99
-
100
- /***/ 4481:
101
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
102
-
103
- var rng = __webpack_require__(9157);
104
- var bytesToUuid = __webpack_require__(8725);
105
-
106
- // **`v1()` - Generate time-based UUID**
107
- //
108
- // Inspired by https://github.com/LiosK/UUID.js
109
- // and http://docs.python.org/library/uuid.html
110
-
111
- var _nodeId;
112
- var _clockseq;
113
-
114
- // Previous uuid creation time
115
- var _lastMSecs = 0;
116
- var _lastNSecs = 0;
117
-
118
- // See https://github.com/uuidjs/uuid for API details
119
- function v1(options, buf, offset) {
120
- var i = buf && offset || 0;
121
- var b = buf || [];
122
-
123
- options = options || {};
124
- var node = options.node || _nodeId;
125
- var clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq;
126
-
127
- // node and clockseq need to be initialized to random values if they're not
128
- // specified. We do this lazily to minimize issues related to insufficient
129
- // system entropy. See #189
130
- if (node == null || clockseq == null) {
131
- var seedBytes = rng();
132
- if (node == null) {
133
- // Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1)
134
- node = _nodeId = [
135
- seedBytes[0] | 0x01,
136
- seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]
137
- ];
138
- }
139
- if (clockseq == null) {
140
- // Per 4.2.2, randomize (14 bit) clockseq
141
- clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff;
142
- }
143
- }
144
-
145
- // UUID timestamps are 100 nano-second units since the Gregorian epoch,
146
- // (1582-10-15 00:00). JSNumbers aren't precise enough for this, so
147
- // time is handled internally as 'msecs' (integer milliseconds) and 'nsecs'
148
- // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00.
149
- var msecs = options.msecs !== undefined ? options.msecs : new Date().getTime();
150
-
151
- // Per 4.2.1.2, use count of uuid's generated during the current clock
152
- // cycle to simulate higher resolution clock
153
- var nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1;
154
-
155
- // Time since last uuid creation (in msecs)
156
- var dt = (msecs - _lastMSecs) + (nsecs - _lastNSecs)/10000;
157
-
158
- // Per 4.2.1.2, Bump clockseq on clock regression
159
- if (dt < 0 && options.clockseq === undefined) {
160
- clockseq = clockseq + 1 & 0x3fff;
161
- }
162
-
163
- // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new
164
- // time interval
165
- if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) {
166
- nsecs = 0;
167
- }
168
-
169
- // Per 4.2.1.2 Throw error if too many uuids are requested
170
- if (nsecs >= 10000) {
171
- throw new Error('uuid.v1(): Can\'t create more than 10M uuids/sec');
172
- }
173
-
174
- _lastMSecs = msecs;
175
- _lastNSecs = nsecs;
176
- _clockseq = clockseq;
177
-
178
- // Per 4.1.4 - Convert from unix epoch to Gregorian epoch
179
- msecs += 12219292800000;
180
-
181
- // `time_low`
182
- var tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000;
183
- b[i++] = tl >>> 24 & 0xff;
184
- b[i++] = tl >>> 16 & 0xff;
185
- b[i++] = tl >>> 8 & 0xff;
186
- b[i++] = tl & 0xff;
187
-
188
- // `time_mid`
189
- var tmh = (msecs / 0x100000000 * 10000) & 0xfffffff;
190
- b[i++] = tmh >>> 8 & 0xff;
191
- b[i++] = tmh & 0xff;
192
-
193
- // `time_high_and_version`
194
- b[i++] = tmh >>> 24 & 0xf | 0x10; // include version
195
- b[i++] = tmh >>> 16 & 0xff;
196
-
197
- // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant)
198
- b[i++] = clockseq >>> 8 | 0x80;
199
-
200
- // `clock_seq_low`
201
- b[i++] = clockseq & 0xff;
202
-
203
- // `node`
204
- for (var n = 0; n < 6; ++n) {
205
- b[i + n] = node[n];
206
- }
207
-
208
- return buf ? buf : bytesToUuid(b);
209
- }
210
-
211
- module.exports = v1;
212
-
213
-
214
- /***/ }),
215
-
216
- /***/ 6426:
217
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
218
-
219
- var rng = __webpack_require__(9157);
220
- var bytesToUuid = __webpack_require__(8725);
221
-
222
- function v4(options, buf, offset) {
223
- var i = buf && offset || 0;
224
-
225
- if (typeof(options) == 'string') {
226
- buf = options === 'binary' ? new Array(16) : null;
227
- options = null;
228
- }
229
- options = options || {};
230
-
231
- var rnds = options.random || (options.rng || rng)();
232
-
233
- // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
234
- rnds[6] = (rnds[6] & 0x0f) | 0x40;
235
- rnds[8] = (rnds[8] & 0x3f) | 0x80;
236
-
237
- // Copy bytes to buffer, if provided
238
- if (buf) {
239
- for (var ii = 0; ii < 16; ++ii) {
240
- buf[i + ii] = rnds[ii];
241
- }
242
- }
243
-
244
- return buf || bytesToUuid(rnds);
245
- }
246
-
247
- module.exports = v4;
248
-
249
-
250
- /***/ })
251
-
252
- /******/ });
253
- /************************************************************************/
254
- /******/ // The module cache
255
- /******/ var __webpack_module_cache__ = {};
256
- /******/
257
- /******/ // The require function
258
- /******/ function __webpack_require__(moduleId) {
259
- /******/ // Check if module is in cache
260
- /******/ var cachedModule = __webpack_module_cache__[moduleId];
261
- /******/ if (cachedModule !== undefined) {
262
- /******/ return cachedModule.exports;
263
- /******/ }
264
- /******/ // Create a new module (and put it into the cache)
265
- /******/ var module = __webpack_module_cache__[moduleId] = {
266
- /******/ // no module.id needed
267
- /******/ // no module.loaded needed
268
- /******/ exports: {}
269
- /******/ };
270
- /******/
271
- /******/ // Execute the module function
272
- /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
273
- /******/
274
- /******/ // Return the exports of the module
275
- /******/ return module.exports;
276
- /******/ }
9
+ /******/ // The require scope
10
+ /******/ var __webpack_require__ = {};
277
11
  /******/
278
12
  /************************************************************************/
279
13
  /******/ /* webpack/runtime/define property getters */
@@ -295,8 +29,6 @@ module.exports = v4;
295
29
  /******/
296
30
  /************************************************************************/
297
31
  var __webpack_exports__ = {};
298
- // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
299
- (() => {
300
32
 
301
33
  // EXPORTS
302
34
  __webpack_require__.d(__webpack_exports__, {
@@ -657,13 +389,13 @@ const external_exception_namespaceObject = external_exception_x({ ["default"]: (
657
389
  var slots = _ref.slots;
658
390
  return {
659
391
  renderEmpty: function renderEmpty(type) {
660
- var _a, _b;
392
+ var _slots$default, _slots$default2;
661
393
  return (0,external_vue_namespaceObject.createVNode)(external_exception_namespaceObject["default"], {
662
394
  "scene": "part",
663
395
  "type": type
664
396
  }, {
665
397
  "default": function _default() {
666
- return [(_b = (_a = slots["default"]) === null || _a === void 0 ? void 0 : _a.call(slots)) !== null && _b !== void 0 ? _b : props.emptyText];
398
+ return [(_slots$default = (_slots$default2 = slots["default"]) === null || _slots$default2 === void 0 ? void 0 : _slots$default2.call(slots)) !== null && _slots$default !== void 0 ? _slots$default : props.emptyText];
667
399
  }
668
400
  });
669
401
  }
@@ -722,8 +454,8 @@ const external_icon_namespaceObject = external_icon_x({ ["DownShape"]: () => __W
722
454
  * @returns
723
455
  */
724
456
  var getNodeAttr = function getNodeAttr(node, attr) {
725
- var _a;
726
- return (_a = getSchemaVal(node)) === null || _a === void 0 ? void 0 : _a[attr];
457
+ var _getSchemaVal;
458
+ return (_getSchemaVal = getSchemaVal(node)) === null || _getSchemaVal === void 0 ? void 0 : _getSchemaVal[attr];
727
459
  };
728
460
  /**
729
461
  * 设置节点属性
@@ -852,8 +584,8 @@ const external_icon_namespaceObject = external_icon_x({ ["DownShape"]: () => __W
852
584
  return target;
853
585
  };
854
586
  var getChildNodes = function getChildNodes(node) {
855
- var _a;
856
- return (_a = node[props.children]) !== null && _a !== void 0 ? _a : [];
587
+ var _node$props$children;
588
+ return (_node$props$children = node[props.children]) !== null && _node$props$children !== void 0 ? _node$props$children : [];
857
589
  };
858
590
  var getSourceNodeByUID = function getSourceNodeByUID(uid) {
859
591
  return flatData.data.find(function (item) {
@@ -957,6 +689,8 @@ function _toConsumableArray(arr) {
957
689
 
958
690
 
959
691
  var _this = undefined;
692
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
693
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
960
694
  /*
961
695
  * Tencent is pleased to support the open source community by making
962
696
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
@@ -1066,10 +800,10 @@ var getTreeStyle = function getTreeStyle(item, props) {
1066
800
  * @returns
1067
801
  */
1068
802
  var getNodeItemStyle = function getNodeItemStyle(item, props, flatData) {
1069
- var _a;
803
+ var _schema$get;
1070
804
  var schema = flatData.schema;
1071
- var depth = (_a = schema.get(item)) === null || _a === void 0 ? void 0 : _a[NODE_ATTRIBUTES.DEPTH];
1072
- return Object.assign({
805
+ var depth = (_schema$get = schema.get(item)) === null || _schema$get === void 0 ? void 0 : _schema$get[NODE_ATTRIBUTES.DEPTH];
806
+ return _objectSpread({
1073
807
  '--depth': depth
1074
808
  }, typeof props.levelLine === 'function' ? {
1075
809
  '--level-line': getPropsOneOfBoolValueWithDefault(props, 'levelLine', item, DEFAULT_LEVLE_LINE, null, ['node'])
@@ -1365,8 +1099,8 @@ var use_node_action_this = undefined;
1365
1099
  return null;
1366
1100
  };
1367
1101
  var getLoadingIcon = function getLoadingIcon(item) {
1368
- var _a, _b, _c;
1369
- return ((_c = (_b = (_a = ctx.slots).nodeLoading) === null || _b === void 0 ? void 0 : _b.call(_a, getScopedSlotData(item))) !== null && _c !== void 0 ? _c : isNodeLoading(item)) ? (0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.Spinner, null, null) : '';
1102
+ var _ctx$slots$nodeLoadin, _ctx$slots$nodeLoadin2, _ctx$slots;
1103
+ return ((_ctx$slots$nodeLoadin = (_ctx$slots$nodeLoadin2 = (_ctx$slots = ctx.slots).nodeLoading) === null || _ctx$slots$nodeLoadin2 === void 0 ? void 0 : _ctx$slots$nodeLoadin2.call(_ctx$slots, getScopedSlotData(item))) !== null && _ctx$slots$nodeLoadin !== void 0 ? _ctx$slots$nodeLoadin : isNodeLoading(item)) ? (0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.Spinner, null, null) : '';
1370
1104
  };
1371
1105
  /**
1372
1106
  * 根据节点状态获取节点操作Icon
@@ -1582,16 +1316,16 @@ var use_node_action_this = undefined;
1582
1316
  var setSelect = function setSelect(nodes) {
1583
1317
  var selected = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
1584
1318
  var autoOpen = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
1585
- var _a;
1586
1319
  var nodeList = Array.isArray(nodes) ? nodes : [nodes];
1587
1320
  if (!nodeList.length) {
1588
1321
  return;
1589
1322
  }
1590
1323
  var resolvedItem = resolveNodeItem(nodeList[0]);
1591
1324
  if (typeof resolvedItem === 'string' || typeof resolvedItem === 'number' || _typeof(resolvedItem) === 'symbol') {
1592
- resolvedItem = (_a = flatData.data.find(function (item) {
1325
+ var _flatData$data$find;
1326
+ resolvedItem = (_flatData$data$find = flatData.data.find(function (item) {
1593
1327
  return getNodeId(item) === resolvedItem;
1594
- })) !== null && _a !== void 0 ? _a : _defineProperty({}, NODE_ATTRIBUTES.IS_NULL, true);
1328
+ })) !== null && _flatData$data$find !== void 0 ? _flatData$data$find : _defineProperty({}, NODE_ATTRIBUTES.IS_NULL, true);
1595
1329
  }
1596
1330
  if (resolvedItem[NODE_ATTRIBUTES.IS_NULL]) {
1597
1331
  return;
@@ -1723,12 +1457,13 @@ var use_node_action_this = undefined;
1723
1457
  });
1724
1458
  };
1725
1459
  var renderNodeSlots = function renderNodeSlots(item) {
1726
- var _a, _b, _c, _d;
1727
1460
  if (ctx.slots.node) {
1728
- return (_b = (_a = ctx.slots).node) === null || _b === void 0 ? void 0 : _b.call(_a, getScopedSlotData(item));
1461
+ var _ctx$slots$node, _ctx$slots2;
1462
+ return (_ctx$slots$node = (_ctx$slots2 = ctx.slots).node) === null || _ctx$slots$node === void 0 ? void 0 : _ctx$slots$node.call(_ctx$slots2, getScopedSlotData(item));
1729
1463
  }
1730
1464
  if (ctx.slots["default"]) {
1731
- return (_d = (_c = ctx.slots)["default"]) === null || _d === void 0 ? void 0 : _d.call(_c, extendNodeScopedData(item));
1465
+ var _ctx$slots$default, _ctx$slots3;
1466
+ return (_ctx$slots$default = (_ctx$slots3 = ctx.slots)["default"]) === null || _ctx$slots$default === void 0 ? void 0 : _ctx$slots$default.call(_ctx$slots3, extendNodeScopedData(item));
1732
1467
  }
1733
1468
  return [getLabel(item, props)];
1734
1469
  };
@@ -1739,7 +1474,7 @@ var use_node_action_this = undefined;
1739
1474
  return extendNodeAttr(item);
1740
1475
  };
1741
1476
  var renderTreeNode = function renderTreeNode(item) {
1742
- var _a, _b;
1477
+ var _ctx$slots$nodeAppend, _ctx$slots4;
1743
1478
  return (0,external_vue_namespaceObject.createVNode)("div", {
1744
1479
  "data-tree-node": getNodeId(item),
1745
1480
  "key": getNodeId(item),
@@ -1759,7 +1494,7 @@ var use_node_action_this = undefined;
1759
1494
  "class": resolveClassName('node-content')
1760
1495
  }, [[getCheckboxRender(item), getNodePrefixIcon(item)], (0,external_vue_namespaceObject.createVNode)("span", {
1761
1496
  "class": resolveClassName('node-text')
1762
- }, [renderNodeSlots(item)]), (_b = (_a = ctx.slots).nodeAppend) === null || _b === void 0 ? void 0 : _b.call(_a, getScopedSlotData(item))]), getVirtualLines(item)])]);
1497
+ }, [renderNodeSlots(item)]), (_ctx$slots$nodeAppend = (_ctx$slots4 = ctx.slots).nodeAppend) === null || _ctx$slots$nodeAppend === void 0 ? void 0 : _ctx$slots$nodeAppend.call(_ctx$slots4, getScopedSlotData(item))]), getVirtualLines(item)])]);
1763
1498
  };
1764
1499
  return {
1765
1500
  renderTreeNode: renderTreeNode,
@@ -1826,8 +1561,8 @@ var use_node_drag_this = undefined;
1826
1561
  return target.closest('[data-tree-node]');
1827
1562
  };
1828
1563
  var getNodeByTargetTreeNode = function getNodeByTargetTreeNode(targetNode) {
1829
- var _a;
1830
- var uid = (_a = targetNode === null || targetNode === void 0 ? void 0 : targetNode.dataset) === null || _a === void 0 ? void 0 : _a.treeNode;
1564
+ var _targetNode$dataset;
1565
+ var uid = targetNode === null || targetNode === void 0 || (_targetNode$dataset = targetNode.dataset) === null || _targetNode$dataset === void 0 ? void 0 : _targetNode$dataset.treeNode;
1831
1566
  return getSourceNodeByUID(uid);
1832
1567
  };
1833
1568
  var handleTreeNodeMouseup = function handleTreeNodeMouseup(e) {
@@ -1849,7 +1584,7 @@ var use_node_drag_this = undefined;
1849
1584
  var targetNode = getTargetTreeNode(e);
1850
1585
  var data = extendNodeAttr(getNodeByTargetTreeNode(targetNode));
1851
1586
  ctx.emit(EVENTS.NODE_DRAG_OVER, e, targetNode, data);
1852
- if (isNeedCheckDroppable.value && (props === null || props === void 0 ? void 0 : props.disableDrop(data))) {
1587
+ if (isNeedCheckDroppable.value && props !== null && props !== void 0 && props.disableDrop(data)) {
1853
1588
  e.dataTransfer.effectAllowed = 'move';
1854
1589
  e.dataTransfer.dropEffect = 'none';
1855
1590
  targetNode.classList.add("".concat(resolveClassName('tree-drop-disabled')));
@@ -1923,9 +1658,10 @@ var use_node_drag_this = undefined;
1923
1658
  } else {
1924
1659
  var sourceNodeParentId = getNodeParentIdById(sourceNodeId);
1925
1660
  if (sourceNodeParentId !== undefined && sourceNodeParentId !== null) {
1661
+ var _parentNode;
1926
1662
  parentNode = getSourceNodeByUID(sourceNodeParentId);
1927
1663
  var sourceNodeIndex = getNodeAttrById(sourceNodeId, NODE_ATTRIBUTES.INDEX);
1928
- parentNode === null || parentNode === void 0 ? void 0 : parentNode[props.children].splice(sourceNodeIndex, 1);
1664
+ (_parentNode = parentNode) === null || _parentNode === void 0 ? void 0 : _parentNode[props.children].splice(sourceNodeIndex, 1);
1929
1665
  }
1930
1666
  }
1931
1667
  if (!targetNodeData[props.children]) {
@@ -1990,9 +1726,9 @@ var use_search_this = undefined;
1990
1726
  */
1991
1727
 
1992
1728
  /* harmony default export */ const use_search = (function (props) {
1993
- var _a;
1729
+ var _props$search;
1994
1730
  var refSearch = (0,external_vue_namespaceObject.toRef)(props, 'search');
1995
- var _ref = (_a = props.search) !== null && _a !== void 0 ? _a : {},
1731
+ var _ref = (_props$search = props.search) !== null && _props$search !== void 0 ? _props$search : {},
1996
1732
  _ref$openResultNode = _ref.openResultNode,
1997
1733
  openResultNode = _ref$openResultNode === void 0 ? false : _ref$openResultNode,
1998
1734
  _ref$resultType = _ref.resultType,
@@ -2046,8 +1782,94 @@ var use_search_this = undefined;
2046
1782
  isTreeUI: isTreeUI
2047
1783
  };
2048
1784
  });
2049
- // EXTERNAL MODULE: ../../node_modules/uuid/index.js
2050
- var uuid = __webpack_require__(8022);
1785
+ ;// CONCATENATED MODULE: ../../node_modules/uuid/dist/esm-browser/native.js
1786
+ const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
1787
+ /* harmony default export */ const esm_browser_native = ({
1788
+ randomUUID
1789
+ });
1790
+ ;// CONCATENATED MODULE: ../../node_modules/uuid/dist/esm-browser/rng.js
1791
+ // Unique ID creation requires a high quality random # generator. In the browser we therefore
1792
+ // require the crypto API and do not support built-in fallback to lower quality random number
1793
+ // generators (like Math.random()).
1794
+ let getRandomValues;
1795
+ const rnds8 = new Uint8Array(16);
1796
+ function rng() {
1797
+ // lazy load so that environments that need to polyfill have a chance to do so
1798
+ if (!getRandomValues) {
1799
+ // getRandomValues needs to be invoked in a context where "this" is a Crypto implementation.
1800
+ getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);
1801
+
1802
+ if (!getRandomValues) {
1803
+ throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
1804
+ }
1805
+ }
1806
+
1807
+ return getRandomValues(rnds8);
1808
+ }
1809
+ ;// CONCATENATED MODULE: ../../node_modules/uuid/dist/esm-browser/stringify.js
1810
+
1811
+ /**
1812
+ * Convert array of 16 byte values to UUID string format of the form:
1813
+ * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
1814
+ */
1815
+
1816
+ const byteToHex = [];
1817
+
1818
+ for (let i = 0; i < 256; ++i) {
1819
+ byteToHex.push((i + 0x100).toString(16).slice(1));
1820
+ }
1821
+
1822
+ function unsafeStringify(arr, offset = 0) {
1823
+ // Note: Be careful editing this code! It's been tuned for performance
1824
+ // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
1825
+ return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]];
1826
+ }
1827
+
1828
+ function stringify(arr, offset = 0) {
1829
+ const uuid = unsafeStringify(arr, offset); // Consistency check for valid UUID. If this throws, it's likely due to one
1830
+ // of the following:
1831
+ // - One or more input array values don't map to a hex octet (leading to
1832
+ // "undefined" in the uuid)
1833
+ // - Invalid input values for the RFC `version` or `variant` fields
1834
+
1835
+ if (!validate(uuid)) {
1836
+ throw TypeError('Stringified UUID is invalid');
1837
+ }
1838
+
1839
+ return uuid;
1840
+ }
1841
+
1842
+ /* harmony default export */ const esm_browser_stringify = ((/* unused pure expression or super */ null && (stringify)));
1843
+ ;// CONCATENATED MODULE: ../../node_modules/uuid/dist/esm-browser/v4.js
1844
+
1845
+
1846
+
1847
+
1848
+ function v4(options, buf, offset) {
1849
+ if (esm_browser_native.randomUUID && !buf && !options) {
1850
+ return esm_browser_native.randomUUID();
1851
+ }
1852
+
1853
+ options = options || {};
1854
+ const rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
1855
+
1856
+ rnds[6] = rnds[6] & 0x0f | 0x40;
1857
+ rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
1858
+
1859
+ if (buf) {
1860
+ offset = offset || 0;
1861
+
1862
+ for (let i = 0; i < 16; ++i) {
1863
+ buf[offset + i] = rnds[i];
1864
+ }
1865
+
1866
+ return buf;
1867
+ }
1868
+
1869
+ return unsafeStringify(rnds);
1870
+ }
1871
+
1872
+ /* harmony default export */ const esm_browser_v4 = (v4);
2051
1873
  ;// CONCATENATED MODULE: ../../packages/tree/src/use-tree-init.tsx
2052
1874
 
2053
1875
 
@@ -2083,7 +1905,7 @@ var use_tree_init_this = undefined;
2083
1905
 
2084
1906
 
2085
1907
  /* harmony default export */ const use_tree_init = (function (props) {
2086
- var _a;
1908
+ var _props$async3;
2087
1909
  /**
2088
1910
  * 扁平化当前数据
2089
1911
  * @param treeData 树形结构数据
@@ -2125,9 +1947,9 @@ var use_tree_init_this = undefined;
2125
1947
  function getUid(item) {
2126
1948
  var uid = null;
2127
1949
  if (typeof props.nodeKey === 'string') {
2128
- uid = item[props.nodeKey] || (0,uuid.v4)();
1950
+ uid = item[props.nodeKey] || esm_browser_v4();
2129
1951
  }
2130
- return uid || item[NODE_ATTRIBUTES.UUID] || (0,uuid.v4)();
1952
+ return uid || item[NODE_ATTRIBUTES.UUID] || esm_browser_v4();
2131
1953
  }
2132
1954
  /**
2133
1955
  * 默认设置
@@ -2157,8 +1979,8 @@ var use_tree_init_this = undefined;
2157
1979
  * @param defVal 默认值
2158
1980
  */
2159
1981
  function getCachedTreeNodeAttr(uuid, node, cachedAttr) {
1982
+ var _cachedSchema$get;
2160
1983
  var defVal = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : undefined;
2161
- var _a;
2162
1984
  var defaultValue = defVal;
2163
1985
  // 设置默认值
2164
1986
  if (defVal === undefined && typeof cachedDefaultVal[cachedAttr] === 'function') {
@@ -2172,7 +1994,7 @@ var use_tree_init_this = undefined;
2172
1994
  }
2173
1995
  // 判断是缓存数据是否已经处理过此属性
2174
1996
  // 在数据改变时,如果缓存数据没有处理过此属性,则返回默认值
2175
- var cached = (_a = cachedSchema === null || cachedSchema === void 0 ? void 0 : cachedSchema.get(node)) !== null && _a !== void 0 ? _a : undefined;
1997
+ var cached = (_cachedSchema$get = cachedSchema === null || cachedSchema === void 0 ? void 0 : cachedSchema.get(node)) !== null && _cachedSchema$get !== void 0 ? _cachedSchema$get : undefined;
2176
1998
  var result = undefined;
2177
1999
  if (cached) {
2178
2000
  result = cached[cachedAttr];
@@ -2197,9 +2019,9 @@ var use_tree_init_this = undefined;
2197
2019
  return getCachedTreeNodeAttr(uuid, node, NODE_ATTRIBUTES.IS_SELECTED, isMatch);
2198
2020
  }
2199
2021
  function isNodeOpend(uuid, item, parent) {
2200
- var _a;
2022
+ var _treeSchema$get;
2201
2023
  var isItemOpened = getCachedTreeNodeAttr(uuid, item, NODE_ATTRIBUTES.IS_OPEN);
2202
- var isParentOpened = treeSchema.has(parent) ? (_a = treeSchema.get(parent)) === null || _a === void 0 ? void 0 : _a[NODE_ATTRIBUTES.IS_OPEN] : true;
2024
+ var isParentOpened = treeSchema.has(parent) ? (_treeSchema$get = treeSchema.get(parent)) === null || _treeSchema$get === void 0 ? void 0 : _treeSchema$get[NODE_ATTRIBUTES.IS_OPEN] : true;
2203
2025
  return isItemOpened && isParentOpened;
2204
2026
  }
2205
2027
  function isCheckedNode(node, uuid) {
@@ -2210,13 +2032,13 @@ var use_tree_init_this = undefined;
2210
2032
  return getCachedTreeNodeAttr(uuid, node, NODE_ATTRIBUTES.IS_CHECKED, isMatch);
2211
2033
  }
2212
2034
  function validateIsOpenLoopFn(targetAttr) {
2213
- var _a;
2214
- return !((_a = targetAttr === null || targetAttr === void 0 ? void 0 : targetAttr[NODE_ATTRIBUTES.IS_OPEN]) !== null && _a !== void 0 ? _a : false);
2035
+ var _targetAttr$NODE_ATTR;
2036
+ return !((_targetAttr$NODE_ATTR = targetAttr === null || targetAttr === void 0 ? void 0 : targetAttr[NODE_ATTRIBUTES.IS_OPEN]) !== null && _targetAttr$NODE_ATTR !== void 0 ? _targetAttr$NODE_ATTR : false);
2215
2037
  }
2216
2038
  function loopUpdateCheckedEvent(target, _attrName, _attrValue, node) {
2217
2039
  target[NODE_ATTRIBUTES.IS_INDETERMINATE] = (node[props.children] || []).some(function (child) {
2218
- var _a, _b;
2219
- return !((_b = (_a = treeSchema.get(child)) === null || _a === void 0 ? void 0 : _a[NODE_ATTRIBUTES.IS_CHECKED]) !== null && _b !== void 0 ? _b : false);
2040
+ var _treeSchema$get$NODE_, _treeSchema$get2;
2041
+ return !((_treeSchema$get$NODE_ = (_treeSchema$get2 = treeSchema.get(child)) === null || _treeSchema$get2 === void 0 ? void 0 : _treeSchema$get2[NODE_ATTRIBUTES.IS_CHECKED]) !== null && _treeSchema$get$NODE_ !== void 0 ? _treeSchema$get$NODE_ : false);
2220
2042
  });
2221
2043
  return true;
2222
2044
  }
@@ -2319,12 +2141,12 @@ var use_tree_init_this = undefined;
2319
2141
  return null;
2320
2142
  };
2321
2143
  var executeFn = function executeFn(event) {
2322
- var _a;
2144
+ var _resoveEvent$type;
2323
2145
  var resoveEvent = resolveEventOption(event);
2324
2146
  if (resoveEvent !== null) {
2325
2147
  Reflect.apply(resoveEvent.fn, use_tree_init_this, []);
2326
2148
  }
2327
- return (_a = resoveEvent === null || resoveEvent === void 0 ? void 0 : resoveEvent.type) !== null && _a !== void 0 ? _a : 'once';
2149
+ return (_resoveEvent$type = resoveEvent === null || resoveEvent === void 0 ? void 0 : resoveEvent.type) !== null && _resoveEvent$type !== void 0 ? _resoveEvent$type : 'once';
2328
2150
  };
2329
2151
  var executeNextEvent = function executeNextEvent() {
2330
2152
  Array.from(nextLoopEvents.keys()).forEach(function (key) {
@@ -2359,11 +2181,11 @@ var use_tree_init_this = undefined;
2359
2181
  (0,external_vue_namespaceObject.watch)(function () {
2360
2182
  return [props.data];
2361
2183
  }, function (newData) {
2362
- var _a, _b;
2184
+ var _props$async, _props$async2;
2363
2185
  var formatData = getFlatdata(newData, flatData.schema);
2364
2186
  flatData.data = formatData[0];
2365
2187
  flatData.schema = formatData[1];
2366
- if (((_a = props.async) === null || _a === void 0 ? void 0 : _a.callback) && ((_b = props.async) === null || _b === void 0 ? void 0 : _b.deepAutoOpen) === 'every') {
2188
+ if ((_props$async = props.async) !== null && _props$async !== void 0 && _props$async.callback && ((_props$async2 = props.async) === null || _props$async2 === void 0 ? void 0 : _props$async2.deepAutoOpen) === 'every') {
2367
2189
  deepAutoOpen();
2368
2190
  }
2369
2191
  /**
@@ -2401,7 +2223,7 @@ var use_tree_init_this = undefined;
2401
2223
  registerNextLoop('afterDataUpdate', callFn);
2402
2224
  };
2403
2225
  /** 如果设置了异步请求 */
2404
- if ((_a = props.async) === null || _a === void 0 ? void 0 : _a.callback) {
2226
+ if ((_props$async3 = props.async) !== null && _props$async3 !== void 0 && _props$async3.callback) {
2405
2227
  deepAutoOpen();
2406
2228
  }
2407
2229
  return {
@@ -2493,8 +2315,8 @@ var use_tree_init_this = undefined;
2493
2315
  if (isSearchActive.value) {
2494
2316
  var treeUiFilter = function treeUiFilter() {
2495
2317
  return isTreeUI ? flatData.data.some(function (data) {
2496
- var _a;
2497
- return ((_a = getNodePath(data)) === null || _a === void 0 ? void 0 : _a.startsWith(getNodePath(item))) && getNodeAttr(item, NODE_ATTRIBUTES.IS_MATCH);
2318
+ var _getNodePath;
2319
+ return ((_getNodePath = getNodePath(data)) === null || _getNodePath === void 0 ? void 0 : _getNodePath.startsWith(getNodePath(item))) && getNodeAttr(item, NODE_ATTRIBUTES.IS_MATCH);
2498
2320
  }) : false;
2499
2321
  };
2500
2322
  return getNodeAttr(item, NODE_ATTRIBUTES.IS_MATCH) || treeUiFilter();
@@ -2553,12 +2375,12 @@ var use_tree_init_this = undefined;
2553
2375
  renderEmpty = _useEmpty.renderEmpty;
2554
2376
  use_node_drag(props, ctx, root, flatData);
2555
2377
  var renderTreeContent = function renderTreeContent(scopedData) {
2556
- var _a, _b, _c;
2378
+ var _ctx$slots$empty, _ctx$slots$empty2, _ctx$slots;
2557
2379
  if (scopedData.length) {
2558
2380
  return scopedData.map(renderTreeNode);
2559
2381
  }
2560
2382
  var emptyType = isSearchActive.value ? 'search-empty' : 'empty';
2561
- return (_c = (_b = (_a = ctx.slots).empty) === null || _b === void 0 ? void 0 : _b.call(_a)) !== null && _c !== void 0 ? _c : renderEmpty(emptyType);
2383
+ return (_ctx$slots$empty = (_ctx$slots$empty2 = (_ctx$slots = ctx.slots).empty) === null || _ctx$slots$empty2 === void 0 ? void 0 : _ctx$slots$empty2.call(_ctx$slots)) !== null && _ctx$slots$empty !== void 0 ? _ctx$slots$empty : renderEmpty(emptyType);
2562
2384
  };
2563
2385
  var _usePrefix = (0,external_config_provider_namespaceObject.usePrefix)(),
2564
2386
  resolveClassName = _usePrefix.resolveClassName;
@@ -2619,7 +2441,5 @@ var use_tree_init_this = undefined;
2619
2441
 
2620
2442
  var BkTree = (0,external_shared_namespaceObject.withInstall)(tree);
2621
2443
  /* harmony default export */ const src = (BkTree);
2622
- })();
2623
-
2624
2444
  var __webpack_exports__default = __webpack_exports__.Z;
2625
2445
  export { __webpack_exports__default as default };