vxe-table 3.23.8 → 3.23.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/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.1788921173919.ttf → iconfont.1789034993794.ttf} +0 -0
- /package/es/{iconfont.1788921173919.woff → iconfont.1789034993794.woff} +0 -0
- /package/es/{iconfont.1788921173919.woff2 → iconfont.1789034993794.woff2} +0 -0
- /package/lib/{iconfont.1788921173919.ttf → iconfont.1789034993794.ttf} +0 -0
- /package/lib/{iconfont.1788921173919.woff → iconfont.1789034993794.woff} +0 -0
- /package/lib/{iconfont.1788921173919.woff2 → iconfont.1789034993794.woff2} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vxe-table",
|
|
3
|
-
"version": "3.23.
|
|
3
|
+
"version": "3.23.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",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"vue-i18n": "^8.15.1",
|
|
66
66
|
"vue-router": "^3.5.1",
|
|
67
67
|
"vue-template-compiler": "2.6.14",
|
|
68
|
-
"vxe-pc-ui": "3.18.
|
|
68
|
+
"vxe-pc-ui": "3.18.9"
|
|
69
69
|
},
|
|
70
70
|
"vetur": {
|
|
71
71
|
"tags": "helper/vetur/tags.json",
|
|
@@ -8,7 +8,7 @@ import { getSlotVNs } from '../../ui/src/vn'
|
|
|
8
8
|
|
|
9
9
|
import type { VxeTableDefines, VxeTableConstructor, VxeTablePrivateMethods, VxeComponentSlotType, TableReactData, TableInternalData } 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 (h: CreateElement, params: VxeTableDefines.CellRenderHeaderParams & { $table: VxeTableConstructor & VxeTablePrivateMethods }) {
|
|
14
14
|
const { $table, column } = params
|
|
@@ -306,10 +306,15 @@ function renderHeaderHandle (h: CreateElement, params: VxeTableDefines.CellRende
|
|
|
306
306
|
const tableProps = $table
|
|
307
307
|
const { editConfig } = tableProps
|
|
308
308
|
const { type, filters, sortable, editRender, slots } = column
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
309
|
+
|
|
310
|
+
// 兼容已废弃方式
|
|
311
|
+
if (getConfig().tableHeadeSlotToTitleSlot !== 'obsolete') {
|
|
312
|
+
const headerSlot = slots ? slots.header : null
|
|
313
|
+
if (headerSlot) {
|
|
314
|
+
return renderTitleContent(h, params, $table.callSlot(headerSlot, params, h))
|
|
315
|
+
}
|
|
312
316
|
}
|
|
317
|
+
|
|
313
318
|
switch (type) {
|
|
314
319
|
case 'seq':
|
|
315
320
|
return Cell.renderSeqHeader(h, params)
|
|
@@ -367,11 +372,20 @@ export const Cell = {
|
|
|
367
372
|
const { $table, column } = params
|
|
368
373
|
const tableProps = $table
|
|
369
374
|
const { editConfig } = tableProps
|
|
370
|
-
const { editRender, cellRender } = column
|
|
375
|
+
const { slots, editRender, cellRender } = column
|
|
371
376
|
const isEnableEdit = editConfig && isEnableConf(editConfig)
|
|
372
377
|
const editRenderOpts = isEnableEdit && isEnableConf(editRender) ? editRender : null
|
|
373
378
|
const cellRenderOpts = isEnableConf(cellRender) ? cellRender : null
|
|
374
379
|
const renderOpts = editRenderOpts || cellRenderOpts
|
|
380
|
+
|
|
381
|
+
// 兼容已废弃方式
|
|
382
|
+
if (getConfig().tableHeadeSlotToTitleSlot === 'obsolete') {
|
|
383
|
+
const headerSlot = slots ? slots.header : null
|
|
384
|
+
if (headerSlot) {
|
|
385
|
+
return renderTitleContent(h, params, $table.callSlot(headerSlot, params, h))
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
|
|
375
389
|
if (renderOpts) {
|
|
376
390
|
const compConf = renderer.get(renderOpts.name)
|
|
377
391
|
const rtHeader = compConf ? (compConf.renderTableHeader || compConf.renderHeader) : null
|
|
@@ -640,6 +654,14 @@ export const Cell = {
|
|
|
640
654
|
*/
|
|
641
655
|
renderSeqHeader (h: CreateElement, params: VxeTableDefines.CellRenderHeaderParams & { $table: VxeTableConstructor & VxeTablePrivateMethods }) {
|
|
642
656
|
const { $table, column } = params
|
|
657
|
+
|
|
658
|
+
// 兼容已废弃方式
|
|
659
|
+
if (getConfig().tableHeadeSlotToTitleSlot === 'obsolete') {
|
|
660
|
+
const { slots } = column
|
|
661
|
+
const headerSlot = slots ? slots.header : null
|
|
662
|
+
return renderHeaderCellBaseVNs(h, params, renderTitleContent(h, params, headerSlot ? $table.callSlot(headerSlot, params, h) : $table.getHeaderCellLabel(column)))
|
|
663
|
+
}
|
|
664
|
+
|
|
643
665
|
return renderHeaderCellBaseVNs(h, params, renderTitleContent(h, params, $table.getHeaderCellLabel(column)))
|
|
644
666
|
},
|
|
645
667
|
renderSeqCell (h: CreateElement, params: VxeTableDefines.CellRenderBodyParams & { $table: VxeTableConstructor & VxeTablePrivateMethods }) {
|
|
@@ -668,6 +690,21 @@ export const Cell = {
|
|
|
668
690
|
const { $table, column } = params
|
|
669
691
|
const { slots } = column
|
|
670
692
|
const titleSlot = slots ? slots.title : null
|
|
693
|
+
|
|
694
|
+
// 兼容已废弃方式
|
|
695
|
+
if (getConfig().tableHeadeSlotToTitleSlot === 'obsolete') {
|
|
696
|
+
const headerSlot = slots ? slots.header : null
|
|
697
|
+
return renderHeaderCellBaseVNs(h, params,
|
|
698
|
+
renderTitleContent(h, params, headerSlot
|
|
699
|
+
? $table.callSlot(headerSlot, params, h)
|
|
700
|
+
: [
|
|
701
|
+
h('span', {
|
|
702
|
+
class: 'vxe-radio--label'
|
|
703
|
+
}, titleSlot ? $table.callSlot(titleSlot, params, h) : $table.getHeaderCellLabel(column))
|
|
704
|
+
])
|
|
705
|
+
)
|
|
706
|
+
}
|
|
707
|
+
|
|
671
708
|
return renderHeaderCellBaseVNs(h, params,
|
|
672
709
|
renderTitleContent(h, params, [
|
|
673
710
|
h('span', {
|
|
@@ -757,6 +794,15 @@ export const Cell = {
|
|
|
757
794
|
}
|
|
758
795
|
}
|
|
759
796
|
const checkboxParams = { ...params, checked: isAllCheckboxSelected, disabled: isAllCheckboxDisabled, indeterminate: isAllCheckboxIndeterminate }
|
|
797
|
+
|
|
798
|
+
// 兼容已废弃方式
|
|
799
|
+
if (getConfig().tableHeadeSlotToTitleSlot === 'obsolete') {
|
|
800
|
+
const headerSlot = slots ? slots.header : null
|
|
801
|
+
if (headerSlot) {
|
|
802
|
+
return renderHeaderCellBaseVNs(h, params, renderTitleContent(h, checkboxParams, $table.callSlot(headerSlot, checkboxParams, h)))
|
|
803
|
+
}
|
|
804
|
+
}
|
|
805
|
+
|
|
760
806
|
if (checkStrictly ? !showHeader : showHeader === false) {
|
|
761
807
|
return renderHeaderCellBaseVNs(h, params, renderTitleContent(h, checkboxParams, [
|
|
762
808
|
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
|