vxe-table 4.21.8 → 4.21.10
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.
- package/dist/all.esm.js +47 -13
- package/dist/style.css +1 -1
- package/dist/style.min.css +1 -1
- package/es/index.css +1 -1
- package/es/index.min.css +1 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table/src/cell.js +39 -5
- package/es/table/style.css +1 -2
- package/es/table/style.min.css +1 -1
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/es/vxe-table/style.css +1 -2
- package/es/vxe-table/style.min.css +1 -1
- package/lib/index.css +1 -1
- package/lib/index.min.css +1 -1
- package/lib/index.umd.js +39 -5
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/src/cell.js +37 -3
- package/lib/table/src/cell.min.js +1 -1
- package/lib/table/style/style.css +1 -2
- package/lib/table/style/style.min.css +1 -1
- package/lib/ui/index.js +1 -1
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/lib/vxe-table/style/style.css +1 -2
- package/lib/vxe-table/style/style.min.css +1 -1
- package/package.json +2 -2
- package/packages/table/src/cell.ts +51 -5
- package/styles/components/table.scss +10 -1
- /package/es/{iconfont.1788921188086.ttf → iconfont.1789035007778.ttf} +0 -0
- /package/es/{iconfont.1788921188086.woff → iconfont.1789035007778.woff} +0 -0
- /package/es/{iconfont.1788921188086.woff2 → iconfont.1789035007778.woff2} +0 -0
- /package/lib/{iconfont.1788921188086.ttf → iconfont.1789035007778.ttf} +0 -0
- /package/lib/{iconfont.1788921188086.woff → iconfont.1789035007778.woff} +0 -0
- /package/lib/{iconfont.1788921188086.woff2 → iconfont.1789035007778.woff2} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vxe-table",
|
|
3
|
-
"version": "4.21.
|
|
3
|
+
"version": "4.21.10",
|
|
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.18.
|
|
69
|
+
"vxe-pc-ui": "4.18.9"
|
|
70
70
|
},
|
|
71
71
|
"vetur": {
|
|
72
72
|
"tags": "helper/vetur/tags.json",
|
|
@@ -8,7 +8,7 @@ import { getSlotVNs } from '../../ui/src/vn'
|
|
|
8
8
|
|
|
9
9
|
import type { VxeTableConstructor, VxeTableDefines, VxeTablePrivateMethods, VxeComponentSlotType } from '../../../types'
|
|
10
10
|
|
|
11
|
-
const { getI18n, getIcon, renderer, renderEmptyElement } = VxeUI
|
|
11
|
+
const { getConfig, getI18n, getIcon, renderer, renderEmptyElement } = VxeUI
|
|
12
12
|
|
|
13
13
|
function renderTitlePrefixIcon (params: VxeTableDefines.CellRenderHeaderParams & { $table: VxeTableConstructor & VxeTablePrivateMethods }) {
|
|
14
14
|
const { $table, column } = params
|
|
@@ -312,10 +312,15 @@ function renderHeaderHandle (params: VxeTableDefines.CellRenderHeaderParams & {
|
|
|
312
312
|
const tableProps = $table.props
|
|
313
313
|
const { editConfig } = tableProps
|
|
314
314
|
const { type, filters, sortable, editRender, slots } = column
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
315
|
+
|
|
316
|
+
// 兼容已废弃方式
|
|
317
|
+
if (getConfig().tableHeadeSlotToTitleSlot !== 'obsolete') {
|
|
318
|
+
const headerSlot = slots ? slots.header : null
|
|
319
|
+
if (headerSlot) {
|
|
320
|
+
return renderTitleContent(params, $table.callSlot(headerSlot, params))
|
|
321
|
+
}
|
|
318
322
|
}
|
|
323
|
+
|
|
319
324
|
switch (type) {
|
|
320
325
|
case 'seq':
|
|
321
326
|
return Cell.renderSeqHeader(params)
|
|
@@ -373,11 +378,20 @@ export const Cell = {
|
|
|
373
378
|
const { $table, column } = params
|
|
374
379
|
const tableProps = $table.props
|
|
375
380
|
const { editConfig } = tableProps
|
|
376
|
-
const { editRender, cellRender } = column
|
|
381
|
+
const { slots, editRender, cellRender } = column
|
|
377
382
|
const isEnableEdit = editConfig && isEnableConf(editConfig)
|
|
378
383
|
const editRenderOpts = isEnableEdit && isEnableConf(editRender) ? editRender : null
|
|
379
384
|
const cellRenderOpts = isEnableConf(cellRender) ? cellRender : null
|
|
380
385
|
const renderOpts = editRenderOpts || cellRenderOpts
|
|
386
|
+
|
|
387
|
+
// 兼容已废弃方式
|
|
388
|
+
if (getConfig().tableHeadeSlotToTitleSlot === 'obsolete') {
|
|
389
|
+
const headerSlot = slots ? slots.header : null
|
|
390
|
+
if (headerSlot) {
|
|
391
|
+
return renderTitleContent(params, $table.callSlot(headerSlot, params))
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
|
|
381
395
|
if (renderOpts) {
|
|
382
396
|
const compConf = renderer.get(renderOpts.name)
|
|
383
397
|
if (compConf) {
|
|
@@ -649,6 +663,14 @@ export const Cell = {
|
|
|
649
663
|
*/
|
|
650
664
|
renderSeqHeader (params: VxeTableDefines.CellRenderHeaderParams & { $table: VxeTableConstructor & VxeTablePrivateMethods }) {
|
|
651
665
|
const { $table, column } = params
|
|
666
|
+
|
|
667
|
+
// 兼容已废弃方式
|
|
668
|
+
if (getConfig().tableHeadeSlotToTitleSlot === 'obsolete') {
|
|
669
|
+
const { slots } = column
|
|
670
|
+
const headerSlot = slots ? slots.header : null
|
|
671
|
+
return renderHeaderCellBaseVNs(params, renderTitleContent(params, headerSlot ? $table.callSlot(headerSlot, params) : $table.getHeaderCellLabel(column)))
|
|
672
|
+
}
|
|
673
|
+
|
|
652
674
|
return renderHeaderCellBaseVNs(params, renderTitleContent(params, $table.getHeaderCellLabel(column)))
|
|
653
675
|
},
|
|
654
676
|
renderSeqCell (params: VxeTableDefines.CellRenderBodyParams & { $table: VxeTableConstructor & VxeTablePrivateMethods }) {
|
|
@@ -679,6 +701,21 @@ export const Cell = {
|
|
|
679
701
|
const { $table, column } = params
|
|
680
702
|
const { slots } = column
|
|
681
703
|
const titleSlot = slots ? slots.title : null
|
|
704
|
+
|
|
705
|
+
// 兼容已废弃方式
|
|
706
|
+
if (getConfig().tableHeadeSlotToTitleSlot === 'obsolete') {
|
|
707
|
+
const headerSlot = slots ? slots.header : null
|
|
708
|
+
return renderHeaderCellBaseVNs(params,
|
|
709
|
+
renderTitleContent(params, headerSlot
|
|
710
|
+
? $table.callSlot(headerSlot, params)
|
|
711
|
+
: [
|
|
712
|
+
h('span', {
|
|
713
|
+
class: 'vxe-radio--label'
|
|
714
|
+
}, titleSlot ? $table.callSlot(titleSlot, params) : $table.getHeaderCellLabel(column))
|
|
715
|
+
])
|
|
716
|
+
)
|
|
717
|
+
}
|
|
718
|
+
|
|
682
719
|
return renderHeaderCellBaseVNs(params,
|
|
683
720
|
renderTitleContent(params, [
|
|
684
721
|
h('span', {
|
|
@@ -770,6 +807,15 @@ export const Cell = {
|
|
|
770
807
|
}
|
|
771
808
|
}
|
|
772
809
|
const checkboxParams = { ...params, checked: isAllCheckboxSelected, disabled: isAllCheckboxDisabled, indeterminate: isAllCheckboxIndeterminate }
|
|
810
|
+
|
|
811
|
+
// 兼容已废弃方式
|
|
812
|
+
if (getConfig().tableHeadeSlotToTitleSlot === 'obsolete') {
|
|
813
|
+
const headerSlot = slots ? slots.header : null
|
|
814
|
+
if (headerSlot) {
|
|
815
|
+
return renderHeaderCellBaseVNs(params, renderTitleContent(checkboxParams, $table.callSlot(headerSlot, checkboxParams)))
|
|
816
|
+
}
|
|
817
|
+
}
|
|
818
|
+
|
|
773
819
|
if (checkStrictly ? !showHeader : showHeader === false) {
|
|
774
820
|
return renderHeaderCellBaseVNs(params, renderTitleContent(checkboxParams, [
|
|
775
821
|
h('span', {
|
|
@@ -2673,7 +2673,7 @@ $btnThemeList: (
|
|
|
2673
2673
|
.vxe-table--column {
|
|
2674
2674
|
.vxe-cell {
|
|
2675
2675
|
.vxe-cell--wrapper {
|
|
2676
|
-
|
|
2676
|
+
%ReusekeepControl {
|
|
2677
2677
|
position: absolute;
|
|
2678
2678
|
width: 0;
|
|
2679
2679
|
height: 0;
|
|
@@ -2682,6 +2682,15 @@ $btnThemeList: (
|
|
|
2682
2682
|
padding: 0;
|
|
2683
2683
|
outline: none;
|
|
2684
2684
|
}
|
|
2685
|
+
& > .vxe-reusekeep-control {
|
|
2686
|
+
@extend %ReusekeepControl;
|
|
2687
|
+
}
|
|
2688
|
+
& > div,
|
|
2689
|
+
& > span {
|
|
2690
|
+
& > .vxe-reusekeep-control {
|
|
2691
|
+
@extend %ReusekeepControl;
|
|
2692
|
+
}
|
|
2693
|
+
}
|
|
2685
2694
|
}
|
|
2686
2695
|
}
|
|
2687
2696
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|