vxe-table 3.16.15 → 3.16.17

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.
@@ -359,7 +359,10 @@ export default {
359
359
  }, renderHeads(h, this, isGroup, isOptimizeMode, renderHeaderList)),
360
360
  mouseConfig && mouseOpts.area
361
361
  ? h('div', {
362
- class: 'vxe-table--cell-area'
362
+ class: 'vxe-table--cell-area',
363
+ attrs: {
364
+ xid: xID
365
+ }
363
366
  }, [
364
367
  h('span', {
365
368
  class: 'vxe-table--cell-main-area'
@@ -10628,8 +10628,7 @@ const Methods = {
10628
10628
  // 已废弃,使用 dispatchEvent
10629
10629
  emitEvent(type, params, evnt) {
10630
10630
  const $xeTable = this;
10631
- const $xeGrid = $xeTable.$xeGrid;
10632
- this.$emit(type, Object.assign({ $table: $xeTable, $grid: $xeGrid, $event: evnt }, params));
10631
+ $xeTable.dispatchEvent(type, params, evnt);
10633
10632
  },
10634
10633
  focus() {
10635
10634
  this.isActivated = true;
@@ -1042,9 +1042,12 @@ export default {
1042
1042
  return footerOpts && footerOpts.options ? footerOpts.options : [];
1043
1043
  },
1044
1044
  isCtxMenu() {
1045
- return this.computeIsMenu;
1045
+ return this.computeIsContentMenu;
1046
1046
  },
1047
1047
  computeIsMenu() {
1048
+ return this.computeIsContentMenu;
1049
+ },
1050
+ computeIsContentMenu() {
1048
1051
  const $xeTable = this;
1049
1052
  const props = $xeTable;
1050
1053
  const menuOpts = $xeTable.computeMenuOpts;
package/es/ui/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { VxeUI } from '@vxe-ui/core';
2
2
  import { getFuncText } from './src/utils';
3
- export const version = "3.16.15";
3
+ export const version = "3.16.17";
4
4
  VxeUI.version = version;
5
5
  VxeUI.tableVersion = version;
6
6
  VxeUI.setConfig({
package/es/ui/src/log.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { VxeUI } from '@vxe-ui/core';
2
2
  const { log } = VxeUI;
3
- const version = `table v${"3.16.15"}`;
3
+ const version = `table v${"3.16.17"}`;
4
4
  export const warnLog = log.create('warn', version);
5
5
  export const errLog = log.create('error', version);
package/lib/index.umd.js CHANGED
@@ -3234,7 +3234,7 @@ function getClass(property, params) {
3234
3234
  ;// ./packages/ui/index.ts
3235
3235
 
3236
3236
 
3237
- const version = "3.16.15";
3237
+ const version = "3.16.17";
3238
3238
  core_.VxeUI.version = version;
3239
3239
  core_.VxeUI.tableVersion = version;
3240
3240
  core_.VxeUI.setConfig({
@@ -3908,7 +3908,7 @@ var es_iterator_map = __webpack_require__(1701);
3908
3908
  const {
3909
3909
  log: log_log
3910
3910
  } = core_.VxeUI;
3911
- const log_version = `table v${"3.16.15"}`;
3911
+ const log_version = `table v${"3.16.17"}`;
3912
3912
  const warnLog = log_log.create('warn', log_version);
3913
3913
  const errLog = log_log.create('error', log_version);
3914
3914
  ;// ./packages/table/src/columnInfo.ts
@@ -19008,12 +19008,7 @@ const Methods = {
19008
19008
  // 已废弃,使用 dispatchEvent
19009
19009
  emitEvent(type, params, evnt) {
19010
19010
  const $xeTable = this;
19011
- const $xeGrid = $xeTable.$xeGrid;
19012
- this.$emit(type, Object.assign({
19013
- $table: $xeTable,
19014
- $grid: $xeGrid,
19015
- $event: evnt
19016
- }, params));
19011
+ $xeTable.dispatchEvent(type, params, evnt);
19017
19012
  },
19018
19013
  focus() {
19019
19014
  this.isActivated = true;
@@ -20041,7 +20036,10 @@ function renderRows(h, _vm, fixedType, isOptimizeMode, tableData, tableColumn) {
20041
20036
  }, renderRows(h, this, fixedType, isOptimizeMode, renderDataList, renderColumnList))]), h('div', {
20042
20037
  class: 'vxe-table--checkbox-range'
20043
20038
  }), mouseConfig && mouseOpts.area ? h('div', {
20044
- class: 'vxe-table--cell-area'
20039
+ class: 'vxe-table--cell-area',
20040
+ attrs: {
20041
+ xid: xID
20042
+ }
20045
20043
  }, [h('span', {
20046
20044
  class: 'vxe-table--cell-main-area'
20047
20045
  }, mouseOpts.extension ? [h('span', {
@@ -20494,7 +20492,10 @@ function renderHeads(h, _vm, isGroup, isOptimizeMode, headerGroups) {
20494
20492
  h('thead', {
20495
20493
  ref: 'refHeaderTHead'
20496
20494
  }, renderHeads(h, this, isGroup, isOptimizeMode, renderHeaderList)), mouseConfig && mouseOpts.area ? h('div', {
20497
- class: 'vxe-table--cell-area'
20495
+ class: 'vxe-table--cell-area',
20496
+ attrs: {
20497
+ xid: xID
20498
+ }
20498
20499
  }, [h('span', {
20499
20500
  class: 'vxe-table--cell-main-area'
20500
20501
  }), h('span', {
@@ -30434,9 +30435,12 @@ function renderBody(h, $xeTable) {
30434
30435
  return footerOpts && footerOpts.options ? footerOpts.options : [];
30435
30436
  },
30436
30437
  isCtxMenu() {
30437
- return this.computeIsMenu;
30438
+ return this.computeIsContentMenu;
30438
30439
  },
30439
30440
  computeIsMenu() {
30441
+ return this.computeIsContentMenu;
30442
+ },
30443
+ computeIsContentMenu() {
30440
30444
  const $xeTable = this;
30441
30445
  const props = $xeTable;
30442
30446
  const menuOpts = $xeTable.computeMenuOpts;