bk-magic-vue 2.5.8-beta.9 → 2.5.9-beta.1

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.
@@ -5946,6 +5946,12 @@ span.bk-date-picker-cells-cell-disabled.bk-date-picker-cells-cell-selected em{
5946
5946
  .bk-form-control.with-right-icon .bk-input-number input{
5947
5947
  padding-right:12px;
5948
5948
  }
5949
+ .bk-form-control .input-right-icon{
5950
+ cursor:pointer
5951
+ }
5952
+ .bk-form-control .input-right-icon:hover{
5953
+ color:#3c96ff;
5954
+ }
5949
5955
  .bk-form-input,
5950
5956
  .bk-form-password,
5951
5957
  .bk-form-select,
@@ -7205,7 +7211,7 @@ span.bk-date-picker-cells-cell-disabled.bk-date-picker-cells-cell-selected em{
7205
7211
  }
7206
7212
  .bk-message-content.multi .message-detail .message-tree{
7207
7213
  max-height:480px;
7208
- padding:14px 24px;
7214
+ padding:14px 32px;
7209
7215
  overflow:auto;
7210
7216
  background:#fff;
7211
7217
  border-radius:2px;
@@ -7233,7 +7239,7 @@ span.bk-date-picker-cells-cell-disabled.bk-date-picker-cells-cell-selected em{
7233
7239
  content:':';
7234
7240
  }
7235
7241
  .bk-message-content.multi .message-detail .message-tree .message-row .copy-value{
7236
- padding:0px 4px
7242
+ padding-left:4px
7237
7243
  }
7238
7244
  .bk-message-content.multi .message-detail .message-tree .message-row .copy-value:hover{
7239
7245
  background:rgba(186, 188, 192, 0.2);
@@ -7242,13 +7248,31 @@ span.bk-date-picker-cells-cell-disabled.bk-date-picker-cells-cell-selected em{
7242
7248
  }
7243
7249
  .bk-message-content.multi .message-detail .message-copy{
7244
7250
  position:absolute;
7245
- top:20px;
7246
- right:40px;
7247
- font-size:16px;
7248
- cursor:pointer
7249
- }
7251
+ top:0px;
7252
+ right:0px;
7253
+ font-size:18px;
7254
+ width:24px;
7255
+ height:24px;
7256
+ display:-webkit-box;
7257
+ display:-ms-flexbox;
7258
+ display:flex;
7259
+ -webkit-box-align:center;
7260
+ -ms-flex-align:center;
7261
+ align-items:center;
7262
+ border-radius:0 2px 0 6px;
7263
+ cursor:pointer;
7264
+ -webkit-box-pack:center;
7265
+ -ms-flex-pack:center;
7266
+ justify-content:center;
7267
+ background:#F5F7FA;
7268
+ color:#9FA3AE
7269
+ }
7270
+ .bk-message-content.multi .message-detail .message-copy:hover{
7271
+ background:#F0F5FF;
7272
+ }
7250
7273
  .bk-message-content.multi .message-detail .message-copy:hover span{
7251
7274
  color:#3a84ff;
7275
+
7252
7276
  }
7253
7277
  .bk-message-content.multi .message-detail .copy-status{
7254
7278
  display:none;
@@ -9362,6 +9386,11 @@ span.bk-date-picker-cells-cell-disabled.bk-date-picker-cells-cell-selected em{
9362
9386
  font-size:16px;
9363
9387
  color:#313238;
9364
9388
  }
9389
+ .bk-sideslider-title .title-content{
9390
+ overflow:hidden;
9391
+ text-overflow:ellipsis;
9392
+ white-space:nowrap;
9393
+ }
9365
9394
  .bk-sideslider-content{
9366
9395
  overflow:auto;
9367
9396
  }
@@ -11064,6 +11093,7 @@ span.bk-date-picker-cells-cell-disabled.bk-date-picker-cells-cell-selected em{
11064
11093
  }
11065
11094
  .bk-table-header-wrapper,
11066
11095
  .bk-table-footer-wrapper{
11096
+ position:relative;
11067
11097
  overflow:hidden;
11068
11098
  }
11069
11099
  .bk-table-header-wrapper tbody td, .bk-table-footer-wrapper tbody td{
@@ -11128,9 +11158,21 @@ span.bk-date-picker-cells-cell-disabled.bk-date-picker-cells-cell-selected em{
11128
11158
  top:0;
11129
11159
  bottom:0;
11130
11160
  width:0;
11131
- border-left:1px solid #dfe0e5;
11161
+ border-left:1px solid #3785FF;
11132
11162
  z-index:10;
11133
11163
  }
11164
+ .bk-table-column-resize-head{
11165
+ position:absolute;
11166
+ left:200px;
11167
+ top:0;
11168
+ bottom:0;
11169
+ width:6px;
11170
+ background:#3785FF;
11171
+ z-index:10;
11172
+ -webkit-transform:translateX(-50%);
11173
+ transform:translateX(-50%);
11174
+ pointer-events:none;
11175
+ }
11134
11176
  .bk-table-enable-row-transition .bk-table-body td{
11135
11177
  -webkit-transition:background-color .25s ease;
11136
11178
  transition:background-color .25s ease;
@@ -13801,6 +13843,12 @@ th.bk-table-column-selection .cell, th.bk-table-column-expand .cell, td.bk-table
13801
13843
  -ms-flex:1;
13802
13844
  flex:1;
13803
13845
  line-height:32px;
13846
+ display:-webkit-box;
13847
+ display:-ms-flexbox;
13848
+ display:flex;
13849
+ -webkit-box-align:center;
13850
+ -ms-flex-align:center;
13851
+ align-items:center;
13804
13852
  }
13805
13853
  .bk-search-list-menu-item .item-name-filter{
13806
13854
  color:#3a84ff;
@@ -29340,6 +29340,10 @@
29340
29340
  showClearOnlyHover: {
29341
29341
  type: Boolean,
29342
29342
  default: false
29343
+ },
29344
+ allowNumberPaste: {
29345
+ type: Boolean,
29346
+ default: false
29343
29347
  }
29344
29348
  },
29345
29349
  data: function data() {
@@ -29633,8 +29637,9 @@
29633
29637
  var keyCode = event.keyCode;
29634
29638
  var target = event.currentTarget;
29635
29639
  var value = target.value;
29640
+ var isPaste = (event.ctrlKey || event.metaKey) && keyCode === 86;
29636
29641
  if (this.inputType === 'number') {
29637
- if (this.validKeyCodeList.indexOf(keyCode) < 0 || event.shiftKey || event.altKey || event.ctrlKey || event.metaKey) {
29642
+ if (!(this.allowNumberPaste && isPaste) && (this.validKeyCodeList.indexOf(keyCode) < 0 || event.shiftKey || event.altKey || event.ctrlKey || event.metaKey)) {
29638
29643
  event.stopPropagation();
29639
29644
  event.preventDefault();
29640
29645
  return false;
@@ -29920,7 +29925,7 @@
29920
29925
  "click": _vm.togglePass
29921
29926
  }
29922
29927
  }) : _vm._e(), _vm.showClearIcon ? _c('i', {
29923
- staticClass: "bk-icon icon-close-circle-shape clear-icon ml5",
29928
+ staticClass: "bk-icon icon-close-circle-shape clear-icon ml5 mr5",
29924
29929
  on: {
29925
29930
  "click": function click($event) {
29926
29931
  $event.stopPropagation();
@@ -29928,8 +29933,8 @@
29928
29933
  return _vm.handlerClear.apply(null, arguments);
29929
29934
  }
29930
29935
  }
29931
- }) : _vm.rightIcon ? _c('i', {
29932
- class: ['bk-icon', _vm.rightIcon]
29936
+ }) : _vm._e(), _vm.rightIcon ? _c('i', {
29937
+ class: ['input-right-icon', 'bk-icon', _vm.rightIcon]
29933
29938
  }) : _vm._e(), _vm.type === 'text' ? [_c('p', {
29934
29939
  directives: [{
29935
29940
  name: "show",
@@ -31314,8 +31319,16 @@
31314
31319
  document.addEventListener('keydown', this.handleMouseKeyEvent);
31315
31320
  },
31316
31321
  handleMouseKeyEvent: function handleMouseKeyEvent(e) {
31317
- if (e.altKey && e.keyCode === 80) {
31318
- this.fixMesage(e);
31322
+ var ctrlKey = e.ctrlKey,
31323
+ altKey = e.altKey,
31324
+ keyCode = e.keyCode;
31325
+ var isFix = this.toolOperation.isFix;
31326
+ if (ctrlKey && altKey && keyCode === 80) {
31327
+ isFix && this.fixMesage(e, false);
31328
+ return;
31329
+ }
31330
+ if (altKey && keyCode === 80) {
31331
+ !isFix && this.fixMesage(e, true);
31319
31332
  }
31320
31333
  },
31321
31334
  handleCloseClick: function handleCloseClick() {
@@ -31776,6 +31789,10 @@
31776
31789
  var MessageComponent = Vue.extend(__vue_component__$D);
31777
31790
  var getAdvanceMessageContainer = function getAdvanceMessageContainer() {
31778
31791
  var parent = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : document.body;
31792
+ var zIndexArr = messageList.map(function (message) {
31793
+ return message.zIndex;
31794
+ }) || [];
31795
+ var maxZIndex = Math.max.apply(null, zIndexArr) || 2500;
31779
31796
  var target = parent.querySelector('[data-msg-advanced-conmtainer]');
31780
31797
  if (!target) {
31781
31798
  target = document.createElement('div');
@@ -31783,6 +31800,7 @@
31783
31800
  target.style.setProperty('position', 'fixed');
31784
31801
  parent.append(target);
31785
31802
  }
31803
+ target.style.zIndex = maxZIndex;
31786
31804
  target.style.setProperty('display', 'block');
31787
31805
  return target;
31788
31806
  };
@@ -31849,8 +31867,6 @@
31849
31867
  instance.$mount();
31850
31868
  instance.dom = instance.$el;
31851
31869
  var mountedElementToTarget = function mountedElementToTarget() {
31852
- var target = instance.showAdvanced ? getAdvanceMessageContainer(document.body) : document.body;
31853
- target.appendChild(instance.$el);
31854
31870
  messageList.forEach(function (item) {
31855
31871
  verticalOffset += _parseInt$2(item.$el.offsetHeight) + _parseInt$2(spacing);
31856
31872
  });
@@ -31858,6 +31874,8 @@
31858
31874
  instance.horizonOffset = spacing;
31859
31875
  instance.visible = true;
31860
31876
  messageList.push(instance);
31877
+ var target = instance.showAdvanced ? getAdvanceMessageContainer(document.body) : document.body;
31878
+ target.appendChild(instance.$el);
31861
31879
  if (instance.showAdvanced) {
31862
31880
  if (instance.$el) {
31863
31881
  target.style.setProperty('top', "".concat(offsetY, "px"));
@@ -37156,7 +37174,9 @@
37156
37174
  padding: _vm.calcDirection === 'left' ? '0 0 0 50px' : '0 0 0 30px'
37157
37175
  }
37158
37176
  }, [_vm._t("header", function () {
37159
- return [_vm._v("\n " + _vm._s(_vm.title || _vm.t('bk.sideslider.title')) + "\n ")];
37177
+ return [_c('div', {
37178
+ staticClass: "title-content"
37179
+ }, [_vm._v(_vm._s(_vm.title || _vm.t('bk.sideslider.title')))])];
37160
37180
  })], 2)]), _c('div', {
37161
37181
  ref: "content",
37162
37182
  staticClass: "bk-sideslider-content",
@@ -38524,7 +38544,7 @@
38524
38544
  type: String,
38525
38545
  default: 'border-card',
38526
38546
  validator: function validator(val) {
38527
- return ['card', 'border-card', 'unborder-card', 'vertical-card'].includes(val);
38547
+ return ['card', 'border-card', 'unborder-card', 'vertical-card', 'card-tab'].includes(val);
38528
38548
  }
38529
38549
  },
38530
38550
  tabPosition: {
@@ -41974,7 +41994,13 @@
41974
41994
  "cellpadding": "0",
41975
41995
  "border": "0"
41976
41996
  }
41977
- }, [h("colgroup", [this._l(this.columns, function (column) {
41997
+ }, [h("div", {
41998
+ "class": "bk-table-column-resize-head",
41999
+ "attrs": {
42000
+ "data-resize-proxy-head": true
42001
+ },
42002
+ "style": this.resizeStyle
42003
+ }), h("colgroup", [this._l(this.columns, function (column) {
41978
42004
  return h("col", {
41979
42005
  "attrs": {
41980
42006
  "name": column.id
@@ -42091,6 +42117,11 @@
42091
42117
  bkTableSetting: bkTableSetting
42092
42118
  },
42093
42119
  computed: {
42120
+ resizeStyle: function resizeStyle() {
42121
+ return this.isHeadResizeProxyShow ? {} : {
42122
+ display: 'none'
42123
+ };
42124
+ },
42094
42125
  table: function table() {
42095
42126
  return this.$parent;
42096
42127
  },
@@ -42286,6 +42317,19 @@
42286
42317
  }
42287
42318
  this.$parent.$emit('header-click', column, event);
42288
42319
  },
42320
+ setColumnResizeLineStyle: function setColumnResizeLineStyle() {
42321
+ var isShow = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
42322
+ var position = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {
42323
+ left: 0
42324
+ };
42325
+ var table = this.$parent;
42326
+ var tableEl = table.$el;
42327
+ var target = tableEl.querySelector('[data-resize-proxy-head]');
42328
+ if (target) {
42329
+ target.style.display = isShow ? 'block' : 'none';
42330
+ target.style.left = position.left;
42331
+ }
42332
+ },
42289
42333
  handleHeaderContextMenu: function handleHeaderContextMenu(event, column) {
42290
42334
  this.$parent.$emit('header-contextmenu', column, event);
42291
42335
  },
@@ -42310,6 +42354,9 @@
42310
42354
  };
42311
42355
  var resizeProxy = table.$refs.resizeProxy;
42312
42356
  resizeProxy.style.left = this.dragState.startLeft + 'px';
42357
+ this.setColumnResizeLineStyle(true, {
42358
+ left: this.dragState.startLeft + 'px'
42359
+ });
42313
42360
  document.onselectstart = function () {
42314
42361
  return false;
42315
42362
  };
@@ -42320,6 +42367,9 @@
42320
42367
  var deltaLeft = event.clientX - _this2.dragState.startMouseLeft;
42321
42368
  var proxyLeft = _this2.dragState.startLeft + deltaLeft;
42322
42369
  resizeProxy.style.left = Math.max(minLeft, proxyLeft) + 'px';
42370
+ _this2.setColumnResizeLineStyle(true, {
42371
+ left: Math.max(minLeft, proxyLeft) + 'px'
42372
+ });
42323
42373
  };
42324
42374
  var handleMouseUp = function handleMouseUp() {
42325
42375
  if (_this2.dragging) {
@@ -42337,6 +42387,7 @@
42337
42387
  _this2.draggingColumn = null;
42338
42388
  _this2.dragState = {};
42339
42389
  table.resizeProxyVisible = false;
42390
+ _this2.setColumnResizeLineStyle();
42340
42391
  }
42341
42392
  document.removeEventListener('mousemove', handleMouseMove);
42342
42393
  document.removeEventListener('mouseup', handleMouseUp);
@@ -42351,6 +42402,9 @@
42351
42402
  }
42352
42403
  },
42353
42404
  handleMouseMove: function handleMouseMove(event, column) {
42405
+ var table = this.$parent;
42406
+ var tableEl = table.$el;
42407
+ var tableLeft = tableEl.getBoundingClientRect().left;
42354
42408
  if (column.children && column.children.length > 0) return;
42355
42409
  var target = event.target;
42356
42410
  while (target && target.tagName !== 'TH') {
@@ -42362,6 +42416,9 @@
42362
42416
  var bodyStyle = document.body.style;
42363
42417
  if (rect.width > 12 && rect.right - event.pageX < 8) {
42364
42418
  bodyStyle.cursor = 'col-resize';
42419
+ this.setColumnResizeLineStyle(true, {
42420
+ left: "".concat(rect.right - tableLeft, "px")
42421
+ });
42365
42422
  if (hasClass(target, 'is-sortable')) {
42366
42423
  target.style.cursor = 'col-resize';
42367
42424
  }
@@ -42372,11 +42429,13 @@
42372
42429
  target.style.cursor = 'pointer';
42373
42430
  }
42374
42431
  this.draggingColumn = null;
42432
+ this.setColumnResizeLineStyle();
42375
42433
  }
42376
42434
  }
42377
42435
  },
42378
42436
  handleMouseOut: function handleMouseOut() {
42379
42437
  document.body.style.cursor = '';
42438
+ this.setColumnResizeLineStyle();
42380
42439
  },
42381
42440
  toggleOrder: function toggleOrder(_ref) {
42382
42441
  var order = _ref.order,
@@ -42426,7 +42485,8 @@
42426
42485
  return {
42427
42486
  draggingColumn: null,
42428
42487
  dragging: false,
42429
- dragState: {}
42488
+ dragState: {},
42489
+ isHeadResizeProxyShow: false
42430
42490
  };
42431
42491
  }
42432
42492
  };
@@ -45023,6 +45083,7 @@
45023
45083
  this.dispatch('bk-form-item', 'form-focus');
45024
45084
  this.popoverWidth = this.isSingleSelect ? this.bkTagSelector.clientWidth : this.contentWidth;
45025
45085
  event.currentTarget.select();
45086
+ this.$emit('focus', this.tagList);
45026
45087
  },
45027
45088
  handlePaste: function handlePaste(event) {
45028
45089
  var _this8 = this;
@@ -52623,18 +52684,18 @@
52623
52684
  'is-disabled': item.disabled,
52624
52685
  'is-hover': !item.disabled && hoverId === id
52625
52686
  }
52626
- }, [selectedStyle === 'checkbox' ? h("bk-checkbox", {
52687
+ }, [h("div", helper([{}, events, {
52688
+ "class": {
52689
+ 'item-name': true
52690
+ }
52691
+ }]), [selectedStyle === 'checkbox' ? h("bk-checkbox", {
52627
52692
  "class": "search-list-checkbox",
52628
52693
  "directives": [{
52629
52694
  name: "show",
52630
52695
  value: multiable && child && !isChildCondition
52631
52696
  }],
52632
52697
  "ref": id
52633
- }) : null, h("div", helper([{}, events, {
52634
- "class": {
52635
- 'item-name': true
52636
- }
52637
- }]), [isFilter ? h("div", [pre, h("span", {
52698
+ }) : null, isFilter ? h("div", [pre, h("span", {
52638
52699
  "class": {
52639
52700
  'item-name-filter': true
52640
52701
  }