vxe-table 3.11.32 → 3.11.33

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.
Files changed (34) hide show
  1. package/es/style.css +1 -1
  2. package/es/table/module/custom/panel.js +7 -6
  3. package/es/table/src/body.js +8 -4
  4. package/es/table/src/footer.js +4 -2
  5. package/es/table/src/header.js +7 -6
  6. package/es/ui/index.js +5 -3
  7. package/es/ui/src/log.js +1 -1
  8. package/lib/index.umd.js +30 -32
  9. package/lib/index.umd.min.js +1 -1
  10. package/lib/style.css +1 -1
  11. package/lib/table/module/custom/panel.js +7 -14
  12. package/lib/table/module/custom/panel.min.js +1 -1
  13. package/lib/table/src/body.js +6 -4
  14. package/lib/table/src/body.min.js +1 -1
  15. package/lib/table/src/footer.js +4 -2
  16. package/lib/table/src/footer.min.js +1 -1
  17. package/lib/table/src/header.js +7 -8
  18. package/lib/table/src/header.min.js +1 -1
  19. package/lib/ui/index.js +5 -3
  20. package/lib/ui/index.min.js +1 -1
  21. package/lib/ui/src/log.js +1 -1
  22. package/lib/ui/src/log.min.js +1 -1
  23. package/package.json +2 -2
  24. package/packages/table/module/custom/panel.ts +9 -6
  25. package/packages/table/src/body.ts +8 -4
  26. package/packages/table/src/footer.ts +6 -2
  27. package/packages/table/src/header.ts +9 -6
  28. package/packages/ui/index.ts +4 -2
  29. /package/es/{iconfont.1734331305049.ttf → iconfont.1734402738434.ttf} +0 -0
  30. /package/es/{iconfont.1734331305049.woff → iconfont.1734402738434.woff} +0 -0
  31. /package/es/{iconfont.1734331305049.woff2 → iconfont.1734402738434.woff2} +0 -0
  32. /package/lib/{iconfont.1734331305049.ttf → iconfont.1734402738434.ttf} +0 -0
  33. /package/lib/{iconfont.1734331305049.woff → iconfont.1734402738434.woff} +0 -0
  34. /package/lib/{iconfont.1734331305049.woff2 → iconfont.1734402738434.woff2} +0 -0
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.11.32";
3
+ export const version = "3.11.33";
4
4
  VxeUI.version = version;
5
5
  VxeUI.tableVersion = version;
6
6
  VxeUI.setConfig({
@@ -42,10 +42,12 @@ VxeUI.setConfig({
42
42
  strict: true
43
43
  },
44
44
  rowDragConfig: {
45
- showIcon: true
45
+ showIcon: true,
46
+ animation: true
46
47
  },
47
48
  columnDragConfig: {
48
- showIcon: true
49
+ showIcon: true,
50
+ animation: true
49
51
  },
50
52
  checkboxConfig: {
51
53
  // trigger: 'default',
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.11.32"}`;
3
+ const version = `table v${"3.11.33"}`;
4
4
  export const warnLog = log.create('warn', version);
5
5
  export const errLog = log.create('error', version);
package/lib/index.umd.js CHANGED
@@ -2220,7 +2220,7 @@ function getClass(property, params) {
2220
2220
  ;// CONCATENATED MODULE: ./packages/ui/index.ts
2221
2221
 
2222
2222
 
2223
- const version = "3.11.32";
2223
+ const version = "3.11.33";
2224
2224
  core_.VxeUI.version = version;
2225
2225
  core_.VxeUI.tableVersion = version;
2226
2226
  core_.VxeUI.setConfig({
@@ -2262,10 +2262,12 @@ core_.VxeUI.setConfig({
2262
2262
  strict: true
2263
2263
  },
2264
2264
  rowDragConfig: {
2265
- showIcon: true
2265
+ showIcon: true,
2266
+ animation: true
2266
2267
  },
2267
2268
  columnDragConfig: {
2268
- showIcon: true
2269
+ showIcon: true,
2270
+ animation: true
2269
2271
  },
2270
2272
  checkboxConfig: {
2271
2273
  // trigger: 'default',
@@ -2790,7 +2792,7 @@ function isNodeElement(elem) {
2790
2792
  const {
2791
2793
  log: log_log
2792
2794
  } = core_.VxeUI;
2793
- const log_version = `table v${"3.11.32"}`;
2795
+ const log_version = `table v${"3.11.33"}`;
2794
2796
  const warnLog = log_log.create('warn', log_version);
2795
2797
  const errLog = log_log.create('error', log_version);
2796
2798
  ;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
@@ -14068,6 +14070,8 @@ function renderColumn(h, _vm, $xetable, seq, rowid, fixedType, rowLevel, row, ro
14068
14070
  }, tdVNs);
14069
14071
  }
14070
14072
  function renderRows(h, _vm, $xeTable, fixedType, tableData, tableColumn) {
14073
+ const columnOpts = $xeTable.computeColumnOpts;
14074
+ const columnDragOpts = $xeTable.computeColumnDragOpts;
14071
14075
  const {
14072
14076
  stripe,
14073
14077
  rowKey,
@@ -14090,7 +14094,6 @@ function renderRows(h, _vm, $xeTable, fixedType, tableData, tableColumn) {
14090
14094
  fullAllDataRowIdData,
14091
14095
  rowOpts,
14092
14096
  pendingRowMaps,
14093
- columnOpts,
14094
14097
  isDragColMove
14095
14098
  } = $xeTable;
14096
14099
  const {
@@ -14186,7 +14189,7 @@ function renderRows(h, _vm, $xeTable, fixedType, tableData, tableColumn) {
14186
14189
  const tdVNs = tableColumn.map((column, $columnIndex) => {
14187
14190
  return renderColumn(h, _vm, $xeTable, seq, rowid, fixedType, rowLevel, row, rowIndex, $rowIndex, _rowIndex, column, $columnIndex, tableColumn, tableData);
14188
14191
  });
14189
- rows.push(columnOpts.drag ? h('transition-group', {
14192
+ rows.push(columnOpts.drag && columnDragOpts.animation ? h('transition-group', {
14190
14193
  props: {
14191
14194
  tag: 'tr',
14192
14195
  name: `vxe-header--col-list${isDragColMove ? '' : '-disabled'}`
@@ -14330,6 +14333,8 @@ function renderRows(h, _vm, $xeTable, fixedType, tableData, tableColumn) {
14330
14333
  fixedColumn,
14331
14334
  fixedType
14332
14335
  } = this;
14336
+ const rowOpts = $xeTable.computeRowOpts;
14337
+ const rowDragOpts = $xeTable.computeRowDragOpts;
14333
14338
  let {
14334
14339
  $scopedSlots,
14335
14340
  tId,
@@ -14349,7 +14354,6 @@ function renderRows(h, _vm, $xeTable, fixedType, tableData, tableColumn) {
14349
14354
  mouseConfig,
14350
14355
  mouseOpts,
14351
14356
  sYOpts,
14352
- rowOpts,
14353
14357
  isDragRowMove
14354
14358
  } = $xetable;
14355
14359
  // 如果是使用优化模式
@@ -14434,7 +14438,7 @@ function renderRows(h, _vm, $xeTable, fixedType, tableData, tableColumn) {
14434
14438
  /**
14435
14439
  * 内容
14436
14440
  */
14437
- rowOpts.drag ? h('transition-group', {
14441
+ rowOpts.drag && rowDragOpts.animation ? h('transition-group', {
14438
14442
  props: {
14439
14443
  tag: 'tbody',
14440
14444
  name: `vxe-body--row-list${isDragRowMove ? '' : '-disabled'}`
@@ -14830,29 +14834,28 @@ const header_renderRows = (h, _vm, cols, $rowIndex) => {
14830
14834
  })] : []);
14831
14835
  };
14832
14836
  function renderHeads(h, _vm, headerGroups) {
14833
- const {
14834
- $parent: $xetable
14835
- } = _vm;
14836
- const tableProps = $xetable;
14837
+ const $xeTable = _vm.$parent;
14838
+ const tableProps = $xeTable;
14837
14839
  const {
14838
14840
  fixedType
14839
14841
  } = _vm;
14842
+ const columnOpts = $xeTable.computeColumnOpts;
14843
+ const columnDragOpts = $xeTable.computeColumnDragOpts;
14840
14844
  const {
14841
14845
  headerRowClassName,
14842
14846
  headerRowStyle
14843
14847
  } = tableProps;
14844
14848
  const {
14845
14849
  isDragColMove
14846
- } = $xetable;
14847
- const columnOpts = $xetable.columnOpts;
14850
+ } = $xeTable;
14848
14851
  return headerGroups.map((cols, $rowIndex) => {
14849
14852
  const params = {
14850
- $table: $xetable,
14853
+ $table: $xeTable,
14851
14854
  $rowIndex,
14852
14855
  fixed: fixedType,
14853
14856
  type: cellType
14854
14857
  };
14855
- if (columnOpts.drag) {
14858
+ if (columnOpts.drag && columnDragOpts.animation) {
14856
14859
  return h('transition-group', {
14857
14860
  props: {
14858
14861
  tag: 'tr',
@@ -15337,6 +15340,9 @@ function footer_renderRows(h, _vm, tableColumn, footerTableData, row, $rowIndex,
15337
15340
  })] : []);
15338
15341
  }
15339
15342
  function footer_renderHeads(h, _vm, footerTableData) {
15343
+ const $xeTable = _vm.$parent;
15344
+ const columnOpts = $xeTable.computeColumnOpts;
15345
+ const columnDragOpts = $xeTable.computeColumnDragOpts;
15340
15346
  const {
15341
15347
  $parent: $xetable,
15342
15348
  fixedType,
@@ -15347,7 +15353,6 @@ function footer_renderHeads(h, _vm, footerTableData) {
15347
15353
  footerRowStyle,
15348
15354
  isDragColMove
15349
15355
  } = $xetable;
15350
- const columnOpts = $xetable.columnOpts;
15351
15356
  return footerTableData.map((row, $rowIndex) => {
15352
15357
  const _rowIndex = $rowIndex;
15353
15358
  const rowParams = {
@@ -15358,7 +15363,7 @@ function footer_renderHeads(h, _vm, footerTableData) {
15358
15363
  fixed: fixedType,
15359
15364
  type: footer_renderType
15360
15365
  };
15361
- if (columnOpts.drag) {
15366
+ if (columnOpts.drag && columnDragOpts.animation) {
15362
15367
  return h('transition-group', {
15363
15368
  props: {
15364
15369
  tag: 'tr',
@@ -16543,12 +16548,8 @@ const renderPopupPanel = (h, _vm) => {
16543
16548
  }
16544
16549
  },
16545
16550
  render(h) {
16546
- const {
16547
- $xetable
16548
- } = this;
16549
- const {
16550
- customOpts
16551
- } = $xetable;
16551
+ const $xeTable = this.$xeTable;
16552
+ const customOpts = $xeTable.computeCustomOpts;
16552
16553
  if (['modal', 'drawer', 'popup'].includes(`${customOpts.mode}`)) {
16553
16554
  return renderPopupPanel(h, this);
16554
16555
  }
@@ -16642,12 +16643,11 @@ const renderPopupPanel = (h, _vm) => {
16642
16643
  }
16643
16644
  },
16644
16645
  handleOptionCheck(column) {
16645
- const {
16646
- $xetable
16647
- } = this;
16646
+ const $xeTable = this.$xeTable;
16647
+ const reactData = $xeTable;
16648
16648
  const {
16649
16649
  customColumnList
16650
- } = $xetable;
16650
+ } = reactData;
16651
16651
  const matchObj = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().findTree(customColumnList, item => item === column);
16652
16652
  if (matchObj && matchObj.parent) {
16653
16653
  const {
@@ -16661,11 +16661,9 @@ const renderPopupPanel = (h, _vm) => {
16661
16661
  }
16662
16662
  },
16663
16663
  changeCheckboxOption(column) {
16664
- const $xeTable = this.$xetable;
16664
+ const $xeTable = this.$xeTable;
16665
16665
  const reactData = $xeTable;
16666
- const {
16667
- customOpts
16668
- } = $xeTable.customOpts;
16666
+ const customOpts = $xeTable.computeCustomOpts;
16669
16667
  const isChecked = !column.renderVisible;
16670
16668
  if (customOpts.immediate) {
16671
16669
  external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree([column], item => {