vxe-table 4.11.3 → 4.11.5

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 (51) hide show
  1. package/es/index.css +1 -1
  2. package/es/index.min.css +1 -1
  3. package/es/locale/lang/zh-CHT.js +1 -1
  4. package/es/locale/lang/zh-CN.js +1 -1
  5. package/es/style.css +1 -1
  6. package/es/style.min.css +1 -1
  7. package/es/table/render/index.js +29 -6
  8. package/es/table/src/header.js +2 -4
  9. package/es/table/style.css +20 -1
  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 +20 -1
  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 +31 -13
  18. package/lib/index.umd.min.js +1 -1
  19. package/lib/locale/lang/zh-CHT.js +1 -1
  20. package/lib/locale/lang/zh-CHT.min.js +1 -1
  21. package/lib/locale/lang/zh-CN.js +1 -1
  22. package/lib/locale/lang/zh-CN.min.js +1 -1
  23. package/lib/locale/lang/zh-CN.umd.js +1 -1
  24. package/lib/style.css +1 -1
  25. package/lib/style.min.css +1 -1
  26. package/lib/table/render/index.js +27 -6
  27. package/lib/table/render/index.min.js +1 -1
  28. package/lib/table/src/header.js +1 -4
  29. package/lib/table/src/header.min.js +1 -1
  30. package/lib/table/style/style.css +20 -1
  31. package/lib/table/style/style.min.css +1 -1
  32. package/lib/ui/index.js +1 -1
  33. package/lib/ui/index.min.js +1 -1
  34. package/lib/ui/src/log.js +1 -1
  35. package/lib/ui/src/log.min.js +1 -1
  36. package/lib/vxe-table/style/style.css +20 -1
  37. package/lib/vxe-table/style/style.min.css +1 -1
  38. package/package.json +2 -2
  39. package/packages/locale/lang/zh-CHT.ts +1 -1
  40. package/packages/locale/lang/zh-CN.ts +1 -1
  41. package/packages/table/render/index.ts +30 -6
  42. package/packages/table/src/header.ts +2 -4
  43. package/styles/components/table.scss +30 -1
  44. package/styles/theme/base.scss +1 -0
  45. package/styles/variable.scss +1 -0
  46. /package/es/{iconfont.1739874198596.ttf → iconfont.1740013709563.ttf} +0 -0
  47. /package/es/{iconfont.1739874198596.woff → iconfont.1740013709563.woff} +0 -0
  48. /package/es/{iconfont.1739874198596.woff2 → iconfont.1740013709563.woff2} +0 -0
  49. /package/lib/{iconfont.1739874198596.ttf → iconfont.1740013709563.ttf} +0 -0
  50. /package/lib/{iconfont.1739874198596.woff → iconfont.1740013709563.woff} +0 -0
  51. /package/lib/{iconfont.1739874198596.woff2 → iconfont.1740013709563.woff2} +0 -0
@@ -44,7 +44,7 @@ export default defineComponent({
44
44
 
45
45
  const renderRows = (isGroup: boolean, isOptimizeMode: boolean, cols: VxeTableDefines.ColumnInfo[], $rowIndex: number) => {
46
46
  const { fixedType } = props
47
- const { resizable: allResizable, border, columnKey, headerCellClassName, headerCellStyle, showHeaderOverflow: allColumnHeaderOverflow, headerAlign: allHeaderAlign, align: allAlign, mouseConfig } = tableProps
47
+ const { resizable: allResizable, columnKey, headerCellClassName, headerCellStyle, showHeaderOverflow: allColumnHeaderOverflow, headerAlign: allHeaderAlign, align: allAlign, mouseConfig } = tableProps
48
48
  const { currentColumn, scrollXLoad, scrollYLoad, overflowX } = tableReactData
49
49
  const { scrollXStore } = tableInternalData
50
50
  const columnOpts = computeColumnOpts.value
@@ -174,9 +174,7 @@ export default defineComponent({
174
174
  */
175
175
  !fixedHiddenColumn && showResizable
176
176
  ? h('div', {
177
- class: ['vxe-cell--col-resizable', {
178
- 'is--line': !border || border === 'none'
179
- }],
177
+ class: 'vxe-cell--col-resizable',
180
178
  onMousedown: (evnt: MouseEvent) => $xeTable.handleColResizeMousedownEvent(evnt, fixedType, cellParams),
181
179
  onDblclick: (evnt: MouseEvent) => $xeTable.handleColResizeDblclickEvent(evnt, cellParams)
182
180
  })
@@ -263,6 +263,13 @@
263
263
  }
264
264
  }
265
265
 
266
+ /*负数显示红色*/
267
+ .vxe-cell--label {
268
+ &.is--negative {
269
+ color: var(--vxe-ui-table-cell-negative-color);
270
+ }
271
+ }
272
+
266
273
  .vxe-table--checkbox-range,
267
274
  .vxe-table--cell-main-area,
268
275
  .vxe-table--cell-extend-area,
@@ -273,7 +280,7 @@
273
280
  display: none;
274
281
  position: absolute;
275
282
  pointer-events: none;
276
- z-index: 6;
283
+ z-index: 1;
277
284
  }
278
285
 
279
286
  .vxe-table--header-wrapper {
@@ -1119,6 +1126,28 @@
1119
1126
  }
1120
1127
  }
1121
1128
  &.border--default,
1129
+ &.border--none,
1130
+ &.border--outer,
1131
+ &.border--inner {
1132
+ .vxe-cell--col-resizable {
1133
+ &:before,
1134
+ &:after {
1135
+ content: "";
1136
+ display: inline-block;
1137
+ vertical-align: middle;
1138
+ }
1139
+ &:before {
1140
+ width: 1px;
1141
+ height: 50%;
1142
+ background-color: var(--vxe-ui-table-resizable-line-color);
1143
+ }
1144
+ &:after {
1145
+ width: 0;
1146
+ height: 100%;
1147
+ }
1148
+ }
1149
+ }
1150
+ &.border--default,
1122
1151
  &.border--full,
1123
1152
  &.border--outer {
1124
1153
  .vxe-table--header-wrapper {
@@ -46,6 +46,7 @@
46
46
  --vxe-ui-table-cell-padding-small: 6px;
47
47
  --vxe-ui-table-cell-padding-mini: 4px;
48
48
  --vxe-ui-table-cell-placeholder-color: #C0C4CC;
49
+ --vxe-ui-table-cell-negative-color: #f56c6c;
49
50
  --vxe-ui-table-cell-input-height-default: var(--vxe-ui-table-row-height-default) - 6;
50
51
  --vxe-ui-table-cell-input-height-medium: var(--vxe-ui-table-row-height-medium) - 6;
51
52
  --vxe-ui-table-cell-input-height-small: var(--vxe-ui-table-row-height-small) - 6;
@@ -38,3 +38,4 @@ $vxe-ui-table-row-current-background-color: #e6f7ff !default;
38
38
  $vxe-ui-table-row-hover-current-background-color: #d7effb !default;
39
39
  $vxe-ui-table-fixed-scrolling-box-shadow-color: rgba(0, 0, 0, 0.12) !default;
40
40
  $vxe-ui-table-drag-over-background-color:rgba(255,255,200,0.3) !default;
41
+