bk-magic-vue 2.3.7-beta.5 → 2.3.7

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 (42) hide show
  1. package/dist/bk-magic-vue.css +30 -31
  2. package/dist/bk-magic-vue.js +44 -17
  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/dialog.js +3 -2
  10. package/lib/info-box.js +3 -2
  11. package/lib/table.js +27 -13
  12. package/lib/tag-input.js +14 -2
  13. package/lib/ui/bk-magic-vue.css +30 -31
  14. package/lib/ui/bk-magic-vue.min.css +1 -1
  15. package/lib/ui/bk-magic-vue.min.css.gz +0 -0
  16. package/lib/ui/bk-magic-vue.min.css.map +1 -1
  17. package/lib/ui/cascade.css +1 -2
  18. package/lib/ui/cascade.min.css +1 -1
  19. package/lib/ui/cascade.min.css.map +1 -1
  20. package/lib/ui/color-picker.css +1 -3
  21. package/lib/ui/color-picker.min.css +1 -1
  22. package/lib/ui/color-picker.min.css.map +1 -1
  23. package/lib/ui/dialog.css +28 -21
  24. package/lib/ui/dialog.min.css +1 -1
  25. package/lib/ui/dialog.min.css.map +1 -1
  26. package/lib/ui/info-box.css +28 -21
  27. package/lib/ui/info-box.min.css +1 -1
  28. package/lib/ui/info-box.min.css.map +1 -1
  29. package/lib/ui/input.css +0 -1
  30. package/lib/ui/input.min.css +1 -1
  31. package/lib/ui/input.min.css.map +1 -1
  32. package/lib/ui/search-select.css +0 -1
  33. package/lib/ui/search-select.min.css +1 -1
  34. package/lib/ui/search-select.min.css.map +1 -1
  35. package/lib/ui/select.css +1 -2
  36. package/lib/ui/select.min.css +1 -1
  37. package/lib/ui/select.min.css.map +1 -1
  38. package/lib/ui/upload.css +0 -1
  39. package/lib/ui/upload.min.css +1 -1
  40. package/lib/ui/upload.min.css.map +1 -1
  41. package/lib/version-detail.js +3 -2
  42. package/package.json +1 -1
@@ -3558,12 +3558,10 @@ optgroup{
3558
3558
  transition:border .2s, box-shadow .2s, -webkit-box-shadow .2s;
3559
3559
  color:#63656e;
3560
3560
  cursor:pointer;
3561
- outline:none;
3562
- background-color:#fff
3561
+ outline:none
3563
3562
  }
3564
3563
  .bk-color-picker.bk-color-picker-show-value{
3565
3564
  width:150px;
3566
- background-color:#fff;
3567
3565
  }
3568
3566
  .bk-color-picker.bk-color-picker-large{
3569
3567
  height:36px
@@ -4378,22 +4376,22 @@ span.bk-date-picker-cells-cell-disabled.bk-date-picker-cells-cell-selected em{
4378
4376
  }
4379
4377
  .bk-dialog-wrapper .bk-dialog-header{
4380
4378
  padding:3px 24px 24px 24px;
4381
- line-height:1.1;
4379
+ line-height:1.2;
4382
4380
  text-align:center;
4383
4381
  }
4384
4382
  .bk-dialog-wrapper .bk-dialog-header p,
4385
4383
  .bk-dialog-wrapper .bk-dialog-header .bk-dialog-header-inner{
4386
4384
  display:inline-block;
4387
4385
  width:100%;
4388
- font-size:24px;
4389
- color:#313238;
4386
+ font-size:20px;
4387
+ color:#63656e;
4390
4388
  overflow:hidden;
4391
4389
  text-overflow:ellipsis;
4392
4390
  white-space:nowrap;
4393
4391
  margin:0;
4394
4392
  }
4395
- .bk-dialog-wrapper .bk-dialog-header .header-aside{
4396
- font-size:20px;
4393
+ .bk-dialog-wrapper .bk-dialog-header .header-center{
4394
+ font-size:24px;
4397
4395
  }
4398
4396
  .bk-dialog-wrapper .bk-dialog-header p i,
4399
4397
  .bk-dialog-wrapper .bk-dialog-header p span{
@@ -4453,11 +4451,14 @@ span.bk-date-picker-cells-cell-disabled.bk-date-picker-cells-cell-selected em{
4453
4451
  margin-bottom:0;
4454
4452
  }
4455
4453
  .bk-dialog-wrapper .bk-info-box .bk-dialog-header{
4456
- padding:20px 30px 10px 30px;
4454
+ padding:15px 30px 10px 30px;
4457
4455
  }
4458
4456
  .bk-dialog-wrapper .bk-info-box .bk-dialog-sub-header{
4459
- padding:5px 50px 21px 50px;
4457
+ padding:5px 50px 6px 50px
4460
4458
  }
4459
+ .bk-dialog-wrapper .bk-info-box .bk-dialog-sub-header.has-sub{
4460
+ padding-bottom:21px;
4461
+ }
4461
4462
  .bk-dialog-wrapper .bk-info-box .bk-dialog-sub-header .bk-dialog-header-inner{
4462
4463
  font-size:14px;
4463
4464
  color:#63656e;
@@ -4470,7 +4471,7 @@ span.bk-date-picker-cells-cell-disabled.bk-date-picker-cells-cell-selected em{
4470
4471
  }
4471
4472
  .bk-dialog-wrapper .bk-info-box .bk-dialog-footer{
4472
4473
  text-align:center;
4473
- padding:0 65px 40px;
4474
+ padding:0 65px 33px;
4474
4475
  background-color:#fff;
4475
4476
  border:none;
4476
4477
  border-radius:0;
@@ -4498,7 +4499,7 @@ span.bk-date-picker-cells-cell-disabled.bk-date-picker-cells-cell-selected em{
4498
4499
  padding:3px 24px 15px;
4499
4500
  }
4500
4501
  .bk-dialog-wrapper .bk-info-box .bk-dialog-type-header{
4501
- padding:3px 24px 32px 24px;
4502
+ padding:3px 24px 22px 24px;
4502
4503
  line-height:1;
4503
4504
  text-align:center
4504
4505
  }
@@ -4509,7 +4510,7 @@ span.bk-date-picker-cells-cell-disabled.bk-date-picker-cells-cell-selected em{
4509
4510
  .bk-dialog-wrapper .bk-info-box .bk-dialog-type-header .header{
4510
4511
  display:inline-block;
4511
4512
  width:100%;
4512
- font-size:24px;
4513
+ font-size:20px;
4513
4514
  color:#313238;
4514
4515
  overflow:hidden;
4515
4516
  text-overflow:ellipsis;
@@ -4533,12 +4534,11 @@ span.bk-date-picker-cells-cell-disabled.bk-date-picker-cells-cell-selected em{
4533
4534
  display:inline-block;
4534
4535
  width:100%;
4535
4536
  font-size:14px;
4536
- color:#313238;
4537
- overflow:hidden;
4538
- text-overflow:ellipsis;
4539
- white-space:nowrap;
4537
+ color:#63656e;
4540
4538
  line-height:1.5;
4541
4539
  margin:0;
4540
+ text-align:center;
4541
+ word-break:break-all;
4542
4542
  }
4543
4543
  .bk-dialog-wrapper .bk-info-box .bk-dialog-mark{
4544
4544
  display:block;
@@ -4547,21 +4547,25 @@ span.bk-date-picker-cells-cell-disabled.bk-date-picker-cells-cell-selected em{
4547
4547
  .bk-dialog-wrapper .bk-info-box .bk-dialog-mark.bk-dialog-warning,
4548
4548
  .bk-dialog-wrapper .bk-info-box .bk-dialog-mark.bk-dialog-error,
4549
4549
  .bk-dialog-wrapper .bk-info-box .bk-dialog-mark.bk-dialog-success{
4550
- width:58px;
4551
- height:58px;
4552
- line-height:58px;
4553
- font-size:30px;
4550
+ width:42px;
4551
+ height:42px;
4552
+ line-height:42px;
4553
+ font-size:36px;
4554
4554
  color:#fff;
4555
4555
  border-radius:50%;
4556
4556
  }
4557
4557
  .bk-dialog-wrapper .bk-info-box .bk-dialog-mark.bk-dialog-warning{
4558
- background-color:#ffb848;
4558
+ background-color:#ffe8c3;
4559
+ color:#ff9c01;
4560
+ font-size:26px;
4559
4561
  }
4560
4562
  .bk-dialog-wrapper .bk-info-box .bk-dialog-mark.bk-dialog-error{
4561
- background-color:#ff5656;
4563
+ background-color:#ffdddd;
4564
+ color:#ea3636;
4562
4565
  }
4563
4566
  .bk-dialog-wrapper .bk-info-box .bk-dialog-mark.bk-dialog-success{
4564
- background-color:#2dcb56;
4567
+ background-color:#e5f6ea;
4568
+ color:#3fc06d;
4565
4569
  }
4566
4570
  @keyframes loading{
4567
4571
  from{
@@ -5986,7 +5990,6 @@ span.bk-date-picker-cells-cell-disabled.bk-date-picker-cells-cell-selected em{
5986
5990
  .bk-textarea-wrapper{
5987
5991
  border:1px solid #c4c6cc;
5988
5992
  border-radius:2px;
5989
- background-color:#fff;
5990
5993
  }
5991
5994
  .bk-textarea-wrapper .bk-form-textarea{
5992
5995
  border:none;
@@ -8512,8 +8515,7 @@ span.bk-date-picker-cells-cell-disabled.bk-date-picker-cells-cell-selected em{
8512
8515
  white-space:nowrap;
8513
8516
  }
8514
8517
  .bk-select .bk-tooltip.bk-select-dropdown{
8515
- display:block;
8516
- background-color:#fff
8518
+ display:block
8517
8519
  }
8518
8520
  .bk-select .bk-tooltip.bk-select-dropdown > .bk-tooltip-ref{
8519
8521
  display:block;
@@ -12046,7 +12048,6 @@ th.bk-table-column-selection .cell, th.bk-table-column-expand .cell, td.bk-table
12046
12048
  .bk-upload .file-wrapper{
12047
12049
  position:relative;
12048
12050
  font-size:14px;
12049
- background-color:#fff;
12050
12051
  }
12051
12052
  .bk-upload .file-wrapper input[type=file]{
12052
12053
  width:100%;
@@ -12923,7 +12924,6 @@ th.bk-table-column-selection .cell, th.bk-table-column-expand .cell, td.bk-table
12923
12924
  overflow:inherit;
12924
12925
  z-index:9;
12925
12926
  height:32px;
12926
- background-color:#fff;
12927
12927
  }
12928
12928
  .search-select-wrap .bk-search-select{
12929
12929
  display:-webkit-box;
@@ -14222,8 +14222,7 @@ th.bk-table-column-selection .cell, th.bk-table-column-expand .cell, td.bk-table
14222
14222
  white-space:nowrap;
14223
14223
  }
14224
14224
  .bk-cascade .bk-tooltip.bk-cascade-dropdown{
14225
- display:block;
14226
- background-color:#fff
14225
+ display:block
14227
14226
  }
14228
14227
  .bk-cascade .bk-tooltip.bk-cascade-dropdown > .bk-tooltip-ref{
14229
14228
  display:block;
@@ -12918,7 +12918,8 @@
12918
12918
  }, [_vm._t("header", [_c('div', {
12919
12919
  staticClass: "bk-dialog-header-inner"
12920
12920
  }, [_vm._v(_vm._s(_vm.title))])])], 2) : _vm._e(), _c('div', {
12921
- staticClass: "bk-dialog-sub-header"
12921
+ staticClass: "bk-dialog-sub-header",
12922
+ class: _vm.subTitle || _vm.$slots['sub-header'] ? 'has-sub' : ''
12922
12923
  }, [_vm._t("sub-header", [_c('div', {
12923
12924
  staticClass: "bk-dialog-header-inner"
12924
12925
  }, [_vm._v(_vm._s(_vm.subTitle))])])], 2), _vm.showFooter ? _c('div', {
@@ -12998,7 +12999,7 @@
12998
12999
  }, [_vm._t("header", [_c('div', {
12999
13000
  class: {
13000
13001
  'bk-dialog-header-inner': true,
13001
- 'header-aside': _vm.headerPosition !== 'center'
13002
+ 'header-center': _vm.headerPosition === 'center'
13002
13003
  }
13003
13004
  }, [_vm._v(_vm._s(_vm.title))])])], 2) : _vm._e(), _c('div', {
13004
13005
  staticClass: "bk-dialog-body"
@@ -38255,9 +38256,19 @@
38255
38256
  var bodyWidth = this.table.$el.clientWidth;
38256
38257
  var bodyMinWidth = 0;
38257
38258
  var flattenColumns = this.getFlattenColumns();
38259
+ if (flattenColumns.length < 1) {
38260
+ return;
38261
+ }
38258
38262
  var flexColumns = flattenColumns.filter(function (column) {
38259
38263
  return typeof column.width !== 'number';
38260
38264
  });
38265
+ if (!this.store.isDraging) {
38266
+ flattenColumns.forEach(function (column) {
38267
+ if (typeof column.width === 'number') {
38268
+ column.realWidth = column.width;
38269
+ }
38270
+ });
38271
+ }
38261
38272
  if (!this.store.isDraging && flexColumns.length > 0 && fit) {
38262
38273
  flattenColumns.forEach(function (column) {
38263
38274
  bodyMinWidth += column.width || column.minWidth;
@@ -38270,14 +38281,16 @@
38270
38281
  if (flexColumns.length === 1) {
38271
38282
  flexColumns[0].realWidth = flexColumns[0].minWidth + totalFlexWidth;
38272
38283
  } else {
38273
- var flexWidthPerPixel = totalFlexWidth / flexColumns.length;
38274
- var firstWidth = flexWidthPerPixel;
38284
+ var flexWidthPerPixel = Math.floor(totalFlexWidth / flexColumns.length);
38285
+ var firstWidth = totalFlexWidth;
38275
38286
  flexColumns.forEach(function (column, index) {
38276
38287
  if (index === 0) return;
38277
- var flexWidth = Math.floor(column.minWidth + flexWidthPerPixel);
38288
+ var flexWidth = column.minWidth + flexWidthPerPixel;
38278
38289
  if (column.maxWidth && column.maxWidth < flexWidth) {
38279
- firstWidth += flexWidth - column.maxWidth;
38280
38290
  flexWidth = column.maxWidth;
38291
+ firstWidth -= column.maxWidth - column.minWidth;
38292
+ } else {
38293
+ firstWidth -= flexWidthPerPixel;
38281
38294
  }
38282
38295
  column.realWidth = flexWidth;
38283
38296
  });
@@ -38307,19 +38320,21 @@
38307
38320
  };
38308
38321
  if (!this.scrollX && flattenColumns.length) {
38309
38322
  var deltaWidth = bodyWidth - bodyMinWidth;
38310
- var lastColumn = findLastColumnWithNotSetting(flattenColumns);
38323
+ var lastColumn = flattenColumns[flattenColumns.length - 1];
38311
38324
  lastColumn.realWidth = lastColumn.realWidth + deltaWidth;
38312
38325
  this.bodyWidth = bodyWidth;
38313
38326
  } else {
38314
38327
  var _lastColumn = findLastColumnWithNotSetting(flattenColumns);
38315
- var lastRealWidth = typeof _lastColumn.width !== 'number' ? _lastColumn.minWidth : _lastColumn.width;
38316
- var preLastColumnBodyMinWidth = bodyMinWidth - _lastColumn.realWidth;
38317
- if (preLastColumnBodyMinWidth + lastRealWidth > bodyWidth) {
38318
- _lastColumn.realWidth = lastRealWidth;
38319
- bodyMinWidth = preLastColumnBodyMinWidth + lastRealWidth;
38320
- } else {
38321
- _lastColumn.realWidth = bodyWidth - preLastColumnBodyMinWidth;
38322
- bodyMinWidth = preLastColumnBodyMinWidth + _lastColumn.realWidth;
38328
+ if (_lastColumn) {
38329
+ var lastRealWidth = typeof _lastColumn.width !== 'number' ? _lastColumn.minWidth : _lastColumn.width;
38330
+ var preLastColumnBodyMinWidth = bodyMinWidth - _lastColumn.realWidth;
38331
+ if (preLastColumnBodyMinWidth + lastRealWidth > bodyWidth) {
38332
+ _lastColumn.realWidth = lastRealWidth;
38333
+ bodyMinWidth = preLastColumnBodyMinWidth + lastRealWidth;
38334
+ } else {
38335
+ _lastColumn.realWidth = bodyWidth - preLastColumnBodyMinWidth;
38336
+ bodyMinWidth = preLastColumnBodyMinWidth + _lastColumn.realWidth;
38337
+ }
38323
38338
  }
38324
38339
  this.scrollX = bodyMinWidth > bodyWidth;
38325
38340
  this.bodyWidth = bodyMinWidth;
@@ -42281,6 +42296,10 @@
42281
42296
  },
42282
42297
  mixins: [locale.mixin, emitter],
42283
42298
  props: {
42299
+ showClearOnlyHover: {
42300
+ type: Boolean,
42301
+ default: false
42302
+ },
42284
42303
  placeholder: {
42285
42304
  type: String,
42286
42305
  default: ''
@@ -42432,12 +42451,13 @@
42432
42451
  popoverInstance: null,
42433
42452
  isSingleSelect: false,
42434
42453
  INPUT_MIN_WIDTH: 12,
42435
- popoverWidth: 190
42454
+ popoverWidth: 190,
42455
+ hover: false
42436
42456
  };
42437
42457
  },
42438
42458
  computed: {
42439
42459
  isShowClear: function isShowClear() {
42440
- return this.clearable && !this.disabled && this.localTagList.length !== 0;
42460
+ return this.clearable && !this.disabled && this.localTagList.length !== 0 && (this.showClearOnlyHover ? this.hover : true);
42441
42461
  },
42442
42462
  resultList: function resultList() {
42443
42463
  if (this.useGroup) {
@@ -42509,6 +42529,9 @@
42509
42529
  clearTimeout(this.timer);
42510
42530
  },
42511
42531
  methods: {
42532
+ mouseEnterHandler: function mouseEnterHandler() {
42533
+ this.hover = true;
42534
+ },
42512
42535
  handlerClear: function handlerClear() {
42513
42536
  this.tagList = [];
42514
42537
  this.localTagList = [];
@@ -43178,6 +43201,10 @@
43178
43201
  on: {
43179
43202
  "click": function click($event) {
43180
43203
  _vm.focusInputer($event);
43204
+ },
43205
+ "mouseenter": _vm.mouseEnterHandler,
43206
+ "mouseleave": function mouseleave($event) {
43207
+ _vm.hover = false;
43181
43208
  }
43182
43209
  }
43183
43210
  }, [_c('div', {