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

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 (154) hide show
  1. package/dist/index.cjs.js +42 -47
  2. package/dist/index.esm.js +7009 -7201
  3. package/dist/index.umd.js +45 -50
  4. package/lib/affix/index.js +14 -12
  5. package/lib/alert/index.js +14 -12
  6. package/lib/animate-number/index.js +12 -11
  7. package/lib/backtop/index.js +11 -10
  8. package/lib/badge/index.js +14 -12
  9. package/lib/breadcrumb/index.js +14 -12
  10. package/lib/button/index.js +14 -12
  11. package/lib/card/index.js +14 -12
  12. package/lib/cascader/index.js +101 -94
  13. package/lib/checkbox/index.js +35 -37
  14. package/lib/code-diff/index.js +674 -1170
  15. package/lib/collapse/index.js +42 -44
  16. package/lib/collapse-transition/index.js +4 -3
  17. package/lib/color-picker/index.js +60 -59
  18. package/lib/config-provider/index.js +14 -12
  19. package/lib/container/index.js +25 -21
  20. package/lib/date-picker/index.js +51 -58
  21. package/lib/dialog/index.js +441 -43
  22. package/lib/directives/index.js +34 -37
  23. package/lib/divider/index.js +3 -2
  24. package/lib/dropdown/index.js +21 -17
  25. package/lib/exception/index.js +17 -14
  26. package/lib/fixed-navbar/index.js +3 -2
  27. package/lib/form/index.js +34 -37
  28. package/lib/icon/angle-double-down-line.js +36 -29
  29. package/lib/icon/angle-double-left-line.js +36 -29
  30. package/lib/icon/angle-double-left.js +36 -29
  31. package/lib/icon/angle-double-right-line.js +36 -29
  32. package/lib/icon/angle-double-right.js +36 -29
  33. package/lib/icon/angle-double-up-line.js +36 -29
  34. package/lib/icon/angle-down-fill.js +36 -29
  35. package/lib/icon/angle-down-line.js +36 -29
  36. package/lib/icon/angle-down.js +36 -29
  37. package/lib/icon/angle-left.js +36 -29
  38. package/lib/icon/angle-right.js +36 -29
  39. package/lib/icon/angle-up-fill.js +36 -29
  40. package/lib/icon/angle-up.js +36 -29
  41. package/lib/icon/archive-fill.js +36 -29
  42. package/lib/icon/arrows-left.js +36 -29
  43. package/lib/icon/arrows-right.js +36 -29
  44. package/lib/icon/assistant.js +36 -29
  45. package/lib/icon/audio-fill.js +36 -29
  46. package/lib/icon/bk.js +36 -29
  47. package/lib/icon/circle.js +36 -29
  48. package/lib/icon/close-line.js +36 -29
  49. package/lib/icon/close.js +36 -29
  50. package/lib/icon/code.js +36 -29
  51. package/lib/icon/cog-shape.js +36 -29
  52. package/lib/icon/collapse-left.js +36 -29
  53. package/lib/icon/copy-shape.js +36 -29
  54. package/lib/icon/copy.js +36 -29
  55. package/lib/icon/data-shape.js +36 -29
  56. package/lib/icon/del.js +36 -29
  57. package/lib/icon/doc-fill.js +36 -29
  58. package/lib/icon/done.js +36 -29
  59. package/lib/icon/down-shape.js +36 -29
  60. package/lib/icon/down-small.js +36 -29
  61. package/lib/icon/edit-line.js +36 -29
  62. package/lib/icon/ellipsis.js +36 -29
  63. package/lib/icon/enlarge-line.js +36 -29
  64. package/lib/icon/error.js +36 -29
  65. package/lib/icon/excel-fill.js +36 -29
  66. package/lib/icon/exclamation-circle-shape.js +36 -29
  67. package/lib/icon/eye.js +36 -29
  68. package/lib/icon/filliscreen-line.js +36 -29
  69. package/lib/icon/fix-line.js +36 -29
  70. package/lib/icon/fix-shape.js +36 -29
  71. package/lib/icon/folder-open.js +36 -29
  72. package/lib/icon/folder-shape-open.js +36 -29
  73. package/lib/icon/folder-shape.js +36 -29
  74. package/lib/icon/folder.js +36 -29
  75. package/lib/icon/funnel.js +36 -29
  76. package/lib/icon/grag-fill.js +36 -29
  77. package/lib/icon/help-document-fill.js +36 -29
  78. package/lib/icon/help-fill.js +36 -29
  79. package/lib/icon/help.js +36 -29
  80. package/lib/icon/image-fill.js +36 -29
  81. package/lib/icon/img-error.js +36 -29
  82. package/lib/icon/img-placehoulder.js +36 -29
  83. package/lib/icon/info-line.js +36 -29
  84. package/lib/icon/info.js +36 -29
  85. package/lib/icon/left-shape.js +36 -29
  86. package/lib/icon/left-turn-line.js +36 -29
  87. package/lib/icon/loading.js +36 -29
  88. package/lib/icon/narrow-line.js +36 -29
  89. package/lib/icon/original.js +36 -29
  90. package/lib/icon/pdf-fill.js +36 -29
  91. package/lib/icon/play-shape.js +36 -29
  92. package/lib/icon/plus.js +36 -29
  93. package/lib/icon/ppt-fill.js +36 -29
  94. package/lib/icon/qq.js +36 -29
  95. package/lib/icon/right-shape.js +36 -29
  96. package/lib/icon/right-turn-line.js +36 -29
  97. package/lib/icon/search.js +36 -29
  98. package/lib/icon/share.js +36 -29
  99. package/lib/icon/spinner.js +36 -29
  100. package/lib/icon/success.js +36 -29
  101. package/lib/icon/switcher-loading.js +36 -29
  102. package/lib/icon/text-all.js +36 -29
  103. package/lib/icon/text-file.js +36 -29
  104. package/lib/icon/text-fill.js +36 -29
  105. package/lib/icon/transfer.js +36 -29
  106. package/lib/icon/tree-application-shape.js +36 -29
  107. package/lib/icon/unfull-screen.js +36 -29
  108. package/lib/icon/unvisible.js +36 -29
  109. package/lib/icon/up-shape.js +36 -29
  110. package/lib/icon/upload.js +36 -29
  111. package/lib/icon/video-fill.js +36 -29
  112. package/lib/icon/warn.js +36 -29
  113. package/lib/icon/weixin-pro.js +36 -29
  114. package/lib/icon/weixin.js +36 -29
  115. package/lib/image/index.js +47 -49
  116. package/lib/index.js +1 -1
  117. package/lib/info-box/index.js +461 -62
  118. package/lib/input/index.js +60 -62
  119. package/lib/link/index.js +2 -2
  120. package/lib/loading/index.js +25 -22
  121. package/lib/menu/index.js +34 -36
  122. package/lib/message/index.js +31 -34
  123. package/lib/modal/index.js +14 -12
  124. package/lib/navigation/index.js +9 -7
  125. package/lib/notify/index.js +14 -12
  126. package/lib/overflow-title/index.js +10 -9
  127. package/lib/pagination/index.js +29 -32
  128. package/lib/pop-confirm/index.js +5 -4
  129. package/lib/popover/index.js +136 -209
  130. package/lib/popover2/index.js +2 -2
  131. package/lib/process/index.js +452 -59
  132. package/lib/progress/index.js +19 -16
  133. package/lib/radio/index.js +34 -37
  134. package/lib/rate/index.js +14 -12
  135. package/lib/resize-layout/index.js +20 -18
  136. package/lib/scrollbar/index.js +58 -51
  137. package/lib/search-select/index.js +595 -222
  138. package/lib/select/index.js +463 -111
  139. package/lib/shared/index.js +95 -83
  140. package/lib/sideslider/index.js +441 -43
  141. package/lib/slider/index.js +446 -49
  142. package/lib/steps/index.js +458 -60
  143. package/lib/swiper/index.js +17 -15
  144. package/lib/switcher/index.js +14 -12
  145. package/lib/tab/index.js +40 -42
  146. package/lib/table/index.js +501 -152
  147. package/lib/tag/index.js +14 -12
  148. package/lib/tag-input/index.js +41 -47
  149. package/lib/timeline/index.js +0 -1
  150. package/lib/transfer/index.js +17 -22
  151. package/lib/tree/index.js +66 -73
  152. package/lib/upload/index.js +487 -136
  153. package/lib/virtual-render/index.js +51 -47
  154. package/package.json +1 -2
@@ -46,7 +46,6 @@ function _typeof(o) {
46
46
  return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
47
47
  }, _typeof(o);
48
48
  }
49
-
50
49
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
51
50
 
52
51
  function toPrimitive(t, r) {
@@ -59,30 +58,33 @@ function toPrimitive(t, r) {
59
58
  }
60
59
  return ("string" === r ? String : Number)(t);
61
60
  }
62
-
63
61
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
64
62
 
65
63
 
66
64
  function toPropertyKey(t) {
67
65
  var i = toPrimitive(t, "string");
68
- return "symbol" == _typeof(i) ? i : i + "";
66
+ return "symbol" == _typeof(i) ? i : String(i);
69
67
  }
70
-
71
68
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
72
69
 
73
- function _defineProperty(e, r, t) {
74
- return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
75
- value: t,
76
- enumerable: !0,
77
- configurable: !0,
78
- writable: !0
79
- }) : e[r] = t, e;
70
+ function _defineProperty(obj, key, value) {
71
+ key = toPropertyKey(key);
72
+ if (key in obj) {
73
+ Object.defineProperty(obj, key, {
74
+ value: value,
75
+ enumerable: true,
76
+ configurable: true,
77
+ writable: true
78
+ });
79
+ } else {
80
+ obj[key] = value;
81
+ }
82
+ return obj;
80
83
  }
81
-
82
84
  ;// CONCATENATED MODULE: external "vue"
83
85
  var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
84
86
  var external_vue_y = x => () => x
85
- const external_vue_namespaceObject = external_vue_x({ ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["isVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.isVNode });
87
+ const external_vue_namespaceObject = external_vue_x({ ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["isVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.isVNode });
86
88
  ;// CONCATENATED MODULE: external "../config-provider"
87
89
  var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
88
90
  var config_provider_y = x => () => x
@@ -271,6 +273,9 @@ var Line = function Line(_, _ref) {
271
273
  /* harmony default export */ const line = (Line);
272
274
  ;// CONCATENATED MODULE: ../../packages/progress/src/progress.tsx
273
275
 
276
+
277
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
278
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
274
279
  /*
275
280
  * Tencent is pleased to support the open source community by making
276
281
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
@@ -297,8 +302,6 @@ var Line = function Line(_, _ref) {
297
302
  * IN THE SOFTWARE.
298
303
  */
299
304
 
300
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
301
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
302
305
 
303
306
 
304
307
 
@@ -330,7 +333,7 @@ var progressType = {
330
333
  verticalAlign: 'middle'
331
334
  })
332
335
  };
333
- /* harmony default export */ const progress = (defineComponent({
336
+ /* harmony default export */ const progress = ((0,external_vue_namespaceObject.defineComponent)({
334
337
  name: 'Progress',
335
338
  props: progressType,
336
339
  setup: function setup() {
@@ -50,7 +50,6 @@ 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
-
54
53
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
55
54
 
56
55
  function toPrimitive(t, r) {
@@ -63,31 +62,33 @@ function toPrimitive(t, r) {
63
62
  }
64
63
  return ("string" === r ? String : Number)(t);
65
64
  }
66
-
67
65
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
68
66
 
69
67
 
70
68
  function toPropertyKey(t) {
71
69
  var i = toPrimitive(t, "string");
72
- return "symbol" == _typeof(i) ? i : i + "";
70
+ return "symbol" == _typeof(i) ? i : String(i);
73
71
  }
74
-
75
72
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
76
73
 
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;
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;
84
87
  }
85
-
86
88
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
87
- function _arrayWithHoles(r) {
88
- if (Array.isArray(r)) return r;
89
+ function _arrayWithHoles(arr) {
90
+ if (Array.isArray(arr)) return arr;
89
91
  }
90
-
91
92
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
92
93
  function _iterableToArrayLimit(r, l) {
93
94
  var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
@@ -116,42 +117,38 @@ function _iterableToArrayLimit(r, l) {
116
117
  return a;
117
118
  }
118
119
  }
119
-
120
120
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
121
- function _arrayLikeToArray(r, a) {
122
- (null == a || a > r.length) && (a = r.length);
123
- for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
124
- return n;
121
+ function _arrayLikeToArray(arr, len) {
122
+ if (len == null || len > arr.length) len = arr.length;
123
+ for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
124
+ return arr2;
125
125
  }
126
-
127
126
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
128
127
 
129
- function _unsupportedIterableToArray(r, a) {
130
- if (r) {
131
- if ("string" == typeof r) return _arrayLikeToArray(r, a);
132
- var t = {}.toString.call(r).slice(8, -1);
133
- 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;
134
- }
128
+ function _unsupportedIterableToArray(o, minLen) {
129
+ if (!o) return;
130
+ if (typeof o === "string") return _arrayLikeToArray(o, minLen);
131
+ var n = Object.prototype.toString.call(o).slice(8, -1);
132
+ if (n === "Object" && o.constructor) n = o.constructor.name;
133
+ if (n === "Map" || n === "Set") return Array.from(o);
134
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
135
135
  }
136
-
137
136
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
138
137
  function _nonIterableRest() {
139
138
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
140
139
  }
141
-
142
140
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/slicedToArray.js
143
141
 
144
142
 
145
143
 
146
144
 
147
- function _slicedToArray(r, e) {
148
- return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
145
+ function _slicedToArray(arr, i) {
146
+ return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
149
147
  }
150
-
151
148
  ;// CONCATENATED MODULE: external "vue"
152
149
  var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
153
150
  var external_vue_y = x => () => x
154
- const external_vue_namespaceObject = external_vue_x({ ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["getCurrentInstance"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.getCurrentInstance, ["inject"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.inject, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch });
151
+ const external_vue_namespaceObject = external_vue_x({ ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["getCurrentInstance"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.getCurrentInstance, ["inject"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.inject, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["provide"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.provide, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch });
155
152
  ;// CONCATENATED MODULE: external "vue-types"
156
153
  var external_vue_types_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
157
154
  var external_vue_types_y = x => () => x
@@ -556,7 +553,7 @@ var radioGroupProps = {
556
553
  return true;
557
554
  })
558
555
  };
559
- /* harmony default export */ const radio_group = (defineComponent({
556
+ /* harmony default export */ const radio_group = ((0,external_vue_namespaceObject.defineComponent)({
560
557
  name: 'RadioGroup',
561
558
  props: radioGroupProps,
562
559
  emits: {
@@ -589,13 +586,13 @@ var radioGroupProps = {
589
586
  context.emit('update:modelValue', nextValue);
590
587
  context.emit('change', nextValue);
591
588
  };
592
- provide(radioGroupKey, {
589
+ (0,external_vue_namespaceObject.provide)(radioGroupKey, {
593
590
  props: props,
594
591
  register: register,
595
592
  unregister: unregister,
596
593
  handleChange: handleChange
597
594
  });
598
- watch(function () {
595
+ (0,external_vue_namespaceObject.watch)(function () {
599
596
  return props.modelValue;
600
597
  }, function () {
601
598
  if (props.withValidate) {
@@ -603,7 +600,7 @@ var radioGroupProps = {
603
600
  formItem === null || formItem === void 0 || (_formItem$validate = formItem.validate) === null || _formItem$validate === void 0 || _formItem$validate.call(formItem, 'change');
604
601
  }
605
602
  });
606
- onMounted(function () {
603
+ (0,external_vue_namespaceObject.onMounted)(function () {
607
604
  if (props.modelValue === '') {
608
605
  return;
609
606
  }
package/lib/rate/index.js CHANGED
@@ -46,7 +46,6 @@ function _typeof(o) {
46
46
  return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
47
47
  }, _typeof(o);
48
48
  }
49
-
50
49
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
51
50
 
52
51
  function toPrimitive(t, r) {
@@ -59,26 +58,29 @@ function toPrimitive(t, r) {
59
58
  }
60
59
  return ("string" === r ? String : Number)(t);
61
60
  }
62
-
63
61
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
64
62
 
65
63
 
66
64
  function toPropertyKey(t) {
67
65
  var i = toPrimitive(t, "string");
68
- return "symbol" == _typeof(i) ? i : i + "";
66
+ return "symbol" == _typeof(i) ? i : String(i);
69
67
  }
70
-
71
68
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
72
69
 
73
- function _defineProperty(e, r, t) {
74
- return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
75
- value: t,
76
- enumerable: !0,
77
- configurable: !0,
78
- writable: !0
79
- }) : e[r] = t, e;
70
+ function _defineProperty(obj, key, value) {
71
+ key = toPropertyKey(key);
72
+ if (key in obj) {
73
+ Object.defineProperty(obj, key, {
74
+ value: value,
75
+ enumerable: true,
76
+ configurable: true,
77
+ writable: true
78
+ });
79
+ } else {
80
+ obj[key] = value;
81
+ }
82
+ return obj;
80
83
  }
81
-
82
84
  ;// CONCATENATED MODULE: external "vue"
83
85
  var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
84
86
  var external_vue_y = x => () => x
@@ -47,7 +47,6 @@ function _typeof(o) {
47
47
  return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
48
48
  }, _typeof(o);
49
49
  }
50
-
51
50
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
52
51
 
53
52
  function toPrimitive(t, r) {
@@ -60,26 +59,29 @@ function toPrimitive(t, r) {
60
59
  }
61
60
  return ("string" === r ? String : Number)(t);
62
61
  }
63
-
64
62
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
65
63
 
66
64
 
67
65
  function toPropertyKey(t) {
68
66
  var i = toPrimitive(t, "string");
69
- return "symbol" == _typeof(i) ? i : i + "";
67
+ return "symbol" == _typeof(i) ? i : String(i);
70
68
  }
71
-
72
69
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
73
70
 
74
- function _defineProperty(e, r, t) {
75
- return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
76
- value: t,
77
- enumerable: !0,
78
- configurable: !0,
79
- writable: !0
80
- }) : e[r] = t, e;
71
+ function _defineProperty(obj, key, value) {
72
+ key = toPropertyKey(key);
73
+ if (key in obj) {
74
+ Object.defineProperty(obj, key, {
75
+ value: value,
76
+ enumerable: true,
77
+ configurable: true,
78
+ writable: true
79
+ });
80
+ } else {
81
+ obj[key] = value;
82
+ }
83
+ return obj;
81
84
  }
82
-
83
85
  ;// CONCATENATED MODULE: external "vue"
84
86
  var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
85
87
  var external_vue_y = x => () => x
@@ -281,11 +283,11 @@ const icon_namespaceObject = icon_x({ ["AngleLeft"]: () => __WEBPACK_EXTERNAL_MO
281
283
  }
282
284
  resizingCallback(realValue);
283
285
  };
284
- var _handleMouseUp = function handleMouseUp() {
286
+ var handleMouseUp = function handleMouseUp() {
285
287
  resizeProxyRef.value.style.visibility = 'hidden';
286
288
  resizeMaskRef.value.style.display = 'none';
287
289
  document.removeEventListener('mousemove', handleMouseMove);
288
- document.removeEventListener('mouseup', _handleMouseUp);
290
+ document.removeEventListener('mouseup', handleMouseUp);
289
291
  document.onselectstart = null;
290
292
  document.ondragstart = null;
291
293
  (0,external_vue_namespaceObject.nextTick)(function () {
@@ -298,7 +300,7 @@ const icon_namespaceObject = icon_x({ ["AngleLeft"]: () => __WEBPACK_EXTERNAL_MO
298
300
  asideRef.value.style[cssPropKey.value] = resizeProxyRef.value.style[placement.value];
299
301
  };
300
302
  document.addEventListener('mousemove', handleMouseMove);
301
- document.addEventListener('mouseup', _handleMouseUp);
303
+ document.addEventListener('mouseup', handleMouseUp);
302
304
  };
303
305
  var setupAutoMinimize = function setupAutoMinimize() {
304
306
  if (!autoMinimize.value) {
@@ -333,12 +335,12 @@ const icon_namespaceObject = icon_x({ ["AngleLeft"]: () => __WEBPACK_EXTERNAL_MO
333
335
  }
334
336
  };
335
337
  var setupAsideListener = function setupAsideListener(visible) {
336
- var _removeClass = function removeClass() {
338
+ var removeClass = function removeClass() {
337
339
  asideContentVisible.value = visible;
338
340
  asideRef.value.style.transition = '';
339
- asideRef.value.removeEventListener('transitionend', _removeClass);
341
+ asideRef.value.removeEventListener('transitionend', removeClass);
340
342
  };
341
- asideRef.value.addEventListener('transitionend', _removeClass);
343
+ asideRef.value.addEventListener('transitionend', removeClass);
342
344
  asideRef.value.style.transition = "".concat(cssPropKey.value, " cubic-bezier(0.4, 0, 0.2, 1) .3s");
343
345
  };
344
346
  // 监听折叠状态变化
@@ -31,10 +31,11 @@ __webpack_require__.d(__webpack_exports__, {
31
31
  });
32
32
 
33
33
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/classCallCheck.js
34
- function _classCallCheck(a, n) {
35
- if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
34
+ function _classCallCheck(instance, Constructor) {
35
+ if (!(instance instanceof Constructor)) {
36
+ throw new TypeError("Cannot call a class as a function");
37
+ }
36
38
  }
37
-
38
39
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
39
40
  function _typeof(o) {
40
41
  "@babel/helpers - typeof";
@@ -45,7 +46,6 @@ function _typeof(o) {
45
46
  return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
46
47
  }, _typeof(o);
47
48
  }
48
-
49
49
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
50
50
 
51
51
  function toPrimitive(t, r) {
@@ -58,40 +58,48 @@ function toPrimitive(t, r) {
58
58
  }
59
59
  return ("string" === r ? String : Number)(t);
60
60
  }
61
-
62
61
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
63
62
 
64
63
 
65
64
  function toPropertyKey(t) {
66
65
  var i = toPrimitive(t, "string");
67
- return "symbol" == _typeof(i) ? i : i + "";
66
+ return "symbol" == _typeof(i) ? i : String(i);
68
67
  }
69
-
70
68
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/createClass.js
71
69
 
72
- function _defineProperties(e, r) {
73
- for (var t = 0; t < r.length; t++) {
74
- var o = r[t];
75
- o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o);
70
+ function _defineProperties(target, props) {
71
+ for (var i = 0; i < props.length; i++) {
72
+ var descriptor = props[i];
73
+ descriptor.enumerable = descriptor.enumerable || false;
74
+ descriptor.configurable = true;
75
+ if ("value" in descriptor) descriptor.writable = true;
76
+ Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);
76
77
  }
77
78
  }
78
- function _createClass(e, r, t) {
79
- return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
80
- writable: !1
81
- }), e;
79
+ function _createClass(Constructor, protoProps, staticProps) {
80
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
81
+ if (staticProps) _defineProperties(Constructor, staticProps);
82
+ Object.defineProperty(Constructor, "prototype", {
83
+ writable: false
84
+ });
85
+ return Constructor;
82
86
  }
83
-
84
87
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
85
88
 
86
- function _defineProperty(e, r, t) {
87
- return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
88
- value: t,
89
- enumerable: !0,
90
- configurable: !0,
91
- writable: !0
92
- }) : e[r] = t, e;
89
+ function _defineProperty(obj, key, value) {
90
+ key = toPropertyKey(key);
91
+ if (key in obj) {
92
+ Object.defineProperty(obj, key, {
93
+ value: value,
94
+ enumerable: true,
95
+ configurable: true,
96
+ writable: true
97
+ });
98
+ } else {
99
+ obj[key] = value;
100
+ }
101
+ return obj;
93
102
  }
94
-
95
103
  ;// CONCATENATED MODULE: ../../packages/scrollbar/src/helper/dom.ts
96
104
  /*
97
105
  * Tencent is pleased to support the open source community by making
@@ -345,10 +353,9 @@ function updateCss(element, i) {
345
353
  });
346
354
  }
347
355
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
348
- function _arrayWithHoles(r) {
349
- if (Array.isArray(r)) return r;
356
+ function _arrayWithHoles(arr) {
357
+ if (Array.isArray(arr)) return arr;
350
358
  }
351
-
352
359
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
353
360
  function _iterableToArrayLimit(r, l) {
354
361
  var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
@@ -377,38 +384,34 @@ function _iterableToArrayLimit(r, l) {
377
384
  return a;
378
385
  }
379
386
  }
380
-
381
387
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
382
- function _arrayLikeToArray(r, a) {
383
- (null == a || a > r.length) && (a = r.length);
384
- for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
385
- return n;
388
+ function _arrayLikeToArray(arr, len) {
389
+ if (len == null || len > arr.length) len = arr.length;
390
+ for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
391
+ return arr2;
386
392
  }
387
-
388
393
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
389
394
 
390
- function _unsupportedIterableToArray(r, a) {
391
- if (r) {
392
- if ("string" == typeof r) return _arrayLikeToArray(r, a);
393
- var t = {}.toString.call(r).slice(8, -1);
394
- 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;
395
- }
395
+ function _unsupportedIterableToArray(o, minLen) {
396
+ if (!o) return;
397
+ if (typeof o === "string") return _arrayLikeToArray(o, minLen);
398
+ var n = Object.prototype.toString.call(o).slice(8, -1);
399
+ if (n === "Object" && o.constructor) n = o.constructor.name;
400
+ if (n === "Map" || n === "Set") return Array.from(o);
401
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
396
402
  }
397
-
398
403
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
399
404
  function _nonIterableRest() {
400
405
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
401
406
  }
402
-
403
407
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/slicedToArray.js
404
408
 
405
409
 
406
410
 
407
411
 
408
- function _slicedToArray(r, e) {
409
- return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
412
+ function _slicedToArray(arr, i) {
413
+ return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
410
414
  }
411
-
412
415
  ;// CONCATENATED MODULE: ../../packages/scrollbar/src/helper/class-names.ts
413
416
 
414
417
 
@@ -1088,7 +1091,7 @@ var EventElement = /*#__PURE__*/function () {
1088
1091
  this.element = element;
1089
1092
  this.handlers = {};
1090
1093
  }
1091
- return _createClass(EventElement, [{
1094
+ _createClass(EventElement, [{
1092
1095
  key: "bind",
1093
1096
  value: function bind(eventName, handler) {
1094
1097
  if (typeof this.handlers[eventName] === 'undefined') {
@@ -1125,13 +1128,14 @@ var EventElement = /*#__PURE__*/function () {
1125
1128
  });
1126
1129
  }
1127
1130
  }]);
1131
+ return EventElement;
1128
1132
  }();
1129
1133
  var EventManager = /*#__PURE__*/function () {
1130
1134
  function EventManager() {
1131
1135
  _classCallCheck(this, EventManager);
1132
1136
  this.eventElements = [];
1133
1137
  }
1134
- return _createClass(EventManager, [{
1138
+ _createClass(EventManager, [{
1135
1139
  key: "eventElement",
1136
1140
  value: function eventElement(element) {
1137
1141
  var ee = this.eventElements.filter(function (ee) {
@@ -1170,13 +1174,14 @@ var EventManager = /*#__PURE__*/function () {
1170
1174
  key: "once",
1171
1175
  value: function once(element, eventName, handler) {
1172
1176
  var ee = this.eventElement(element);
1173
- var _onceHandler = function onceHandler(evt) {
1174
- ee.unbind(eventName, _onceHandler);
1177
+ var onceHandler = function onceHandler(evt) {
1178
+ ee.unbind(eventName, onceHandler);
1175
1179
  handler(evt);
1176
1180
  };
1177
- ee.bind(eventName, _onceHandler);
1181
+ ee.bind(eventName, onceHandler);
1178
1182
  }
1179
1183
  }]);
1184
+ return EventManager;
1180
1185
  }();
1181
1186
 
1182
1187
  ;// CONCATENATED MODULE: ../../packages/scrollbar/src/process-scroll-diff.ts
@@ -1397,7 +1402,7 @@ var VirtualElement = /*#__PURE__*/function () {
1397
1402
  }
1398
1403
  });
1399
1404
  }
1400
- return _createClass(VirtualElement, [{
1405
+ _createClass(VirtualElement, [{
1401
1406
  key: "handleScrollChanged",
1402
1407
  value: function handleScrollChanged(prop) {
1403
1408
  if (['scrollLeft', 'scrollTop'].includes(prop)) {
@@ -1421,6 +1426,7 @@ var VirtualElement = /*#__PURE__*/function () {
1421
1426
  this.delegateElement.scrollTo(x, y);
1422
1427
  }
1423
1428
  }]);
1429
+ return VirtualElement;
1424
1430
  }();
1425
1431
  // 自定义滚动条类
1426
1432
  var BkScrollbar = /*#__PURE__*/function () {
@@ -1549,7 +1555,7 @@ var BkScrollbar = /*#__PURE__*/function () {
1549
1555
  /**
1550
1556
  * 更新滚动条
1551
1557
  */
1552
- return _createClass(BkScrollbar, [{
1558
+ _createClass(BkScrollbar, [{
1553
1559
  key: "update",
1554
1560
  value: function update(virtaulElement) {
1555
1561
  if (!this.isAlive) {
@@ -1646,6 +1652,7 @@ var BkScrollbar = /*#__PURE__*/function () {
1646
1652
  }).join(' ');
1647
1653
  }
1648
1654
  }]);
1655
+ return BkScrollbar;
1649
1656
  }();
1650
1657
 
1651
1658
  var __webpack_exports__IScrollbarSize = __webpack_exports__.IScrollbarSize;