bkui-vue 2.0.2-beta.45 → 2.0.2-beta.47

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 (157) hide show
  1. package/dist/index.cjs.js +47 -42
  2. package/dist/index.esm.js +7204 -7010
  3. package/dist/index.umd.js +50 -45
  4. package/lib/affix/index.js +12 -14
  5. package/lib/alert/index.js +12 -14
  6. package/lib/animate-number/index.js +11 -12
  7. package/lib/backtop/index.js +10 -11
  8. package/lib/badge/index.js +12 -14
  9. package/lib/breadcrumb/index.js +12 -14
  10. package/lib/button/index.js +12 -14
  11. package/lib/card/index.js +12 -14
  12. package/lib/cascader/index.js +94 -101
  13. package/lib/checkbox/index.js +37 -35
  14. package/lib/code-diff/index.js +1171 -675
  15. package/lib/collapse/index.js +44 -42
  16. package/lib/collapse-transition/index.js +3 -4
  17. package/lib/color-picker/index.js +59 -60
  18. package/lib/config-provider/index.js +12 -14
  19. package/lib/container/index.js +21 -25
  20. package/lib/date-picker/index.js +58 -51
  21. package/lib/dialog/index.js +53 -474
  22. package/lib/directives/index.js +37 -34
  23. package/lib/divider/index.js +2 -3
  24. package/lib/dropdown/index.js +17 -21
  25. package/lib/exception/index.js +14 -17
  26. package/lib/fixed-navbar/index.js +2 -3
  27. package/lib/form/index.js +37 -34
  28. package/lib/icon/angle-double-down-line.js +29 -36
  29. package/lib/icon/angle-double-left-line.js +29 -36
  30. package/lib/icon/angle-double-left.js +29 -36
  31. package/lib/icon/angle-double-right-line.js +29 -36
  32. package/lib/icon/angle-double-right.js +29 -36
  33. package/lib/icon/angle-double-up-line.js +29 -36
  34. package/lib/icon/angle-down-fill.js +29 -36
  35. package/lib/icon/angle-down-line.js +29 -36
  36. package/lib/icon/angle-down.js +29 -36
  37. package/lib/icon/angle-left.js +29 -36
  38. package/lib/icon/angle-right.js +29 -36
  39. package/lib/icon/angle-up-fill.js +29 -36
  40. package/lib/icon/angle-up.js +29 -36
  41. package/lib/icon/archive-fill.js +29 -36
  42. package/lib/icon/arrows-left.js +29 -36
  43. package/lib/icon/arrows-right.js +29 -36
  44. package/lib/icon/assistant.js +29 -36
  45. package/lib/icon/audio-fill.js +29 -36
  46. package/lib/icon/bk.js +29 -36
  47. package/lib/icon/circle.js +29 -36
  48. package/lib/icon/close-line.js +29 -36
  49. package/lib/icon/close.js +29 -36
  50. package/lib/icon/code.js +29 -36
  51. package/lib/icon/cog-shape.js +29 -36
  52. package/lib/icon/collapse-left.js +29 -36
  53. package/lib/icon/copy-shape.js +29 -36
  54. package/lib/icon/copy.js +29 -36
  55. package/lib/icon/data-shape.js +29 -36
  56. package/lib/icon/del.js +29 -36
  57. package/lib/icon/doc-fill.js +29 -36
  58. package/lib/icon/done.js +29 -36
  59. package/lib/icon/down-shape.js +29 -36
  60. package/lib/icon/down-small.js +29 -36
  61. package/lib/icon/edit-line.js +29 -36
  62. package/lib/icon/ellipsis.js +29 -36
  63. package/lib/icon/enlarge-line.js +29 -36
  64. package/lib/icon/error.js +29 -36
  65. package/lib/icon/excel-fill.js +29 -36
  66. package/lib/icon/exclamation-circle-shape.js +29 -36
  67. package/lib/icon/eye.js +29 -36
  68. package/lib/icon/filliscreen-line.js +29 -36
  69. package/lib/icon/fix-line.js +29 -36
  70. package/lib/icon/fix-shape.js +29 -36
  71. package/lib/icon/folder-open.js +29 -36
  72. package/lib/icon/folder-shape-open.js +29 -36
  73. package/lib/icon/folder-shape.js +29 -36
  74. package/lib/icon/folder.js +29 -36
  75. package/lib/icon/funnel.js +29 -36
  76. package/lib/icon/grag-fill.js +29 -36
  77. package/lib/icon/help-document-fill.js +29 -36
  78. package/lib/icon/help-fill.js +29 -36
  79. package/lib/icon/help.js +29 -36
  80. package/lib/icon/image-fill.js +29 -36
  81. package/lib/icon/img-error.js +29 -36
  82. package/lib/icon/img-placehoulder.js +29 -36
  83. package/lib/icon/info-line.js +29 -36
  84. package/lib/icon/info.js +29 -36
  85. package/lib/icon/left-shape.js +29 -36
  86. package/lib/icon/left-turn-line.js +29 -36
  87. package/lib/icon/loading.js +29 -36
  88. package/lib/icon/narrow-line.js +29 -36
  89. package/lib/icon/original.js +29 -36
  90. package/lib/icon/pdf-fill.js +29 -36
  91. package/lib/icon/play-shape.js +29 -36
  92. package/lib/icon/plus.js +29 -36
  93. package/lib/icon/ppt-fill.js +29 -36
  94. package/lib/icon/qq.js +29 -36
  95. package/lib/icon/right-shape.js +29 -36
  96. package/lib/icon/right-turn-line.js +29 -36
  97. package/lib/icon/search.js +29 -36
  98. package/lib/icon/share.js +29 -36
  99. package/lib/icon/spinner.js +29 -36
  100. package/lib/icon/success.js +29 -36
  101. package/lib/icon/switcher-loading.js +29 -36
  102. package/lib/icon/text-all.js +29 -36
  103. package/lib/icon/text-file.js +29 -36
  104. package/lib/icon/text-fill.js +29 -36
  105. package/lib/icon/transfer.js +29 -36
  106. package/lib/icon/tree-application-shape.js +29 -36
  107. package/lib/icon/unfull-screen.js +29 -36
  108. package/lib/icon/unvisible.js +29 -36
  109. package/lib/icon/up-shape.js +29 -36
  110. package/lib/icon/upload.js +29 -36
  111. package/lib/icon/video-fill.js +29 -36
  112. package/lib/icon/warn.js +29 -36
  113. package/lib/icon/weixin-pro.js +29 -36
  114. package/lib/icon/weixin.js +29 -36
  115. package/lib/image/index.js +49 -47
  116. package/lib/index.js +1 -1
  117. package/lib/info-box/index.js +62 -461
  118. package/lib/input/index.js +62 -60
  119. package/lib/link/index.js +2 -2
  120. package/lib/loading/index.js +22 -25
  121. package/lib/menu/index.js +36 -34
  122. package/lib/message/index.js +34 -31
  123. package/lib/modal/index.js +12 -14
  124. package/lib/navigation/index.js +7 -9
  125. package/lib/notify/index.js +12 -14
  126. package/lib/overflow-title/index.js +9 -10
  127. package/lib/pagination/index.js +32 -29
  128. package/lib/pop-confirm/index.js +4 -5
  129. package/lib/popover/index.js +209 -136
  130. package/lib/popover2/index.js +2 -2
  131. package/lib/process/index.js +59 -452
  132. package/lib/progress/index.js +16 -19
  133. package/lib/radio/index.js +37 -34
  134. package/lib/rate/index.js +12 -14
  135. package/lib/resize-layout/index.js +18 -20
  136. package/lib/scrollbar/index.js +51 -58
  137. package/lib/search-select/index.js +222 -595
  138. package/lib/select/index.js +111 -463
  139. package/lib/shared/index.js +83 -95
  140. package/lib/sideslider/index.js +43 -441
  141. package/lib/slider/index.js +49 -446
  142. package/lib/steps/index.js +60 -458
  143. package/lib/swiper/index.js +15 -17
  144. package/lib/switcher/index.js +12 -14
  145. package/lib/tab/index.d.ts +12 -0
  146. package/lib/tab/index.js +53 -45
  147. package/lib/tab/props.d.ts +3 -0
  148. package/lib/tab/tab.d.ts +6 -0
  149. package/lib/table/index.js +152 -501
  150. package/lib/tag/index.js +12 -14
  151. package/lib/tag-input/index.js +47 -41
  152. package/lib/timeline/index.js +1 -0
  153. package/lib/transfer/index.js +22 -17
  154. package/lib/tree/index.js +73 -66
  155. package/lib/upload/index.js +136 -487
  156. package/lib/virtual-render/index.js +47 -51
  157. package/package.json +1 -1
@@ -50,6 +50,7 @@ function _typeof(o) {
50
50
  return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
51
51
  }, _typeof(o);
52
52
  }
53
+
53
54
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
54
55
 
55
56
  function toPrimitive(t, r) {
@@ -62,70 +63,72 @@ function toPrimitive(t, r) {
62
63
  }
63
64
  return ("string" === r ? String : Number)(t);
64
65
  }
66
+
65
67
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
66
68
 
67
69
 
68
70
  function toPropertyKey(t) {
69
71
  var i = toPrimitive(t, "string");
70
- return "symbol" == _typeof(i) ? i : String(i);
72
+ return "symbol" == _typeof(i) ? i : i + "";
71
73
  }
74
+
72
75
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
73
76
 
74
- function _defineProperty(obj, key, value) {
75
- key = toPropertyKey(key);
76
- if (key in obj) {
77
- Object.defineProperty(obj, key, {
78
- value: value,
79
- enumerable: true,
80
- configurable: true,
81
- writable: true
82
- });
83
- } else {
84
- obj[key] = value;
85
- }
86
- return obj;
77
+ function _defineProperty(e, r, t) {
78
+ return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
79
+ value: t,
80
+ enumerable: !0,
81
+ configurable: !0,
82
+ writable: !0
83
+ }) : e[r] = t, e;
87
84
  }
85
+
88
86
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
89
- function _arrayLikeToArray(arr, len) {
90
- if (len == null || len > arr.length) len = arr.length;
91
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
92
- return arr2;
87
+ function _arrayLikeToArray(r, a) {
88
+ (null == a || a > r.length) && (a = r.length);
89
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
90
+ return n;
93
91
  }
92
+
94
93
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
95
94
 
96
- function _arrayWithoutHoles(arr) {
97
- if (Array.isArray(arr)) return _arrayLikeToArray(arr);
95
+ function _arrayWithoutHoles(r) {
96
+ if (Array.isArray(r)) return _arrayLikeToArray(r);
98
97
  }
98
+
99
99
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/iterableToArray.js
100
- function _iterableToArray(iter) {
101
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
100
+ function _iterableToArray(r) {
101
+ if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
102
102
  }
103
+
103
104
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
104
105
 
105
- function _unsupportedIterableToArray(o, minLen) {
106
- if (!o) return;
107
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
108
- var n = Object.prototype.toString.call(o).slice(8, -1);
109
- if (n === "Object" && o.constructor) n = o.constructor.name;
110
- if (n === "Map" || n === "Set") return Array.from(o);
111
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
106
+ function _unsupportedIterableToArray(r, a) {
107
+ if (r) {
108
+ if ("string" == typeof r) return _arrayLikeToArray(r, a);
109
+ var t = {}.toString.call(r).slice(8, -1);
110
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
111
+ }
112
112
  }
113
+
113
114
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
114
115
  function _nonIterableSpread() {
115
116
  throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
116
117
  }
118
+
117
119
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
118
120
 
119
121
 
120
122
 
121
123
 
122
- function _toConsumableArray(arr) {
123
- return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
124
+ function _toConsumableArray(r) {
125
+ return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
124
126
  }
127
+
125
128
  ;// CONCATENATED MODULE: external "vue"
126
129
  var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
127
130
  var external_vue_y = x => () => x
128
- const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["h"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.h, ["inject"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.inject, ["isVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.isVNode, ["provide"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.provide, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["renderSlot"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.renderSlot, ["vShow"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.vShow, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
131
+ const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["isVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.isVNode, ["provide"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.provide, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["renderSlot"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.renderSlot, ["vShow"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.vShow, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
129
132
  ;// CONCATENATED MODULE: external "../config-provider"
130
133
  var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
131
134
  var config_provider_y = x => () => x
@@ -267,11 +270,10 @@ var propsCollapsePanel = _objectSpread({
267
270
 
268
271
 
269
272
 
270
-
271
273
  function _isSlot(s) {
272
274
  return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !(0,external_vue_namespaceObject.isVNode)(s);
273
275
  }
274
- /* harmony default export */ const collapse_panel = ((0,external_vue_namespaceObject.defineComponent)({
276
+ /* harmony default export */ const collapse_panel = (defineComponent({
275
277
  name: 'CollapsePanel',
276
278
  props: propsCollapsePanel,
277
279
  emits: ['change', 'update:modelValue', 'after-leave', 'before-enter'],
@@ -280,17 +282,17 @@ function _isSlot(s) {
280
282
  slots = _ref.slots;
281
283
  var localActiveItems = null;
282
284
  var handleItemClick = null;
283
- var isActive = (0,external_vue_namespaceObject.ref)(props.modelValue);
284
- (0,external_vue_namespaceObject.watch)(function () {
285
+ var isActive = ref(props.modelValue);
286
+ watch(function () {
285
287
  return props.modelValue;
286
288
  }, function (newVal) {
287
289
  isActive.value = newVal;
288
290
  });
289
291
  // 如果单独使用,避免报 injection "*" not found. 相比getCurrentInstance()?.parent.type.name 方法简洁
290
292
  if (!props.alone) {
291
- localActiveItems = (0,external_vue_namespaceObject.inject)('localActiveItems');
292
- handleItemClick = (0,external_vue_namespaceObject.inject)('handleItemClick');
293
- (0,external_vue_namespaceObject.watch)(localActiveItems, function (newVal) {
293
+ localActiveItems = inject('localActiveItems');
294
+ handleItemClick = inject('handleItemClick');
295
+ watch(localActiveItems, function (newVal) {
294
296
  if (newVal !== null && newVal !== void 0 && newVal.length) {
295
297
  isActive.value = newVal.includes(props.name);
296
298
  } else {
@@ -330,7 +332,7 @@ function _isSlot(s) {
330
332
  }
331
333
  function getContent() {
332
334
  if (slots.content) {
333
- return slots.content(external_vue_namespaceObject.h);
335
+ return slots.content(h);
334
336
  }
335
337
  return props.content;
336
338
  }
@@ -345,14 +347,14 @@ function _isSlot(s) {
345
347
  function renderHeader(icon) {
346
348
  if (slots.header) {
347
349
  if (typeof slots.header === 'function') {
348
- return slots.header(external_vue_namespaceObject.h);
350
+ return slots.header(h);
349
351
  }
350
352
  return slots.header;
351
353
  }
352
354
  var title;
353
355
  if (slots["default"]) {
354
356
  if (typeof slots["default"] === 'function') {
355
- title = slots["default"](external_vue_namespaceObject.h);
357
+ title = slots["default"](h);
356
358
  } else {
357
359
  title = slots["default"];
358
360
  }
@@ -38,7 +38,7 @@ const shared_namespaceObject = x({ ["withInstall"]: () => __WEBPACK_EXTERNAL_MOD
38
38
  ;// CONCATENATED MODULE: external "vue"
39
39
  var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
40
40
  var external_vue_y = x => () => x
41
- const external_vue_namespaceObject = external_vue_x({ ["Transition"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Transition, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps });
41
+ const external_vue_namespaceObject = external_vue_x({ ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps });
42
42
  ;// CONCATENATED MODULE: external "../config-provider"
43
43
  var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
44
44
  var config_provider_y = x => () => x
@@ -71,8 +71,7 @@ const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () =>
71
71
  * IN THE SOFTWARE.
72
72
  */
73
73
 
74
-
75
- /* harmony default export */ const collapse_transition = ((0,external_vue_namespaceObject.defineComponent)({
74
+ /* harmony default export */ const collapse_transition = (defineComponent({
76
75
  name: 'CollapseTransition',
77
76
  setup: function setup(_props, _ref) {
78
77
  var slots = _ref.slots;
@@ -135,7 +134,7 @@ const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () =>
135
134
  render: function render() {
136
135
  var _this = this;
137
136
  var name = this.resolveClassName('collapse-transition');
138
- return (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Transition, (0,external_vue_namespaceObject.mergeProps)({
137
+ return (0,external_vue_namespaceObject.createVNode)(Transition, (0,external_vue_namespaceObject.mergeProps)({
139
138
  "name": name
140
139
  }, this.on), {
141
140
  "default": function _default() {
@@ -24,9 +24,9 @@ __webpack_require__.d(__webpack_exports__, {
24
24
  // UNUSED EXPORTS: bkEllipsis, bkEllipsisInstance, bkLoading, bkTooltips, mousewheel, overflowTitle
25
25
 
26
26
  ;// CONCATENATED MODULE: ../../packages/directives/src/clickoutside.ts
27
- function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
28
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
29
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
27
+ function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
28
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
29
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
30
30
  /*
31
31
  * Tencent is pleased to support the open source community by making
32
32
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
@@ -1291,12 +1291,13 @@ module.exports = x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragmen
1291
1291
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1292
1292
  /* harmony export */ "default": () => (/* binding */ _arrayLikeToArray)
1293
1293
  /* harmony export */ });
1294
- function _arrayLikeToArray(arr, len) {
1295
- if (len == null || len > arr.length) len = arr.length;
1296
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
1297
- return arr2;
1294
+ function _arrayLikeToArray(r, a) {
1295
+ (null == a || a > r.length) && (a = r.length);
1296
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
1297
+ return n;
1298
1298
  }
1299
1299
 
1300
+
1300
1301
  /***/ }),
1301
1302
 
1302
1303
  /***/ 74:
@@ -1307,10 +1308,11 @@ function _arrayLikeToArray(arr, len) {
1307
1308
  /* harmony export */ });
1308
1309
  /* harmony import */ var _arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(926);
1309
1310
 
1310
- function _arrayWithoutHoles(arr) {
1311
- if (Array.isArray(arr)) return (0,_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__["default"])(arr);
1311
+ function _arrayWithoutHoles(r) {
1312
+ if (Array.isArray(r)) return (0,_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__["default"])(r);
1312
1313
  }
1313
1314
 
1315
+
1314
1316
  /***/ }),
1315
1317
 
1316
1318
  /***/ 6666:
@@ -1321,21 +1323,16 @@ function _arrayWithoutHoles(arr) {
1321
1323
  /* harmony export */ });
1322
1324
  /* harmony import */ var _toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3795);
1323
1325
 
1324
- function _defineProperty(obj, key, value) {
1325
- key = (0,_toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__["default"])(key);
1326
- if (key in obj) {
1327
- Object.defineProperty(obj, key, {
1328
- value: value,
1329
- enumerable: true,
1330
- configurable: true,
1331
- writable: true
1332
- });
1333
- } else {
1334
- obj[key] = value;
1335
- }
1336
- return obj;
1326
+ function _defineProperty(e, r, t) {
1327
+ return (r = (0,_toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__["default"])(r)) in e ? Object.defineProperty(e, r, {
1328
+ value: t,
1329
+ enumerable: !0,
1330
+ configurable: !0,
1331
+ writable: !0
1332
+ }) : e[r] = t, e;
1337
1333
  }
1338
1334
 
1335
+
1339
1336
  /***/ }),
1340
1337
 
1341
1338
  /***/ 1079:
@@ -1344,10 +1341,11 @@ function _defineProperty(obj, key, value) {
1344
1341
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1345
1342
  /* harmony export */ "default": () => (/* binding */ _iterableToArray)
1346
1343
  /* harmony export */ });
1347
- function _iterableToArray(iter) {
1348
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
1344
+ function _iterableToArray(r) {
1345
+ if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
1349
1346
  }
1350
1347
 
1348
+
1351
1349
  /***/ }),
1352
1350
 
1353
1351
  /***/ 6098:
@@ -1360,6 +1358,7 @@ function _nonIterableSpread() {
1360
1358
  throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1361
1359
  }
1362
1360
 
1361
+
1363
1362
  /***/ }),
1364
1363
 
1365
1364
  /***/ 7930:
@@ -1376,10 +1375,11 @@ function _nonIterableSpread() {
1376
1375
 
1377
1376
 
1378
1377
 
1379
- function _toConsumableArray(arr) {
1380
- return (0,_arrayWithoutHoles_js__WEBPACK_IMPORTED_MODULE_0__["default"])(arr) || (0,_iterableToArray_js__WEBPACK_IMPORTED_MODULE_1__["default"])(arr) || (0,_unsupportedIterableToArray_js__WEBPACK_IMPORTED_MODULE_2__["default"])(arr) || (0,_nonIterableSpread_js__WEBPACK_IMPORTED_MODULE_3__["default"])();
1378
+ function _toConsumableArray(r) {
1379
+ return (0,_arrayWithoutHoles_js__WEBPACK_IMPORTED_MODULE_0__["default"])(r) || (0,_iterableToArray_js__WEBPACK_IMPORTED_MODULE_1__["default"])(r) || (0,_unsupportedIterableToArray_js__WEBPACK_IMPORTED_MODULE_2__["default"])(r) || (0,_nonIterableSpread_js__WEBPACK_IMPORTED_MODULE_3__["default"])();
1381
1380
  }
1382
1381
 
1382
+
1383
1383
  /***/ }),
1384
1384
 
1385
1385
  /***/ 9745:
@@ -1401,6 +1401,7 @@ function toPrimitive(t, r) {
1401
1401
  return ("string" === r ? String : Number)(t);
1402
1402
  }
1403
1403
 
1404
+
1404
1405
  /***/ }),
1405
1406
 
1406
1407
  /***/ 3795:
@@ -1415,9 +1416,10 @@ function toPrimitive(t, r) {
1415
1416
 
1416
1417
  function toPropertyKey(t) {
1417
1418
  var i = (0,_toPrimitive_js__WEBPACK_IMPORTED_MODULE_0__["default"])(t, "string");
1418
- return "symbol" == (0,_typeof_js__WEBPACK_IMPORTED_MODULE_1__["default"])(i) ? i : String(i);
1419
+ return "symbol" == (0,_typeof_js__WEBPACK_IMPORTED_MODULE_1__["default"])(i) ? i : i + "";
1419
1420
  }
1420
1421
 
1422
+
1421
1423
  /***/ }),
1422
1424
 
1423
1425
  /***/ 6522:
@@ -1436,6 +1438,7 @@ function _typeof(o) {
1436
1438
  }, _typeof(o);
1437
1439
  }
1438
1440
 
1441
+
1439
1442
  /***/ }),
1440
1443
 
1441
1444
  /***/ 9147:
@@ -1446,15 +1449,15 @@ function _typeof(o) {
1446
1449
  /* harmony export */ });
1447
1450
  /* harmony import */ var _arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(926);
1448
1451
 
1449
- function _unsupportedIterableToArray(o, minLen) {
1450
- if (!o) return;
1451
- if (typeof o === "string") return (0,_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__["default"])(o, minLen);
1452
- var n = Object.prototype.toString.call(o).slice(8, -1);
1453
- if (n === "Object" && o.constructor) n = o.constructor.name;
1454
- if (n === "Map" || n === "Set") return Array.from(o);
1455
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return (0,_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__["default"])(o, minLen);
1452
+ function _unsupportedIterableToArray(r, a) {
1453
+ if (r) {
1454
+ if ("string" == typeof r) return (0,_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__["default"])(r, a);
1455
+ var t = {}.toString.call(r).slice(8, -1);
1456
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? (0,_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__["default"])(r, a) : void 0;
1457
+ }
1456
1458
  }
1457
1459
 
1460
+
1458
1461
  /***/ })
1459
1462
 
1460
1463
  /******/ });
@@ -2758,11 +2761,10 @@ function validateWCAG2Parms(parms) {
2758
2761
  */
2759
2762
 
2760
2763
 
2761
-
2762
2764
  var inputContainerProps = {
2763
2765
  info: shared_.PropTypes.object.isRequired
2764
2766
  };
2765
- /* harmony default export */ const input_container = ((0,external_vue_.defineComponent)({
2767
+ /* harmony default export */ const input_container = (defineComponent({
2766
2768
  props: inputContainerProps,
2767
2769
  emits: ['tab', 'input'],
2768
2770
  setup: function setup(props, _ref) {
@@ -2779,7 +2781,7 @@ var inputContainerProps = {
2779
2781
  };
2780
2782
  var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
2781
2783
  resolveClassName = _usePrefix.resolveClassName;
2782
- var colorPickerCls = (0,external_vue_.computed)(function () {
2784
+ var colorPickerCls = computed(function () {
2783
2785
  return (0,shared_.classes)({
2784
2786
  error: props.info.error
2785
2787
  }, "".concat(resolveClassName('color-picker-input-value')));
@@ -2830,47 +2832,46 @@ var inputContainerProps = {
2830
2832
 
2831
2833
 
2832
2834
 
2833
-
2834
2835
  var colorPickerProps = {
2835
2836
  colorObj: shared_.PropTypes.object.isRequired
2836
2837
  };
2837
- /* harmony default export */ const color_input = ((0,external_vue_.defineComponent)({
2838
+ /* harmony default export */ const color_input = (defineComponent({
2838
2839
  name: 'ColorPicker',
2839
2840
  props: colorPickerProps,
2840
2841
  emits: ['change', 'tab'],
2841
2842
  setup: function setup(props, _ref) {
2842
2843
  var emit = _ref.emit;
2843
- var hex = (0,external_vue_.reactive)({
2844
+ var hex = reactive({
2844
2845
  key: 'hex',
2845
2846
  name: 'HEX',
2846
2847
  value: props.colorObj.hex,
2847
2848
  error: false
2848
2849
  });
2849
- var r = (0,external_vue_.reactive)({
2850
+ var r = reactive({
2850
2851
  key: 'r',
2851
2852
  name: 'R',
2852
2853
  value: props.colorObj.rgba.r.toString(),
2853
2854
  error: false
2854
2855
  });
2855
- var g = (0,external_vue_.reactive)({
2856
+ var g = reactive({
2856
2857
  key: 'g',
2857
2858
  name: 'G',
2858
2859
  value: props.colorObj.rgba.g.toString(),
2859
2860
  error: false
2860
2861
  });
2861
- var b = (0,external_vue_.reactive)({
2862
+ var b = reactive({
2862
2863
  key: 'b',
2863
2864
  name: 'B',
2864
2865
  value: props.colorObj.rgba.b.toString(),
2865
2866
  error: false
2866
2867
  });
2867
- var a = (0,external_vue_.reactive)({
2868
+ var a = reactive({
2868
2869
  key: 'a',
2869
2870
  name: 'Alpha',
2870
2871
  value: props.colorObj.rgba.a.toString(),
2871
2872
  error: false
2872
2873
  });
2873
- (0,external_vue_.watch)(function () {
2874
+ watch(function () {
2874
2875
  return props.colorObj;
2875
2876
  }, function (val) {
2876
2877
  if (tinycolor(val.hex).toString() !== tinycolor(hex.value).toString()) {
@@ -3104,18 +3105,17 @@ var toRGBAString = function toRGBAString(rgba) {
3104
3105
 
3105
3106
 
3106
3107
 
3107
-
3108
3108
  var hue_slider_colorPickerProps = {
3109
3109
  colorObj: shared_.PropTypes.object.isRequired
3110
3110
  };
3111
- /* harmony default export */ const hue_slider = ((0,external_vue_.defineComponent)({
3111
+ /* harmony default export */ const hue_slider = (defineComponent({
3112
3112
  name: 'ColorPicker',
3113
3113
  props: hue_slider_colorPickerProps,
3114
3114
  emits: ['change'],
3115
3115
  setup: function setup(props, _ref) {
3116
3116
  var emit = _ref.emit;
3117
- var containerRef = (0,external_vue_.ref)(null);
3118
- var pointerStyle = (0,external_vue_.computed)(function () {
3117
+ var containerRef = ref(null);
3118
+ var pointerStyle = computed(function () {
3119
3119
  return {
3120
3120
  left: "".concat(props.colorObj.hsv.h / 360 * 100, "%")
3121
3121
  };
@@ -3153,11 +3153,11 @@ var hue_slider_colorPickerProps = {
3153
3153
  window.addEventListener('mousemove', handlePointChange, {
3154
3154
  passive: true
3155
3155
  });
3156
- window.addEventListener('mouseup', handleMouseUp);
3156
+ window.addEventListener('mouseup', _handleMouseUp);
3157
3157
  };
3158
- var handleMouseUp = function handleMouseUp() {
3158
+ var _handleMouseUp = function handleMouseUp() {
3159
3159
  window.removeEventListener('mousemove', handlePointChange);
3160
- window.removeEventListener('mouseup', handleMouseUp);
3160
+ window.removeEventListener('mouseup', _handleMouseUp);
3161
3161
  };
3162
3162
  /**
3163
3163
  * 色相面板变化
@@ -3394,22 +3394,21 @@ var recommend_colors_colorPickerProps = {
3394
3394
 
3395
3395
 
3396
3396
 
3397
-
3398
3397
  var saturation_panel_colorPickerProps = {
3399
3398
  colorObj: shared_.PropTypes.object.isRequired
3400
3399
  };
3401
- /* harmony default export */ const saturation_panel = ((0,external_vue_.defineComponent)({
3400
+ /* harmony default export */ const saturation_panel = (defineComponent({
3402
3401
  props: saturation_panel_colorPickerProps,
3403
3402
  emits: ['change'],
3404
3403
  setup: function setup(props, _ref) {
3405
3404
  var emit = _ref.emit;
3406
- var containerRef = (0,external_vue_.ref)(null);
3407
- var backgroundStyle = (0,external_vue_.computed)(function () {
3405
+ var containerRef = ref(null);
3406
+ var backgroundStyle = computed(function () {
3408
3407
  return {
3409
3408
  background: "hsl(".concat(props.colorObj.hsv.h, ", 100%, 50%)")
3410
3409
  };
3411
3410
  });
3412
- var pointerStyle = (0,external_vue_.computed)(function () {
3411
+ var pointerStyle = computed(function () {
3413
3412
  return {
3414
3413
  top: "".concat((1 - props.colorObj.hsv.v) * 100, "%"),
3415
3414
  left: "".concat(props.colorObj.hsv.s * 100, "%")
@@ -3421,11 +3420,11 @@ var saturation_panel_colorPickerProps = {
3421
3420
  window.addEventListener('mousemove', handlePointChange, {
3422
3421
  passive: true
3423
3422
  });
3424
- window.addEventListener('mouseup', handleMouseUp);
3423
+ window.addEventListener('mouseup', _handleMouseUp);
3425
3424
  };
3426
- var handleMouseUp = function handleMouseUp() {
3425
+ var _handleMouseUp = function handleMouseUp() {
3427
3426
  window.removeEventListener('mousemove', handlePointChange);
3428
- window.removeEventListener('mouseup', handleMouseUp);
3427
+ window.removeEventListener('mouseup', _handleMouseUp);
3429
3428
  };
3430
3429
  var handleArrowKeydown = function handleArrowKeydown(e) {
3431
3430
  var _containerRef$value = containerRef.value,
@@ -57,6 +57,7 @@ function _typeof(o) {
57
57
  return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
58
58
  }, _typeof(o);
59
59
  }
60
+
60
61
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
61
62
 
62
63
  function toPrimitive(t, r) {
@@ -69,29 +70,26 @@ function toPrimitive(t, r) {
69
70
  }
70
71
  return ("string" === r ? String : Number)(t);
71
72
  }
73
+
72
74
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
73
75
 
74
76
 
75
77
  function toPropertyKey(t) {
76
78
  var i = toPrimitive(t, "string");
77
- return "symbol" == _typeof(i) ? i : String(i);
79
+ return "symbol" == _typeof(i) ? i : i + "";
78
80
  }
81
+
79
82
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
80
83
 
81
- function _defineProperty(obj, key, value) {
82
- key = toPropertyKey(key);
83
- if (key in obj) {
84
- Object.defineProperty(obj, key, {
85
- value: value,
86
- enumerable: true,
87
- configurable: true,
88
- writable: true
89
- });
90
- } else {
91
- obj[key] = value;
92
- }
93
- return obj;
84
+ function _defineProperty(e, r, t) {
85
+ return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
86
+ value: t,
87
+ enumerable: !0,
88
+ configurable: !0,
89
+ writable: !0
90
+ }) : e[r] = t, e;
94
91
  }
92
+
95
93
  ;// CONCATENATED MODULE: external "lodash/merge"
96
94
  var merge_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
97
95
  var merge_y = x => () => x