vxe-table 4.12.0-beta.27 → 4.12.0-beta.29
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/style.css +1 -1
- package/es/table/module/custom/hook.js +1 -1
- package/es/table/module/custom/panel.js +4 -2
- package/es/table/module/edit/hook.js +3 -2
- package/es/table/module/export/export-panel.js +3 -2
- package/es/table/module/export/import-panel.js +3 -2
- package/es/table/module/menu/hook.js +2 -1
- package/es/table/module/validator/hook.js +2 -1
- package/es/table/src/body.js +10 -7
- package/es/table/src/columnInfo.js +2 -2
- package/es/table/src/footer.js +6 -4
- package/es/table/src/header.js +6 -4
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +44 -29
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/table/module/custom/hook.js +1 -1
- package/lib/table/module/custom/hook.min.js +1 -1
- package/lib/table/module/custom/panel.js +4 -2
- package/lib/table/module/custom/panel.min.js +1 -1
- package/lib/table/module/edit/hook.js +3 -2
- package/lib/table/module/edit/hook.min.js +1 -1
- package/lib/table/module/export/export-panel.js +3 -2
- package/lib/table/module/export/export-panel.min.js +1 -1
- package/lib/table/module/export/import-panel.js +3 -2
- package/lib/table/module/export/import-panel.min.js +1 -1
- package/lib/table/module/menu/hook.js +2 -1
- package/lib/table/module/menu/hook.min.js +1 -1
- package/lib/table/module/validator/hook.js +2 -1
- package/lib/table/module/validator/hook.min.js +1 -1
- package/lib/table/src/body.js +10 -6
- package/lib/table/src/body.min.js +1 -1
- package/lib/table/src/columnInfo.js +2 -4
- package/lib/table/src/columnInfo.min.js +1 -1
- package/lib/table/src/footer.js +6 -3
- package/lib/table/src/footer.min.js +1 -1
- package/lib/table/src/header.js +6 -3
- package/lib/table/src/header.min.js +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/package.json +2 -2
- package/packages/table/module/custom/hook.ts +1 -1
- package/packages/table/module/custom/panel.ts +6 -2
- package/packages/table/module/edit/hook.ts +4 -2
- package/packages/table/module/export/export-panel.ts +4 -2
- package/packages/table/module/export/import-panel.ts +4 -2
- package/packages/table/module/menu/hook.ts +3 -1
- package/packages/table/module/validator/hook.ts +3 -1
- package/packages/table/src/body.ts +11 -7
- package/packages/table/src/columnInfo.ts +3 -2
- package/packages/table/src/footer.ts +7 -4
- package/packages/table/src/header.ts +7 -4
- package/packages/table/src/util.ts +1 -0
- /package/es/{iconfont.1742803078098.ttf → iconfont.1742890827584.ttf} +0 -0
- /package/es/{iconfont.1742803078098.woff → iconfont.1742890827584.woff} +0 -0
- /package/es/{iconfont.1742803078098.woff2 → iconfont.1742890827584.woff2} +0 -0
- /package/lib/{iconfont.1742803078098.ttf → iconfont.1742890827584.ttf} +0 -0
- /package/lib/{iconfont.1742803078098.woff → iconfont.1742890827584.woff} +0 -0
- /package/lib/{iconfont.1742803078098.woff2 → iconfont.1742890827584.woff2} +0 -0
|
@@ -58,10 +58,12 @@ export default defineComponent({
|
|
|
58
58
|
const refFooterXSpace = ref() as Ref<HTMLDivElement>
|
|
59
59
|
|
|
60
60
|
const renderRows = (tableColumn: VxeTableDefines.ColumnInfo[], footerTableData: any[], row: any, $rowIndex: number, _rowIndex: number) => {
|
|
61
|
+
const $xeGrid = $xeTable.xeGrid
|
|
62
|
+
|
|
61
63
|
const { fixedType } = props
|
|
62
64
|
const { resizable: allResizable, border, footerCellClassName, footerCellStyle, footerAlign: allFooterAlign, footerSpanMethod, align: allAlign, columnKey, showFooterOverflow: allColumnFooterOverflow } = tableProps
|
|
63
65
|
const { scrollXLoad, scrollYLoad, overflowX, currentColumn, mergeFooterList } = tableReactData
|
|
64
|
-
const { scrollXStore } = tableInternalData
|
|
66
|
+
const { fullColumnIdData, scrollXStore } = tableInternalData
|
|
65
67
|
const tooltipOpts = computeTooltipOpts.value
|
|
66
68
|
const resizableOpts = computeResizableOpts.value
|
|
67
69
|
const { isAllColumnDrag } = resizableOpts
|
|
@@ -74,6 +76,7 @@ export default defineComponent({
|
|
|
74
76
|
return tableColumn.map((column, $columnIndex) => {
|
|
75
77
|
const { type, showFooterOverflow, footerAlign, align, footerClassName, editRender, cellRender } = column
|
|
76
78
|
const colid = column.id
|
|
79
|
+
const colRest = fullColumnIdData[colid] || {}
|
|
77
80
|
const renderOpts = editRender || cellRender
|
|
78
81
|
const compConf = renderOpts ? renderer.get(renderOpts.name) : null
|
|
79
82
|
const showAllTip = tooltipOpts.showAll
|
|
@@ -89,14 +92,14 @@ export default defineComponent({
|
|
|
89
92
|
const showResizable = (XEUtils.isBoolean(column.resizable) ? column.resizable : (columnOpts.resizable || allResizable))
|
|
90
93
|
const attrs: any = { colid }
|
|
91
94
|
const tfOns: any = {}
|
|
92
|
-
const columnIndex =
|
|
93
|
-
const _columnIndex =
|
|
95
|
+
const columnIndex = colRest.index
|
|
96
|
+
const _columnIndex = colRest._index
|
|
94
97
|
const itemIndex = _columnIndex
|
|
95
98
|
const cellParams: VxeTableDefines.CellRenderFooterParams & {
|
|
96
99
|
$table: VxeTableConstructor<any> & VxeTablePrivateMethods
|
|
97
100
|
} = {
|
|
98
101
|
$table: $xeTable,
|
|
99
|
-
$grid: $
|
|
102
|
+
$grid: $xeGrid,
|
|
100
103
|
row,
|
|
101
104
|
rowIndex: _rowIndex,
|
|
102
105
|
_rowIndex,
|
|
@@ -43,10 +43,12 @@ export default defineComponent({
|
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
const renderRows = (isGroup: boolean, isOptimizeMode: boolean, cols: VxeTableDefines.ColumnInfo[], $rowIndex: number) => {
|
|
46
|
+
const $xeGrid = $xeTable.xeGrid
|
|
47
|
+
|
|
46
48
|
const { fixedType } = props
|
|
47
49
|
const { resizable: allResizable, columnKey, headerCellClassName, headerCellStyle, showHeaderOverflow: allColumnHeaderOverflow, headerAlign: allHeaderAlign, align: allAlign, mouseConfig } = tableProps
|
|
48
50
|
const { currentColumn, dragCol, scrollXLoad, scrollYLoad, overflowX } = tableReactData
|
|
49
|
-
const { scrollXStore } = tableInternalData
|
|
51
|
+
const { fullColumnIdData, scrollXStore } = tableInternalData
|
|
50
52
|
const columnOpts = computeColumnOpts.value
|
|
51
53
|
const columnDragOpts = computeColumnDragOpts.value
|
|
52
54
|
const cellOpts = computeCellOpts.value
|
|
@@ -57,6 +59,7 @@ export default defineComponent({
|
|
|
57
59
|
return cols.map((column, $columnIndex) => {
|
|
58
60
|
const { type, showHeaderOverflow, headerAlign, align, filters, headerClassName, editRender, cellRender } = column
|
|
59
61
|
const colid = column.id
|
|
62
|
+
const colRest = fullColumnIdData[colid] || {}
|
|
60
63
|
const renderOpts = editRender || cellRender
|
|
61
64
|
const compConf = renderOpts ? renderer.get(renderOpts.name) : null
|
|
62
65
|
const isColGroup = column.children && column.children.length
|
|
@@ -74,11 +77,11 @@ export default defineComponent({
|
|
|
74
77
|
firstFilterOption = filters[0]
|
|
75
78
|
hasFilter = filters.some((item) => item.checked)
|
|
76
79
|
}
|
|
77
|
-
const columnIndex =
|
|
78
|
-
const _columnIndex =
|
|
80
|
+
const columnIndex = colRest.index
|
|
81
|
+
const _columnIndex = colRest._index
|
|
79
82
|
const cellParams: VxeTableDefines.CellRenderHeaderParams & {
|
|
80
83
|
$table: VxeTableConstructor & VxeTablePrivateMethods
|
|
81
|
-
} = { $table: $xeTable, $grid: $
|
|
84
|
+
} = { $table: $xeTable, $grid: $xeGrid, $rowIndex, column, columnIndex, $columnIndex, _columnIndex, firstFilterOption, fixed: fixedType, type: renderType, isHidden: fixedHiddenColumn, hasFilter }
|
|
82
85
|
const thAttrs: Record<string, string | number | null> = {
|
|
83
86
|
colid,
|
|
84
87
|
colspan: column.colSpan > 1 ? column.colSpan : null,
|
|
@@ -388,6 +388,7 @@ export function destroyColumn ($xeTable: VxeTableConstructor & VxeTablePrivateMe
|
|
|
388
388
|
|
|
389
389
|
export function getRootColumn ($xeTable: VxeTableConstructor & VxeTablePrivateMethods, column: ColumnInfo) {
|
|
390
390
|
const { internalData } = $xeTable
|
|
391
|
+
|
|
391
392
|
const { fullColumnIdData } = internalData
|
|
392
393
|
if (!column) {
|
|
393
394
|
return null
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|