vxe-table 4.23.3 → 4.23.4

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 (41) hide show
  1. package/dist/all.esm.js +14 -4
  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/src/table.js +12 -2
  9. package/es/table/style.css +30 -11
  10. package/es/table/style.min.css +1 -1
  11. package/es/ui/index.js +1 -1
  12. package/es/ui/src/log.js +1 -1
  13. package/es/vxe-table/style.css +30 -11
  14. package/es/vxe-table/style.min.css +1 -1
  15. package/lib/index.css +1 -1
  16. package/lib/index.min.css +1 -1
  17. package/lib/index.umd.js +5 -5
  18. package/lib/index.umd.min.js +1 -1
  19. package/lib/style.css +1 -1
  20. package/lib/style.min.css +1 -1
  21. package/lib/table/src/table.js +3 -3
  22. package/lib/table/src/table.min.js +1 -1
  23. package/lib/table/style/style.css +30 -11
  24. package/lib/table/style/style.min.css +1 -1
  25. package/lib/ui/index.js +1 -1
  26. package/lib/ui/index.min.js +1 -1
  27. package/lib/ui/src/log.js +1 -1
  28. package/lib/ui/src/log.min.js +1 -1
  29. package/lib/vxe-table/style/style.css +30 -11
  30. package/lib/vxe-table/style/style.min.css +1 -1
  31. package/package.json +2 -2
  32. package/packages/table/src/table.ts +14 -4
  33. package/styles/components/table-module/filter.scss +26 -13
  34. package/styles/components/table.scss +6 -0
  35. package/styles/theme/base.scss +1 -0
  36. /package/es/{iconfont.1792723098707.ttf → iconfont.1792740941484.ttf} +0 -0
  37. /package/es/{iconfont.1792723098707.woff → iconfont.1792740941484.woff} +0 -0
  38. /package/es/{iconfont.1792723098707.woff2 → iconfont.1792740941484.woff2} +0 -0
  39. /package/lib/{iconfont.1792723098707.ttf → iconfont.1792740941484.ttf} +0 -0
  40. /package/lib/{iconfont.1792723098707.woff → iconfont.1792740941484.woff} +0 -0
  41. /package/lib/{iconfont.1792723098707.woff2 → iconfont.1792740941484.woff2} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vxe-table",
3
- "version": "4.23.3",
3
+ "version": "4.23.4",
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",
@@ -66,7 +66,7 @@
66
66
  "typescript": "~5.9.3",
67
67
  "vue": "3.4.27",
68
68
  "vue-router": "~4.5.1",
69
- "vxe-pc-ui": "4.20.17"
69
+ "vxe-pc-ui": "4.20.18"
70
70
  },
71
71
  "vetur": {
72
72
  "tags": "helper/vetur/tags.json",
@@ -30,7 +30,7 @@ import '../module/validator/hook'
30
30
  import '../module/custom/hook'
31
31
  import '../render'
32
32
 
33
- import type { VxeTooltipInstance, VxeTabsConstructor, VxeTabsPrivateMethods, ValueOf, VxeComponentSlotType, VxeComponentStyleType, VxeModalConstructor, VxeModalMethods, VxeSplitterConstructor, VxeSplitterMethods } from 'vxe-pc-ui'
33
+ import type { VxeTooltipInstance, VxeTabsConstructor, VxeTabsPrivateMethods, ValueOf, VxeComponentSlotType, VxeComponentStyleType, VxeModalConstructor, VxeModalMethods, VxeSplitterConstructor, VxeSplitterMethods, VxeComponentSizeType } from 'vxe-pc-ui'
34
34
  import type { VxeGridConstructor, VxeGridPrivateMethods, VxeTableConstructor, VxeTablePropTypes, VxeToolbarConstructor, TablePrivateMethods, VxeTablePrivateRef, VxeTablePrivateComputed, VxeTablePrivateMethods, TableMethods, VxeTableMethods, VxeTableDefines, VxeTableEmits, VxeTableProps, VxeColumnPropTypes, VxeTableCustomPanelConstructor } from '../../../types'
35
35
 
36
36
  const { warnLog, errLog } = createComponentLog('table')
@@ -1141,9 +1141,9 @@ export default defineVxeComponent({
1141
1141
  return { toVisibleIndex: 0, visibleSize: 6 }
1142
1142
  }
1143
1143
 
1144
- const calcVarRowHeightConfig = (sizeKey: 'default' | 'medium' | 'small' | 'mini', sizeEl: Element) => {
1144
+ const calcVarRowHeightConfig = (sizeKey: VxeComponentSizeType, sizeEl: Element) => {
1145
1145
  const { rowHeightStore } = reactData
1146
- if (sizeEl && sizeEl.clientHeight) {
1146
+ if (sizeKey && sizeEl && sizeEl.clientHeight) {
1147
1147
  rowHeightStore[sizeKey] = sizeEl.clientHeight
1148
1148
  }
1149
1149
  }
@@ -3591,7 +3591,9 @@ export default defineVxeComponent({
3591
3591
  }
3592
3592
  const varEl = refVarElem.value
3593
3593
  if (varEl) {
3594
- const [defEl, mediumEl, smallEl, miniEl] = varEl.children
3594
+ const [dxlargeEl, largeEl, defEl, mediumEl, smallEl, miniEl] = varEl.children
3595
+ calcVarRowHeightConfig('xlarge', dxlargeEl)
3596
+ calcVarRowHeightConfig('large', largeEl)
3595
3597
  calcVarRowHeightConfig('default', defEl)
3596
3598
  calcVarRowHeightConfig('medium', mediumEl)
3597
3599
  calcVarRowHeightConfig('small', smallEl)
@@ -14407,12 +14409,20 @@ export default defineVxeComponent({
14407
14409
  * 隐藏列
14408
14410
  */
14409
14411
  h('div', {
14412
+ key: 'tss',
14410
14413
  class: 'vxe-table-slots'
14411
14414
  }, slots.default ? slots.default({}) : []),
14412
14415
  h('div', {
14416
+ key: 'tvr',
14413
14417
  ref: refVarElem,
14414
14418
  class: 'vxe-table-vars'
14415
14419
  }, [
14420
+ h('div', {
14421
+ class: 'vxe-table-var-xlarge'
14422
+ }),
14423
+ h('div', {
14424
+ class: 'vxe-table-var-large'
14425
+ }),
14416
14426
  h('div', {
14417
14427
  class: 'vxe-table-var-default'
14418
14428
  }),
@@ -1,5 +1,25 @@
1
1
  @use '../../helpers/baseMixin.scss';
2
2
 
3
+
4
+ .vxe-table--filter-wrapper {
5
+ --vxe-ui-table-filter-current-font-size: var(--vxe-ui-font-size-default);
6
+ &.size--xlarge {
7
+ --vxe-ui-table-filter-current-font-size: var(--vxe-ui-font-size-xlarge);
8
+ }
9
+ &.size--large {
10
+ --vxe-ui-table-filter-current-font-size: var(--vxe-ui-font-size-large);
11
+ }
12
+ &.size--medium {
13
+ --vxe-ui-table-filter-current-font-size: var(--vxe-ui-font-size-medium);
14
+ }
15
+ &.size--small {
16
+ --vxe-ui-table-filter-current-font-size: var(--vxe-ui-font-size-small);
17
+ }
18
+ &.size--mini {
19
+ --vxe-ui-table-filter-current-font-size: var(--vxe-ui-font-size-mini);
20
+ }
21
+ }
22
+
3
23
  .vxe-cell--filter {
4
24
  padding: 0 0.1em 0 0.2em;
5
25
  text-align: center;
@@ -42,9 +62,14 @@
42
62
  box-shadow: var(--vxe-ui-base-popup-box-shadow);
43
63
  z-index: 15;
44
64
  max-height: var(--vxe-ui-vxe-table-filter-default-max-height);
65
+ &[class^="size--"],
66
+ &[class*=" size--"] {
67
+ font-size: var(--vxe-ui-table-filter-current-font-size);
68
+ }
45
69
  &:not(.is--multiple) {
46
70
  .vxe-table--filter-header,
47
- .vxe-table--filter-body {
71
+ .vxe-table--filter-body,
72
+ .vxe-table--scrollbar-filter-body {
48
73
  text-align: center;
49
74
  }
50
75
  }
@@ -128,15 +153,3 @@
128
153
  .vxe-table--filter-option {
129
154
  @include baseMixin.createCheckboxIcon();
130
155
  }
131
-
132
- .vxe-table--filter-wrapper {
133
- &.size--medium {
134
- font-size: var(--vxe-ui-font-size-medium);
135
- }
136
- &.size--small {
137
- font-size: var(--vxe-ui-font-size-small);
138
- }
139
- &.size--mini {
140
- font-size: var(--vxe-ui-font-size-mini);
141
- }
142
- }
@@ -71,6 +71,12 @@ $btnThemeList: (
71
71
  overflow: hidden;
72
72
  user-select: none;
73
73
  pointer-events: none;
74
+ .vxe-table-var-xlarge {
75
+ height: var(--vxe-ui-table-row-height-xlarge);
76
+ }
77
+ .vxe-table-var-large {
78
+ height: var(--vxe-ui-table-row-height-large);
79
+ }
74
80
  .vxe-table-var-default {
75
81
  height: var(--vxe-ui-table-row-height-default);
76
82
  }
@@ -40,6 +40,7 @@
40
40
  --vxe-ui-table-row-height-medium: 44px;
41
41
  --vxe-ui-table-row-height-small: 40px;
42
42
  --vxe-ui-table-row-height-mini: 36px;
43
+
43
44
  --vxe-ui-table-row-line-height: 22px;
44
45
 
45
46
  --vxe-ui-table-column-icon-border-color: #c0c4cc;