vxe-table 3.18.5 → 3.18.7

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.
@@ -201,12 +201,12 @@ const renderSimplePanel = (h, _vm) => {
201
201
  }, [
202
202
  h('span', {
203
203
  class: ['vxe-table-custom--sort-btn', {
204
- 'is--disabled': isDisabled || isHidden || column.renderFixed
204
+ 'is--disabled': isDisabled || isHidden
205
205
  }],
206
206
  attrs: {
207
207
  title: getI18n('vxe.custom.setting.sortHelpTip')
208
208
  },
209
- on: isDisabled || isHidden || column.renderFixed
209
+ on: isDisabled || isHidden
210
210
  ? {}
211
211
  : {
212
212
  mousedown: _vm.sortMousedownEvent,
@@ -545,12 +545,12 @@ const renderPopupPanel = (h, $xeTableCustomPanel) => {
545
545
  ? ((isCrossDrag ? immediate : false) || column.level === 1
546
546
  ? h('div', {
547
547
  class: ['vxe-table-custom-popup--column-sort-btn', {
548
- 'is--disabled': isDisabled || isHidden || column.renderFixed
548
+ 'is--disabled': isDisabled || isHidden
549
549
  }],
550
550
  attrs: {
551
551
  title: getI18n('vxe.custom.setting.sortHelpTip')
552
552
  },
553
- on: (isDisabled || isHidden || column.renderFixed
553
+ on: (isDisabled || isHidden
554
554
  ? {}
555
555
  : {
556
556
  mousedown: _vm.sortMousedownEvent,
@@ -1373,8 +1373,7 @@ export default {
1373
1373
  if (!dragCol ||
1374
1374
  (dragCol && dragCol.id === column.id) ||
1375
1375
  (!isCrossDrag && column.level > 1) ||
1376
- (!immediate && column.level > 1) ||
1377
- column.renderFixed) {
1376
+ (!immediate && column.level > 1)) {
1378
1377
  showDropTip($xeTableCustomPanel, evnt, optEl, false, dragPos);
1379
1378
  return;
1380
1379
  }
@@ -9990,6 +9990,29 @@ const Methods = {
9990
9990
  }
9991
9991
  return $xeTable.$nextTick();
9992
9992
  },
9993
+ getRowGroups() {
9994
+ const $xeTable = this;
9995
+ const props = $xeTable;
9996
+ const reactData = $xeTable;
9997
+ const internalData = $xeTable;
9998
+ const { aggregateConfig, rowGroupConfig } = props;
9999
+ const { fullColumnFieldData } = internalData;
10000
+ if (aggregateConfig || rowGroupConfig) {
10001
+ const { rowGroupList } = reactData;
10002
+ return rowGroupList.map(({ field }) => {
10003
+ const colRet = fullColumnFieldData[field];
10004
+ if (colRet) {
10005
+ return colRet.column;
10006
+ }
10007
+ return { field };
10008
+ });
10009
+ }
10010
+ return [];
10011
+ },
10012
+ getRowGroupFields() {
10013
+ const $xeTable = this;
10014
+ return $xeTable.getRowGroups().map(item => item.field);
10015
+ },
9993
10016
  clearRowGroups() {
9994
10017
  const $xeTable = this;
9995
10018
  const props = $xeTable;
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.18.5";
3
+ export const version = "3.18.7";
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.18.5"}`;
3
+ const version = `table v${"3.18.7"}`;
4
4
  export const warnLog = log.create('warn', version);
5
5
  export const errLog = log.create('error', version);
package/lib/grid/index.js CHANGED
@@ -7,14 +7,18 @@ exports.default = exports.VxeGrid = exports.Grid = void 0;
7
7
  var _ui = require("../ui");
8
8
  var _grid = _interopRequireDefault(require("./src/grid"));
9
9
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
10
+ let isReg = false;
10
11
  const VxeGrid = exports.VxeGrid = Object.assign({}, _grid.default, {
11
12
  install(app) {
13
+ if (!isReg) {
14
+ isReg = true;
15
+ if (_ui.VxeUI.dynamicApp) {
16
+ _ui.VxeUI.dynamicApp.component(_grid.default.name, _grid.default);
17
+ }
18
+ }
12
19
  app.component(_grid.default.name, _grid.default);
13
20
  }
14
21
  });
15
- if (_ui.VxeUI.dynamicApp) {
16
- _ui.VxeUI.dynamicApp.component(_grid.default.name, _grid.default);
17
- }
18
22
  _ui.VxeUI.component(_grid.default);
19
23
  const Grid = exports.Grid = VxeGrid;
20
24
  var _default = exports.default = VxeGrid;
@@ -1 +1 @@
1
- Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.VxeGrid=exports.Grid=void 0;var _ui=require("../ui"),_grid=_interopRequireDefault(require("./src/grid"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}let VxeGrid=exports.VxeGrid=Object.assign({},_grid.default,{install(e){e.component(_grid.default.name,_grid.default)}}),Grid=(_ui.VxeUI.dynamicApp&&_ui.VxeUI.dynamicApp.component(_grid.default.name,_grid.default),_ui.VxeUI.component(_grid.default),exports.Grid=VxeGrid);var _default=exports.default=VxeGrid;
1
+ Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.VxeGrid=exports.Grid=void 0;var _ui=require("../ui"),_grid=_interopRequireDefault(require("./src/grid"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}let isReg=!1,VxeGrid=exports.VxeGrid=Object.assign({},_grid.default,{install(e){isReg||(isReg=!0,_ui.VxeUI.dynamicApp&&_ui.VxeUI.dynamicApp.component(_grid.default.name,_grid.default)),e.component(_grid.default.name,_grid.default)}}),Grid=(_ui.VxeUI.component(_grid.default),exports.Grid=VxeGrid);var _default=exports.default=VxeGrid;
package/lib/index.umd.js CHANGED
@@ -2002,7 +2002,7 @@ function getClass(property, params) {
2002
2002
  ;// CONCATENATED MODULE: ./packages/ui/index.ts
2003
2003
 
2004
2004
 
2005
- const version = "3.18.5";
2005
+ const version = "3.18.7";
2006
2006
  core_.VxeUI.version = version;
2007
2007
  core_.VxeUI.tableVersion = version;
2008
2008
  core_.VxeUI.setConfig({
@@ -2678,7 +2678,7 @@ function isNodeElement(elem) {
2678
2678
  const {
2679
2679
  log: log_log
2680
2680
  } = core_.VxeUI;
2681
- const log_version = `table v${"3.18.5"}`;
2681
+ const log_version = `table v${"3.18.7"}`;
2682
2682
  const warnLog = log_log.create('warn', log_version);
2683
2683
  const errLog = log_log.create('error', log_version);
2684
2684
  ;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
@@ -17509,6 +17509,40 @@ const Methods = {
17509
17509
  }
17510
17510
  return $xeTable.$nextTick();
17511
17511
  },
17512
+ getRowGroups() {
17513
+ const $xeTable = this;
17514
+ const props = $xeTable;
17515
+ const reactData = $xeTable;
17516
+ const internalData = $xeTable;
17517
+ const {
17518
+ aggregateConfig,
17519
+ rowGroupConfig
17520
+ } = props;
17521
+ const {
17522
+ fullColumnFieldData
17523
+ } = internalData;
17524
+ if (aggregateConfig || rowGroupConfig) {
17525
+ const {
17526
+ rowGroupList
17527
+ } = reactData;
17528
+ return rowGroupList.map(({
17529
+ field
17530
+ }) => {
17531
+ const colRet = fullColumnFieldData[field];
17532
+ if (colRet) {
17533
+ return colRet.column;
17534
+ }
17535
+ return {
17536
+ field
17537
+ };
17538
+ });
17539
+ }
17540
+ return [];
17541
+ },
17542
+ getRowGroupFields() {
17543
+ const $xeTable = this;
17544
+ return $xeTable.getRowGroups().map(item => item.field);
17545
+ },
17512
17546
  clearRowGroups() {
17513
17547
  const $xeTable = this;
17514
17548
  const props = $xeTable;
@@ -21523,12 +21557,12 @@ const renderSimplePanel = (h, _vm) => {
21523
21557
  class: 'vxe-table-custom--sort-option'
21524
21558
  }, [h('span', {
21525
21559
  class: ['vxe-table-custom--sort-btn', {
21526
- 'is--disabled': isDisabled || isHidden || column.renderFixed
21560
+ 'is--disabled': isDisabled || isHidden
21527
21561
  }],
21528
21562
  attrs: {
21529
21563
  title: panel_getI18n('vxe.custom.setting.sortHelpTip')
21530
21564
  },
21531
- on: isDisabled || isHidden || column.renderFixed ? {} : {
21565
+ on: isDisabled || isHidden ? {} : {
21532
21566
  mousedown: _vm.sortMousedownEvent,
21533
21567
  mouseup: _vm.sortMouseupEvent
21534
21568
  }
@@ -21824,12 +21858,12 @@ const renderPopupPanel = (h, $xeTableCustomPanel) => {
21824
21858
  class: 'vxe-table-custom-popup--name'
21825
21859
  }, [allowSort ? (isCrossDrag ? immediate : false) || column.level === 1 ? h('div', {
21826
21860
  class: ['vxe-table-custom-popup--column-sort-btn', {
21827
- 'is--disabled': isDisabled || isHidden || column.renderFixed
21861
+ 'is--disabled': isDisabled || isHidden
21828
21862
  }],
21829
21863
  attrs: {
21830
21864
  title: panel_getI18n('vxe.custom.setting.sortHelpTip')
21831
21865
  },
21832
- on: isDisabled || isHidden || column.renderFixed ? {} : {
21866
+ on: isDisabled || isHidden ? {} : {
21833
21867
  mousedown: _vm.sortMousedownEvent,
21834
21868
  mouseup: _vm.sortMouseupEvent
21835
21869
  }
@@ -22623,7 +22657,7 @@ const renderPopupPanel = (h, $xeTableCustomPanel) => {
22623
22657
  evnt.preventDefault();
22624
22658
  const offsetY = evnt.clientY - optEl.getBoundingClientRect().y;
22625
22659
  const dragPos = offsetY < optEl.clientHeight / 2 ? 'top' : 'bottom';
22626
- if (!dragCol || dragCol && dragCol.id === column.id || !isCrossDrag && column.level > 1 || !immediate && column.level > 1 || column.renderFixed) {
22660
+ if (!dragCol || dragCol && dragCol.id === column.id || !isCrossDrag && column.level > 1 || !immediate && column.level > 1) {
22627
22661
  panel_showDropTip($xeTableCustomPanel, evnt, optEl, false, dragPos);
22628
22662
  return;
22629
22663
  }
@@ -34610,14 +34644,18 @@ function grid_createInternalData() {
34610
34644
  ;// CONCATENATED MODULE: ./packages/grid/index.ts
34611
34645
 
34612
34646
 
34647
+ let isReg = false;
34613
34648
  const VxeGrid = Object.assign({}, grid, {
34614
34649
  install(app) {
34650
+ if (!isReg) {
34651
+ isReg = true;
34652
+ if (core_.VxeUI.dynamicApp) {
34653
+ core_.VxeUI.dynamicApp.component(grid.name, grid);
34654
+ }
34655
+ }
34615
34656
  app.component(grid.name, grid);
34616
34657
  }
34617
34658
  });
34618
- if (core_.VxeUI.dynamicApp) {
34619
- core_.VxeUI.dynamicApp.component(grid.name, grid);
34620
- }
34621
34659
  core_.VxeUI.component(grid);
34622
34660
  const Grid = VxeGrid;
34623
34661
  /* harmony default export */ var packages_grid = ((/* unused pure expression or super */ null && (VxeGrid)));
@@ -35992,7 +36030,7 @@ render_renderer.mixin({
35992
36030
 
35993
36031
 
35994
36032
 
35995
- let isReg = false;
36033
+ let table_isReg = false;
35996
36034
  const VxeTable = Object.assign({}, table, {
35997
36035
  install(app) {
35998
36036
  if (typeof window !== 'undefined') {
@@ -36024,8 +36062,8 @@ const VxeTable = Object.assign({}, table, {
36024
36062
  (external_commonjs_vue_commonjs2_vue_root_Vue_default()).prototype.$vxe.t = core_.VxeUI.t;
36025
36063
  (external_commonjs_vue_commonjs2_vue_root_Vue_default()).prototype.$vxe._t = core_.VxeUI._t;
36026
36064
  }
36027
- if (!isReg) {
36028
- isReg = true;
36065
+ if (!table_isReg) {
36066
+ table_isReg = true;
36029
36067
  if (core_.VxeUI.dynamicApp) {
36030
36068
  core_.VxeUI.dynamicApp.component(table.name, table);
36031
36069
  }