vxe-table 4.13.51 → 4.14.0-beta.0
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/grid/src/grid.js +2 -2
- package/es/locale/lang/ar-EG.js +1 -3
- package/es/locale/lang/de-DE.js +1 -3
- package/es/locale/lang/en-US.js +1 -3
- package/es/locale/lang/es-ES.js +1 -3
- package/es/locale/lang/fr-FR.js +1 -3
- package/es/locale/lang/hu-HU.js +1 -3
- package/es/locale/lang/hy-AM.js +1 -3
- package/es/locale/lang/id-ID.js +1 -3
- package/es/locale/lang/it-IT.js +1 -3
- package/es/locale/lang/ja-JP.js +1 -3
- package/es/locale/lang/ko-KR.js +1 -3
- package/es/locale/lang/ms-MY.js +1 -3
- package/es/locale/lang/nb-NO.js +1 -3
- package/es/locale/lang/pt-BR.js +1 -3
- package/es/locale/lang/ru-RU.js +1 -3
- package/es/locale/lang/th-TH.js +1 -3
- package/es/locale/lang/ug-CN.js +1 -3
- package/es/locale/lang/uk-UA.js +1 -3
- package/es/locale/lang/uz-UZ.js +1 -3
- package/es/locale/lang/vi-VN.js +1 -3
- package/es/locale/lang/zh-CHT.js +1 -3
- package/es/locale/lang/zh-CN.js +1 -3
- package/es/style.css +1 -1
- package/es/table/module/edit/hook.js +1 -31
- package/es/table/src/columnInfo.js +0 -5
- package/es/table/src/table.js +12 -47
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/grid/src/grid.js +2 -2
- package/lib/grid/src/grid.min.js +1 -1
- package/lib/index.common.js +2 -1
- package/lib/index.umd.js +1817 -1956
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/ar-EG.js +1 -3
- package/lib/locale/lang/ar-EG.min.js +1 -1
- package/lib/locale/lang/ar-EG.umd.js +1 -3
- package/lib/locale/lang/de-DE.js +1 -3
- package/lib/locale/lang/de-DE.min.js +1 -1
- package/lib/locale/lang/de-DE.umd.js +1 -3
- package/lib/locale/lang/en-US.js +1 -3
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +1 -3
- package/lib/locale/lang/es-ES.js +1 -3
- package/lib/locale/lang/es-ES.min.js +1 -1
- package/lib/locale/lang/es-ES.umd.js +1 -3
- package/lib/locale/lang/fr-FR.js +1 -3
- package/lib/locale/lang/fr-FR.min.js +1 -1
- package/lib/locale/lang/fr-FR.umd.js +1 -3
- package/lib/locale/lang/hu-HU.js +1 -3
- package/lib/locale/lang/hu-HU.min.js +1 -1
- package/lib/locale/lang/hu-HU.umd.js +1 -3
- package/lib/locale/lang/hy-AM.js +1 -3
- package/lib/locale/lang/hy-AM.min.js +1 -1
- package/lib/locale/lang/hy-AM.umd.js +1 -3
- package/lib/locale/lang/id-ID.js +1 -3
- package/lib/locale/lang/id-ID.min.js +1 -1
- package/lib/locale/lang/id-ID.umd.js +1 -3
- package/lib/locale/lang/it-IT.js +1 -3
- package/lib/locale/lang/it-IT.min.js +1 -1
- package/lib/locale/lang/it-IT.umd.js +1 -3
- package/lib/locale/lang/ja-JP.js +1 -3
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +1 -3
- package/lib/locale/lang/ko-KR.js +1 -3
- package/lib/locale/lang/ko-KR.min.js +1 -1
- package/lib/locale/lang/ko-KR.umd.js +1 -3
- package/lib/locale/lang/ms-MY.js +1 -3
- package/lib/locale/lang/ms-MY.min.js +1 -1
- package/lib/locale/lang/ms-MY.umd.js +1 -3
- package/lib/locale/lang/nb-NO.js +1 -3
- package/lib/locale/lang/nb-NO.min.js +1 -1
- package/lib/locale/lang/nb-NO.umd.js +1 -3
- package/lib/locale/lang/pt-BR.js +1 -3
- package/lib/locale/lang/pt-BR.min.js +1 -1
- package/lib/locale/lang/pt-BR.umd.js +1 -3
- package/lib/locale/lang/ru-RU.js +1 -3
- package/lib/locale/lang/ru-RU.min.js +1 -1
- package/lib/locale/lang/ru-RU.umd.js +1 -3
- package/lib/locale/lang/th-TH.js +1 -3
- package/lib/locale/lang/th-TH.min.js +1 -1
- package/lib/locale/lang/th-TH.umd.js +1 -3
- package/lib/locale/lang/ug-CN.js +1 -3
- package/lib/locale/lang/ug-CN.min.js +1 -1
- package/lib/locale/lang/ug-CN.umd.js +1 -3
- package/lib/locale/lang/uk-UA.js +1 -3
- package/lib/locale/lang/uk-UA.min.js +1 -1
- package/lib/locale/lang/uk-UA.umd.js +1 -3
- package/lib/locale/lang/uz-UZ.js +1 -3
- package/lib/locale/lang/uz-UZ.min.js +1 -1
- package/lib/locale/lang/uz-UZ.umd.js +1 -3
- package/lib/locale/lang/vi-VN.js +1 -3
- package/lib/locale/lang/vi-VN.min.js +1 -1
- package/lib/locale/lang/vi-VN.umd.js +1 -3
- package/lib/locale/lang/zh-CHT.js +1 -3
- package/lib/locale/lang/zh-CHT.min.js +1 -1
- package/lib/locale/lang/zh-CHT.umd.js +1 -3
- package/lib/locale/lang/zh-CN.js +1 -3
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +1 -3
- package/lib/style.css +1 -1
- package/lib/table/module/edit/hook.js +1 -30
- package/lib/table/module/edit/hook.min.js +1 -1
- package/lib/table/src/columnInfo.js +0 -5
- package/lib/table/src/columnInfo.min.js +1 -1
- package/lib/table/src/table.js +5 -10
- 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/lib/v-x-e-table/index.js +2 -1
- package/lib/v-x-e-table/index.min.js +1 -1
- package/lib/vxe-colgroup/index.js +2 -1
- package/lib/vxe-colgroup/index.min.js +1 -1
- package/lib/vxe-column/index.js +2 -1
- package/lib/vxe-column/index.min.js +1 -1
- package/lib/vxe-grid/index.js +2 -1
- package/lib/vxe-grid/index.min.js +1 -1
- package/lib/vxe-table/index.js +2 -1
- package/lib/vxe-table/index.min.js +1 -1
- package/lib/vxe-toolbar/index.js +2 -1
- package/lib/vxe-toolbar/index.min.js +1 -1
- package/lib/vxe-ui/index.js +2 -1
- package/lib/vxe-ui/index.min.js +1 -1
- package/lib/vxe-v-x-e-table/index.js +2 -1
- package/lib/vxe-v-x-e-table/index.min.js +1 -1
- package/package.json +1 -1
- package/packages/grid/src/grid.ts +2 -2
- package/packages/locale/lang/ar-EG.ts +1 -3
- package/packages/locale/lang/de-DE.ts +1 -3
- package/packages/locale/lang/en-US.ts +1 -3
- package/packages/locale/lang/es-ES.ts +1 -3
- package/packages/locale/lang/fr-FR.ts +1 -3
- package/packages/locale/lang/hu-HU.ts +1 -3
- package/packages/locale/lang/hy-AM.ts +1 -3
- package/packages/locale/lang/id-ID.ts +1 -3
- package/packages/locale/lang/it-IT.ts +1 -3
- package/packages/locale/lang/ja-JP.ts +1 -3
- package/packages/locale/lang/ko-KR.ts +1 -3
- package/packages/locale/lang/ms-MY.ts +1 -3
- package/packages/locale/lang/nb-NO.ts +1 -3
- package/packages/locale/lang/pt-BR.ts +1 -3
- package/packages/locale/lang/ru-RU.ts +1 -3
- package/packages/locale/lang/th-TH.ts +1 -3
- package/packages/locale/lang/ug-CN.ts +1 -3
- package/packages/locale/lang/uk-UA.ts +1 -3
- package/packages/locale/lang/uz-UZ.ts +1 -3
- package/packages/locale/lang/vi-VN.ts +1 -3
- package/packages/locale/lang/zh-CHT.ts +1 -3
- package/packages/locale/lang/zh-CN.ts +1 -3
- package/packages/table/module/edit/hook.ts +1 -29
- package/packages/table/src/columnInfo.ts +0 -5
- package/packages/table/src/table.ts +12 -44
- /package/es/{iconfont.1751422680625.ttf → iconfont.1750770364548.ttf} +0 -0
- /package/es/{iconfont.1751422680625.woff → iconfont.1750770364548.woff} +0 -0
- /package/es/{iconfont.1751422680625.woff2 → iconfont.1750770364548.woff2} +0 -0
- /package/lib/{iconfont.1751422680625.ttf → iconfont.1750770364548.ttf} +0 -0
- /package/lib/{iconfont.1751422680625.woff → iconfont.1750770364548.woff} +0 -0
- /package/lib/{iconfont.1751422680625.woff2 → iconfont.1750770364548.woff2} +0 -0
|
@@ -36,7 +36,6 @@ export default {
|
|
|
36
36
|
notCommands: 'Глобальної директиви "{0}" не існує',
|
|
37
37
|
notSlot: 'Слот "{0}" не існує',
|
|
38
38
|
noTree: '"{0}" не підтримується в структурі дерева',
|
|
39
|
-
noGroup: '数据分组后不支持 "{0}"',
|
|
40
39
|
notProp: 'Непідтримуваний параметр "{0}"',
|
|
41
40
|
checkProp: "Коли об'єм даних занадто великий, прапорець може бути заїканий. Рекомендується встановити параметр \"{0}\" для покращення швидкості візуалізації",
|
|
42
41
|
coverProp: 'Параметр "{1}" "{0}" неодноразово визначається, що може спричинити помилку',
|
|
@@ -355,8 +354,7 @@ export default {
|
|
|
355
354
|
colorPicker: {
|
|
356
355
|
clear: 'Чіткий',
|
|
357
356
|
confirm: 'підтверджувати',
|
|
358
|
-
copySuccess: 'Копіюється в буфер обміну: {0}'
|
|
359
|
-
hex: 'HEX'
|
|
357
|
+
copySuccess: 'Копіюється в буфер обміну: {0}'
|
|
360
358
|
},
|
|
361
359
|
formDesign: {
|
|
362
360
|
formName: 'Назва',
|
|
@@ -36,7 +36,6 @@ export default {
|
|
|
36
36
|
notCommands: "\"{0}\" global ko'rsatmasi mavjud emas",
|
|
37
37
|
notSlot: '"{0}" uyasi mavjud emas',
|
|
38
38
|
noTree: "\"{0}\" daraxt tuzilmasida qo'llab-quvvatlanmaydi",
|
|
39
|
-
noGroup: '数据分组后不支持 "{0}"',
|
|
40
39
|
notProp: "\"{0}\" ni qo'llab-quvvatlamagan parametr",
|
|
41
40
|
checkProp: "Ma'lumotlar balandligi juda katta bo'lsa, katagiga ko'tarilishi mumkin. Tezlikni yaxshilash uchun \"{0}\" parametrini belgilash tavsiya etiladi",
|
|
42
41
|
coverProp: '"{1}" parametr "{0}" parametr bir necha bor aniqlanadi, bu xatoga olib kelishi mumkin',
|
|
@@ -355,8 +354,7 @@ export default {
|
|
|
355
354
|
colorPicker: {
|
|
356
355
|
clear: 'Aniq',
|
|
357
356
|
confirm: 'tasdiqlamoq',
|
|
358
|
-
copySuccess: "Clipboardga nusxa ko'chirish: {0}"
|
|
359
|
-
hex: 'HEX'
|
|
357
|
+
copySuccess: "Clipboardga nusxa ko'chirish: {0}"
|
|
360
358
|
},
|
|
361
359
|
formDesign: {
|
|
362
360
|
formName: 'Forma nomi',
|
|
@@ -36,7 +36,6 @@ export default {
|
|
|
36
36
|
notCommands: 'Chỉ thị toàn cầu "{0}" không tồn tại',
|
|
37
37
|
notSlot: 'Khe "{0}" không tồn tại',
|
|
38
38
|
noTree: '"{0}" không được hỗ trợ trong cấu trúc cây',
|
|
39
|
-
noGroup: '数据分组后不支持 "{0}"',
|
|
40
39
|
notProp: 'Tham số không được hỗ trợ "{0}"',
|
|
41
40
|
checkProp: 'Khi khối lượng dữ liệu quá lớn, hộp kiểm có thể được lắp. Bạn nên đặt tham số "{0}" để cải thiện tốc độ kết xuất',
|
|
42
41
|
coverProp: 'Tham số "{1}" của "{0}" được xác định nhiều lần, có thể gây ra lỗi',
|
|
@@ -355,8 +354,7 @@ export default {
|
|
|
355
354
|
colorPicker: {
|
|
356
355
|
clear: 'Thông thoáng',
|
|
357
356
|
confirm: 'xác nhận',
|
|
358
|
-
copySuccess: 'Được sao chép vào bảng tạm: {0}'
|
|
359
|
-
hex: 'HEX'
|
|
357
|
+
copySuccess: 'Được sao chép vào bảng tạm: {0}'
|
|
360
358
|
},
|
|
361
359
|
formDesign: {
|
|
362
360
|
formName: 'Tên hình thức',
|
|
@@ -36,7 +36,6 @@ export default {
|
|
|
36
36
|
notCommands: '全局指令 "{0}" 不存在',
|
|
37
37
|
notSlot: '插槽 "{0}" 不存在',
|
|
38
38
|
noTree: '樹結構不支持 "{0}"',
|
|
39
|
-
noGroup: '数据分组后不支持 "{0}"',
|
|
40
39
|
notProp: '不支持的參數 "{0}"',
|
|
41
40
|
checkProp: '當數據量過大時可能會導致複選框卡頓,建議設置參數 "{0}" 提升渲染速度',
|
|
42
41
|
coverProp: '"{0}" 的參數 "{1}" 重複定義,這可能會出現錯誤',
|
|
@@ -355,8 +354,7 @@ export default {
|
|
|
355
354
|
colorPicker: {
|
|
356
355
|
clear: '清除',
|
|
357
356
|
confirm: '確認',
|
|
358
|
-
copySuccess: '已復製到剪貼板:{0}'
|
|
359
|
-
hex: '十六进制'
|
|
357
|
+
copySuccess: '已復製到剪貼板:{0}'
|
|
360
358
|
},
|
|
361
359
|
formDesign: {
|
|
362
360
|
formName: '表單名稱',
|
|
@@ -36,7 +36,6 @@ export default {
|
|
|
36
36
|
notCommands: '全局指令 "{0}" 不存在',
|
|
37
37
|
notSlot: '插槽 "{0}" 不存在',
|
|
38
38
|
noTree: '树结构不支持 "{0}"',
|
|
39
|
-
noGroup: '数据分组后不支持 "{0}"',
|
|
40
39
|
notProp: '不支持的参数 "{0}"',
|
|
41
40
|
checkProp: '当数据量过大时可能会导致复选框卡顿,建议设置参数 "{0}" 提升渲染速度',
|
|
42
41
|
coverProp: '"{0}" 的参数 "{1}" 重复定义,这可能会出现错误',
|
|
@@ -355,8 +354,7 @@ export default {
|
|
|
355
354
|
colorPicker: {
|
|
356
355
|
clear: '清除',
|
|
357
356
|
confirm: '确认',
|
|
358
|
-
copySuccess: '已复制到剪贴板:{0}'
|
|
359
|
-
hex: '十六进制'
|
|
357
|
+
copySuccess: '已复制到剪贴板:{0}'
|
|
360
358
|
},
|
|
361
359
|
formDesign: {
|
|
362
360
|
formName: '表单名称',
|
|
@@ -104,13 +104,8 @@ hooks.add('tableEditModule', {
|
|
|
104
104
|
})
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
-
// const insertGroupRow = (newRecords: any[], isAppend: boolean) => {
|
|
108
|
-
|
|
109
|
-
// }
|
|
110
|
-
|
|
111
107
|
const handleInsertRowAt = (records: any, targetRow: any, isInsertNextRow?: boolean) => {
|
|
112
108
|
const { treeConfig } = props
|
|
113
|
-
const { isRowGroupStatus } = reactData
|
|
114
109
|
const { tableFullTreeData, afterFullData, mergeBodyList, tableFullData, fullDataRowIdData, fullAllDataRowIdData, insertRowMaps } = internalData
|
|
115
110
|
const treeOpts = computeTreeOpts.value
|
|
116
111
|
const { transform, rowField, mapChildrenField } = treeOpts
|
|
@@ -123,13 +118,6 @@ hooks.add('tableEditModule', {
|
|
|
123
118
|
// 如果为虚拟树
|
|
124
119
|
if (treeConfig && transform) {
|
|
125
120
|
insertTreeRow(newRecords, false)
|
|
126
|
-
} else if (isRowGroupStatus) {
|
|
127
|
-
// 如果分组
|
|
128
|
-
if (treeConfig) {
|
|
129
|
-
throw new Error(getI18n('vxe.error.noTree', ['insert']))
|
|
130
|
-
}
|
|
131
|
-
warnLog(getI18n('vxe.error.noGroup', ['remove']))
|
|
132
|
-
// insertGroupRow(newRecords, false)
|
|
133
121
|
} else {
|
|
134
122
|
newRecords.forEach(item => {
|
|
135
123
|
const rowid = getRowid($xeTable, item)
|
|
@@ -152,13 +140,6 @@ hooks.add('tableEditModule', {
|
|
|
152
140
|
// 如果为虚拟树
|
|
153
141
|
if (treeConfig && transform) {
|
|
154
142
|
insertTreeRow(newRecords, true)
|
|
155
|
-
} else if (isRowGroupStatus) {
|
|
156
|
-
// 如果分组
|
|
157
|
-
if (treeConfig) {
|
|
158
|
-
throw new Error(getI18n('vxe.error.noTree', ['insert']))
|
|
159
|
-
}
|
|
160
|
-
warnLog(getI18n('vxe.error.noGroup', ['remove']))
|
|
161
|
-
// insertGroupRow(newRecords, true)
|
|
162
143
|
} else {
|
|
163
144
|
newRecords.forEach(item => {
|
|
164
145
|
const rowid = getRowid($xeTable, item)
|
|
@@ -221,12 +202,6 @@ hooks.add('tableEditModule', {
|
|
|
221
202
|
warnLog('vxe.error.unableInsert')
|
|
222
203
|
insertTreeRow(newRecords, true)
|
|
223
204
|
}
|
|
224
|
-
} else if (isRowGroupStatus) {
|
|
225
|
-
// 如果分组
|
|
226
|
-
if (treeConfig) {
|
|
227
|
-
throw new Error(getI18n('vxe.error.noTree', ['insert']))
|
|
228
|
-
}
|
|
229
|
-
warnLog(getI18n('vxe.error.noGroup', ['remove']))
|
|
230
205
|
} else {
|
|
231
206
|
if (treeConfig) {
|
|
232
207
|
throw new Error(getI18n('vxe.error.noTree', ['insert']))
|
|
@@ -513,7 +488,7 @@ hooks.add('tableEditModule', {
|
|
|
513
488
|
*/
|
|
514
489
|
remove (rows: any) {
|
|
515
490
|
const { treeConfig } = props
|
|
516
|
-
const { editStore
|
|
491
|
+
const { editStore } = reactData
|
|
517
492
|
const { tableFullTreeData, selectCheckboxMaps, afterFullData, mergeBodyList, tableFullData, pendingRowMaps, insertRowMaps, removeRowMaps } = internalData
|
|
518
493
|
const checkboxOpts = computeCheckboxOpts.value
|
|
519
494
|
const treeOpts = computeTreeOpts.value
|
|
@@ -569,9 +544,6 @@ hooks.add('tableEditModule', {
|
|
|
569
544
|
afterFullData.splice(afIndex, 1)
|
|
570
545
|
}
|
|
571
546
|
})
|
|
572
|
-
} else if (isRowGroupStatus) {
|
|
573
|
-
// 如果分组
|
|
574
|
-
warnLog(getI18n('vxe.error.noGroup', ['remove']))
|
|
575
547
|
} else {
|
|
576
548
|
rows.forEach((row: any) => {
|
|
577
549
|
const tfIndex = $xeTable.findRowIndexOf(tableFullData, row)
|
|
@@ -47,11 +47,6 @@ export class ColumnInfo {
|
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
|
-
if (_vm.aggFunc) {
|
|
51
|
-
if (!$xeTable.handlePivotTableAggregateData && _vm.aggFunc !== true) {
|
|
52
|
-
errLog('vxe.error.errProp', [`column.agg-func=${_vm.aggFunc}`, 'column.agg-func=true'])
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
50
|
|
|
56
51
|
Object.assign(this, {
|
|
57
52
|
// 基本属性
|
|
@@ -772,10 +772,10 @@ export default defineVxeComponent({
|
|
|
772
772
|
})
|
|
773
773
|
|
|
774
774
|
const computeTableRowExpandedList = computed(() => {
|
|
775
|
-
const {
|
|
775
|
+
const { rowExpandedFlag, expandColumn, rowGroupExpandedFlag, treeExpandedFlag } = reactData
|
|
776
776
|
const { visibleDataRowIdData, rowExpandedMaps } = internalData
|
|
777
777
|
const expandList: any[] = []
|
|
778
|
-
if (
|
|
778
|
+
if (expandColumn && rowExpandedFlag && rowGroupExpandedFlag && treeExpandedFlag) {
|
|
779
779
|
XEUtils.each(rowExpandedMaps, (row, rowid) => {
|
|
780
780
|
if (visibleDataRowIdData[rowid]) {
|
|
781
781
|
expandList.push(row)
|
|
@@ -8421,8 +8421,7 @@ export default defineVxeComponent({
|
|
|
8421
8421
|
const childList: any[] = vals[2]
|
|
8422
8422
|
let sLen = 0 // 已选
|
|
8423
8423
|
let hLen = 0 // 半选
|
|
8424
|
-
let vLen = 0 //
|
|
8425
|
-
const cLen = childList.length // 有效子行
|
|
8424
|
+
let vLen = 0 // 有效行
|
|
8426
8425
|
childList.forEach(
|
|
8427
8426
|
checkMethod
|
|
8428
8427
|
? (item) => {
|
|
@@ -8455,25 +8454,15 @@ export default defineVxeComponent({
|
|
|
8455
8454
|
}
|
|
8456
8455
|
)
|
|
8457
8456
|
|
|
8458
|
-
let isSelected =
|
|
8459
|
-
if (
|
|
8460
|
-
if (
|
|
8461
|
-
isSelected =
|
|
8457
|
+
let isSelected = (sLen >= vLen && (vLen >= 1 || hLen >= 1))
|
|
8458
|
+
if (checkMethod) {
|
|
8459
|
+
if (checkMethod({ $table: $xeTable, row })) {
|
|
8460
|
+
isSelected = sLen >= vLen
|
|
8462
8461
|
} else {
|
|
8463
|
-
|
|
8464
|
-
if ((sLen > 0 && sLen >= vLen)) {
|
|
8465
|
-
isSelected = true
|
|
8466
|
-
} else if (selectCheckboxMaps[rowid]) {
|
|
8467
|
-
isSelected = true
|
|
8468
|
-
} else {
|
|
8469
|
-
isSelected = false
|
|
8470
|
-
}
|
|
8462
|
+
isSelected = selectCheckboxMaps[rowid]
|
|
8471
8463
|
}
|
|
8472
|
-
} else {
|
|
8473
|
-
// 如果无子项
|
|
8474
|
-
isSelected = selectCheckboxMaps[rowid]
|
|
8475
8464
|
}
|
|
8476
|
-
const halfSelect = !isSelected && (sLen
|
|
8465
|
+
const halfSelect = !isSelected && (sLen >= 1 || hLen >= 1)
|
|
8477
8466
|
|
|
8478
8467
|
if (checkField) {
|
|
8479
8468
|
XEUtils.set(row, checkField, isSelected)
|
|
@@ -8512,9 +8501,7 @@ export default defineVxeComponent({
|
|
|
8512
8501
|
const { handleGetRowId } = createHandleGetRowId($xeTable)
|
|
8513
8502
|
|
|
8514
8503
|
let sLen = 0 // 已选
|
|
8515
|
-
let dsLen = 0 // 禁用的已选
|
|
8516
8504
|
let hLen = 0 // 半选
|
|
8517
|
-
let dhLen = 0 // 禁用的半选
|
|
8518
8505
|
let vLen = 0 // 有效行
|
|
8519
8506
|
|
|
8520
8507
|
const rootList = (treeConfig ? afterTreeFullData : (isRowGroupStatus ? afterGroupFullData : afterFullData))
|
|
@@ -8531,9 +8518,9 @@ export default defineVxeComponent({
|
|
|
8531
8518
|
vLen++
|
|
8532
8519
|
} else {
|
|
8533
8520
|
if (selected) {
|
|
8534
|
-
|
|
8521
|
+
sLen++
|
|
8535
8522
|
} else if (treeIndeterminateRowMaps[childRowid]) {
|
|
8536
|
-
|
|
8523
|
+
hLen++
|
|
8537
8524
|
}
|
|
8538
8525
|
}
|
|
8539
8526
|
}
|
|
@@ -8549,7 +8536,7 @@ export default defineVxeComponent({
|
|
|
8549
8536
|
})
|
|
8550
8537
|
|
|
8551
8538
|
const isSelected = rootList.length > 0 ? (vLen > 0 ? (sLen >= vLen) : (sLen >= rootList.length)) : false
|
|
8552
|
-
let halfSelect = !isSelected && (sLen
|
|
8539
|
+
let halfSelect = !isSelected && (sLen >= 1 || hLen >= 1)
|
|
8553
8540
|
|
|
8554
8541
|
// 如果复选框启用保留记录,当保留数据存在时显示半选
|
|
8555
8542
|
if (!isSelected && !halfSelect && showReserveStatus) {
|
|
@@ -11873,7 +11860,6 @@ export default defineVxeComponent({
|
|
|
11873
11860
|
nextTick(() => {
|
|
11874
11861
|
if (props.loading) {
|
|
11875
11862
|
if (!VxeUILoadingComponent && !slots.loading) {
|
|
11876
|
-
errLog('vxe.error.errProp', ['loading=true', 'loading=false | <template #loading>...</template>'])
|
|
11877
11863
|
errLog('vxe.error.reqComp', ['vxe-loading'])
|
|
11878
11864
|
}
|
|
11879
11865
|
}
|
|
@@ -11882,24 +11868,6 @@ export default defineVxeComponent({
|
|
|
11882
11868
|
(props.showFooterOverflow === true || props.showFooterOverflow === 'tooltip') ||
|
|
11883
11869
|
props.tooltipConfig || props.editRules) {
|
|
11884
11870
|
if (!VxeUITooltipComponent) {
|
|
11885
|
-
if (props.showOverflow === true) {
|
|
11886
|
-
errLog('vxe.error.errProp', ['show-overflow=true', 'show-overflow=title'])
|
|
11887
|
-
}
|
|
11888
|
-
if (props.showOverflow === 'tooltip') {
|
|
11889
|
-
errLog('vxe.error.errProp', ['show-overflow=tooltip', 'show-overflow=title'])
|
|
11890
|
-
}
|
|
11891
|
-
if (props.showHeaderOverflow === true) {
|
|
11892
|
-
errLog('vxe.error.errProp', ['show-header-overflow=true', 'show-header-overflow=title'])
|
|
11893
|
-
}
|
|
11894
|
-
if (props.showHeaderOverflow === 'tooltip') {
|
|
11895
|
-
errLog('vxe.error.errProp', ['show-header-overflow=tooltip', 'show-header-overflow=title'])
|
|
11896
|
-
}
|
|
11897
|
-
if (props.showFooterOverflow === true) {
|
|
11898
|
-
errLog('vxe.error.errProp', ['show-footer-overflow=true', 'show-footer-overflow=title'])
|
|
11899
|
-
}
|
|
11900
|
-
if (props.showFooterOverflow === 'tooltip') {
|
|
11901
|
-
errLog('vxe.error.errProp', ['show-footer-overflow=tooltip', 'show-footer-overflow=title'])
|
|
11902
|
-
}
|
|
11903
11871
|
errLog('vxe.error.reqComp', ['vxe-tooltip'])
|
|
11904
11872
|
}
|
|
11905
11873
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|