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

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 (46) hide show
  1. package/dist/bk-magic-vue.css +17 -7
  2. package/dist/bk-magic-vue.js +51 -15
  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/big-tree.js +1 -1
  10. package/lib/breadcrumb.js +28 -1
  11. package/lib/cascade.js +14 -4
  12. package/lib/date-picker.js +1 -1
  13. package/lib/dialog.js +1 -1
  14. package/lib/directives/overflow-tips.js +1 -1
  15. package/lib/directives/tooltips.js +1 -1
  16. package/lib/form-item.js +1 -1
  17. package/lib/image-viewer.js +1 -1
  18. package/lib/image.js +1 -1
  19. package/lib/info-box.js +1 -1
  20. package/lib/pagination.js +1 -1
  21. package/lib/row.js +1 -1
  22. package/lib/search-select.js +1 -1
  23. package/lib/select.js +1 -1
  24. package/lib/slider.js +1 -1
  25. package/lib/table-column.js +4 -2
  26. package/lib/table.js +6 -9
  27. package/lib/tag-input.js +1 -1
  28. package/lib/time-picker.js +1 -1
  29. package/lib/transfer.js +1 -1
  30. package/lib/ui/bk-magic-vue.css +17 -7
  31. package/lib/ui/bk-magic-vue.min.css +1 -1
  32. package/lib/ui/bk-magic-vue.min.css.gz +0 -0
  33. package/lib/ui/bk-magic-vue.min.css.map +1 -1
  34. package/lib/ui/breadcrumb.css +10 -0
  35. package/lib/ui/breadcrumb.min.css +1 -1
  36. package/lib/ui/breadcrumb.min.css.map +1 -1
  37. package/lib/ui/cascade.css +2 -2
  38. package/lib/ui/cascade.min.css +1 -1
  39. package/lib/ui/cascade.min.css.map +1 -1
  40. package/lib/ui/table.css +8 -5
  41. package/lib/ui/table.min.css +1 -1
  42. package/lib/ui/table.min.css.map +1 -1
  43. package/lib/upload.js +1 -1
  44. package/lib/version-detail.js +1 -1
  45. package/lib/virtual-render.js +1 -1
  46. package/package.json +1 -1
@@ -10344,9 +10344,11 @@ span.bk-date-picker-cells-cell-disabled.bk-date-picker-cells-cell-selected em{
10344
10344
  cursor:pointer;
10345
10345
  color:#C4C6CC
10346
10346
  }
10347
- .bk-table th .bk-table-column-filter-trigger.is-open,
10348
- .bk-table th .bk-table-column-filter-trigger.is-filtered{
10349
- color:#63656E;
10347
+ .bk-table th .bk-table-column-filter-trigger.is-open{
10348
+ color:#63656e;
10349
+ }
10350
+ .bk-table th .bk-table-column-filter-trigger.is-filtered{
10351
+ color:#3a84ff;
10350
10352
  }
10351
10353
  .bk-table th .bk-table-caret-wrapper{
10352
10354
  display:-webkit-inline-box;
@@ -10384,10 +10386,10 @@ span.bk-date-picker-cells-cell-disabled.bk-date-picker-cells-cell-selected em{
10384
10386
  bottom:-1px;
10385
10387
  }
10386
10388
  .bk-table th.ascending .bk-table-sort-caret.ascending{
10387
- border-bottom-color:#63656E;
10389
+ border-bottom-color:#3a84ff;
10388
10390
  }
10389
10391
  .bk-table th.descending .bk-table-sort-caret.descending{
10390
- border-top-color:#63656E;
10392
+ border-top-color:#3a84ff;
10391
10393
  }
10392
10394
  .bk-table td.gutter{
10393
10395
  width:0;
@@ -14507,14 +14509,14 @@ th.bk-table-column-selection .cell, th.bk-table-column-expand .cell, td.bk-table
14507
14509
  min-height:21px;
14508
14510
  line-height:19px;
14509
14511
  word-break:break-all;
14510
- max-width:200px;
14512
+ max-width:150px;
14511
14513
  overflow:hidden;
14512
14514
  display:inline-block;
14513
14515
  text-overflow:ellipsis;
14514
14516
  white-space:nowrap;
14515
14517
  }
14516
14518
  .bk-cascade-tag-list .remove-key{
14517
- position:relative;
14519
+ position:absolute;
14518
14520
  width:18px;
14519
14521
  height:16px;
14520
14522
  top:3px;
@@ -15148,6 +15150,14 @@ th.bk-table-column-selection .cell, th.bk-table-column-expand .cell, td.bk-table
15148
15150
  .bk-breadcrumb-item:last-child .bk-breadcrumb-separator{
15149
15151
  display:none;
15150
15152
  }
15153
+ .bk-breadcrumb-goback{
15154
+ color:#699df4;
15155
+ margin-right:12px;
15156
+ cursor:pointer
15157
+ }
15158
+ .bk-breadcrumb-goback .icon-default{
15159
+ font-size:26px;
15160
+ }
15151
15161
  .bk-divider{
15152
15162
  position:relative
15153
15163
  }
@@ -120,7 +120,7 @@
120
120
  var ownKeys = Object.keys(source);
121
121
 
122
122
  if (typeof Object.getOwnPropertySymbols === 'function') {
123
- ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {
123
+ ownKeys.push.apply(ownKeys, Object.getOwnPropertySymbols(source).filter(function (sym) {
124
124
  return Object.getOwnPropertyDescriptor(source, sym).enumerable;
125
125
  }));
126
126
  }
@@ -38903,12 +38903,11 @@
38903
38903
  _createClass(TableLayout, [{
38904
38904
  key: "updateScrollY",
38905
38905
  value: function updateScrollY() {
38906
- var height = this.height;
38907
- if (typeof height !== 'string' && typeof height !== 'number') return;
38906
+ if (!this.bodyHeight) return;
38908
38907
  var bodyWrapper = this.table.bodyWrapper;
38909
38908
  if (this.table.$el && bodyWrapper) {
38910
38909
  if (this.table.isVirtualRender) {
38911
- var body = bodyWrapper.querySelector('.bk-virtual-render');
38910
+ var body = bodyWrapper.querySelector('.bk-virtual-section');
38912
38911
  this.scrollY = body.offsetHeight > this.bodyHeight;
38913
38912
  } else {
38914
38913
  var _body = bodyWrapper.querySelector('.bk-table-body');
@@ -38968,10 +38967,8 @@
38968
38967
  });
38969
38968
  }
38970
38969
  var tableHeight = this.tableHeight = this.table.$el.offsetHeight - this.paginationHeight;
38971
- if (this.height !== null && (!isNaN(this.height) || typeof this.height === 'string')) {
38972
- var footerHeight = this.footerHeight = footerWrapper ? footerWrapper.offsetHeight : 0;
38973
- this.bodyHeight = tableHeight - headerHeight - footerHeight + (footerWrapper ? 1 : 0);
38974
- }
38970
+ var footerHeight = this.footerHeight = footerWrapper ? footerWrapper.offsetHeight : 0;
38971
+ this.bodyHeight = tableHeight - headerHeight - footerHeight + (footerWrapper ? 1 : 0);
38975
38972
  this.fixedBodyHeight = this.scrollX ? this.bodyHeight - this.gutterWidth : this.bodyHeight;
38976
38973
  var noData = !this.table.data || this.table.data.length === 0;
38977
38974
  this.viewportHeight = this.scrollX ? tableHeight - (noData ? 0 : this.gutterWidth) : tableHeight;
@@ -41504,10 +41501,10 @@
41504
41501
  },
41505
41502
  doLayout: function doLayout() {
41506
41503
  if (this.$destroyed) return;
41507
- this.layout.updateColumnsWidth();
41508
41504
  if (this.shouldUpdateHeight) {
41509
41505
  this.layout.updateElsHeight();
41510
41506
  }
41507
+ this.layout.updateColumnsWidth();
41511
41508
  },
41512
41509
  sort: function sort(prop, order) {
41513
41510
  this.store.commit('sort', {
@@ -42300,7 +42297,9 @@
42300
42297
  renderCell = DEFAULT_RENDER_CELL;
42301
42298
  }
42302
42299
  if (_self.showOverflowTooltip) {
42303
- var config = _typeof(_self.showOverflowTooltip) === 'object' ? _self.showOverflowTooltip : {};
42300
+ var config = _typeof(_self.showOverflowTooltip) === 'object' ? _self.showOverflowTooltip : {
42301
+ interactive: false
42302
+ };
42304
42303
  return h("div", {
42305
42304
  "class": "cell",
42306
42305
  "directives": [{
@@ -53018,7 +53017,11 @@
53018
53017
  return selections;
53019
53018
  },
53020
53019
  changeValueList: function changeValueList() {
53021
- this.recursiveList(this.cascadeList, this.value, 'init');
53020
+ if (this.isRemote) {
53021
+ this.recursiveList(this.cascadeList, this.value, 'search');
53022
+ } else {
53023
+ this.recursiveList(this.cascadeList, this.value, 'init');
53024
+ }
53022
53025
  this.checkListStatus(this.value);
53023
53026
  var newList = this.changeList();
53024
53027
  this.multipleSelectedList = newList.filter(function (item) {
@@ -53137,7 +53140,7 @@
53137
53140
  var itemId = item.id[item.id.length - 1];
53138
53141
  var changeCheckStatus = function changeCheckStatus(arr) {
53139
53142
  arr.forEach(function (item) {
53140
- if (itemId === item.id) {
53143
+ if ("".concat(itemId) === "".concat(item.id)) {
53141
53144
  item.isSelected = false;
53142
53145
  item.isIndeterminate = false;
53143
53146
  }
@@ -53241,9 +53244,15 @@
53241
53244
  }, _vm._l(_vm.multipleSelectedList, function (item, index) {
53242
53245
  return _c('span', {
53243
53246
  key: index,
53244
- staticClass: "bk-cascade-tag-item"
53247
+ staticClass: "bk-cascade-tag-item",
53248
+ staticStyle: {
53249
+ "padding-right": "18px"
53250
+ }
53245
53251
  }, [_c('span', {
53246
- staticClass: "bk-cascade-item-name"
53252
+ staticClass: "bk-cascade-item-name",
53253
+ attrs: {
53254
+ "title": item.name
53255
+ }
53247
53256
  }, [_vm._v(_vm._s(item.name))]), _c('a', {
53248
53257
  staticClass: "remove-key",
53249
53258
  attrs: {
@@ -54347,6 +54356,16 @@
54347
54356
  separatorClass: {
54348
54357
  type: String,
54349
54358
  default: ''
54359
+ },
54360
+ backRouter: {
54361
+ type: [Object, String],
54362
+ default: function _default() {
54363
+ return null;
54364
+ }
54365
+ },
54366
+ replace: {
54367
+ type: Boolean,
54368
+ default: false
54350
54369
  }
54351
54370
  },
54352
54371
  provide: function provide() {
@@ -54359,6 +54378,14 @@
54359
54378
  if (items.length) {
54360
54379
  items[items.length - 1].setAttribute('aria-current', 'page');
54361
54380
  }
54381
+ },
54382
+ methods: {
54383
+ goBack: function goBack() {
54384
+ var backRouter = this.backRouter,
54385
+ $router = this.$router;
54386
+ if (!backRouter || !$router) return;
54387
+ this.replace ? $router.replace(backRouter) : $router.push(backRouter);
54388
+ }
54362
54389
  }
54363
54390
  };
54364
54391
 
@@ -54379,7 +54406,16 @@
54379
54406
  "aria-label": "Breadcrumb",
54380
54407
  "role": "navigation"
54381
54408
  }
54382
- }, [_vm._t("default")], 2);
54409
+ }, [!_vm.$slots.prefix && _vm.backRouter ? _c('div', {
54410
+ staticClass: "bk-breadcrumb-goback"
54411
+ }, [_c('i', {
54412
+ staticClass: "bk-icon icon-arrows-left icon-default",
54413
+ on: {
54414
+ "click": _vm.goBack
54415
+ }
54416
+ })]) : _vm._e(), _vm.$slots.prefix ? _c('div', {
54417
+ staticClass: "bk-breadcrumb-goback"
54418
+ }, [_vm._t("prefix")], 2) : _vm._e(), _vm._t("default")], 2);
54383
54419
  };
54384
54420
 
54385
54421
  var __vue_staticRenderFns__$1u = [];