vxe-table 3.23.0-beta.7 → 3.23.1
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/module/export/mixin.js +10 -9
- package/es/table/src/methods.js +7 -6
- package/es/table/src/util.js +2 -2
- package/es/table/style.css +3 -1
- 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 +3 -1
- 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 +28 -18
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/module/export/mixin.js +19 -9
- package/lib/table/module/export/mixin.min.js +1 -1
- package/lib/table/src/methods.js +5 -5
- package/lib/table/src/methods.min.js +1 -1
- package/lib/table/src/util.js +2 -2
- package/lib/table/src/util.min.js +1 -1
- package/lib/table/style/style.css +3 -1
- 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 +3 -1
- package/lib/vxe-table/style/style.min.css +1 -1
- package/package.json +2 -2
- package/packages/table/module/export/mixin.ts +10 -9
- package/packages/table/src/methods.ts +7 -6
- package/packages/table/src/util.ts +2 -2
- package/styles/components/table.scss +3 -1
- /package/es/{iconfont.1787383485465.ttf → iconfont.1787542588120.ttf} +0 -0
- /package/es/{iconfont.1787383485465.woff → iconfont.1787542588120.woff} +0 -0
- /package/es/{iconfont.1787383485465.woff2 → iconfont.1787542588120.woff2} +0 -0
- /package/lib/{iconfont.1787383485465.ttf → iconfont.1787542588120.ttf} +0 -0
- /package/lib/{iconfont.1787383485465.woff → iconfont.1787542588120.woff} +0 -0
- /package/lib/{iconfont.1787383485465.woff2 → iconfont.1787542588120.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.1",
|
|
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.17.
|
|
68
|
+
"vxe-pc-ui": "3.17.14"
|
|
69
69
|
},
|
|
70
70
|
"vetur": {
|
|
71
71
|
"tags": "helper/vetur/tags.json",
|
|
@@ -1107,7 +1107,7 @@ function handleImport ($xeTable: VxeTableConstructor & VxeTablePrivateMethods, c
|
|
|
1107
1107
|
}
|
|
1108
1108
|
VxeUI.modal.message({ content: getI18n('vxe.error.impFields'), status: 'error' })
|
|
1109
1109
|
if (_importReject) {
|
|
1110
|
-
_importReject({ status: false })
|
|
1110
|
+
_importReject({ status: false, msg: 'field mismatching' })
|
|
1111
1111
|
}
|
|
1112
1112
|
}
|
|
1113
1113
|
}
|
|
@@ -1128,7 +1128,7 @@ function handleFileImport ($xeTable: VxeTableConstructor & VxeTablePrivateMethod
|
|
|
1128
1128
|
}
|
|
1129
1129
|
VxeUI.modal.message({ content: getI18n('vxe.error.notType', [type]), status: 'error' })
|
|
1130
1130
|
}
|
|
1131
|
-
const params = { status: false }
|
|
1131
|
+
const params = { status: false, msg: 'type error' }
|
|
1132
1132
|
return Promise.reject(params)
|
|
1133
1133
|
}
|
|
1134
1134
|
|
|
@@ -1163,7 +1163,7 @@ function handleFileImport ($xeTable: VxeTableConstructor & VxeTablePrivateMethod
|
|
|
1163
1163
|
const reader = new FileReader()
|
|
1164
1164
|
reader.onerror = () => {
|
|
1165
1165
|
errLog('vxe.error.notType', [type])
|
|
1166
|
-
_importReject({ status: false })
|
|
1166
|
+
_importReject({ status: false, msg: 'reading file error' })
|
|
1167
1167
|
}
|
|
1168
1168
|
reader.onload = (e: any) => {
|
|
1169
1169
|
handleImport($xeTable, e.target.result, options)
|
|
@@ -1174,7 +1174,7 @@ function handleFileImport ($xeTable: VxeTableConstructor & VxeTablePrivateMethod
|
|
|
1174
1174
|
} else {
|
|
1175
1175
|
// 不支持的浏览器
|
|
1176
1176
|
errLog('vxe.error.notExp')
|
|
1177
|
-
_importResolve({ status:
|
|
1177
|
+
_importResolve({ status: false, msg: 'unsupported browser' })
|
|
1178
1178
|
}
|
|
1179
1179
|
})
|
|
1180
1180
|
|
|
@@ -1653,7 +1653,7 @@ export default {
|
|
|
1653
1653
|
if (['xlsx', 'pdf'].includes(type)) {
|
|
1654
1654
|
warnLog('vxe.error.reqPlugin', [3, 'plugin-export-xlsx'])
|
|
1655
1655
|
}
|
|
1656
|
-
const params = { status: false }
|
|
1656
|
+
const params = { status: false, msg: 'type error' }
|
|
1657
1657
|
return Promise.reject(params)
|
|
1658
1658
|
}
|
|
1659
1659
|
|
|
@@ -1662,7 +1662,7 @@ export default {
|
|
|
1662
1662
|
const beRest = beforeExportMethod({ options: handleOptions, $table: $xeTable, $grid: $xeGrid, $gantt: $xeGantt })
|
|
1663
1663
|
if (XEUtils.isBoolean(beRest)) {
|
|
1664
1664
|
if (!beRest) {
|
|
1665
|
-
const params = { status: false }
|
|
1665
|
+
const params = { status: false, msg: 'before prevent' }
|
|
1666
1666
|
return Promise.reject(params)
|
|
1667
1667
|
}
|
|
1668
1668
|
} else {
|
|
@@ -1778,7 +1778,7 @@ export default {
|
|
|
1778
1778
|
const biRest = beforeImportMethod({ options: opts, $table: $xeTable })
|
|
1779
1779
|
if (XEUtils.isBoolean(biRest)) {
|
|
1780
1780
|
if (!biRest) {
|
|
1781
|
-
const params = { status: false }
|
|
1781
|
+
const params = { status: false, mas: 'before prevent' }
|
|
1782
1782
|
return Promise.reject(params)
|
|
1783
1783
|
}
|
|
1784
1784
|
} else {
|
|
@@ -1801,7 +1801,7 @@ export default {
|
|
|
1801
1801
|
const biRest = beforeImportMethod({ options: opts, $table: $xeTable })
|
|
1802
1802
|
if (XEUtils.isBoolean(biRest)) {
|
|
1803
1803
|
if (!biRest) {
|
|
1804
|
-
const params = { status: false }
|
|
1804
|
+
const params = { status: false, mas: 'before prevent' }
|
|
1805
1805
|
return Promise.reject(params)
|
|
1806
1806
|
}
|
|
1807
1807
|
} else {
|
|
@@ -1963,7 +1963,8 @@ export default {
|
|
|
1963
1963
|
)
|
|
1964
1964
|
}
|
|
1965
1965
|
} else {
|
|
1966
|
-
|
|
1966
|
+
errLog('vxe.error.reqComp', ['vxe-print'])
|
|
1967
|
+
const e = { status: false, msg: 'print not exist' }
|
|
1967
1968
|
reject(e)
|
|
1968
1969
|
}
|
|
1969
1970
|
})
|
|
@@ -2634,9 +2634,10 @@ const calcCellHeight = ($xeTable: VxeTableConstructor) => {
|
|
|
2634
2634
|
if (!el || !el.clientWidth) {
|
|
2635
2635
|
return
|
|
2636
2636
|
}
|
|
2637
|
+
const cellOpts = $xeTable.computeCellOpts
|
|
2637
2638
|
const treeOpts = $xeTable.computeTreeOpts
|
|
2638
2639
|
const defaultRowHeight = $xeTable.computeDefaultRowHeight
|
|
2639
|
-
if (!isAllOverflow && (scrollYLoad || scrollXLoad || (treeConfig && treeOpts.showLine))) {
|
|
2640
|
+
if (!isAllOverflow && (scrollYLoad || scrollXLoad || cellOpts.maxHeight || (treeConfig && treeOpts.showLine))) {
|
|
2640
2641
|
const { handleGetRowId } = createHandleGetRowId($xeTable)
|
|
2641
2642
|
el.setAttribute('data-calc-row', 'Y')
|
|
2642
2643
|
tableData.forEach(row => {
|
|
@@ -4467,7 +4468,7 @@ function updateRowOffsetTop ($xeTable: VxeTableConstructor & VxeTablePrivateMeth
|
|
|
4467
4468
|
const rowid = handleGetRowId(row)
|
|
4468
4469
|
const rowRest = fullAllDataRowIdData[rowid] || {}
|
|
4469
4470
|
rowRest.oTop = offsetTop
|
|
4470
|
-
offsetTop += rowRest
|
|
4471
|
+
offsetTop += getCellRestHeight(rowRest, cellOpts, rowOpts, defaultRowHeight)
|
|
4471
4472
|
// 是否展开行
|
|
4472
4473
|
if (expandColumn && rowExpandedMaps[rowid]) {
|
|
4473
4474
|
offsetTop += rowRest.expandHeight || expandOpts.height || 0
|
|
@@ -4510,7 +4511,7 @@ function updateRowExpandStyle ($xeTable: VxeTableConstructor & VxeTablePrivateMe
|
|
|
4510
4511
|
if (isScrollYBig && trEl) {
|
|
4511
4512
|
offsetTop = trEl.offsetTop + trEl.offsetHeight
|
|
4512
4513
|
} else {
|
|
4513
|
-
offsetTop = rowRest.oTop + (rowRest
|
|
4514
|
+
offsetTop = rowRest.oTop + getCellRestHeight(rowRest, cellOpts, rowOpts, defaultRowHeight)
|
|
4514
4515
|
}
|
|
4515
4516
|
} else {
|
|
4516
4517
|
if (trEl) {
|
|
@@ -7384,7 +7385,7 @@ const tableMethods: any = {
|
|
|
7384
7385
|
return
|
|
7385
7386
|
}
|
|
7386
7387
|
const defaultRowHeight = $xeTable.computeDefaultRowHeight
|
|
7387
|
-
let currCellHeight = rowRest
|
|
7388
|
+
let currCellHeight = getCellRestHeight(rowRest, cellOpts, rowOpts, defaultRowHeight)
|
|
7388
7389
|
if (!showOverflow) {
|
|
7389
7390
|
currCellHeight = tdEl.clientHeight
|
|
7390
7391
|
}
|
|
@@ -7551,7 +7552,7 @@ const tableMethods: any = {
|
|
|
7551
7552
|
if (rowRest) {
|
|
7552
7553
|
const resizeHeight = rowRest.resizeHeight
|
|
7553
7554
|
if (resizeHeight || isFull) {
|
|
7554
|
-
const currCellHeight =
|
|
7555
|
+
const currCellHeight = getCellRestHeight(rowRest, cellOpts, rowOpts, defaultRowHeight)
|
|
7555
7556
|
rest[rowid] = currCellHeight
|
|
7556
7557
|
}
|
|
7557
7558
|
}
|
|
@@ -7626,7 +7627,7 @@ const tableMethods: any = {
|
|
|
7626
7627
|
const rowid = XEUtils.isString(rowOrId) || XEUtils.isNumber(rowOrId) ? rowOrId : getRowid($xeTable, rowOrId)
|
|
7627
7628
|
const rowRest = fullAllDataRowIdData[rowid]
|
|
7628
7629
|
if (rowRest) {
|
|
7629
|
-
return rowRest
|
|
7630
|
+
return getCellRestHeight(rowRest, cellOpts, rowOpts, defaultRowHeight)
|
|
7630
7631
|
}
|
|
7631
7632
|
return 0
|
|
7632
7633
|
},
|
|
@@ -735,10 +735,10 @@ export function handleRowidOrRow ($xeTable: VxeTableConstructor, rowidOrRow: any
|
|
|
735
735
|
export function getCellRestHeight (rowRest: VxeTableDefines.RowCacheItem, cellOpts: VxeTablePropTypes.CellConfig, rowOpts: VxeTablePropTypes.RowConfig, defaultRowHeight: number) {
|
|
736
736
|
const { height, minHeight, maxHeight } = cellOpts
|
|
737
737
|
let cellHeight = rowRest.resizeHeight || height || rowOpts.height || rowRest.height || defaultRowHeight
|
|
738
|
-
if (maxHeight && maxHeight
|
|
738
|
+
if (maxHeight && maxHeight <= cellHeight) {
|
|
739
739
|
cellHeight = maxHeight
|
|
740
740
|
}
|
|
741
|
-
if (minHeight && minHeight
|
|
741
|
+
if (minHeight && minHeight >= cellHeight) {
|
|
742
742
|
cellHeight = minHeight
|
|
743
743
|
}
|
|
744
744
|
return cellHeight
|
|
@@ -2188,7 +2188,6 @@ $btnThemeList: (
|
|
|
2188
2188
|
& > .vxe-cell {
|
|
2189
2189
|
display: flex;
|
|
2190
2190
|
flex-direction: row;
|
|
2191
|
-
align-items: center;
|
|
2192
2191
|
}
|
|
2193
2192
|
}
|
|
2194
2193
|
/*溢出列*/
|
|
@@ -2705,6 +2704,9 @@ $btnThemeList: (
|
|
|
2705
2704
|
}
|
|
2706
2705
|
}
|
|
2707
2706
|
|
|
2707
|
+
.vxe-cell--wrapper {
|
|
2708
|
+
margin: auto 0;
|
|
2709
|
+
}
|
|
2708
2710
|
.vxe-body--row {
|
|
2709
2711
|
.vxe-table--column {
|
|
2710
2712
|
.vxe-cell {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|