bk-magic-vue 2.4.1-beta.3 → 2.4.4

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 (49) hide show
  1. package/dist/bk-magic-vue.css +1 -1
  2. package/dist/bk-magic-vue.js +45 -24
  3. package/dist/bk-magic-vue.min.css.map +1 -1
  4. package/dist/bk-magic-vue.min.js +1 -1
  5. package/dist/bk-magic-vue.min.js.gz +0 -0
  6. package/dist/bk-magic-vue.min.js.map +1 -1
  7. package/lib/back-top.js +1 -1
  8. package/lib/badge.js +5 -11
  9. package/lib/big-tree.js +8 -11
  10. package/lib/cascade.js +11 -1
  11. package/lib/checkbox.js +8 -1
  12. package/lib/date-picker.js +7 -13
  13. package/lib/directives/overflow-tips.js +9 -12
  14. package/lib/directives/tooltips.js +8 -11
  15. package/lib/form-item.js +8 -11
  16. package/lib/form.js +5 -11
  17. package/lib/image.js +5 -12
  18. package/lib/info-box.js +5 -11
  19. package/lib/loading.js +14 -14
  20. package/lib/locale/index.js +5 -11
  21. package/lib/message.js +6 -12
  22. package/lib/notify.js +5 -11
  23. package/lib/option-group.js +8 -1
  24. package/lib/pagination.js +24 -14
  25. package/lib/popconfirm.js +3 -0
  26. package/lib/popover.js +3 -0
  27. package/lib/process.js +5 -11
  28. package/lib/search-select.js +3 -0
  29. package/lib/select.js +17 -14
  30. package/lib/slider.js +8 -11
  31. package/lib/tab.js +1 -1
  32. package/lib/table-column.js +5 -11
  33. package/lib/table-setting-content.js +8 -1
  34. package/lib/table.js +41 -19
  35. package/lib/tag-input.js +17 -14
  36. package/lib/time-picker.js +7 -13
  37. package/lib/timeline.js +5 -11
  38. package/lib/transfer.js +9 -12
  39. package/lib/tree.js +5 -11
  40. package/lib/ui/affix.css +1 -1
  41. package/lib/ui/affix.min.css.map +1 -1
  42. package/lib/ui/bk-magic-vue.css +1 -1
  43. package/lib/ui/bk-magic-vue.min.css.map +1 -1
  44. package/lib/upload.js +9 -12
  45. package/lib/utils/deepmerge.js +5 -11
  46. package/lib/utils/pinyin.js +5 -11
  47. package/lib/utils/tippy.js +3 -0
  48. package/lib/version-detail.js +18 -15
  49. package/package.json +1 -1
@@ -15749,7 +15749,7 @@ th.bk-table-column-selection .cell, th.bk-table-column-expand .cell, td.bk-table
15749
15749
  background-color:#dcdee5;
15750
15750
  }
15751
15751
  .bk-affix{
15752
- position:fixed
15752
+ position:fixed
15753
15753
  }
15754
15754
  .bk-back-to-top{
15755
15755
  position:fixed;
@@ -10,17 +10,11 @@
10
10
  function _typeof(obj) {
11
11
  "@babel/helpers - typeof";
12
12
 
13
- if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
14
- _typeof = function (obj) {
15
- return typeof obj;
16
- };
17
- } else {
18
- _typeof = function (obj) {
19
- return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
20
- };
21
- }
22
-
23
- return _typeof(obj);
13
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
14
+ return typeof obj;
15
+ } : function (obj) {
16
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
17
+ }, _typeof(obj);
24
18
  }
25
19
 
26
20
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
@@ -78,6 +72,9 @@
78
72
  function _createClass(Constructor, protoProps, staticProps) {
79
73
  if (protoProps) _defineProperties(Constructor.prototype, protoProps);
80
74
  if (staticProps) _defineProperties(Constructor, staticProps);
75
+ Object.defineProperty(Constructor, "prototype", {
76
+ writable: false
77
+ });
81
78
  return Constructor;
82
79
  }
83
80
 
@@ -738,7 +735,7 @@
738
735
  },
739
736
  computed: {
740
737
  positionStyle: function positionStyle() {
741
- return "right: ".concat(this.right, "px;\n bottom: ").concat(this.bottom, "px;\n z-index: ").concat(this.zIndex);
738
+ return "right: ".concat(this.right, "px; bottom: ").concat(this.bottom, "px; z-index: ").concat(this.zIndex);
742
739
  }
743
740
  },
744
741
  watch: {
@@ -2744,7 +2741,14 @@
2744
2741
  var script$8 = {
2745
2742
  name: 'bk-checkbox',
2746
2743
  mixins: [emitter],
2747
- inject: ['handleRemoveItem', 'handleAddItem'],
2744
+ inject: {
2745
+ handleRemoveItem: {
2746
+ default: null
2747
+ },
2748
+ handleAddItem: {
2749
+ default: null
2750
+ }
2751
+ },
2748
2752
  props: {
2749
2753
  value: {
2750
2754
  type: [String, Number, Boolean],
@@ -8358,7 +8362,7 @@
8358
8362
  }, [_c('path', {
8359
8363
  attrs: {
8360
8364
  "fill": "#c4c6cc",
8361
- "d": "M512,128c51.9,0,102.2,10.1,149.5,30.2c45.7,19.3,86.8,47,122.1,82.3s63,76.4,82.3,122.1\n c20,47.3,30.2,97.6,30.2,149.5S886,614.3,865.9,661.6c-19.3,45.7-47,86.8-82.3,122.1s-76.4,63-122.1,82.3\n c-47.3,20-97.6,30.2-149.5,30.2S409.8,886.1,362.5,866c-45.7-19.3-86.8-47-122.1-82.3s-63-76.4-82.3-122.1\n c-20-47.3-30.2-97.6-30.2-149.5s10.1-102.2,30.2-149.5c19.3-45.7,47-86.8,82.3-122.1s76.4-63,122.1-82.3\n C409.8,138.1,460.1,128,512,128 M512,64C264.6,64,64,264.6,64,512s200.6,448,448,448s448-200.6,448-448S759.4,64,512,64L512,64z"
8365
+ "d": "M512,128c51.9,0,102.2,10.1,149.5,30.2c45.7,19.3,86.8,47,122.1,82.3s63,76.4,82.3,122.1\n c20,47.3,30.2,97.6,30.2,149.5S886,614.3,865.9,661.6c-19.3,45.7-47,86.8-82.3,122.1s-76.4,63-122.1,82.3\n c-47.3,20-97.6,30.2-149.5,30.2S409.8,886.1,362.5,866c-45.7-19.3-86.8-47-122.1-82.3s-63-76.4-82.3-122.1\n c-20-47.3-30.2-97.6-30.2-149.5s10.1-102.2,30.2-149.5c19.3-45.7,47-86.8,82.3-122.1s76.4-63,122.1-82.3\n C409.8,138.1,460.1,128,512,128 M512,64C264.6,64,64,264.6,64,512s200.6,448,448,448s448-200.6,448-448S759.4,64,512,64L512,64z"
8362
8366
  }
8363
8367
  }), _c('polygon', {
8364
8368
  attrs: {
@@ -8379,7 +8383,7 @@
8379
8383
  }, [_c('path', {
8380
8384
  attrs: {
8381
8385
  "fill": "#c4c6cc",
8382
- "d": "M896,128h-96v64h64v112H160V192h64v-64h-96c-17.7,0-32,14.3-32,32v736c0,17.7,14.3,32,32,32h768\n c17.7,0,32-14.3,32-32V160C928,142.3,913.7,128,896,128z M160,864V368h704v496H160z"
8386
+ "d": "M896,128h-96v64h64v112H160V192h64v-64h-96c-17.7,0-32,14.3-32,32v736c0,17.7,14.3,32,32,32h768\n c17.7,0,32-14.3,32-32V160C928,142.3,913.7,128,896,128z M160,864V368h704v496H160z"
8383
8387
  }
8384
8388
  }), _c('rect', {
8385
8389
  attrs: {
@@ -10255,7 +10259,7 @@
10255
10259
  var createDom = function createDom(el, css) {
10256
10260
  var dom = document.createElement('div');
10257
10261
  var width = _parseFloat$2(css['width']) ? Math.ceil(_parseFloat$2(css['width'])) + 'px' : css['width'];
10258
- dom.style.cssText = "\n width: ".concat(width, ";\n line-height: ").concat(css['line-height'], ";\n font-size: ").concat(css['font-size'], ";\n word-break: ").concat(css['word-break'], ";\n padding: ").concat(css['padding'], ";\n ");
10262
+ dom.style.cssText = "\n width: ".concat(width, ";\n line-height: ").concat(css['line-height'], ";\n font-size: ").concat(css['font-size'], ";\n word-break: ").concat(css['word-break'], ";\n padding: ").concat(css['padding'], ";\n ");
10259
10263
  dom.textContent = el.textContent;
10260
10264
  return dom;
10261
10265
  };
@@ -30070,6 +30074,12 @@
30070
30074
  return;
30071
30075
  }
30072
30076
  return typeof this.zIndex === 'number' && !isNan$1(this.zIndex);
30077
+ },
30078
+ renderZIndex: {
30079
+ get: function get() {
30080
+ return this.zIndex;
30081
+ },
30082
+ set: function set() {}
30073
30083
  }
30074
30084
  },
30075
30085
  watch: {
@@ -30089,7 +30099,7 @@
30089
30099
  },
30090
30100
  isShow: function isShow(newVal) {
30091
30101
  if (newVal && !this.hasZIndexOption) {
30092
- this.zIndex = zIndexManager.nextZIndex();
30102
+ this.renderZIndex = zIndexManager.nextZIndex();
30093
30103
  }
30094
30104
  },
30095
30105
  isLoading: {
@@ -30164,7 +30174,7 @@
30164
30174
  }],
30165
30175
  staticClass: "bk-loading-wrapper",
30166
30176
  style: {
30167
- zIndex: _vm.zIndex,
30177
+ renderZIndex: _vm.renderZIndex,
30168
30178
  backgroundColor: _vm.bgColor
30169
30179
  }
30170
30180
  }, [_c('div', {
@@ -30216,7 +30226,7 @@
30216
30226
  class: _vm.extCls,
30217
30227
  style: {
30218
30228
  position: _vm.type,
30219
- zIndex: _vm.zIndex,
30229
+ renderZIndex: _vm.renderZIndex,
30220
30230
  backgroundColor: _vm.bgColor
30221
30231
  }
30222
30232
  }, [_c('div', {
@@ -33548,6 +33558,12 @@
33548
33558
  },
33549
33559
  mixins: [locale.mixin],
33550
33560
  props: {
33561
+ popoverOptions: {
33562
+ type: Object,
33563
+ default: function _default() {
33564
+ return {};
33565
+ }
33566
+ },
33551
33567
  type: {
33552
33568
  type: String,
33553
33569
  default: 'default',
@@ -33774,6 +33790,7 @@
33774
33790
  },
33775
33791
  attrs: {
33776
33792
  "placeholder": "页数",
33793
+ "popover-options": _vm.popoverOptions,
33777
33794
  "clearable": false,
33778
33795
  "size": _vm.small ? 'small' : ''
33779
33796
  },
@@ -37371,7 +37388,7 @@
37371
37388
  case 21:
37372
37389
  _context2.prev = 21;
37373
37390
  _context2.t0 = _context2["catch"](14);
37374
- console.log('Previous tab toggle canceled');
37391
+ console.warn('Previous tab toggle canceled');
37375
37392
  case 24:
37376
37393
  _context2.prev = 24;
37377
37394
  _this3.clearToggleStatus();
@@ -39369,11 +39386,9 @@
39369
39386
  if (lastColumn) {
39370
39387
  if (!this.scrollX && flattenColumns.length) {
39371
39388
  var deltaWidth = bodyWidth - bodyMinWidth;
39372
- console.log('from print table last column < ', lastColumn);
39373
39389
  lastColumn.realWidth = lastColumn.realWidth + deltaWidth;
39374
39390
  this.bodyWidth = bodyWidth;
39375
39391
  } else {
39376
- console.log('from print table last column > ', lastColumn);
39377
39392
  if (lastColumn) {
39378
39393
  var lastRealWidth = typeof lastColumn.width !== 'number' ? lastColumn.minWidth : lastColumn.width;
39379
39394
  var preLastColumnBodyMinWidth = bodyMinWidth - lastColumn.realWidth;
@@ -41453,6 +41468,12 @@
41453
41468
  isLoading: false
41454
41469
  };
41455
41470
  }
41471
+ },
41472
+ popoverOptions: {
41473
+ type: Object,
41474
+ default: function _default() {
41475
+ return {};
41476
+ }
41456
41477
  }
41457
41478
  },
41458
41479
  data: function data() {
@@ -42118,7 +42139,8 @@
42118
42139
  "align": "right",
42119
42140
  "show-total-count": _vm.showPaginationInfo,
42120
42141
  "show-selection-count": _vm.showSelectionCount,
42121
- "selection-count": _vm.store.states.selection.length
42142
+ "selection-count": _vm.store.states.selection.length,
42143
+ "popover-options": _vm.popoverOptions
42122
42144
  },
42123
42145
  on: {
42124
42146
  "change": _vm.handlePageChange,
@@ -54477,7 +54499,6 @@
54477
54499
  bkImageViewer: __vue_component__$1w
54478
54500
  },
54479
54501
  mixins: [locale.mixin],
54480
- inheritAttrs: false,
54481
54502
  props: {
54482
54503
  src: String,
54483
54504
  fallback: String,