bi-eleme 2.0.13 → 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
  },
@@ -44453,7 +44485,7 @@ if (typeof window !== 'undefined' && window.Vue) {
44453
44485
  }
44454
44486
 
44455
44487
  /* harmony default export */ var src_0 = __webpack_exports__["default"] = ({
44456
- version: '2.0.13',
44488
+ version: '2.1.0',
44457
44489
  locale: lib_locale_default.a.use,
44458
44490
  i18n: lib_locale_default.a.i18n,
44459
44491
  install: src_install,