vxe-table 4.11.13 → 4.11.15
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/locale/lang/ar-EG.js +1 -0
- package/es/locale/lang/de-DE.js +1 -0
- package/es/locale/lang/en-US.js +11 -10
- package/es/locale/lang/es-ES.js +1 -0
- package/es/locale/lang/fr-FR.js +1 -0
- package/es/locale/lang/hu-HU.js +1 -0
- package/es/locale/lang/hy-AM.js +1 -0
- package/es/locale/lang/id-ID.js +1 -0
- package/es/locale/lang/it-IT.js +1 -0
- package/es/locale/lang/ja-JP.js +1 -0
- package/es/locale/lang/ko-KR.js +1 -0
- package/es/locale/lang/nb-NO.js +1 -0
- package/es/locale/lang/pt-BR.js +1 -0
- package/es/locale/lang/ru-RU.js +1 -0
- package/es/locale/lang/th-TH.js +1 -0
- package/es/locale/lang/ug-CN.js +1 -0
- package/es/locale/lang/uk-UA.js +1 -0
- package/es/locale/lang/vi-VN.js +1 -0
- package/es/locale/lang/zh-CHT.js +1 -0
- package/es/locale/lang/zh-CN.js +1 -0
- package/es/style.css +1 -1
- package/es/table/module/custom/panel.js +18 -16
- package/es/table/src/cell.js +4 -3
- package/es/table/src/columnInfo.js +0 -3
- package/es/table/src/table.js +137 -135
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +166 -161
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/ar-EG.js +1 -0
- package/lib/locale/lang/ar-EG.min.js +1 -1
- package/lib/locale/lang/de-DE.js +1 -0
- package/lib/locale/lang/de-DE.min.js +1 -1
- package/lib/locale/lang/en-US.js +11 -10
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +11 -10
- package/lib/locale/lang/es-ES.js +1 -0
- package/lib/locale/lang/es-ES.min.js +1 -1
- package/lib/locale/lang/es-ES.umd.js +1 -0
- package/lib/locale/lang/fr-FR.js +1 -0
- package/lib/locale/lang/fr-FR.min.js +1 -1
- package/lib/locale/lang/hu-HU.js +1 -0
- package/lib/locale/lang/hu-HU.min.js +1 -1
- package/lib/locale/lang/hu-HU.umd.js +1 -0
- package/lib/locale/lang/hy-AM.js +1 -0
- package/lib/locale/lang/hy-AM.min.js +1 -1
- package/lib/locale/lang/id-ID.js +1 -0
- package/lib/locale/lang/id-ID.min.js +1 -1
- package/lib/locale/lang/it-IT.js +1 -0
- package/lib/locale/lang/it-IT.min.js +1 -1
- package/lib/locale/lang/ja-JP.js +1 -0
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +1 -0
- package/lib/locale/lang/ko-KR.js +1 -0
- package/lib/locale/lang/ko-KR.min.js +1 -1
- package/lib/locale/lang/ko-KR.umd.js +1 -0
- package/lib/locale/lang/nb-NO.js +1 -0
- package/lib/locale/lang/nb-NO.min.js +1 -1
- package/lib/locale/lang/pt-BR.js +1 -0
- package/lib/locale/lang/pt-BR.min.js +1 -1
- package/lib/locale/lang/pt-BR.umd.js +1 -0
- package/lib/locale/lang/ru-RU.js +1 -0
- package/lib/locale/lang/ru-RU.min.js +1 -1
- package/lib/locale/lang/ru-RU.umd.js +1 -0
- package/lib/locale/lang/th-TH.js +1 -0
- package/lib/locale/lang/th-TH.min.js +1 -1
- package/lib/locale/lang/ug-CN.js +1 -0
- package/lib/locale/lang/ug-CN.min.js +1 -1
- package/lib/locale/lang/uk-UA.js +1 -0
- package/lib/locale/lang/uk-UA.min.js +1 -1
- package/lib/locale/lang/uk-UA.umd.js +1 -0
- package/lib/locale/lang/vi-VN.js +1 -0
- package/lib/locale/lang/vi-VN.min.js +1 -1
- package/lib/locale/lang/zh-CHT.js +1 -0
- package/lib/locale/lang/zh-CHT.min.js +1 -1
- package/lib/locale/lang/zh-CN.js +1 -0
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +1 -0
- package/lib/style.css +1 -1
- package/lib/table/module/custom/panel.js +18 -16
- package/lib/table/module/custom/panel.min.js +1 -1
- package/lib/table/src/cell.js +5 -3
- package/lib/table/src/cell.min.js +1 -1
- package/lib/table/src/columnInfo.js +0 -3
- package/lib/table/src/columnInfo.min.js +1 -1
- package/lib/table/src/table.js +140 -137
- package/lib/table/src/table.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/locale/lang/ar-EG.ts +1 -0
- package/packages/locale/lang/de-DE.ts +1 -0
- package/packages/locale/lang/en-US.ts +11 -10
- package/packages/locale/lang/es-ES.ts +1 -0
- package/packages/locale/lang/fr-FR.ts +1 -0
- package/packages/locale/lang/hu-HU.ts +1 -0
- package/packages/locale/lang/hy-AM.ts +1 -0
- package/packages/locale/lang/id-ID.ts +1 -0
- package/packages/locale/lang/it-IT.ts +1 -0
- package/packages/locale/lang/ja-JP.ts +1 -0
- package/packages/locale/lang/ko-KR.ts +1 -0
- package/packages/locale/lang/nb-NO.ts +1 -0
- package/packages/locale/lang/pt-BR.ts +1 -0
- package/packages/locale/lang/ru-RU.ts +1 -0
- package/packages/locale/lang/th-TH.ts +1 -0
- package/packages/locale/lang/ug-CN.ts +1 -0
- package/packages/locale/lang/uk-UA.ts +1 -0
- package/packages/locale/lang/vi-VN.ts +1 -0
- package/packages/locale/lang/zh-CHT.ts +1 -0
- package/packages/locale/lang/zh-CN.ts +1 -0
- package/packages/table/module/custom/panel.ts +18 -16
- package/packages/table/src/cell.ts +4 -3
- package/packages/table/src/columnInfo.ts +0 -3
- package/packages/table/src/table.ts +137 -135
- /package/es/{iconfont.1740561134294.ttf → iconfont.1740723830079.ttf} +0 -0
- /package/es/{iconfont.1740561134294.woff → iconfont.1740723830079.woff} +0 -0
- /package/es/{iconfont.1740561134294.woff2 → iconfont.1740723830079.woff2} +0 -0
- /package/lib/{iconfont.1740561134294.ttf → iconfont.1740723830079.ttf} +0 -0
- /package/lib/{iconfont.1740561134294.woff → iconfont.1740723830079.woff} +0 -0
- /package/lib/{iconfont.1740561134294.woff2 → iconfont.1740723830079.woff2} +0 -0
|
@@ -263,6 +263,12 @@ export default defineComponent({
|
|
|
263
263
|
},
|
|
264
264
|
|
|
265
265
|
scrollVMLoading: false,
|
|
266
|
+
scrollYHeight: 0,
|
|
267
|
+
scrollYTop: 0,
|
|
268
|
+
isScrollYBig: false,
|
|
269
|
+
scrollXLeft: 0,
|
|
270
|
+
scrollXWidth: 0,
|
|
271
|
+
isScrollXBig: false,
|
|
266
272
|
|
|
267
273
|
rowExpandHeightFlag: 1,
|
|
268
274
|
calcCellHeightFlag: 1,
|
|
@@ -1264,7 +1270,7 @@ export default defineComponent({
|
|
|
1264
1270
|
let hasFixed: VxeColumnPropTypes.Fixed | undefined
|
|
1265
1271
|
const handleFunc = (column: VxeTableDefines.ColumnInfo, index: number, items: VxeTableDefines.ColumnInfo[], path?: string[], parentColumn?: VxeTableDefines.ColumnInfo) => {
|
|
1266
1272
|
const { id: colid, field, fixed, type, treeNode } = column
|
|
1267
|
-
const rest = { $index: -1, _index: -1, column, colid, index, items, parent: parentColumn || null, width: 0 }
|
|
1273
|
+
const rest = { $index: -1, _index: -1, column, colid, index, items, parent: parentColumn || null, width: 0, oLeft: 0 }
|
|
1268
1274
|
if (field) {
|
|
1269
1275
|
if (fullColumnFieldData[field]) {
|
|
1270
1276
|
errLog('vxe.error.colRepet', ['field', field])
|
|
@@ -8086,6 +8092,7 @@ export default defineComponent({
|
|
|
8086
8092
|
const dragParams = {
|
|
8087
8093
|
oldRow: dragRow,
|
|
8088
8094
|
newRow: prevDragRow,
|
|
8095
|
+
dragRow,
|
|
8089
8096
|
dragPos: prevDragPos as 'top' | 'bottom',
|
|
8090
8097
|
dragToChild: !!prevDragToChild,
|
|
8091
8098
|
offsetIndex: dragOffsetIndex as 0 | 1
|
|
@@ -8236,6 +8243,7 @@ export default defineComponent({
|
|
|
8236
8243
|
dispatchEvent('row-dragend', {
|
|
8237
8244
|
oldRow: dragRow,
|
|
8238
8245
|
newRow: prevDragRow,
|
|
8246
|
+
dragRow,
|
|
8239
8247
|
dragPos: prevDragPos as any,
|
|
8240
8248
|
dragToChild: isDragToChildFlag,
|
|
8241
8249
|
offsetIndex: dragOffsetIndex,
|
|
@@ -8376,11 +8384,12 @@ export default defineComponent({
|
|
|
8376
8384
|
if (prevDragCol && dragCol) {
|
|
8377
8385
|
// 判断是否有拖动
|
|
8378
8386
|
if (prevDragCol !== dragCol) {
|
|
8379
|
-
const
|
|
8387
|
+
const dragColumn = dragCol
|
|
8380
8388
|
const newColumn = prevDragCol
|
|
8381
8389
|
const dragParams = {
|
|
8382
|
-
oldColumn,
|
|
8390
|
+
oldColumn: dragColumn,
|
|
8383
8391
|
newColumn,
|
|
8392
|
+
dragColumn,
|
|
8384
8393
|
dragPos: prevDragPos as 'left' | 'right',
|
|
8385
8394
|
dragToChild: !!prevDragToChild,
|
|
8386
8395
|
offsetIndex: dragOffsetIndex as 0 | 1
|
|
@@ -8395,17 +8404,17 @@ export default defineComponent({
|
|
|
8395
8404
|
let nafIndex = -1
|
|
8396
8405
|
|
|
8397
8406
|
const oldAllMaps: Record<string, any> = {}
|
|
8398
|
-
XEUtils.eachTree([
|
|
8407
|
+
XEUtils.eachTree([dragColumn], column => {
|
|
8399
8408
|
oldAllMaps[column.id] = column
|
|
8400
8409
|
})
|
|
8401
8410
|
|
|
8402
8411
|
let isSelfToChildStatus = false
|
|
8403
8412
|
|
|
8404
|
-
if (
|
|
8413
|
+
if (dragColumn.parentId && newColumn.parentId) {
|
|
8405
8414
|
// 子到子
|
|
8406
8415
|
|
|
8407
8416
|
if (isPeerDrag && !isCrossDrag) {
|
|
8408
|
-
if (
|
|
8417
|
+
if (dragColumn.parentId !== newColumn.parentId) {
|
|
8409
8418
|
// 非同级
|
|
8410
8419
|
return
|
|
8411
8420
|
}
|
|
@@ -8427,7 +8436,7 @@ export default defineComponent({
|
|
|
8427
8436
|
}
|
|
8428
8437
|
}
|
|
8429
8438
|
}
|
|
8430
|
-
} else if (
|
|
8439
|
+
} else if (dragColumn.parentId) {
|
|
8431
8440
|
// 子到根
|
|
8432
8441
|
|
|
8433
8442
|
if (!isCrossDrag) {
|
|
@@ -8455,18 +8464,18 @@ export default defineComponent({
|
|
|
8455
8464
|
// 根到根
|
|
8456
8465
|
}
|
|
8457
8466
|
|
|
8458
|
-
const oldewMatchRest = XEUtils.findTree(collectColumn, item => item.id ===
|
|
8467
|
+
const oldewMatchRest = XEUtils.findTree(collectColumn, item => item.id === dragColumn.id)
|
|
8459
8468
|
|
|
8460
8469
|
// 改变层级
|
|
8461
8470
|
if (isSelfToChildStatus && (isCrossDrag && isSelfToChildDrag)) {
|
|
8462
8471
|
if (oldewMatchRest) {
|
|
8463
8472
|
const { items: oCols, index: oIndex } = oldewMatchRest
|
|
8464
|
-
const childList =
|
|
8473
|
+
const childList = dragColumn.children || []
|
|
8465
8474
|
childList.forEach(column => {
|
|
8466
|
-
column.parentId =
|
|
8475
|
+
column.parentId = dragColumn.parentId
|
|
8467
8476
|
})
|
|
8468
8477
|
oCols.splice(oIndex, 1, ...childList)
|
|
8469
|
-
|
|
8478
|
+
dragColumn.children = []
|
|
8470
8479
|
}
|
|
8471
8480
|
} else {
|
|
8472
8481
|
if (oldewMatchRest) {
|
|
@@ -8483,11 +8492,11 @@ export default defineComponent({
|
|
|
8483
8492
|
const { items: nCols, index: nIndex, parent: nParent } = newMatchRest
|
|
8484
8493
|
// 转子级
|
|
8485
8494
|
if ((isCrossDrag && isToChildDrag) && isDragToChildFlag) {
|
|
8486
|
-
|
|
8487
|
-
newColumn.children = (newColumn.children || []).concat([
|
|
8495
|
+
dragColumn.parentId = newColumn.id
|
|
8496
|
+
newColumn.children = (newColumn.children || []).concat([dragColumn])
|
|
8488
8497
|
} else {
|
|
8489
|
-
|
|
8490
|
-
nCols.splice(nIndex + dragOffsetIndex, 0,
|
|
8498
|
+
dragColumn.parentId = newColumn.parentId
|
|
8499
|
+
nCols.splice(nIndex + dragOffsetIndex, 0, dragColumn)
|
|
8491
8500
|
}
|
|
8492
8501
|
if (!nParent) {
|
|
8493
8502
|
nafIndex = nIndex
|
|
@@ -8513,8 +8522,9 @@ export default defineComponent({
|
|
|
8513
8522
|
}
|
|
8514
8523
|
|
|
8515
8524
|
dispatchEvent('column-dragend', {
|
|
8516
|
-
oldColumn,
|
|
8525
|
+
oldColumn: dragColumn,
|
|
8517
8526
|
newColumn,
|
|
8527
|
+
dragColumn,
|
|
8518
8528
|
dragPos: prevDragPos,
|
|
8519
8529
|
dragToChild: isDragToChildFlag,
|
|
8520
8530
|
offsetIndex: dragOffsetIndex,
|
|
@@ -8918,7 +8928,7 @@ export default defineComponent({
|
|
|
8918
8928
|
})
|
|
8919
8929
|
},
|
|
8920
8930
|
triggerBodyWheelEvent (evnt) {
|
|
8921
|
-
const { target, deltaY, deltaX } = evnt
|
|
8931
|
+
const { target, deltaY, deltaX, shiftKey } = evnt
|
|
8922
8932
|
if (target && /^textarea$/i.test((target as HTMLElement).tagName)) {
|
|
8923
8933
|
return
|
|
8924
8934
|
}
|
|
@@ -8952,8 +8962,8 @@ export default defineComponent({
|
|
|
8952
8962
|
}
|
|
8953
8963
|
|
|
8954
8964
|
const wheelSpeed = getWheelSpeed(reactData.lastScrollTime)
|
|
8955
|
-
const deltaTop = Math.ceil(deltaY * wheelSpeed)
|
|
8956
|
-
const deltaLeft = Math.ceil(deltaX * wheelSpeed)
|
|
8965
|
+
const deltaTop = Math.ceil((shiftKey ? deltaX : deltaY) * wheelSpeed)
|
|
8966
|
+
const deltaLeft = Math.ceil((shiftKey ? deltaY : deltaX) * wheelSpeed)
|
|
8957
8967
|
|
|
8958
8968
|
const isTopWheel = deltaTop < 0
|
|
8959
8969
|
const currScrollTop = bodyScrollElem.scrollTop
|
|
@@ -10127,7 +10137,7 @@ export default defineComponent({
|
|
|
10127
10137
|
}
|
|
10128
10138
|
|
|
10129
10139
|
nextTick(() => {
|
|
10130
|
-
const { data, treeConfig, showOverflow } = props
|
|
10140
|
+
const { data, exportConfig, importConfig, treeConfig, showOverflow } = props
|
|
10131
10141
|
const { scrollXStore, scrollYStore } = internalData
|
|
10132
10142
|
const sYOpts = computeSYOpts.value
|
|
10133
10143
|
const editOpts = computeEditOpts.value
|
|
@@ -10136,132 +10146,124 @@ export default defineComponent({
|
|
|
10136
10146
|
const checkboxOpts = computeCheckboxOpts.value
|
|
10137
10147
|
const expandOpts = computeExpandOpts.value
|
|
10138
10148
|
const rowOpts = computeRowOpts.value
|
|
10149
|
+
const customOpts = computeCustomOpts.value
|
|
10150
|
+
const mouseOpts = computeMouseOpts.value
|
|
10151
|
+
const exportOpts = computeExportOpts.value
|
|
10152
|
+
const importOpts = computeImportOpts.value
|
|
10139
10153
|
|
|
10140
|
-
if (
|
|
10141
|
-
|
|
10142
|
-
|
|
10143
|
-
|
|
10144
|
-
|
|
10145
|
-
|
|
10146
|
-
|
|
10147
|
-
|
|
10148
|
-
|
|
10149
|
-
|
|
10150
|
-
|
|
10151
|
-
|
|
10152
|
-
|
|
10153
|
-
|
|
10154
|
-
|
|
10155
|
-
|
|
10156
|
-
|
|
10157
|
-
|
|
10158
|
-
|
|
10159
|
-
|
|
10160
|
-
|
|
10161
|
-
|
|
10162
|
-
|
|
10163
|
-
|
|
10164
|
-
|
|
10165
|
-
|
|
10166
|
-
|
|
10167
|
-
|
|
10168
|
-
|
|
10169
|
-
|
|
10170
|
-
|
|
10171
|
-
|
|
10172
|
-
|
|
10173
|
-
|
|
10174
|
-
|
|
10175
|
-
|
|
10176
|
-
|
|
10177
|
-
|
|
10178
|
-
|
|
10179
|
-
|
|
10180
|
-
|
|
10181
|
-
|
|
10182
|
-
|
|
10183
|
-
|
|
10184
|
-
|
|
10185
|
-
warnLog('vxe.error.errProp', [`export-config.types=${importOpts.types.join(',')}`, importOpts.types.filter((type: string) => XEUtils.includes(XEUtils.keys(importOpts._typeMaps), type)).join(',') || XEUtils.keys(importOpts._typeMaps).join(',')])
|
|
10186
|
-
}
|
|
10187
|
-
if (exportConfig && exportOpts.types && !exportOpts.exportMethod && !XEUtils.includeArrays(XEUtils.keys(exportOpts._typeMaps), exportOpts.types)) {
|
|
10188
|
-
warnLog('vxe.error.errProp', [`export-config.types=${exportOpts.types.join(',')}`, exportOpts.types.filter((type: string) => XEUtils.includes(XEUtils.keys(exportOpts._typeMaps), type)).join(',') || XEUtils.keys(exportOpts._typeMaps).join(',')])
|
|
10189
|
-
}
|
|
10154
|
+
if (props.rowId) {
|
|
10155
|
+
warnLog('vxe.error.delProp', ['row-id', 'row-config.keyField'])
|
|
10156
|
+
}
|
|
10157
|
+
if (props.rowKey) {
|
|
10158
|
+
warnLog('vxe.error.delProp', ['row-key', 'row-config.useKey'])
|
|
10159
|
+
}
|
|
10160
|
+
if (props.columnKey) {
|
|
10161
|
+
warnLog('vxe.error.delProp', ['column-id', 'column-config.useKey'])
|
|
10162
|
+
}
|
|
10163
|
+
if (!(props.rowId || rowOpts.keyField) && (checkboxOpts.reserve || checkboxOpts.checkRowKeys || radioOpts.reserve || radioOpts.checkRowKey || expandOpts.expandRowKeys || treeOpts.expandRowKeys)) {
|
|
10164
|
+
warnLog('vxe.error.reqProp', ['row-config.keyField'])
|
|
10165
|
+
}
|
|
10166
|
+
if (props.editConfig && (editOpts.showStatus || editOpts.showUpdateStatus || editOpts.showInsertStatus) && !props.keepSource) {
|
|
10167
|
+
warnLog('vxe.error.reqProp', ['keep-source'])
|
|
10168
|
+
}
|
|
10169
|
+
if (treeConfig && (treeOpts.showLine || treeOpts.line) && (!(props.rowKey || rowOpts.useKey) || !showOverflow)) {
|
|
10170
|
+
warnLog('vxe.error.reqProp', ['row-config.useKey | show-overflow'])
|
|
10171
|
+
}
|
|
10172
|
+
if (treeConfig && !treeOpts.transform && props.stripe) {
|
|
10173
|
+
warnLog('vxe.error.noTree', ['stripe'])
|
|
10174
|
+
}
|
|
10175
|
+
if (props.showFooter && !(props.footerMethod || props.footerData)) {
|
|
10176
|
+
warnLog('vxe.error.reqProp', ['footer-data | footer-method'])
|
|
10177
|
+
}
|
|
10178
|
+
if (rowOpts.height) {
|
|
10179
|
+
warnLog('vxe.error.delProp', ['row-config.height', 'cell-config.height'])
|
|
10180
|
+
}
|
|
10181
|
+
if (props.highlightCurrentRow) {
|
|
10182
|
+
warnLog('vxe.error.delProp', ['highlight-current-row', 'row-config.isCurrent'])
|
|
10183
|
+
}
|
|
10184
|
+
if (props.highlightHoverRow) {
|
|
10185
|
+
warnLog('vxe.error.delProp', ['highlight-hover-row', 'row-config.isHover'])
|
|
10186
|
+
}
|
|
10187
|
+
if (props.highlightCurrentColumn) {
|
|
10188
|
+
warnLog('vxe.error.delProp', ['highlight-current-column', 'column-config.isCurrent'])
|
|
10189
|
+
}
|
|
10190
|
+
if (props.highlightHoverColumn) {
|
|
10191
|
+
warnLog('vxe.error.delProp', ['highlight-hover-column', 'column-config.isHover'])
|
|
10192
|
+
}
|
|
10193
|
+
// 检查导入导出类型,如果自定义导入导出方法,则不校验类型
|
|
10194
|
+
if (importConfig && importOpts.types && !importOpts.importMethod && !XEUtils.includeArrays(XEUtils.keys(importOpts._typeMaps), importOpts.types)) {
|
|
10195
|
+
warnLog('vxe.error.errProp', [`export-config.types=${importOpts.types.join(',')}`, importOpts.types.filter((type: string) => XEUtils.includes(XEUtils.keys(importOpts._typeMaps), type)).join(',') || XEUtils.keys(importOpts._typeMaps).join(',')])
|
|
10196
|
+
}
|
|
10197
|
+
if (exportConfig && exportOpts.types && !exportOpts.exportMethod && !XEUtils.includeArrays(XEUtils.keys(exportOpts._typeMaps), exportOpts.types)) {
|
|
10198
|
+
warnLog('vxe.error.errProp', [`export-config.types=${exportOpts.types.join(',')}`, exportOpts.types.filter((type: string) => XEUtils.includes(XEUtils.keys(exportOpts._typeMaps), type)).join(',') || XEUtils.keys(exportOpts._typeMaps).join(',')])
|
|
10190
10199
|
}
|
|
10191
10200
|
|
|
10192
|
-
if (
|
|
10193
|
-
|
|
10194
|
-
|
|
10195
|
-
const rowOpts = computeRowOpts.value
|
|
10196
|
-
if (!props.id) {
|
|
10197
|
-
if ((props.customConfig ? isEnableConf(customOpts) : customOpts.enabled) && customOpts.storage) {
|
|
10198
|
-
errLog('vxe.error.reqProp', ['id'])
|
|
10199
|
-
}
|
|
10200
|
-
}
|
|
10201
|
-
if (props.treeConfig && checkboxOpts.range) {
|
|
10202
|
-
errLog('vxe.error.noTree', ['checkbox-config.range'])
|
|
10203
|
-
}
|
|
10204
|
-
if (rowOpts.height && !props.showOverflow) {
|
|
10205
|
-
warnLog('vxe.error.notProp', ['table.show-overflow'])
|
|
10206
|
-
}
|
|
10207
|
-
if (!$xeTable.handleMousedownCellAreaEvent) {
|
|
10208
|
-
if (props.areaConfig) {
|
|
10209
|
-
warnLog('vxe.error.notProp', ['area-config'])
|
|
10210
|
-
}
|
|
10211
|
-
if (props.clipConfig) {
|
|
10212
|
-
warnLog('vxe.error.notProp', ['clip-config'])
|
|
10213
|
-
}
|
|
10214
|
-
if (props.fnrConfig) {
|
|
10215
|
-
warnLog('vxe.error.notProp', ['fnr-config'])
|
|
10216
|
-
}
|
|
10217
|
-
if (mouseOpts.area) {
|
|
10218
|
-
errLog('vxe.error.notProp', ['mouse-config.area'])
|
|
10219
|
-
return
|
|
10220
|
-
}
|
|
10221
|
-
}
|
|
10222
|
-
if (props.dragConfig) {
|
|
10223
|
-
warnLog('vxe.error.delProp', ['drag-config', 'row-drag-config'])
|
|
10224
|
-
}
|
|
10225
|
-
if (props.treeConfig && treeOpts.children) {
|
|
10226
|
-
warnLog('vxe.error.delProp', ['tree-config.children', 'tree-config.childrenField'])
|
|
10227
|
-
}
|
|
10228
|
-
if (props.treeConfig && treeOpts.line) {
|
|
10229
|
-
warnLog('vxe.error.delProp', ['tree-config.line', 'tree-config.showLine'])
|
|
10230
|
-
}
|
|
10231
|
-
if (mouseOpts.area && mouseOpts.selected) {
|
|
10232
|
-
warnLog('vxe.error.errConflicts', ['mouse-config.area', 'mouse-config.selected'])
|
|
10201
|
+
if (!props.id) {
|
|
10202
|
+
if ((props.customConfig ? isEnableConf(customOpts) : customOpts.enabled) && customOpts.storage) {
|
|
10203
|
+
errLog('vxe.error.reqProp', ['id'])
|
|
10233
10204
|
}
|
|
10234
|
-
|
|
10235
|
-
|
|
10236
|
-
|
|
10237
|
-
|
|
10238
|
-
|
|
10205
|
+
}
|
|
10206
|
+
if (props.treeConfig && checkboxOpts.range) {
|
|
10207
|
+
errLog('vxe.error.noTree', ['checkbox-config.range'])
|
|
10208
|
+
}
|
|
10209
|
+
if (rowOpts.height && !props.showOverflow) {
|
|
10210
|
+
warnLog('vxe.error.notProp', ['table.show-overflow'])
|
|
10211
|
+
}
|
|
10212
|
+
if (!$xeTable.handleMousedownCellAreaEvent) {
|
|
10213
|
+
if (props.areaConfig) {
|
|
10214
|
+
warnLog('vxe.error.notProp', ['area-config'])
|
|
10239
10215
|
}
|
|
10240
|
-
if (props.
|
|
10241
|
-
warnLog('vxe.error.
|
|
10216
|
+
if (props.clipConfig) {
|
|
10217
|
+
warnLog('vxe.error.notProp', ['clip-config'])
|
|
10242
10218
|
}
|
|
10243
|
-
if (props.
|
|
10244
|
-
|
|
10219
|
+
if (props.fnrConfig) {
|
|
10220
|
+
warnLog('vxe.error.notProp', ['fnr-config'])
|
|
10245
10221
|
}
|
|
10246
|
-
if (
|
|
10247
|
-
|
|
10222
|
+
if (mouseOpts.area) {
|
|
10223
|
+
errLog('vxe.error.notProp', ['mouse-config.area'])
|
|
10224
|
+
return
|
|
10248
10225
|
}
|
|
10249
10226
|
}
|
|
10227
|
+
if (treeConfig && rowOpts.drag && !treeOpts.transform) {
|
|
10228
|
+
warnLog('vxe.error.notSupportProp', ['column-config.drag', 'tree-config.transform=false', 'tree-config.transform=true'])
|
|
10229
|
+
}
|
|
10230
|
+
if (props.dragConfig) {
|
|
10231
|
+
warnLog('vxe.error.delProp', ['drag-config', 'row-drag-config'])
|
|
10232
|
+
}
|
|
10233
|
+
if (props.treeConfig && treeOpts.children) {
|
|
10234
|
+
warnLog('vxe.error.delProp', ['tree-config.children', 'tree-config.childrenField'])
|
|
10235
|
+
}
|
|
10236
|
+
if (props.treeConfig && treeOpts.line) {
|
|
10237
|
+
warnLog('vxe.error.delProp', ['tree-config.line', 'tree-config.showLine'])
|
|
10238
|
+
}
|
|
10239
|
+
if (mouseOpts.area && mouseOpts.selected) {
|
|
10240
|
+
warnLog('vxe.error.errConflicts', ['mouse-config.area', 'mouse-config.selected'])
|
|
10241
|
+
}
|
|
10242
|
+
if (mouseOpts.area && (props.treeConfig && !treeOpts.transform)) {
|
|
10243
|
+
errLog('vxe.error.noTree', ['mouse-config.area'])
|
|
10244
|
+
}
|
|
10245
|
+
if (props.editConfig && editOpts.activeMethod) {
|
|
10246
|
+
warnLog('vxe.error.delProp', ['edit-config.activeMethod', 'edit-config.beforeEditMethod'])
|
|
10247
|
+
}
|
|
10248
|
+
if (props.treeConfig && checkboxOpts.isShiftKey) {
|
|
10249
|
+
errLog('vxe.error.errConflicts', ['tree-config', 'checkbox-config.isShiftKey'])
|
|
10250
|
+
}
|
|
10251
|
+
if (checkboxOpts.halfField) {
|
|
10252
|
+
warnLog('vxe.error.delProp', ['checkbox-config.halfField', 'checkbox-config.indeterminateField'])
|
|
10253
|
+
}
|
|
10250
10254
|
|
|
10251
10255
|
// 检查是否有安装需要的模块
|
|
10252
|
-
if (
|
|
10253
|
-
|
|
10254
|
-
|
|
10255
|
-
|
|
10256
|
-
|
|
10257
|
-
|
|
10258
|
-
|
|
10259
|
-
|
|
10260
|
-
|
|
10261
|
-
|
|
10262
|
-
|
|
10263
|
-
errLog('vxe.error.reqModule', ['Export'])
|
|
10264
|
-
}
|
|
10256
|
+
if (props.editConfig && !$xeTable.insert) {
|
|
10257
|
+
errLog('vxe.error.reqModule', ['Edit'])
|
|
10258
|
+
}
|
|
10259
|
+
if (props.editRules && !$xeTable.validate) {
|
|
10260
|
+
errLog('vxe.error.reqModule', ['Validator'])
|
|
10261
|
+
}
|
|
10262
|
+
if ((checkboxOpts.range || props.keyboardConfig || props.mouseConfig) && !$xeTable.handleCellMousedownEvent) {
|
|
10263
|
+
errLog('vxe.error.reqModule', ['Keyboard'])
|
|
10264
|
+
}
|
|
10265
|
+
if ((props.printConfig || props.importConfig || props.exportConfig) && !$xeTable.exportData) {
|
|
10266
|
+
errLog('vxe.error.reqModule', ['Export'])
|
|
10265
10267
|
}
|
|
10266
10268
|
|
|
10267
10269
|
Object.assign(scrollYStore, {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|