vxe-table 3.17.14 → 3.17.16

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.
@@ -360,7 +360,10 @@ export default {
360
360
  ]),
361
361
  mouseConfig && mouseOpts.area
362
362
  ? h('div', {
363
- class: 'vxe-table--cell-area'
363
+ class: 'vxe-table--cell-area',
364
+ attrs: {
365
+ xid: xID
366
+ }
364
367
  }, [
365
368
  h('span', {
366
369
  class: 'vxe-table--cell-main-area'
@@ -10871,8 +10871,7 @@ const Methods = {
10871
10871
  // 已废弃,使用 dispatchEvent
10872
10872
  emitEvent(type, params, evnt) {
10873
10873
  const $xeTable = this;
10874
- const $xeGrid = $xeTable.$xeGrid;
10875
- this.$emit(type, Object.assign({ $table: $xeTable, $grid: $xeGrid, $event: evnt }, params));
10874
+ $xeTable.dispatchEvent(type, params, evnt);
10876
10875
  },
10877
10876
  focus() {
10878
10877
  this.isActivated = true;
@@ -1048,9 +1048,12 @@ export default {
1048
1048
  return footerOpts && footerOpts.options ? footerOpts.options : [];
1049
1049
  },
1050
1050
  isCtxMenu() {
1051
- return this.computeIsMenu;
1051
+ return this.computeIsContentMenu;
1052
1052
  },
1053
1053
  computeIsMenu() {
1054
+ return this.computeIsContentMenu;
1055
+ },
1056
+ computeIsContentMenu() {
1054
1057
  const $xeTable = this;
1055
1058
  const props = $xeTable;
1056
1059
  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.17.14";
3
+ export const version = "3.17.16";
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.17.14"}`;
3
+ const version = `table v${"3.17.16"}`;
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.17.14";
3237
+ const version = "3.17.16";
3238
3238
  core_.VxeUI.version = version;
3239
3239
  core_.VxeUI.tableVersion = version;
3240
3240
  core_.VxeUI.setConfig({
@@ -3918,7 +3918,7 @@ var es_iterator_map = __webpack_require__(1701);
3918
3918
  const {
3919
3919
  log: log_log
3920
3920
  } = core_.VxeUI;
3921
- const log_version = `table v${"3.17.14"}`;
3921
+ const log_version = `table v${"3.17.16"}`;
3922
3922
  const warnLog = log_log.create('warn', log_version);
3923
3923
  const errLog = log_log.create('error', log_version);
3924
3924
  ;// ./packages/table/src/columnInfo.ts
@@ -19704,12 +19704,7 @@ const Methods = {
19704
19704
  // 已废弃,使用 dispatchEvent
19705
19705
  emitEvent(type, params, evnt) {
19706
19706
  const $xeTable = this;
19707
- const $xeGrid = $xeTable.$xeGrid;
19708
- this.$emit(type, Object.assign({
19709
- $table: $xeTable,
19710
- $grid: $xeGrid,
19711
- $event: evnt
19712
- }, params));
19707
+ $xeTable.dispatchEvent(type, params, evnt);
19713
19708
  },
19714
19709
  focus() {
19715
19710
  this.isActivated = true;
@@ -20762,7 +20757,10 @@ function renderRows(h, _vm, fixedType, isOptimizeMode, tableData, tableColumn) {
20762
20757
  }, renderRows(h, this, fixedType, isOptimizeMode, renderDataList, renderColumnList))]), h('div', {
20763
20758
  class: 'vxe-table--checkbox-range'
20764
20759
  }), mouseConfig && mouseOpts.area ? h('div', {
20765
- class: 'vxe-table--cell-area'
20760
+ class: 'vxe-table--cell-area',
20761
+ attrs: {
20762
+ xid: xID
20763
+ }
20766
20764
  }, [h('span', {
20767
20765
  class: 'vxe-table--cell-main-area'
20768
20766
  }, mouseOpts.extension ? [h('span', {
@@ -21216,7 +21214,10 @@ function renderHeads(h, _vm, isGroup, isOptimizeMode, headerGroups) {
21216
21214
  h('thead', {
21217
21215
  ref: 'refHeaderTHead'
21218
21216
  }, renderHeads(h, this, isGroup, isOptimizeMode, renderHeaderList))]), mouseConfig && mouseOpts.area ? h('div', {
21219
- class: 'vxe-table--cell-area'
21217
+ class: 'vxe-table--cell-area',
21218
+ attrs: {
21219
+ xid: xID
21220
+ }
21220
21221
  }, [h('span', {
21221
21222
  class: 'vxe-table--cell-main-area'
21222
21223
  }), h('span', {
@@ -30867,9 +30868,12 @@ function renderBody(h, $xeTable) {
30867
30868
  return footerOpts && footerOpts.options ? footerOpts.options : [];
30868
30869
  },
30869
30870
  isCtxMenu() {
30870
- return this.computeIsMenu;
30871
+ return this.computeIsContentMenu;
30871
30872
  },
30872
30873
  computeIsMenu() {
30874
+ return this.computeIsContentMenu;
30875
+ },
30876
+ computeIsContentMenu() {
30873
30877
  const $xeTable = this;
30874
30878
  const props = $xeTable;
30875
30879
  const menuOpts = $xeTable.computeMenuOpts;