bk-magic-vue 2.4.1-beta.2 → 2.4.3

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 (60) hide show
  1. package/dist/bk-magic-vue.css +34 -17
  2. package/dist/bk-magic-vue.js +184 -37
  3. package/dist/bk-magic-vue.min.css +1 -1
  4. package/dist/bk-magic-vue.min.css.gz +0 -0
  5. package/dist/bk-magic-vue.min.css.map +1 -1
  6. package/dist/bk-magic-vue.min.js +1 -1
  7. package/dist/bk-magic-vue.min.js.gz +0 -0
  8. package/dist/bk-magic-vue.min.js.map +1 -1
  9. package/lib/back-top.js +1 -1
  10. package/lib/badge.js +5 -11
  11. package/lib/big-tree.js +8 -11
  12. package/lib/cascade.js +46 -2
  13. package/lib/checkbox-group.js +16 -9
  14. package/lib/checkbox.js +16 -1
  15. package/lib/date-picker.js +7 -13
  16. package/lib/directives/overflow-tips.js +9 -12
  17. package/lib/directives/tooltips.js +8 -11
  18. package/lib/form-item.js +8 -11
  19. package/lib/form.js +5 -11
  20. package/lib/image-viewer.js +67 -2
  21. package/lib/image.js +78 -15
  22. package/lib/info-box.js +5 -11
  23. package/lib/loading.js +11 -14
  24. package/lib/locale/index.js +5 -11
  25. package/lib/locale/lang/en-US.js +10 -0
  26. package/lib/locale/lang/zh-CN.js +8 -0
  27. package/lib/message.js +6 -12
  28. package/lib/notify.js +5 -11
  29. package/lib/option-group.js +16 -1
  30. package/lib/pagination.js +21 -14
  31. package/lib/popconfirm.js +3 -0
  32. package/lib/popover.js +3 -0
  33. package/lib/process.js +5 -11
  34. package/lib/search-select.js +3 -0
  35. package/lib/select.js +14 -14
  36. package/lib/slider.js +8 -11
  37. package/lib/tab.js +1 -1
  38. package/lib/table-column.js +5 -11
  39. package/lib/table-setting-content.js +32 -10
  40. package/lib/table.js +62 -28
  41. package/lib/tag-input.js +14 -14
  42. package/lib/time-picker.js +7 -13
  43. package/lib/timeline.js +5 -11
  44. package/lib/transfer.js +9 -12
  45. package/lib/tree.js +5 -11
  46. package/lib/ui/affix.css +1 -1
  47. package/lib/ui/affix.min.css.map +1 -1
  48. package/lib/ui/bk-magic-vue.css +34 -17
  49. package/lib/ui/bk-magic-vue.min.css +1 -1
  50. package/lib/ui/bk-magic-vue.min.css.gz +0 -0
  51. package/lib/ui/bk-magic-vue.min.css.map +1 -1
  52. package/lib/ui/image-viewer.css +38 -17
  53. package/lib/ui/image-viewer.min.css +1 -1
  54. package/lib/ui/image-viewer.min.css.map +1 -1
  55. package/lib/upload.js +9 -12
  56. package/lib/utils/deepmerge.js +5 -11
  57. package/lib/utils/pinyin.js +5 -11
  58. package/lib/utils/tippy.js +3 -0
  59. package/lib/version-detail.js +15 -15
  60. package/package.json +1 -1
@@ -15035,6 +15035,13 @@ th.bk-table-column-selection .cell, th.bk-table-column-expand .cell, td.bk-table
15035
15035
  -ms-flex-direction:column;
15036
15036
  flex-direction:column;
15037
15037
  }
15038
+ .bk-image-viewer-mask{
15039
+ position:absolute;
15040
+ top:0;
15041
+ right:0;
15042
+ bottom:0;
15043
+ left:0;
15044
+ }
15038
15045
  .bk-image-viewer-header{
15039
15046
  position:absolute;
15040
15047
  top:0;
@@ -15051,9 +15058,7 @@ th.bk-table-column-selection .cell, th.bk-table-column-expand .cell, td.bk-table
15051
15058
  -webkit-box-align:center;
15052
15059
  -ms-flex-align:center;
15053
15060
  align-items:center;
15054
- padding:0 13px 0 25px;
15055
- background:rgba(0, 0, 0, .7);
15056
- color:#63656e;
15061
+ color:#c4c6cc;
15057
15062
  }
15058
15063
  .bk-image-viewer-header > div{
15059
15064
  -webkit-box-flex:1;
@@ -15062,6 +15067,8 @@ th.bk-table-column-selection .cell, th.bk-table-column-expand .cell, td.bk-table
15062
15067
  overflow:hidden;
15063
15068
  white-space:nowrap;
15064
15069
  text-overflow:ellipsis;
15070
+ font-size:14px;
15071
+ padding:0 25px;
15065
15072
  }
15066
15073
  .bk-image-viewer-header .quit-box{
15067
15074
  display:-webkit-box;
@@ -15074,8 +15081,6 @@ th.bk-table-column-selection .cell, th.bk-table-column-expand .cell, td.bk-table
15074
15081
  -ms-flex-pack:end;
15075
15082
  justify-content:flex-end;
15076
15083
  height:100%;
15077
- }
15078
- .bk-image-viewer-header .quit-tips{
15079
15084
  color:#979ba5;
15080
15085
  }
15081
15086
  .bk-image-viewer-btn{
@@ -15094,18 +15099,23 @@ th.bk-table-column-selection .cell, th.bk-table-column-expand .cell, td.bk-table
15094
15099
  opacity:.8;
15095
15100
  -webkit-box-sizing:border-box;
15096
15101
  box-sizing:border-box;
15097
- color:#fff;
15102
+ background-color:rgba(0, 0, 0, .3);
15103
+ color:#DCDEE5;
15098
15104
  -webkit-user-select:none;
15099
15105
  -moz-user-select:none;
15100
15106
  -ms-user-select:none;
15101
15107
  user-select:none
15102
15108
  }
15109
+ .bk-image-viewer-btn:hover{
15110
+ background-color:rgba(0, 0, 0, .4);
15111
+ color:#63656e;
15112
+ }
15103
15113
  .bk-image-viewer-close{
15104
- width:40px;
15105
- height:40px;
15106
- line-height:38px;
15114
+ width:80px;
15115
+ height:80px;
15116
+ line-height:80px;
15107
15117
  text-align:center;
15108
- font-size:32px;
15118
+ font-size:50px;
15109
15119
  color:#fff;
15110
15120
  cursor:pointer;
15111
15121
  }
@@ -15145,14 +15155,17 @@ th.bk-table-column-selection .cell, th.bk-table-column-expand .cell, td.bk-table
15145
15155
  padding:0 23px;
15146
15156
  background-color:rgba(0,0,0,0.4);
15147
15157
  border-color:#fff;
15148
- border-radius:22px;
15158
+ border-radius:22px
15149
15159
  }
15160
+ .bk-image-viewer-actions:hover{
15161
+ background:rgba(0,0,0,.5);
15162
+ }
15150
15163
  .bk-image-viewer-actions-inner{
15151
15164
  width:100%;
15152
15165
  height:100%;
15153
15166
  text-align:justify;
15154
15167
  font-size:23px;
15155
- color:#fff;
15168
+ color:#c4c6cc;
15156
15169
  display:-webkit-box;
15157
15170
  display:-ms-flexbox;
15158
15171
  display:flex;
@@ -15161,17 +15174,21 @@ th.bk-table-column-selection .cell, th.bk-table-column-expand .cell, td.bk-table
15161
15174
  align-items:center;
15162
15175
  -ms-flex-pack:distribute;
15163
15176
  justify-content:space-around;
15164
- cursor:pointer;
15177
+
15165
15178
  }
15179
+ .bk-image-viewer-actions-inner .bk-icon{
15180
+ cursor:pointer
15181
+ }
15182
+ .bk-image-viewer-actions-inner .bk-icon:hover{
15183
+ color:#fff;
15184
+ }
15166
15185
  .bk-image-viewer-next, .bk-image-viewer-prev{
15167
15186
  top:50%;
15168
15187
  width:80px;
15169
15188
  height:80px;
15170
15189
  font-size:40px;
15171
- color:#fff;
15172
- background-color:rgba(0,0,0,0.4);
15173
- border-color:#fff;
15174
15190
  cursor:pointer;
15191
+ //background:rgb(76,76,76);
15175
15192
  }
15176
15193
  .bk-image-viewer-prev{
15177
15194
  -webkit-transform:translateY(-50%);
@@ -15732,7 +15749,7 @@ th.bk-table-column-selection .cell, th.bk-table-column-expand .cell, td.bk-table
15732
15749
  background-color:#dcdee5;
15733
15750
  }
15734
15751
  .bk-affix{
15735
- position:fixed
15752
+ position:fixed
15736
15753
  }
15737
15754
  .bk-back-to-top{
15738
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,6 +2741,14 @@
2744
2741
  var script$8 = {
2745
2742
  name: 'bk-checkbox',
2746
2743
  mixins: [emitter],
2744
+ inject: {
2745
+ handleRemoveItem: {
2746
+ default: null
2747
+ },
2748
+ handleAddItem: {
2749
+ default: null
2750
+ }
2751
+ },
2747
2752
  props: {
2748
2753
  value: {
2749
2754
  type: [String, Number, Boolean],
@@ -2823,9 +2828,16 @@
2823
2828
  }
2824
2829
  },
2825
2830
  created: function created() {
2826
- this.dispatch('bk-checkbox-group', 'checkbox-item-add', this);
2831
+ if (this.handleAddItem && typeof this.handleAddItem === 'function') {
2832
+ this.handleAddItem(this);
2833
+ }
2827
2834
  this.init();
2828
2835
  },
2836
+ destroyed: function destroyed() {
2837
+ if (this.handleRemoveItem && typeof this.handleRemoveItem === 'function') {
2838
+ this.handleRemoveItem(this);
2839
+ }
2840
+ },
2829
2841
  methods: {
2830
2842
  getValue: function getValue() {
2831
2843
  if (this.selected) {
@@ -2995,6 +3007,12 @@
2995
3007
 
2996
3008
  var script$9 = {
2997
3009
  name: 'bk-checkbox-group',
3010
+ provide: function provide() {
3011
+ return {
3012
+ handleAddItem: this.handleAddItem,
3013
+ handleRemoveItem: this.handleRemoveItem
3014
+ };
3015
+ },
2998
3016
  props: {
2999
3017
  value: {
3000
3018
  type: Array,
@@ -3021,16 +3039,17 @@
3021
3039
  this.localValue = _toConsumableArray(_value);
3022
3040
  }
3023
3041
  },
3024
- created: function created() {
3025
- var _this = this;
3026
- this.$on('checkbox-item-add', function (item) {
3027
- if (item) {
3028
- _this.checkboxItems.push(item);
3029
- }
3030
- return false;
3031
- });
3032
- },
3033
3042
  methods: {
3043
+ handleAddItem: function handleAddItem(item) {
3044
+ if (!item || this.checkboxItems.includes(item)) return;
3045
+ this.checkboxItems.push(item);
3046
+ },
3047
+ handleRemoveItem: function handleRemoveItem(item) {
3048
+ var index = this.checkboxItems.indexOf(item);
3049
+ if (index > -1) {
3050
+ this.checkboxItems.splice(index, 1);
3051
+ }
3052
+ },
3034
3053
  handleChange: function handleChange(checked, value) {
3035
3054
  var oldValue = _toConsumableArray(this.localValue);
3036
3055
  var localValue = [];
@@ -8343,7 +8362,7 @@
8343
8362
  }, [_c('path', {
8344
8363
  attrs: {
8345
8364
  "fill": "#c4c6cc",
8346
- "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"
8347
8366
  }
8348
8367
  }), _c('polygon', {
8349
8368
  attrs: {
@@ -8364,7 +8383,7 @@
8364
8383
  }, [_c('path', {
8365
8384
  attrs: {
8366
8385
  "fill": "#c4c6cc",
8367
- "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"
8368
8387
  }
8369
8388
  }), _c('rect', {
8370
8389
  attrs: {
@@ -8906,6 +8925,16 @@
8906
8925
  message: {
8907
8926
  copy: 'copy',
8908
8927
  copied: 'copied'
8928
+ },
8929
+ image: {
8930
+ zoomIn: 'zoom in',
8931
+ zoomOut: 'zoom out',
8932
+ rotateLeft: 'anticlockwise',
8933
+ rotateRight: 'clockwise rotation',
8934
+ fullScreen: 'full screen',
8935
+ original: 'original size',
8936
+ prev: 'prev',
8937
+ next: 'next'
8909
8938
  }
8910
8939
  }
8911
8940
  };
@@ -9051,6 +9080,14 @@
9051
9080
  message: {
9052
9081
  copy: '复制',
9053
9082
  copied: '已复制'
9083
+ },
9084
+ image: {
9085
+ zoomIn: '放大',
9086
+ zoomOut: '缩小',
9087
+ rotateLeft: '向左旋转',
9088
+ rotateRight: '向右旋转',
9089
+ fullScreen: '适应屏幕',
9090
+ original: '快速回到 1:1'
9054
9091
  }
9055
9092
  }
9056
9093
  };
@@ -10222,7 +10259,7 @@
10222
10259
  var createDom = function createDom(el, css) {
10223
10260
  var dom = document.createElement('div');
10224
10261
  var width = _parseFloat$2(css['width']) ? Math.ceil(_parseFloat$2(css['width'])) + 'px' : css['width'];
10225
- 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 ");
10226
10263
  dom.textContent = el.textContent;
10227
10264
  return dom;
10228
10265
  };
@@ -30037,6 +30074,9 @@
30037
30074
  return;
30038
30075
  }
30039
30076
  return typeof this.zIndex === 'number' && !isNan$1(this.zIndex);
30077
+ },
30078
+ renderZIndex: function renderZIndex() {
30079
+ return this.zIndex;
30040
30080
  }
30041
30081
  },
30042
30082
  watch: {
@@ -30056,7 +30096,7 @@
30056
30096
  },
30057
30097
  isShow: function isShow(newVal) {
30058
30098
  if (newVal && !this.hasZIndexOption) {
30059
- this.zIndex = zIndexManager.nextZIndex();
30099
+ this.renderZIndex = zIndexManager.nextZIndex();
30060
30100
  }
30061
30101
  },
30062
30102
  isLoading: {
@@ -30131,7 +30171,7 @@
30131
30171
  }],
30132
30172
  staticClass: "bk-loading-wrapper",
30133
30173
  style: {
30134
- zIndex: _vm.zIndex,
30174
+ renderZIndex: _vm.renderZIndex,
30135
30175
  backgroundColor: _vm.bgColor
30136
30176
  }
30137
30177
  }, [_c('div', {
@@ -30183,7 +30223,7 @@
30183
30223
  class: _vm.extCls,
30184
30224
  style: {
30185
30225
  position: _vm.type,
30186
- zIndex: _vm.zIndex,
30226
+ renderZIndex: _vm.renderZIndex,
30187
30227
  backgroundColor: _vm.bgColor
30188
30228
  }
30189
30229
  }, [_c('div', {
@@ -33515,6 +33555,12 @@
33515
33555
  },
33516
33556
  mixins: [locale.mixin],
33517
33557
  props: {
33558
+ popoverOptions: {
33559
+ type: Object,
33560
+ default: function _default() {
33561
+ return {};
33562
+ }
33563
+ },
33518
33564
  type: {
33519
33565
  type: String,
33520
33566
  default: 'default',
@@ -33741,6 +33787,7 @@
33741
33787
  },
33742
33788
  attrs: {
33743
33789
  "placeholder": "页数",
33790
+ "popover-options": _vm.popoverOptions,
33744
33791
  "clearable": false,
33745
33792
  "size": _vm.small ? 'small' : ''
33746
33793
  },
@@ -37338,7 +37385,7 @@
37338
37385
  case 21:
37339
37386
  _context2.prev = 21;
37340
37387
  _context2.t0 = _context2["catch"](14);
37341
- console.log('Previous tab toggle canceled');
37388
+ console.warn('Previous tab toggle canceled');
37342
37389
  case 24:
37343
37390
  _context2.prev = 24;
37344
37391
  _this3.clearToggleStatus();
@@ -39336,11 +39383,9 @@
39336
39383
  if (lastColumn) {
39337
39384
  if (!this.scrollX && flattenColumns.length) {
39338
39385
  var deltaWidth = bodyWidth - bodyMinWidth;
39339
- console.log('from print table last column < ', lastColumn);
39340
39386
  lastColumn.realWidth = lastColumn.realWidth + deltaWidth;
39341
39387
  this.bodyWidth = bodyWidth;
39342
39388
  } else {
39343
- console.log('from print table last column > ', lastColumn);
39344
39389
  if (lastColumn) {
39345
39390
  var lastRealWidth = typeof lastColumn.width !== 'number' ? lastColumn.minWidth : lastColumn.width;
39346
39391
  var preLastColumnBodyMinWidth = bodyMinWidth - lastColumn.realWidth;
@@ -41420,6 +41465,12 @@
41420
41465
  isLoading: false
41421
41466
  };
41422
41467
  }
41468
+ },
41469
+ popoverOptions: {
41470
+ type: Object,
41471
+ default: function _default() {
41472
+ return {};
41473
+ }
41423
41474
  }
41424
41475
  },
41425
41476
  data: function data() {
@@ -42085,7 +42136,8 @@
42085
42136
  "align": "right",
42086
42137
  "show-total-count": _vm.showPaginationInfo,
42087
42138
  "show-selection-count": _vm.showSelectionCount,
42088
- "selection-count": _vm.store.states.selection.length
42139
+ "selection-count": _vm.store.states.selection.length,
42140
+ "popover-options": _vm.popoverOptions
42089
42141
  },
42090
42142
  on: {
42091
42143
  "change": _vm.handlePageChange,
@@ -52414,7 +52466,9 @@
52414
52466
  class: {
52415
52467
  'bk-margin-left': _vm.multiple
52416
52468
  }
52417
- }, [_vm._v("\n " + _vm._s(_vm.item.name) + "\n "), _vm._t("prepend", null, {
52469
+ }, [_vm._t("option", null, {
52470
+ node: _vm.item
52471
+ }), _vm._t("prepend", null, {
52418
52472
  node: _vm.item
52419
52473
  })], 2)])])], 2), _vm.isRemote ? [_vm.item.isLoading ? _c('i', {
52420
52474
  staticClass: "bk-icon left-icon icon-loading bk-button-icon-loading bk-cascade-right"
@@ -52763,6 +52817,14 @@
52763
52817
  }
52764
52818
  },
52765
52819
  scopedSlots: _vm._u([{
52820
+ key: "option",
52821
+ fn: function fn(ref) {
52822
+ var node = ref.node;
52823
+ return [_vm._t("option", null, {
52824
+ node: node
52825
+ })];
52826
+ }
52827
+ }, {
52766
52828
  key: "prepend",
52767
52829
  fn: function fn(ref) {
52768
52830
  var node = ref.node;
@@ -52794,6 +52856,14 @@
52794
52856
  "updateSelectedList": _vm.updateSelectedList
52795
52857
  },
52796
52858
  scopedSlots: _vm._u([{
52859
+ key: "option",
52860
+ fn: function fn(ref) {
52861
+ var node = ref.node;
52862
+ return [_vm._t("option", null, {
52863
+ node: node
52864
+ })];
52865
+ }
52866
+ }, {
52797
52867
  key: "prepend",
52798
52868
  fn: function fn(ref) {
52799
52869
  var node = ref.node;
@@ -53687,6 +53757,14 @@
53687
53757
  "updateSelectedList": _vm.updateSelectedList
53688
53758
  },
53689
53759
  scopedSlots: _vm._u([{
53760
+ key: "option",
53761
+ fn: function fn(ref) {
53762
+ var node = ref.node;
53763
+ return [_vm._t("option", [_vm._v(_vm._s(node.name))], {
53764
+ node: node
53765
+ })];
53766
+ }
53767
+ }, {
53690
53768
  key: "prepend",
53691
53769
  fn: function fn(ref) {
53692
53770
  var node = ref.node;
@@ -53955,6 +54033,10 @@
53955
54033
  initialIndex: {
53956
54034
  type: Number,
53957
54035
  default: 0
54036
+ },
54037
+ maskClose: {
54038
+ type: Boolean,
54039
+ default: true
53958
54040
  }
53959
54041
  },
53960
54042
  data: function data() {
@@ -54195,7 +54277,14 @@
54195
54277
  attrs: {
54196
54278
  "tabindex": "-1"
54197
54279
  }
54198
- }, [_vm.isShowTitle && _vm.urlList.length ? _c('div', {
54280
+ }, [_c('div', {
54281
+ staticClass: "bk-image-viewer-mask",
54282
+ on: {
54283
+ "click": function click($event) {
54284
+ _vm.maskClose && _vm.hide();
54285
+ }
54286
+ }
54287
+ }), _vm.isShowTitle && _vm.urlList.length ? _c('div', {
54199
54288
  staticClass: "bk-image-viewer-header"
54200
54289
  }, [_c('div', [_vm._v(_vm._s(_vm.currentName))]), _c('div', {
54201
54290
  staticClass: "tc"
@@ -54235,6 +54324,15 @@
54235
54324
  }, [_c('div', {
54236
54325
  staticClass: "bk-image-viewer-actions-inner"
54237
54326
  }, [_c('i', {
54327
+ directives: [{
54328
+ name: "bk-tooltips",
54329
+ rawName: "v-bk-tooltips.top",
54330
+ value: _vm.t('bk.image.zoomOut'),
54331
+ expression: "t('bk.image.zoomOut')",
54332
+ modifiers: {
54333
+ "top": true
54334
+ }
54335
+ }],
54238
54336
  staticClass: "bk-icon icon-narrow-line",
54239
54337
  on: {
54240
54338
  "click": function click($event) {
@@ -54242,6 +54340,15 @@
54242
54340
  }
54243
54341
  }
54244
54342
  }), _c('i', {
54343
+ directives: [{
54344
+ name: "bk-tooltips",
54345
+ rawName: "v-bk-tooltips.top",
54346
+ value: _vm.t('bk.image.zoomIn'),
54347
+ expression: "t('bk.image.zoomIn')",
54348
+ modifiers: {
54349
+ "top": true
54350
+ }
54351
+ }],
54245
54352
  staticClass: "bk-icon icon-enlarge-line",
54246
54353
  on: {
54247
54354
  "click": function click($event) {
@@ -54249,6 +54356,15 @@
54249
54356
  }
54250
54357
  }
54251
54358
  }), _c('i', {
54359
+ directives: [{
54360
+ name: "bk-tooltips",
54361
+ rawName: "v-bk-tooltips.top",
54362
+ value: _vm.t('bk.image.original'),
54363
+ expression: "t('bk.image.original')",
54364
+ modifiers: {
54365
+ "top": true
54366
+ }
54367
+ }],
54252
54368
  staticClass: "bk-icon icon-normalized",
54253
54369
  on: {
54254
54370
  "click": function click($event) {
@@ -54256,6 +54372,15 @@
54256
54372
  }
54257
54373
  }
54258
54374
  }), _c('i', {
54375
+ directives: [{
54376
+ name: "bk-tooltips",
54377
+ rawName: "v-bk-tooltips.top",
54378
+ value: _vm.t('bk.image.rotateLeft'),
54379
+ expression: "t('bk.image.rotateLeft')",
54380
+ modifiers: {
54381
+ "top": true
54382
+ }
54383
+ }],
54259
54384
  staticClass: "bk-icon icon-left-turn-line",
54260
54385
  on: {
54261
54386
  "click": function click($event) {
@@ -54263,13 +54388,31 @@
54263
54388
  }
54264
54389
  }
54265
54390
  }), _c('i', {
54391
+ directives: [{
54392
+ name: "bk-tooltips",
54393
+ rawName: "v-bk-tooltips.top",
54394
+ value: _vm.t('bk.image.rotateRight'),
54395
+ expression: "t('bk.image.rotateRight')",
54396
+ modifiers: {
54397
+ "top": true
54398
+ }
54399
+ }],
54266
54400
  staticClass: "bk-icon icon-right-turn-line",
54267
54401
  on: {
54268
54402
  "click": function click($event) {
54269
- _vm.handleActions('clocelise');
54403
+ _vm.handleActions('clockwise');
54270
54404
  }
54271
54405
  }
54272
54406
  }), _c('i', {
54407
+ directives: [{
54408
+ name: "bk-tooltips",
54409
+ rawName: "v-bk-tooltips.top",
54410
+ value: _vm.t('bk.image.fullScreen'),
54411
+ expression: "t('bk.image.fullScreen')",
54412
+ modifiers: {
54413
+ "top": true
54414
+ }
54415
+ }],
54273
54416
  staticClass: "bk-icon icon-unfull-screen",
54274
54417
  on: {
54275
54418
  "click": function click($event) {
@@ -54353,7 +54496,6 @@
54353
54496
  bkImageViewer: __vue_component__$1w
54354
54497
  },
54355
54498
  mixins: [locale.mixin],
54356
- inheritAttrs: false,
54357
54499
  props: {
54358
54500
  src: String,
54359
54501
  fallback: String,
@@ -54378,6 +54520,10 @@
54378
54520
  zIndex: {
54379
54521
  type: Number,
54380
54522
  default: 2000
54523
+ },
54524
+ maskClose: {
54525
+ type: Boolean,
54526
+ default: true
54381
54527
  }
54382
54528
  },
54383
54529
  data: function data() {
@@ -54587,7 +54733,8 @@
54587
54733
  "is-show-title": _vm.isShowPreviewTitle,
54588
54734
  "initial-index": _vm.imageIndex,
54589
54735
  "url-list": _vm.previewSrcList,
54590
- "on-close": _vm.closeViewer
54736
+ "on-close": _vm.closeViewer,
54737
+ "mask-close": _vm.maskClose
54591
54738
  }
54592
54739
  }) : _vm._e()] : _vm._e()], 2);
54593
54740
  };