bk-magic-vue 2.4.8-beta.5 → 2.4.8-beta.8

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.
@@ -6694,6 +6694,7 @@
6694
6694
  var nodeList = [];
6695
6695
  var clickctx = '$clickoutsideCtx';
6696
6696
  var beginClick;
6697
+ var seed = 0;
6697
6698
  document.addEventListener('mousedown', function (event) {
6698
6699
  return beginClick = event;
6699
6700
  });
@@ -6704,7 +6705,8 @@
6704
6705
  });
6705
6706
  var bkClickoutside = {
6706
6707
  bind: function bind(el, binding, vnode) {
6707
- var id = nodeList.push(el) - 1;
6708
+ nodeList.push(el);
6709
+ var id = seed++;
6708
6710
  var clickoutsideHandler = function clickoutsideHandler() {
6709
6711
  var mouseup = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
6710
6712
  var mousedown = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
@@ -8511,7 +8513,7 @@
8511
8513
  expression: "handleClose"
8512
8514
  }],
8513
8515
  staticClass: "bk-date-picker",
8514
- class: [_vm.type === 'datetimerange' ? 'long' : '', _vm.longWidthCls, _vm.extCls]
8516
+ class: [_vm.type === 'datetimerange' ? 'long' : '', _vm.longWidthCls, _vm.extCls, _vm.type === 'time' ? 'time-picker' : '']
8515
8517
  }, [_c('div', {
8516
8518
  ref: "reference",
8517
8519
  staticClass: "bk-date-picker-rel"
@@ -11094,7 +11096,7 @@
11094
11096
  return newDate["set".concat(_this3.capitalize(type))](date[type]);
11095
11097
  });
11096
11098
  if (emit) {
11097
- this.$emit('pick', newDate, false, 'time');
11099
+ this.$emit('pick', newDate, true, 'time');
11098
11100
  }
11099
11101
  }
11100
11102
  }
@@ -11726,7 +11728,7 @@
11726
11728
  }
11727
11729
  }
11728
11730
  if (emit) {
11729
- this.$emit('pick', [dateStart, dateEnd], false, 'time');
11731
+ this.$emit('pick', [dateStart, dateEnd], true, 'time');
11730
11732
  }
11731
11733
  },
11732
11734
  handleStartChange: function handleStartChange(date) {
@@ -13219,6 +13221,7 @@
13219
13221
  if (this.escClose) {
13220
13222
  addEvent(document, 'keydown', this.escCloseHandler);
13221
13223
  }
13224
+ console.error(this);
13222
13225
  },
13223
13226
  beforeDestroy: function beforeDestroy() {
13224
13227
  if (this.escClose) {
@@ -29409,10 +29412,10 @@
29409
29412
 
29410
29413
  var InfoBoxConstructor = Vue.extend(__vue_component__$v);
29411
29414
  var instancesList = [];
29412
- var seed = 0;
29415
+ var seed$1 = 0;
29413
29416
  var Info = function Info() {
29414
29417
  var opts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
29415
- var id = 'bkInfoBox' + seed++;
29418
+ var id = 'bkInfoBox' + seed$1++;
29416
29419
  if (typeof opts === 'string') {
29417
29420
  opts = {
29418
29421
  title: opts
@@ -29431,8 +29434,8 @@
29431
29434
  instance.type = opts.type || '';
29432
29435
  instance.showFooter = opts.showFooter !== false;
29433
29436
  instance.closeIcon = opts.closeIcon !== false;
29434
- instance.maskClose = opts.maskClose;
29435
- instance.escClose = opts.escClose;
29437
+ instance.maskClose = opts.maskClose === undefined ? true : opts.maskClose;
29438
+ instance.escClose = opts.escClose === undefined ? true : opts.escClose;
29436
29439
  instance.theme = opts.theme || 'primary';
29437
29440
  instance.icon = opts.icon;
29438
29441
  instance.extCls = opts.extCls;
@@ -30797,7 +30800,7 @@
30797
30800
 
30798
30801
  var MessageComponent = Vue.extend(__vue_component__$D);
30799
30802
  var messageList = [];
30800
- var seed$1 = 0;
30803
+ var seed$2 = 0;
30801
30804
  var BkMessage = function BkMessage(config) {
30802
30805
  if (config.limit === 0) {
30803
30806
  BkMessage.batchClose();
@@ -30806,7 +30809,7 @@
30806
30809
  if (config.limit > 0) {
30807
30810
  BkMessage.batchClose(config.limit);
30808
30811
  }
30809
- var instanceId = "messageInstance_".concat(now$1(), "_").concat(seed$1++);
30812
+ var instanceId = "messageInstance_".concat(now$1(), "_").concat(seed$2++);
30810
30813
  var offsetY = _parseInt$2(config.offsetY) || 30;
30811
30814
  var spacing = _parseInt$2(config.spacing) || 10;
30812
30815
  if (config.ellipsisLine === null || config.ellipsisLine === undefined || config.ellipsisLine === '' || isNaN(config.ellipsisLine)) {
@@ -31055,7 +31058,7 @@
31055
31058
 
31056
31059
  var NotifyComponent = Vue.extend(__vue_component__$E);
31057
31060
  var notifyList = [];
31058
- var seed$2 = 0;
31061
+ var seed$3 = 0;
31059
31062
  var BkNotify = function BkNotify(config) {
31060
31063
  if (config.limit === 0) {
31061
31064
  BkNotify.batchClose();
@@ -31064,7 +31067,7 @@
31064
31067
  if (config.limit > 0) {
31065
31068
  BkNotify.batchClose(config.limit);
31066
31069
  }
31067
- var instanceId = "notifyInstance_".concat(now$1(), "_").concat(seed$2++);
31070
+ var instanceId = "notifyInstance_".concat(now$1(), "_").concat(seed$3++);
31068
31071
  var offsetY = config.offsetY || 30;
31069
31072
  var offsetX = config.offsetX || 10;
31070
31073
  var spacing = config.spacing || 10;