bk-magic-vue 2.4.9 → 2.4.11-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.
@@ -8990,6 +8990,15 @@ span.bk-date-picker-cells-cell-disabled.bk-date-picker-cells-cell-selected em{
8990
8990
  width:100%;
8991
8991
  z-index:777;
8992
8992
  }
8993
+ .bk-select-tag-input{
8994
+ height:22px;
8995
+ max-width:190px;
8996
+ padding:0;
8997
+ margin:4px 5px 4px 0;
8998
+ overflow:hidden;
8999
+ border:none;
9000
+ outline:none;
9001
+ }
8993
9002
  .bk-sideslider-show{
8994
9003
  overflow-y:hidden !important;
8995
9004
  }
@@ -15353,9 +15362,23 @@ th.bk-table-column-selection .cell, th.bk-table-column-expand .cell, td.bk-table
15353
15362
  font-size:26px;
15354
15363
  }
15355
15364
  .bk-divider{
15356
- position:relative
15365
+ position:relative
15357
15366
  }
15358
- .bk-divider-info{
15367
+ .bk-divider.bk-divider__vertical{
15368
+ display:inline-block;
15369
+ width:0;
15370
+ height:1em;
15371
+ margin:0 8px;
15372
+ verticalAlign:middle;
15373
+ }
15374
+ .bk-divider.bk-divider__horizontal{
15375
+ display:block;
15376
+ width:100%;
15377
+ height:0;
15378
+ margin:1em 0;
15379
+ verticalAlign:middle;
15380
+ }
15381
+ .bk-divider .bk-divider-info{
15359
15382
  position:absolute;
15360
15383
  padding:0 1.4em;
15361
15384
  color:#313238;
@@ -15363,16 +15386,16 @@ th.bk-table-column-selection .cell, th.bk-table-column-expand .cell, td.bk-table
15363
15386
  -webkit-transform:translateY(-50%);
15364
15387
  transform:translateY(-50%);
15365
15388
  background-color:#fff;
15366
- }
15367
- .bk-divider-info-left{
15389
+ }
15390
+ .bk-divider .bk-divider-info-left{
15368
15391
  left:2em;
15369
15392
  }
15370
- .bk-divider-info-center{
15393
+ .bk-divider .bk-divider-info-center{
15371
15394
  left:50%;
15372
15395
  -webkit-transform:translateX(-50%) translateY(-50%);
15373
15396
  transform:translateX(-50%) translateY(-50%)
15374
15397
  }
15375
- .bk-divider-info-right{
15398
+ .bk-divider .bk-divider-info-right{
15376
15399
  right:2em;
15377
15400
  }
15378
15401
  .bk-compose-form-item{
@@ -25272,7 +25272,7 @@
25272
25272
  timer: 0,
25273
25273
  isShow: false,
25274
25274
  popInstance: null,
25275
- containerHeight: 32
25275
+ holderHeight: variable_1
25276
25276
  };
25277
25277
  },
25278
25278
  computed: {
@@ -25287,7 +25287,6 @@
25287
25287
  }
25288
25288
  },
25289
25289
  mounted: function mounted() {
25290
- this.containerHeight = this.containerHeight + _parseInt$2(variable_1, 10);
25291
25290
  var placement = "bottom".concat(this.getPlacementFix());
25292
25291
  this.popInstance = new Popper(this.$refs.refDropTrigger, this.$refs.refDropContent, {
25293
25292
  placement: placement,
@@ -25383,9 +25382,6 @@
25383
25382
  }],
25384
25383
  staticClass: "bk-dropdown-menu",
25385
25384
  class: [_vm.disabled ? 'disabled' : '', _vm.positionFixed ? '' : 'bk-dropdown-full-width', _vm.fontSizeCls, _vm.extCls],
25386
- style: {
25387
- height: _vm.containerHeight + 'px'
25388
- },
25389
25385
  attrs: {
25390
25386
  "tabindex": "0"
25391
25387
  },
@@ -25414,6 +25410,12 @@
25414
25410
  ref: "refDropTrigger",
25415
25411
  staticClass: "bk-dropdown-trigger"
25416
25412
  }, [_vm._t("dropdown-trigger")], 2), _c('div', {
25413
+ style: {
25414
+ height: _vm.holderHeight,
25415
+ width: '100%',
25416
+ position: 'absolute'
25417
+ }
25418
+ }), _c('div', {
25417
25419
  ref: "refDropContent",
25418
25420
  class: ['bk-dropdown-content', {
25419
25421
  'is-show': _vm.isShow,
@@ -29617,7 +29619,10 @@
29617
29619
  type: String,
29618
29620
  default: 'normal'
29619
29621
  },
29620
- precision: Number,
29622
+ precision: {
29623
+ type: Number,
29624
+ default: 0
29625
+ },
29621
29626
  passwordIcon: {
29622
29627
  type: Array,
29623
29628
  default: function _default() {
@@ -29670,7 +29675,15 @@
29670
29675
  inputSize: this.size,
29671
29676
  inputPasswordIcon: this.passwordIcon,
29672
29677
  inputRightPadding: '10px',
29673
- iconAreaSizeObserver: null
29678
+ iconAreaSizeObserver: null,
29679
+ validKeyCodeList: [48, 49, 50, 51, 52, 53, 54, 55, 56, 57,
29680
+ 8,
29681
+ 189,
29682
+ 190,
29683
+ 38, 40, 37, 39,
29684
+ 46,
29685
+ 9
29686
+ ]
29674
29687
  };
29675
29688
  },
29676
29689
  computed: {
@@ -29822,6 +29835,7 @@
29822
29835
  max: this.max
29823
29836
  };
29824
29837
  _extends(outputAttr, defaultAttr, numberAttr);
29838
+ outputAttr.type = 'text';
29825
29839
  break;
29826
29840
  case 'textarea':
29827
29841
  var txtAttr = {
@@ -29926,7 +29940,53 @@
29926
29940
  this.$emit('keypress', value, event);
29927
29941
  },
29928
29942
  handlerKeydown: function handlerKeydown(event) {
29929
- var value = event.target.value;
29943
+ var keyCode = event.keyCode;
29944
+ var target = event.currentTarget;
29945
+ var value = target.value;
29946
+ if (this.inputType === 'number') {
29947
+ if (this.validKeyCodeList.indexOf(keyCode) < 0) {
29948
+ event.stopPropagation();
29949
+ event.preventDefault();
29950
+ return false;
29951
+ }
29952
+ if (keyCode === 190) {
29953
+ if (this.precision === 0) {
29954
+ event.stopPropagation();
29955
+ event.preventDefault();
29956
+ return false;
29957
+ }
29958
+ if (String(value).trim()) {
29959
+ if (value.indexOf('.') >= 0) {
29960
+ event.stopPropagation();
29961
+ event.preventDefault();
29962
+ return false;
29963
+ }
29964
+ }
29965
+ }
29966
+ if (event.keyCode === 189) {
29967
+ if (String(value).trim()) {
29968
+ if (value.indexOf('-') >= 0) {
29969
+ event.stopPropagation();
29970
+ event.preventDefault();
29971
+ return false;
29972
+ }
29973
+ if (document.getSelection().type !== 'Range') {
29974
+ if (target.selectionEnd !== 0) {
29975
+ event.stopPropagation();
29976
+ event.preventDefault();
29977
+ return false;
29978
+ }
29979
+ }
29980
+ }
29981
+ }
29982
+ if (keyCode === 38) {
29983
+ event.preventDefault();
29984
+ this.handleNumberAdd(event);
29985
+ } else if (keyCode === 40) {
29986
+ event.preventDefault();
29987
+ this.handleNumberDelete(event);
29988
+ }
29989
+ }
29930
29990
  this.$emit('keydown', value, event);
29931
29991
  },
29932
29992
  handlerFocus: function handlerFocus(event) {
@@ -31809,7 +31869,8 @@
31809
31869
  data: function data() {
31810
31870
  return {
31811
31871
  overflowTagNode: null,
31812
- overflowTagIndex: null
31872
+ overflowTagIndex: null,
31873
+ newOptionName: ''
31813
31874
  };
31814
31875
  },
31815
31876
  mounted: function mounted() {
@@ -31817,12 +31878,22 @@
31817
31878
  this.calcOverflow();
31818
31879
  this.$watch(function () {
31819
31880
  return _this.select.focus;
31820
- }, this.calcOverflow);
31881
+ }, function (isFocus) {
31882
+ _this.calcOverflow();
31883
+ if (isFocus) {
31884
+ _this.focusInput();
31885
+ } else {
31886
+ _this.newOptionName = '';
31887
+ }
31888
+ });
31821
31889
  this.$watch(function () {
31822
31890
  return _this.select.selected;
31823
31891
  }, this.calcOverflow);
31824
31892
  },
31825
31893
  methods: {
31894
+ focusInput: function focusInput() {
31895
+ this.$refs.inputRef && this.$refs.inputRef.focus();
31896
+ },
31826
31897
  handleRemoveSelected: function handleRemoveSelected(event, option) {
31827
31898
  if (this.select.disabled || this.select.readonly) {
31828
31899
  return false;
@@ -31898,6 +31969,10 @@
31898
31969
  if (this.overflowTagNode && this.overflowTagNode.parentNode === this.$el) {
31899
31970
  this.$el.removeChild(this.overflowTagNode);
31900
31971
  }
31972
+ },
31973
+ handleCreateTag: function handleCreateTag(e) {
31974
+ this.$emit('create-tag', e.target.value);
31975
+ this.newOptionName = '';
31901
31976
  }
31902
31977
  }
31903
31978
  };
@@ -31925,7 +32000,7 @@
31925
32000
  'is-small-size': _vm.select.size === 'small',
31926
32001
  'has-prefix-icon': !!_vm.select.prefixIcon
31927
32002
  }
31928
- }, _vm._l(_vm.select.selectedOptions, function (option) {
32003
+ }, [_vm._l(_vm.select.selectedOptions, function (option) {
31929
32004
  return _c('div', {
31930
32005
  key: option.id,
31931
32006
  staticClass: "bk-select-tag",
@@ -31940,7 +32015,36 @@
31940
32015
  }
31941
32016
  }
31942
32017
  })]);
31943
- }), 0);
32018
+ }), _vm.select.allowCreate ? _c('input', {
32019
+ directives: [{
32020
+ name: "model",
32021
+ rawName: "v-model",
32022
+ value: _vm.newOptionName,
32023
+ expression: "newOptionName"
32024
+ }],
32025
+ ref: "inputRef",
32026
+ staticClass: "bk-select-tag-input",
32027
+ domProps: {
32028
+ "value": _vm.newOptionName
32029
+ },
32030
+ on: {
32031
+ "blur": _vm.handleCreateTag,
32032
+ "keyup": function keyup($event) {
32033
+ if (!('button' in $event) && _vm._k($event.keyCode, "enter", 13, $event.key, "Enter")) {
32034
+ return null;
32035
+ }
32036
+
32037
+ return _vm.handleCreateTag($event);
32038
+ },
32039
+ "input": function input($event) {
32040
+ if ($event.target.composing) {
32041
+ return;
32042
+ }
32043
+
32044
+ _vm.newOptionName = $event.target.value;
32045
+ }
32046
+ }
32047
+ }) : _vm._e()], 2);
31944
32048
  };
31945
32049
 
31946
32050
  var __vue_staticRenderFns__$J = [];
@@ -32676,7 +32780,8 @@
32676
32780
  bkSelectTag: __vue_component__$J,
32677
32781
  bkVirtualScroll: __vue_component__$K,
32678
32782
  virtualOption: virtualOption,
32679
- bkSpin: __vue_component__$7
32783
+ bkSpin: __vue_component__$7,
32784
+ bkOption: __vue_component__$F
32680
32785
  },
32681
32786
  directives: {
32682
32787
  bkloading: bkLoading
@@ -32714,6 +32819,10 @@
32714
32819
  default: true
32715
32820
  },
32716
32821
  allowCreate: Boolean,
32822
+ allowEnter: {
32823
+ type: Boolean,
32824
+ default: true
32825
+ },
32717
32826
  disabled: Boolean,
32718
32827
  readonly: Boolean,
32719
32828
  loading: Boolean,
@@ -32836,7 +32945,8 @@
32836
32945
  autoUpdate: false,
32837
32946
  renderPopoverOptions: {},
32838
32947
  popoverDistance: 10 + _parseInt$2(variable_1),
32839
- optionList: null
32948
+ optionList: null,
32949
+ allowCreateData: []
32840
32950
  };
32841
32951
  },
32842
32952
  computed: {
@@ -32957,6 +33067,11 @@
32957
33067
  if (this.shouldUpdate || this.autoUpdate) {
32958
33068
  this.setSelectedOptions();
32959
33069
  }
33070
+ if (this.allowCreate && this.displayTag && this.multiple && isArray$1(value)) {
33071
+ this.allowCreateData = this.allowCreateData.filter(function (item) {
33072
+ return value.includes(item.id);
33073
+ });
33074
+ }
32960
33075
  this.$emit('input', value);
32961
33076
  this.$emit('change', value, oldValue);
32962
33077
  this.dispatch('bk-form-item', 'form-change');
@@ -33086,7 +33201,7 @@
33086
33201
  var popover = this.getPopoverInstance();
33087
33202
  popover.set({
33088
33203
  onShown: function onShown() {
33089
- if (_this6.searchable && !_this6.allowCreate) {
33204
+ if (_this6.searchable) {
33090
33205
  _this6.$refs.searchInput.focus();
33091
33206
  }
33092
33207
  }
@@ -33100,7 +33215,6 @@
33100
33215
  this.focus = false;
33101
33216
  },
33102
33217
  handleInputChange: function handleInputChange(e) {
33103
- console.log(e.target.value);
33104
33218
  var value = e.target.value;
33105
33219
  this.$emit('input', value);
33106
33220
  this.$emit('change', value, this.value);
@@ -33134,6 +33248,7 @@
33134
33248
  this.$nextTick(function () {
33135
33249
  _this7.$emit('selected', _this7.selected, _this7.selectedOptions);
33136
33250
  });
33251
+ this.focusTagInput();
33137
33252
  },
33138
33253
  unselectOption: function unselectOption(option) {
33139
33254
  var _this8 = this;
@@ -33254,6 +33369,58 @@
33254
33369
  this.close();
33255
33370
  this.$refs.bkSelect && this.$refs.bkSelect.focus();
33256
33371
  },
33372
+ ensureSearch: function ensureSearch() {
33373
+ var _this12 = this;
33374
+ if (!this.allowEnter) {
33375
+ return false;
33376
+ }
33377
+ var option = {};
33378
+ this.options.some(function (item) {
33379
+ var searchValue = _this12.searchValue;
33380
+ var data = item;
33381
+ if (item.$options) {
33382
+ data = item.$options.propsData;
33383
+ }
33384
+ var name = data.name;
33385
+ if (typeof name === 'string' && _this12.searchWithPinyin) {
33386
+ var pinyinList = pinyin.parse(name).map(function (v) {
33387
+ if (v.type === 2) {
33388
+ return v.target.toLowerCase();
33389
+ }
33390
+ return v.target;
33391
+ });
33392
+ var pinyinStr = pinyinList.reduce(function (res, cur) {
33393
+ return res + cur[0];
33394
+ }, '');
33395
+ if (pinyinList.join('').indexOf(searchValue) !== -1 || pinyinStr.indexOf(searchValue) !== -1) {
33396
+ option = data;
33397
+ return true;
33398
+ }
33399
+ return pinyinList.join('').indexOf(searchValue) !== -1 || pinyinStr.indexOf(searchValue) !== -1;
33400
+ } else {
33401
+ if ("".concat(name).includes(_this12.searchValue)) {
33402
+ option = data;
33403
+ return true;
33404
+ }
33405
+ }
33406
+ return false;
33407
+ });
33408
+ if (option) {
33409
+ if (this.multiple && this.selected.includes(option.id)) {
33410
+ return false;
33411
+ }
33412
+ this.selectOption(option);
33413
+ } else {
33414
+ if (this.allowCreate) {
33415
+ this.$refs.createInput.value = this.searchValue;
33416
+ this.handleInputChange({
33417
+ target: {
33418
+ value: this.searchValue
33419
+ }
33420
+ });
33421
+ }
33422
+ }
33423
+ },
33257
33424
  handleTabRemove: function handleTabRemove(options) {
33258
33425
  this.$emit('tab-remove', options);
33259
33426
  },
@@ -33266,6 +33433,19 @@
33266
33433
  if (optionList.scrollHeight - (optionList.clientHeight + optionList.scrollTop) < 30) {
33267
33434
  this.$emit('scroll-end', true);
33268
33435
  }
33436
+ },
33437
+ handleCreateTag: function handleCreateTag(value) {
33438
+ if (!value || this.optionsMap[value] || this.allowCreateData.find(function (item) {
33439
+ return item.id === value;
33440
+ })) return;
33441
+ this.allowCreateData.push({
33442
+ id: value,
33443
+ name: value
33444
+ });
33445
+ this.selected.push(value);
33446
+ },
33447
+ focusTagInput: function focusTagInput() {
33448
+ this.$refs.bkSelectTag && this.$refs.bkSelectTag.focusInput();
33269
33449
  }
33270
33450
  }
33271
33451
  };
@@ -33357,10 +33537,15 @@
33357
33537
  }, [_vm.prefixIcon ? _c('i', {
33358
33538
  class: ['bk-select-prefix-icon', _vm.prefixIcon]
33359
33539
  }) : _vm._e(), _vm._t("trigger", [_vm.multiple && _vm.displayTag ? _c('bk-select-tag', {
33540
+ ref: "bkSelectTag",
33360
33541
  attrs: {
33361
33542
  "width-limit": _vm.isTagWidthLimit
33543
+ },
33544
+ on: {
33545
+ "create-tag": _vm.handleCreateTag
33362
33546
  }
33363
- }) : [_vm.allowCreate ? _c('input', {
33547
+ }) : [_vm.allowCreate && !_vm.multiple ? _c('input', {
33548
+ ref: "createInput",
33364
33549
  staticClass: "bk-select-name",
33365
33550
  class: _vm.fontSizeCls,
33366
33551
  attrs: {
@@ -33409,6 +33594,12 @@
33409
33594
  },
33410
33595
  on: {
33411
33596
  "keydown": [function ($event) {
33597
+ if (!('button' in $event) && _vm._k($event.keyCode, "enter", 13, $event.key, "Enter")) {
33598
+ return null;
33599
+ }
33600
+
33601
+ return _vm.ensureSearch($event);
33602
+ }, function ($event) {
33412
33603
  if (!('button' in $event) && _vm._k($event.keyCode, "tab", 9, $event.key, "Tab")) {
33413
33604
  return null;
33414
33605
  }
@@ -33455,7 +33646,21 @@
33455
33646
  }
33456
33647
  }, [_vm.multiple && _vm.showSelectAll && !_vm.searchValue ? _c('bk-option-all', {
33457
33648
  ref: "selectAllOption"
33458
- }) : _vm._e(), _vm.enableVirtualScroll ? _c('bk-virtual-scroll', {
33649
+ }) : _vm._e(), _vm._l(_vm.allowCreateData, function (item) {
33650
+ return _c('bk-option', {
33651
+ directives: [{
33652
+ name: "show",
33653
+ rawName: "v-show",
33654
+ value: false,
33655
+ expression: "false"
33656
+ }],
33657
+ key: item.id,
33658
+ attrs: {
33659
+ "id": item.id,
33660
+ "name": item.name
33661
+ }
33662
+ });
33663
+ }), _vm.enableVirtualScroll ? _c('bk-virtual-scroll', {
33459
33664
  ref: "virtualScroll",
33460
33665
  staticClass: "bk-virtual-select",
33461
33666
  style: {
@@ -35384,9 +35589,7 @@
35384
35589
  name: {
35385
35590
  type: [String, Number],
35386
35591
  default: function _default() {
35387
- var seed = 0;
35388
- var now = now$1();
35389
- return "bk_radio_".concat(now, "_").concat(seed++);
35592
+ return "bk_radio_".concat(uuid());
35390
35593
  }
35391
35594
  }
35392
35595
  },
@@ -37184,7 +37387,7 @@
37184
37387
  type: String,
37185
37388
  default: '',
37186
37389
  validator: function validator(value) {
37187
- if (['', 'large', 'small'].indexOf(value) < 0) {
37390
+ if (['', 'normal', 'large', 'small'].indexOf(value) < 0) {
37188
37391
  console.error("size property is not valid: '".concat(value, "'"));
37189
37392
  return false;
37190
37393
  }
@@ -48483,6 +48686,16 @@
48483
48686
  var indexMove = this.realWidth * this.currentIndex;
48484
48687
  var imageMove = indexMove - this.mouseDistance;
48485
48688
  return -imageMove;
48689
+ },
48690
+ swiperStyle: function swiperStyle() {
48691
+ var swiperStyle = {};
48692
+ if (this.realWidth > 0) {
48693
+ swiperStyle.width = "".concat(this.realWidth, "px");
48694
+ }
48695
+ if (this.realHeight > 0) {
48696
+ swiperStyle.height = "".concat(this.realHeight, "px");
48697
+ }
48698
+ return swiperStyle;
48486
48699
  }
48487
48700
  },
48488
48701
  watch: {
@@ -48501,16 +48714,21 @@
48501
48714
  }
48502
48715
  },
48503
48716
  mounted: function mounted() {
48504
- this.initStatus();
48717
+ var _this = this;
48718
+ setTimeout(function () {
48719
+ _this.initStatus();
48720
+ });
48505
48721
  },
48506
48722
  beforeDestroy: function beforeDestroy() {
48507
48723
  this.destoryStatus();
48508
48724
  },
48509
48725
  methods: {
48510
48726
  calcSize: function calcSize() {
48727
+ console.log(this);
48728
+ var swiperSize = getElementSize(this.$refs.swiper);
48511
48729
  var swiperParentSize = getElementSize(this.$refs.swiper && this.$refs.swiper.parentElement);
48512
- this.realWidth = +this.width > 0 ? this.width : swiperParentSize.width || 600;
48513
- this.realHeight = +this.height > 0 ? this.height : swiperParentSize.height || 300;
48730
+ this.realWidth = +this.width > 0 ? this.width : swiperSize.width > 0 ? swiperSize.width : swiperParentSize.width;
48731
+ this.realHeight = +this.height > 0 ? this.height : swiperSize.height > 25 ? swiperSize.height : swiperParentSize.height;
48514
48732
  },
48515
48733
  initStatus: function initStatus() {
48516
48734
  this.calcSize();
@@ -48524,13 +48742,13 @@
48524
48742
  document.removeEventListener('visibilitychange', this.visChange);
48525
48743
  },
48526
48744
  watchParentSizeChange: function watchParentSizeChange() {
48527
- var _this = this;
48745
+ var _this2 = this;
48528
48746
  var parentEle = this.$refs.swiper && this.$refs.swiper.parentElement;
48529
48747
  if (!parentEle || !window.ResizeObserver) {
48530
48748
  return;
48531
48749
  }
48532
48750
  this.resizeObserver = new ResizeObserver(function () {
48533
- _this.calcSize();
48751
+ _this2.calcSize();
48534
48752
  });
48535
48753
  this.resizeObserver.observe(parentEle);
48536
48754
  },
@@ -48597,13 +48815,13 @@
48597
48815
  }
48598
48816
  },
48599
48817
  startLoop: function startLoop() {
48600
- var _this2 = this;
48818
+ var _this3 = this;
48601
48819
  if (!this.isLoop) return;
48602
48820
  this.endLoop();
48603
48821
  this.loopId = window.setTimeout(function () {
48604
- _this2.isTransition = true;
48605
- _this2.changeCurrentIndex(_this2.currentIndex + 1);
48606
- _this2.startLoop();
48822
+ _this3.isTransition = true;
48823
+ _this3.changeCurrentIndex(_this3.currentIndex + 1);
48824
+ _this3.startLoop();
48607
48825
  }, this.loopTime);
48608
48826
  },
48609
48827
  endLoop: function endLoop() {
@@ -48626,10 +48844,7 @@
48626
48844
  return _vm.sourceList.length ? _c('section', {
48627
48845
  ref: "swiper",
48628
48846
  class: ['bk-swiper-home', _vm.extCls],
48629
- style: {
48630
- width: _vm.realWidth + "px",
48631
- height: _vm.realHeight + "px"
48632
- }
48847
+ style: _vm.swiperStyle
48633
48848
  }, [_c('hgroup', {
48634
48849
  class: [{
48635
48850
  'bk-transition': _vm.isTransition
@@ -55927,20 +56142,10 @@
55927
56142
  style: function style() {
55928
56143
  if (this.direction === 'vertical') {
55929
56144
  return {
55930
- display: 'inline-block',
55931
- width: 0,
55932
- height: '1em',
55933
- margin: '0 8px',
55934
- verticalAlign: 'middle',
55935
56145
  borderRight: "".concat(this.width, "px ").concat(this.type, " ").concat(this.color)
55936
56146
  };
55937
56147
  }
55938
56148
  return {
55939
- display: 'block',
55940
- width: '100%',
55941
- height: 0,
55942
- margin: '1em 0',
55943
- verticalAlign: 'middle',
55944
56149
  borderBottom: "".concat(this.width, "px ").concat(this.type, " ").concat(this.color)
55945
56150
  };
55946
56151
  }
@@ -55960,6 +56165,7 @@
55960
56165
 
55961
56166
  return _c('div', {
55962
56167
  staticClass: "bk-divider",
56168
+ class: _vm.direction === 'horizontal' ? 'bk-divider__horizontal' : 'bk-divider__vertical',
55963
56169
  style: _vm.style
55964
56170
  }, [_vm.direction === 'horizontal' ? _c('div', {
55965
56171
  class: ['bk-divider-info', "bk-divider-info-" + _vm.align]