vxe-table 4.20.8 → 4.20.9

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 (44) hide show
  1. package/dist/all.esm.js +12 -5
  2. package/dist/style.css +1 -1
  3. package/dist/style.min.css +1 -1
  4. package/es/index.css +1 -1
  5. package/es/index.min.css +1 -1
  6. package/es/style.css +1 -1
  7. package/es/style.min.css +1 -1
  8. package/es/table/module/export/hook.js +3 -3
  9. package/es/table/src/table.js +7 -0
  10. package/es/table/style.css +22 -12
  11. package/es/table/style.min.css +1 -1
  12. package/es/ui/index.js +1 -1
  13. package/es/ui/src/log.js +1 -1
  14. package/es/vxe-table/style.css +22 -12
  15. package/es/vxe-table/style.min.css +1 -1
  16. package/lib/index.css +1 -1
  17. package/lib/index.min.css +1 -1
  18. package/lib/index.umd.js +8 -8
  19. package/lib/index.umd.min.js +1 -1
  20. package/lib/style.css +1 -1
  21. package/lib/style.min.css +1 -1
  22. package/lib/table/module/export/hook.js +3 -3
  23. package/lib/table/module/export/hook.min.js +1 -1
  24. package/lib/table/src/table.js +3 -3
  25. package/lib/table/src/table.min.js +1 -1
  26. package/lib/table/style/style.css +22 -12
  27. package/lib/table/style/style.min.css +1 -1
  28. package/lib/ui/index.js +1 -1
  29. package/lib/ui/index.min.js +1 -1
  30. package/lib/ui/src/log.js +1 -1
  31. package/lib/ui/src/log.min.js +1 -1
  32. package/lib/vxe-table/style/style.css +22 -12
  33. package/lib/vxe-table/style/style.min.css +1 -1
  34. package/package.json +1 -1
  35. package/packages/table/module/export/hook.ts +3 -3
  36. package/packages/table/src/table.ts +7 -0
  37. package/styles/components/table.scss +24 -6
  38. package/styles/theme/base.scss +0 -1
  39. /package/es/{iconfont.1785140083044.ttf → iconfont.1785242738274.ttf} +0 -0
  40. /package/es/{iconfont.1785140083044.woff → iconfont.1785242738274.woff} +0 -0
  41. /package/es/{iconfont.1785140083044.woff2 → iconfont.1785242738274.woff2} +0 -0
  42. /package/lib/{iconfont.1785140083044.ttf → iconfont.1785242738274.ttf} +0 -0
  43. /package/lib/{iconfont.1785140083044.woff → iconfont.1785242738274.woff} +0 -0
  44. /package/lib/{iconfont.1785140083044.woff2 → iconfont.1785242738274.woff2} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vxe-table",
3
- "version": "4.20.8",
3
+ "version": "4.20.9",
4
4
  "description": "A PC-end table component based on Vxe UI, supporting copy-paste, data pivot table, and high-performance virtual list table solution.",
5
5
  "scripts": {
6
6
  "update": "npm install --legacy-peer-deps",
@@ -1355,7 +1355,7 @@ hooks.add('tableExportModule', {
1355
1355
  const isColGroup = column.children && column.children.length > 0
1356
1356
  let isChecked = false
1357
1357
  const isExtraChecked = extraFdMaps[column.field]
1358
- if (columns && columns.length) {
1358
+ if (columns) {
1359
1359
  isChecked = handleFilterColumns(defOpts, column, columns)
1360
1360
  } else if (excludeFields || includeFields) {
1361
1361
  isChecked = handleFilterFields(defOpts, column, includeFields, includeFdMaps, excludeFdMaps, extraFdMaps)
@@ -1510,7 +1510,7 @@ hooks.add('tableExportModule', {
1510
1510
 
1511
1511
  let isCustomCol = false
1512
1512
  let customCols = []
1513
- if (columns && columns.length) {
1513
+ if (columns) {
1514
1514
  isCustomCol = true
1515
1515
  customCols = XEUtils.searchTree(columns, () => true, { children: 'children', mapChildren: 'childNodes', original: true })
1516
1516
  } else {
@@ -1518,7 +1518,7 @@ hooks.add('tableExportModule', {
1518
1518
  const isColGroup = column.children && column.children.length > 0
1519
1519
  let isChecked = false
1520
1520
  const isExtraChecked = extraFdMaps[column.field]
1521
- if (columns && columns.length) {
1521
+ if (columns) {
1522
1522
  isChecked = handleFilterColumns(opts, column, columns)
1523
1523
  } else if (excludeFields || includeFields) {
1524
1524
  isChecked = handleFilterFields(opts, column, includeFields, includeFdMaps, excludeFdMaps, extraFdMaps)
@@ -11580,6 +11580,7 @@ export default defineVxeComponent({
11580
11580
  status: false
11581
11581
  }
11582
11582
  if (!(el && prevDragRow && dragRow)) {
11583
+ handleRowDragEndClearStatus()
11583
11584
  return Promise.resolve(errRest)
11584
11585
  }
11585
11586
  // 判断是否有拖动
@@ -11688,6 +11689,9 @@ export default defineVxeComponent({
11688
11689
  }
11689
11690
 
11690
11691
  const isDragToChildFlag = isSelfToChildDrag && dragToChildMethod ? dragToChildMethod(dragParams) : prevDragToChild
11692
+ if (dEndMethod) {
11693
+ handleRowDragEndClearStatus()
11694
+ }
11691
11695
  return Promise.resolve(dEndMethod ? dEndMethod(dragParams) : true).then((status) => {
11692
11696
  if (!status) {
11693
11697
  return errRest
@@ -11992,6 +11996,9 @@ export default defineVxeComponent({
11992
11996
  const errRest = {
11993
11997
  status: false
11994
11998
  }
11999
+ if (dragEndMethod) {
12000
+ handleRowDragEndClearStatus()
12001
+ }
11995
12002
  Promise.resolve(dragEndMethod ? dragEndMethod(dragParams) : true).then((status) => {
11996
12003
  if (!status) {
11997
12004
  if ($oldTable) {
@@ -4,6 +4,27 @@
4
4
  @use './icon.scss';
5
5
  @use './table-module/all.scss';
6
6
 
7
+
8
+ // 局部变量
9
+ .vxe-table {
10
+ --vxe-ui-table-current-font-size: var(--vxe-ui-font-size-default);
11
+ &.size--xlarge {
12
+ --vxe-ui-table-current-font-size: var(--vxe-ui-font-size-xlarge);
13
+ }
14
+ &.size--large {
15
+ --vxe-ui-table-current-font-size: var(--vxe-ui-font-size-large);
16
+ }
17
+ &.size--medium {
18
+ --vxe-ui-table-current-font-size: var(--vxe-ui-font-size-medium);
19
+ }
20
+ &.size--small {
21
+ --vxe-ui-table-current-font-size: var(--vxe-ui-font-size-small);
22
+ }
23
+ &.size--mini {
24
+ --vxe-ui-table-current-font-size: var(--vxe-ui-font-size-mini);
25
+ }
26
+ }
27
+
7
28
  $btnThemeList: (
8
29
  (
9
30
  name: "primary",
@@ -1374,7 +1395,7 @@ $btnThemeList: (
1374
1395
  /*table*/
1375
1396
  .vxe-table--render-default {
1376
1397
  position: relative;
1377
- font-size: var(--vxe-ui-font-size-default);
1398
+ font-size: var(--vxe-ui-table-current-font-size);
1378
1399
  color: var(--vxe-ui-font-color);
1379
1400
  font-family: var(--vxe-ui-font-family);
1380
1401
  direction: ltr;
@@ -1832,7 +1853,6 @@ $btnThemeList: (
1832
1853
  }
1833
1854
 
1834
1855
  &.size--medium {
1835
- font-size: var(--vxe-ui-font-size-medium);
1836
1856
  .vxe-table--empty-placeholder,
1837
1857
  .vxe-table--empty-block {
1838
1858
  min-height: var(--vxe-ui-table-row-height-medium);
@@ -1866,7 +1886,6 @@ $btnThemeList: (
1866
1886
  }
1867
1887
  }
1868
1888
  &.size--small {
1869
- font-size: var(--vxe-ui-font-size-small);
1870
1889
  .vxe-table--empty-placeholder,
1871
1890
  .vxe-table--empty-block {
1872
1891
  min-height: var(--vxe-ui-table-row-height-small);
@@ -1900,7 +1919,6 @@ $btnThemeList: (
1900
1919
  }
1901
1920
  }
1902
1921
  &.size--mini {
1903
- font-size: var(--vxe-ui-font-size-mini);
1904
1922
  .vxe-table--empty-placeholder,
1905
1923
  .vxe-table--empty-block {
1906
1924
  min-height: var(--vxe-ui-table-row-height-mini);
@@ -2447,7 +2465,7 @@ $btnThemeList: (
2447
2465
  width: 100%;
2448
2466
  position: absolute;
2449
2467
  left: 50%;
2450
- font-size: var(--vxe-ui-table-validate-error-font-size);
2468
+ font-size: var(--vxe-ui-table-validate-error-font-size, var(--vxe-ui-table-current-font-size));
2451
2469
  line-height: 1em;
2452
2470
  transform: translate(-50%, -2px);
2453
2471
  text-align: left;
@@ -2473,7 +2491,7 @@ $btnThemeList: (
2473
2491
  // }
2474
2492
  }
2475
2493
  .vxe-cell--valid-error-theme-beautify {
2476
- padding: 0.2em 0.6em 0.25em 0.6em;
2494
+ padding: var(--vxe-ui-table-validate-error-padding, 0.2em 0.6em);
2477
2495
  color: #fff;
2478
2496
  background-color: var(--vxe-ui-table-validate-error-color);
2479
2497
  .vxe-cell--valid-error-msg {
@@ -91,7 +91,6 @@
91
91
  --vxe-ui-table-view-scrollbar-width: 18px;
92
92
  --vxe-ui-table-view-scrollbar-height: 18px;
93
93
 
94
- --vxe-ui-table-validate-error-font-size: 12px;
95
94
  --vxe-ui-table-validate-error-color: #f56c6c;
96
95
  --vxe-ui-table-validate-error-cell-background-color: rgba(245, 108,108, 0.1);
97
96
  --vxe-ui-table-validate-error-theme-normal-background-color: var(--vxe-ui-layout-background-color);