bi-eleme 2.0.12 → 2.1.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.
@@ -13218,12 +13218,20 @@ var convertToRows = function convertToRows(originColumns) {
13218
13218
  if (isGroup) this.$parent.isGroup = true;
13219
13219
  return h(
13220
13220
  'table',
13221
- { 'class': 'el-table__header', attrs: { cellspacing: '0', cellpadding: '0', border: '0' }
13221
+ {
13222
+ 'class': 'el-table__header',
13223
+ attrs: { cellspacing: '0',
13224
+ cellpadding: '0',
13225
+ border: '0'
13226
+ }
13222
13227
  },
13223
13228
  [h('colgroup', [this.columns.map(function (column) {
13224
13229
  return h('col', {
13225
- attrs: { name: column.id },
13226
- key: column.id });
13230
+ attrs: {
13231
+ name: column.id
13232
+ },
13233
+ key: column.id
13234
+ });
13227
13235
  }), this.hasGutter ? h('col', {
13228
13236
  attrs: { name: 'gutter' }
13229
13237
  }) : '']), h(
@@ -13232,12 +13240,18 @@ var convertToRows = function convertToRows(originColumns) {
13232
13240
  [this._l(columnRows, function (columns, rowIndex) {
13233
13241
  return h(
13234
13242
  'tr',
13235
- { style: _this.getHeaderRowStyle(rowIndex), 'class': _this.getHeaderRowClass(rowIndex) },
13243
+ {
13244
+ style: _this.getHeaderRowStyle(rowIndex),
13245
+ 'class': _this.getHeaderRowClass(rowIndex)
13246
+ },
13236
13247
  [columns.map(function (column, cellIndex) {
13237
13248
  return h(
13238
13249
  'th',
13239
13250
  {
13240
- attrs: { colspan: column.colSpan, rowspan: column.rowSpan },
13251
+ attrs: {
13252
+ colspan: column.colSpan,
13253
+ rowspan: column.rowSpan
13254
+ },
13241
13255
  on: {
13242
13256
  'mousemove': function mousemove($event) {
13243
13257
  return _this.handleMouseMove($event, column);
@@ -13249,28 +13263,41 @@ var convertToRows = function convertToRows(originColumns) {
13249
13263
  'click': function click($event) {
13250
13264
  return _this.handleHeaderClick($event, column);
13251
13265
  },
13266
+ 'dblclick': function dblclick($event) {
13267
+ return _this.handleHeaderDblclick($event, column);
13268
+ },
13252
13269
  'contextmenu': function contextmenu($event) {
13253
13270
  return _this.handleHeaderContextMenu($event, column);
13254
13271
  }
13255
13272
  },
13256
- style: _this.getHeaderCellStyle(rowIndex, cellIndex, columns, column), 'class': _this.getHeaderCellClass(rowIndex, cellIndex, columns, column), key: column.id },
13273
+
13274
+ style: _this.getHeaderCellStyle(rowIndex, cellIndex, columns, column),
13275
+ 'class': _this.getHeaderCellClass(rowIndex, cellIndex, columns, column),
13276
+ key: column.id
13277
+ },
13257
13278
  [h(
13258
13279
  'div',
13259
13280
  { 'class': ['cell', column.filteredValue && column.filteredValue.length > 0 ? 'highlight' : '', column.labelClassName] },
13260
13281
  [column.renderHeader ? column.renderHeader.call(_this._renderProxy, h, { column: column, $index: cellIndex, store: _this.store, _self: _this.$parent.$vnode.context }) : column.label, column.sortable ? h(
13261
13282
  'span',
13262
- { 'class': 'caret-wrapper', on: {
13283
+ {
13284
+ 'class': 'caret-wrapper',
13285
+ on: {
13263
13286
  'click': function click($event) {
13264
13287
  return _this.handleSortClick($event, column);
13265
13288
  }
13266
13289
  }
13267
13290
  },
13268
- [h('i', { 'class': 'sort-caret ascending', on: {
13291
+ [h('i', {
13292
+ 'class': 'sort-caret ascending',
13293
+ on: {
13269
13294
  'click': function click($event) {
13270
13295
  return _this.handleSortClick($event, column, 'ascending');
13271
13296
  }
13272
13297
  }
13273
- }), h('i', { 'class': 'sort-caret descending', on: {
13298
+ }), h('i', {
13299
+ 'class': 'sort-caret descending',
13300
+ on: {
13274
13301
  'click': function click($event) {
13275
13302
  return _this.handleSortClick($event, column, 'descending');
13276
13303
  }
@@ -13278,7 +13305,9 @@ var convertToRows = function convertToRows(originColumns) {
13278
13305
  })]
13279
13306
  ) : '', column.filterable ? h(
13280
13307
  'span',
13281
- { 'class': 'el-table__column-filter-trigger', on: {
13308
+ {
13309
+ 'class': 'el-table__column-filter-trigger',
13310
+ on: {
13282
13311
  'click': function click($event) {
13283
13312
  return _this.handleFilterClick($event, column);
13284
13313
  }
@@ -13486,6 +13515,9 @@ var convertToRows = function convertToRows(originColumns) {
13486
13515
 
13487
13516
  this.$parent.$emit('header-click', column, event);
13488
13517
  },
13518
+ handleHeaderDblclick: function handleHeaderDblclick(event, column) {
13519
+ this.$parent.$emit('header-dblclick', column, event);
13520
+ },
13489
13521
  handleHeaderContextMenu: function handleHeaderContextMenu(event, column) {
13490
13522
  this.$parent.$emit('header-contextmenu', column, event);
13491
13523
  },
@@ -24707,8 +24739,8 @@ form_item.install = function (Vue) {
24707
24739
  };
24708
24740
 
24709
24741
  /* harmony default export */ var packages_form_item = (form_item);
24710
- // CONCATENATED MODULE: ./node_modules/.store/vue-loader@15.11.1/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/.store/vue-loader@15.11.1/node_modules/vue-loader/lib??vue-loader-options!./packages/tabs/src/tab-bar.vue?vue&type=template&id=58afdf3a
24711
- var tab_barvue_type_template_id_58afdf3a_render = function () {
24742
+ // CONCATENATED MODULE: ./node_modules/.store/vue-loader@15.11.1/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/.store/vue-loader@15.11.1/node_modules/vue-loader/lib??vue-loader-options!./packages/tabs/src/tab-bar.vue?vue&type=template&id=99edca4e
24743
+ var tab_barvue_type_template_id_99edca4e_render = function () {
24712
24744
  var _vm = this
24713
24745
  var _h = _vm.$createElement
24714
24746
  var _c = _vm._self._c || _h
@@ -24718,11 +24750,11 @@ var tab_barvue_type_template_id_58afdf3a_render = function () {
24718
24750
  style: _vm.barStyle,
24719
24751
  })
24720
24752
  }
24721
- var tab_barvue_type_template_id_58afdf3a_staticRenderFns = []
24722
- tab_barvue_type_template_id_58afdf3a_render._withStripped = true
24753
+ var tab_barvue_type_template_id_99edca4e_staticRenderFns = []
24754
+ tab_barvue_type_template_id_99edca4e_render._withStripped = true
24723
24755
 
24724
24756
 
24725
- // CONCATENATED MODULE: ./packages/tabs/src/tab-bar.vue?vue&type=template&id=58afdf3a
24757
+ // CONCATENATED MODULE: ./packages/tabs/src/tab-bar.vue?vue&type=template&id=99edca4e
24726
24758
 
24727
24759
  // CONCATENATED MODULE: ./node_modules/.store/babel-loader@7.1.5/node_modules/babel-loader/lib!./node_modules/.store/vue-loader@15.11.1/node_modules/vue-loader/lib??vue-loader-options!./packages/tabs/src/tab-bar.vue?vue&type=script&lang=js
24728
24760
  //
@@ -24768,16 +24800,19 @@ tab_barvue_type_template_id_58afdf3a_render._withStripped = true
24768
24800
 
24769
24801
  if (!tab.active) {
24770
24802
  offset += $el['client' + firstUpperCase(sizeName)];
24803
+
24804
+ console.log('🚀 ~ this.tabs.every ~ offset:', offset);
24771
24805
  return true;
24772
24806
  } else {
24773
24807
  tabSize = $el['client' + firstUpperCase(sizeName)];
24774
24808
  var tabStyles = window.getComputedStyle($el);
24775
- if (sizeName === 'width' && _this.tabs.length > 1) {
24809
+ if (sizeName === 'width') {
24776
24810
  tabSize -= parseFloat(tabStyles.paddingLeft) + parseFloat(tabStyles.paddingRight);
24777
24811
  }
24778
24812
  if (sizeName === 'width') {
24779
24813
  offset += parseFloat(tabStyles.paddingLeft);
24780
24814
  }
24815
+ console.log('🚀 ~ this.tabs.every ~ offset:', offset);
24781
24816
  return false;
24782
24817
  }
24783
24818
  });
@@ -24805,8 +24840,8 @@ tab_barvue_type_template_id_58afdf3a_render._withStripped = true
24805
24840
 
24806
24841
  var tab_bar_component = normalizeComponent(
24807
24842
  src_tab_barvue_type_script_lang_js,
24808
- tab_barvue_type_template_id_58afdf3a_render,
24809
- tab_barvue_type_template_id_58afdf3a_staticRenderFns,
24843
+ tab_barvue_type_template_id_99edca4e_render,
24844
+ tab_barvue_type_template_id_99edca4e_staticRenderFns,
24810
24845
  false,
24811
24846
  null,
24812
24847
  null,
@@ -44450,7 +44485,7 @@ if (typeof window !== 'undefined' && window.Vue) {
44450
44485
  }
44451
44486
 
44452
44487
  /* harmony default export */ var src_0 = __webpack_exports__["default"] = ({
44453
- version: '2.0.12',
44488
+ version: '2.1.0',
44454
44489
  locale: lib_locale_default.a.use,
44455
44490
  i18n: lib_locale_default.a.i18n,
44456
44491
  install: src_install,