vxe-table 4.11.14 → 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 +3 -2
- 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 +3 -2
- package/es/table/src/table.js +130 -134
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +157 -156
- 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 +3 -2
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +3 -2
- 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 +4 -2
- package/lib/table/src/cell.min.js +1 -1
- package/lib/table/src/table.js +132 -136
- 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 +3 -2
- 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 +3 -2
- package/packages/table/src/table.ts +130 -134
- /package/es/{iconfont.1740640573077.ttf → iconfont.1740723830079.ttf} +0 -0
- /package/es/{iconfont.1740640573077.woff → iconfont.1740723830079.woff} +0 -0
- /package/es/{iconfont.1740640573077.woff2 → iconfont.1740723830079.woff2} +0 -0
- /package/lib/{iconfont.1740640573077.ttf → iconfont.1740723830079.ttf} +0 -0
- /package/lib/{iconfont.1740640573077.woff → iconfont.1740723830079.woff} +0 -0
- /package/lib/{iconfont.1740640573077.woff2 → iconfont.1740723830079.woff2} +0 -0
|
@@ -8092,6 +8092,7 @@ export default defineComponent({
|
|
|
8092
8092
|
const dragParams = {
|
|
8093
8093
|
oldRow: dragRow,
|
|
8094
8094
|
newRow: prevDragRow,
|
|
8095
|
+
dragRow,
|
|
8095
8096
|
dragPos: prevDragPos as 'top' | 'bottom',
|
|
8096
8097
|
dragToChild: !!prevDragToChild,
|
|
8097
8098
|
offsetIndex: dragOffsetIndex as 0 | 1
|
|
@@ -8242,6 +8243,7 @@ export default defineComponent({
|
|
|
8242
8243
|
dispatchEvent('row-dragend', {
|
|
8243
8244
|
oldRow: dragRow,
|
|
8244
8245
|
newRow: prevDragRow,
|
|
8246
|
+
dragRow,
|
|
8245
8247
|
dragPos: prevDragPos as any,
|
|
8246
8248
|
dragToChild: isDragToChildFlag,
|
|
8247
8249
|
offsetIndex: dragOffsetIndex,
|
|
@@ -8382,11 +8384,12 @@ export default defineComponent({
|
|
|
8382
8384
|
if (prevDragCol && dragCol) {
|
|
8383
8385
|
// 判断是否有拖动
|
|
8384
8386
|
if (prevDragCol !== dragCol) {
|
|
8385
|
-
const
|
|
8387
|
+
const dragColumn = dragCol
|
|
8386
8388
|
const newColumn = prevDragCol
|
|
8387
8389
|
const dragParams = {
|
|
8388
|
-
oldColumn,
|
|
8390
|
+
oldColumn: dragColumn,
|
|
8389
8391
|
newColumn,
|
|
8392
|
+
dragColumn,
|
|
8390
8393
|
dragPos: prevDragPos as 'left' | 'right',
|
|
8391
8394
|
dragToChild: !!prevDragToChild,
|
|
8392
8395
|
offsetIndex: dragOffsetIndex as 0 | 1
|
|
@@ -8401,17 +8404,17 @@ export default defineComponent({
|
|
|
8401
8404
|
let nafIndex = -1
|
|
8402
8405
|
|
|
8403
8406
|
const oldAllMaps: Record<string, any> = {}
|
|
8404
|
-
XEUtils.eachTree([
|
|
8407
|
+
XEUtils.eachTree([dragColumn], column => {
|
|
8405
8408
|
oldAllMaps[column.id] = column
|
|
8406
8409
|
})
|
|
8407
8410
|
|
|
8408
8411
|
let isSelfToChildStatus = false
|
|
8409
8412
|
|
|
8410
|
-
if (
|
|
8413
|
+
if (dragColumn.parentId && newColumn.parentId) {
|
|
8411
8414
|
// 子到子
|
|
8412
8415
|
|
|
8413
8416
|
if (isPeerDrag && !isCrossDrag) {
|
|
8414
|
-
if (
|
|
8417
|
+
if (dragColumn.parentId !== newColumn.parentId) {
|
|
8415
8418
|
// 非同级
|
|
8416
8419
|
return
|
|
8417
8420
|
}
|
|
@@ -8433,7 +8436,7 @@ export default defineComponent({
|
|
|
8433
8436
|
}
|
|
8434
8437
|
}
|
|
8435
8438
|
}
|
|
8436
|
-
} else if (
|
|
8439
|
+
} else if (dragColumn.parentId) {
|
|
8437
8440
|
// 子到根
|
|
8438
8441
|
|
|
8439
8442
|
if (!isCrossDrag) {
|
|
@@ -8461,18 +8464,18 @@ export default defineComponent({
|
|
|
8461
8464
|
// 根到根
|
|
8462
8465
|
}
|
|
8463
8466
|
|
|
8464
|
-
const oldewMatchRest = XEUtils.findTree(collectColumn, item => item.id ===
|
|
8467
|
+
const oldewMatchRest = XEUtils.findTree(collectColumn, item => item.id === dragColumn.id)
|
|
8465
8468
|
|
|
8466
8469
|
// 改变层级
|
|
8467
8470
|
if (isSelfToChildStatus && (isCrossDrag && isSelfToChildDrag)) {
|
|
8468
8471
|
if (oldewMatchRest) {
|
|
8469
8472
|
const { items: oCols, index: oIndex } = oldewMatchRest
|
|
8470
|
-
const childList =
|
|
8473
|
+
const childList = dragColumn.children || []
|
|
8471
8474
|
childList.forEach(column => {
|
|
8472
|
-
column.parentId =
|
|
8475
|
+
column.parentId = dragColumn.parentId
|
|
8473
8476
|
})
|
|
8474
8477
|
oCols.splice(oIndex, 1, ...childList)
|
|
8475
|
-
|
|
8478
|
+
dragColumn.children = []
|
|
8476
8479
|
}
|
|
8477
8480
|
} else {
|
|
8478
8481
|
if (oldewMatchRest) {
|
|
@@ -8489,11 +8492,11 @@ export default defineComponent({
|
|
|
8489
8492
|
const { items: nCols, index: nIndex, parent: nParent } = newMatchRest
|
|
8490
8493
|
// 转子级
|
|
8491
8494
|
if ((isCrossDrag && isToChildDrag) && isDragToChildFlag) {
|
|
8492
|
-
|
|
8493
|
-
newColumn.children = (newColumn.children || []).concat([
|
|
8495
|
+
dragColumn.parentId = newColumn.id
|
|
8496
|
+
newColumn.children = (newColumn.children || []).concat([dragColumn])
|
|
8494
8497
|
} else {
|
|
8495
|
-
|
|
8496
|
-
nCols.splice(nIndex + dragOffsetIndex, 0,
|
|
8498
|
+
dragColumn.parentId = newColumn.parentId
|
|
8499
|
+
nCols.splice(nIndex + dragOffsetIndex, 0, dragColumn)
|
|
8497
8500
|
}
|
|
8498
8501
|
if (!nParent) {
|
|
8499
8502
|
nafIndex = nIndex
|
|
@@ -8519,8 +8522,9 @@ export default defineComponent({
|
|
|
8519
8522
|
}
|
|
8520
8523
|
|
|
8521
8524
|
dispatchEvent('column-dragend', {
|
|
8522
|
-
oldColumn,
|
|
8525
|
+
oldColumn: dragColumn,
|
|
8523
8526
|
newColumn,
|
|
8527
|
+
dragColumn,
|
|
8524
8528
|
dragPos: prevDragPos,
|
|
8525
8529
|
dragToChild: isDragToChildFlag,
|
|
8526
8530
|
offsetIndex: dragOffsetIndex,
|
|
@@ -8924,7 +8928,7 @@ export default defineComponent({
|
|
|
8924
8928
|
})
|
|
8925
8929
|
},
|
|
8926
8930
|
triggerBodyWheelEvent (evnt) {
|
|
8927
|
-
const { target, deltaY, deltaX } = evnt
|
|
8931
|
+
const { target, deltaY, deltaX, shiftKey } = evnt
|
|
8928
8932
|
if (target && /^textarea$/i.test((target as HTMLElement).tagName)) {
|
|
8929
8933
|
return
|
|
8930
8934
|
}
|
|
@@ -8958,8 +8962,8 @@ export default defineComponent({
|
|
|
8958
8962
|
}
|
|
8959
8963
|
|
|
8960
8964
|
const wheelSpeed = getWheelSpeed(reactData.lastScrollTime)
|
|
8961
|
-
const deltaTop = Math.ceil(deltaY * wheelSpeed)
|
|
8962
|
-
const deltaLeft = Math.ceil(deltaX * wheelSpeed)
|
|
8965
|
+
const deltaTop = Math.ceil((shiftKey ? deltaX : deltaY) * wheelSpeed)
|
|
8966
|
+
const deltaLeft = Math.ceil((shiftKey ? deltaY : deltaX) * wheelSpeed)
|
|
8963
8967
|
|
|
8964
8968
|
const isTopWheel = deltaTop < 0
|
|
8965
8969
|
const currScrollTop = bodyScrollElem.scrollTop
|
|
@@ -10133,7 +10137,7 @@ export default defineComponent({
|
|
|
10133
10137
|
}
|
|
10134
10138
|
|
|
10135
10139
|
nextTick(() => {
|
|
10136
|
-
const { data, treeConfig, showOverflow } = props
|
|
10140
|
+
const { data, exportConfig, importConfig, treeConfig, showOverflow } = props
|
|
10137
10141
|
const { scrollXStore, scrollYStore } = internalData
|
|
10138
10142
|
const sYOpts = computeSYOpts.value
|
|
10139
10143
|
const editOpts = computeEditOpts.value
|
|
@@ -10142,132 +10146,124 @@ export default defineComponent({
|
|
|
10142
10146
|
const checkboxOpts = computeCheckboxOpts.value
|
|
10143
10147
|
const expandOpts = computeExpandOpts.value
|
|
10144
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
|
|
10145
10153
|
|
|
10146
|
-
if (
|
|
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
|
-
|
|
10186
|
-
|
|
10187
|
-
|
|
10188
|
-
|
|
10189
|
-
|
|
10190
|
-
|
|
10191
|
-
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(',')])
|
|
10192
|
-
}
|
|
10193
|
-
if (exportConfig && exportOpts.types && !exportOpts.exportMethod && !XEUtils.includeArrays(XEUtils.keys(exportOpts._typeMaps), exportOpts.types)) {
|
|
10194
|
-
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(',')])
|
|
10195
|
-
}
|
|
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(',')])
|
|
10196
10199
|
}
|
|
10197
10200
|
|
|
10198
|
-
if (
|
|
10199
|
-
|
|
10200
|
-
|
|
10201
|
-
const rowOpts = computeRowOpts.value
|
|
10202
|
-
if (!props.id) {
|
|
10203
|
-
if ((props.customConfig ? isEnableConf(customOpts) : customOpts.enabled) && customOpts.storage) {
|
|
10204
|
-
errLog('vxe.error.reqProp', ['id'])
|
|
10205
|
-
}
|
|
10206
|
-
}
|
|
10207
|
-
if (props.treeConfig && checkboxOpts.range) {
|
|
10208
|
-
errLog('vxe.error.noTree', ['checkbox-config.range'])
|
|
10209
|
-
}
|
|
10210
|
-
if (rowOpts.height && !props.showOverflow) {
|
|
10211
|
-
warnLog('vxe.error.notProp', ['table.show-overflow'])
|
|
10212
|
-
}
|
|
10213
|
-
if (!$xeTable.handleMousedownCellAreaEvent) {
|
|
10214
|
-
if (props.areaConfig) {
|
|
10215
|
-
warnLog('vxe.error.notProp', ['area-config'])
|
|
10216
|
-
}
|
|
10217
|
-
if (props.clipConfig) {
|
|
10218
|
-
warnLog('vxe.error.notProp', ['clip-config'])
|
|
10219
|
-
}
|
|
10220
|
-
if (props.fnrConfig) {
|
|
10221
|
-
warnLog('vxe.error.notProp', ['fnr-config'])
|
|
10222
|
-
}
|
|
10223
|
-
if (mouseOpts.area) {
|
|
10224
|
-
errLog('vxe.error.notProp', ['mouse-config.area'])
|
|
10225
|
-
return
|
|
10226
|
-
}
|
|
10227
|
-
}
|
|
10228
|
-
if (props.dragConfig) {
|
|
10229
|
-
warnLog('vxe.error.delProp', ['drag-config', 'row-drag-config'])
|
|
10230
|
-
}
|
|
10231
|
-
if (props.treeConfig && treeOpts.children) {
|
|
10232
|
-
warnLog('vxe.error.delProp', ['tree-config.children', 'tree-config.childrenField'])
|
|
10233
|
-
}
|
|
10234
|
-
if (props.treeConfig && treeOpts.line) {
|
|
10235
|
-
warnLog('vxe.error.delProp', ['tree-config.line', 'tree-config.showLine'])
|
|
10236
|
-
}
|
|
10237
|
-
if (mouseOpts.area && mouseOpts.selected) {
|
|
10238
|
-
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'])
|
|
10239
10204
|
}
|
|
10240
|
-
|
|
10241
|
-
|
|
10242
|
-
|
|
10243
|
-
|
|
10244
|
-
|
|
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'])
|
|
10245
10215
|
}
|
|
10246
|
-
if (props.
|
|
10247
|
-
warnLog('vxe.error.
|
|
10216
|
+
if (props.clipConfig) {
|
|
10217
|
+
warnLog('vxe.error.notProp', ['clip-config'])
|
|
10248
10218
|
}
|
|
10249
|
-
if (props.
|
|
10250
|
-
|
|
10219
|
+
if (props.fnrConfig) {
|
|
10220
|
+
warnLog('vxe.error.notProp', ['fnr-config'])
|
|
10251
10221
|
}
|
|
10252
|
-
if (
|
|
10253
|
-
|
|
10222
|
+
if (mouseOpts.area) {
|
|
10223
|
+
errLog('vxe.error.notProp', ['mouse-config.area'])
|
|
10224
|
+
return
|
|
10254
10225
|
}
|
|
10255
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
|
+
}
|
|
10256
10254
|
|
|
10257
10255
|
// 检查是否有安装需要的模块
|
|
10258
|
-
if (
|
|
10259
|
-
|
|
10260
|
-
|
|
10261
|
-
|
|
10262
|
-
|
|
10263
|
-
|
|
10264
|
-
|
|
10265
|
-
|
|
10266
|
-
|
|
10267
|
-
|
|
10268
|
-
|
|
10269
|
-
errLog('vxe.error.reqModule', ['Export'])
|
|
10270
|
-
}
|
|
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'])
|
|
10271
10267
|
}
|
|
10272
10268
|
|
|
10273
10269
|
Object.assign(scrollYStore, {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|