vxe-table 3.12.0-beta.13 → 3.12.0-beta.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/de-DE.js +490 -490
- package/es/locale/lang/en-US.js +438 -438
- package/es/locale/lang/it-IT.js +692 -0
- package/es/locale/lang/ru-RU.js +36 -36
- package/es/locale/lang/th-TH.js +692 -0
- package/es/locale/lang/zh-CHT.js +19 -19
- package/es/style.css +1 -1
- package/es/table/module/export/mixin.js +1 -1
- package/es/table/src/methods.js +25 -25
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +28 -31
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/de-DE.js +490 -490
- package/lib/locale/lang/de-DE.min.js +1 -1
- package/lib/locale/lang/en-US.js +438 -438
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +438 -438
- package/lib/locale/lang/it-IT.js +698 -0
- package/lib/locale/lang/it-IT.min.js +1 -0
- package/lib/locale/lang/ru-RU.js +36 -36
- package/lib/locale/lang/ru-RU.min.js +1 -1
- package/lib/locale/lang/ru-RU.umd.js +36 -36
- package/lib/locale/lang/th-TH.js +698 -0
- package/lib/locale/lang/th-TH.min.js +1 -0
- package/lib/locale/lang/zh-CHT.js +19 -19
- package/lib/locale/lang/zh-CHT.min.js +1 -1
- package/lib/locale/lang/zh-CHT.umd.js +19 -19
- package/lib/style.css +1 -1
- package/lib/table/module/export/mixin.js +1 -4
- package/lib/table/module/export/mixin.min.js +1 -1
- package/lib/table/src/methods.js +25 -25
- package/lib/table/src/methods.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/de-DE.ts +492 -491
- package/packages/locale/lang/en-US.ts +438 -438
- package/packages/locale/lang/it-IT.ts +692 -0
- package/packages/locale/lang/ru-RU.ts +36 -36
- package/packages/locale/lang/th-TH.ts +692 -0
- package/packages/locale/lang/zh-CHT.ts +19 -19
- package/packages/table/module/export/mixin.ts +1 -1
- package/packages/table/src/methods.ts +25 -25
- /package/es/{iconfont.1735542540986.ttf → iconfont.1735615313592.ttf} +0 -0
- /package/es/{iconfont.1735542540986.woff → iconfont.1735615313592.woff} +0 -0
- /package/es/{iconfont.1735542540986.woff2 → iconfont.1735615313592.woff2} +0 -0
- /package/lib/{iconfont.1735542540986.ttf → iconfont.1735615313592.ttf} +0 -0
- /package/lib/{iconfont.1735542540986.woff → iconfont.1735615313592.woff} +0 -0
- /package/lib/{iconfont.1735542540986.woff2 → iconfont.1735615313592.woff2} +0 -0
|
@@ -11,7 +11,7 @@ export default {
|
|
|
11
11
|
},
|
|
12
12
|
error: {
|
|
13
13
|
downErr: '下載失敗',
|
|
14
|
-
groupFixed: '
|
|
14
|
+
groupFixed: '如果使用分組表頭,凍結列必須按群組設定',
|
|
15
15
|
groupMouseRange: '分組表頭與 "{0}" 不能同時使用,這可能會出現錯誤',
|
|
16
16
|
groupTag: '分組列頭應該使用 "{0}" 而不是 "{1}",這可能會出現錯誤',
|
|
17
17
|
scrollErrProp: '啟用虛擬滾動後不支援此參數 "{0}"',
|
|
@@ -37,7 +37,7 @@ export default {
|
|
|
37
37
|
checkProp: '當資料量過大時可能會導致複選框卡頓,建議設定參數 "{0}" 提升渲染速度',
|
|
38
38
|
coverProp: '"{0}" 的參數 "{1}" 重複定義,這可能會出現錯誤',
|
|
39
39
|
uniField: '欄位名稱 "{0}" 重複定義,這可能會出現錯誤',
|
|
40
|
-
repeatKey: '
|
|
40
|
+
repeatKey: '主鍵重複 {0}="{1}",這可能會出現錯誤',
|
|
41
41
|
delFunc: '方法 "{0}" 已廢棄,請使用 "{1}"',
|
|
42
42
|
delProp: '參數 "{0}" 已廢棄,請使用 "{1}"',
|
|
43
43
|
delEvent: '事件 "{0}" 已廢棄,請使用 "{1}"',
|
|
@@ -47,9 +47,9 @@ export default {
|
|
|
47
47
|
notExp: '該瀏覽器不支援匯入/匯出功能',
|
|
48
48
|
impFields: '匯入失敗,請檢查欄位名稱和資料格式是否正確',
|
|
49
49
|
treeNotImp: '樹表格不支援導入',
|
|
50
|
-
treeCrossDrag: '
|
|
51
|
-
treeDragChild: '
|
|
52
|
-
reqPlugin: '
|
|
50
|
+
treeCrossDrag: '只能拖曳第一層級',
|
|
51
|
+
treeDragChild: '父級不能拖曳到自己的子級中',
|
|
52
|
+
reqPlugin: '選用擴充插件 "{1}" https://vxeui.com/other{0}/#/{1}/install'
|
|
53
53
|
},
|
|
54
54
|
table: {
|
|
55
55
|
emptyText: '暫無數據',
|
|
@@ -65,7 +65,7 @@ export default {
|
|
|
65
65
|
impSuccess: '成功導入 {0} 筆記錄',
|
|
66
66
|
expLoading: '正在匯出中',
|
|
67
67
|
expSuccess: '匯出成功',
|
|
68
|
-
expError: '
|
|
68
|
+
expError: '匯出失敗',
|
|
69
69
|
expFilename: '導出_{0}',
|
|
70
70
|
expOriginFilename: '匯出_來源_{0}',
|
|
71
71
|
customTitle: '列設定',
|
|
@@ -207,7 +207,7 @@ export default {
|
|
|
207
207
|
zoomOut: '還原',
|
|
208
208
|
close: '關閉',
|
|
209
209
|
miniMaxSize: '最小化視窗的數量不能超過 {0} 個',
|
|
210
|
-
footPropErr: 'show-footer
|
|
210
|
+
footPropErr: 'show-footer 僅用於啟用表尾,需搭配 show-confirm-button | show-cancel-button | 插槽使用'
|
|
211
211
|
},
|
|
212
212
|
drawer: {
|
|
213
213
|
close: '關閉'
|
|
@@ -314,7 +314,7 @@ export default {
|
|
|
314
314
|
fileTypeHint: '支援 {0} 文件類型',
|
|
315
315
|
fileSizeHint: '單一檔案大小不超過{0}',
|
|
316
316
|
fileCountHint: '最多可上傳{0}個文件',
|
|
317
|
-
uploadTypeErr: '
|
|
317
|
+
uploadTypeErr: '文件類型不符!',
|
|
318
318
|
overCountErr: '最多只能選擇{0}個檔案!',
|
|
319
319
|
overCountExtraErr: '已超出最大數量{0}個,超出的{1}個檔案將被忽略!',
|
|
320
320
|
overSizeErr: '檔案大小最大不能超過{0}!',
|
|
@@ -331,12 +331,12 @@ export default {
|
|
|
331
331
|
}
|
|
332
332
|
},
|
|
333
333
|
empty: {
|
|
334
|
-
defText: '
|
|
334
|
+
defText: '暫無數據'
|
|
335
335
|
},
|
|
336
336
|
colorPicker: {
|
|
337
337
|
clear: '清除',
|
|
338
|
-
confirm: '
|
|
339
|
-
copySuccess: '
|
|
338
|
+
confirm: '確認',
|
|
339
|
+
copySuccess: '已複製到剪貼簿:{0}'
|
|
340
340
|
},
|
|
341
341
|
formDesign: {
|
|
342
342
|
formName: '表單名稱',
|
|
@@ -396,8 +396,8 @@ export default {
|
|
|
396
396
|
VxeCheckboxGroup: '複選框',
|
|
397
397
|
VxeUploadFile: '文件',
|
|
398
398
|
VxeUploadImage: '圖片',
|
|
399
|
-
VxeRate: '
|
|
400
|
-
VxeSlider: '
|
|
399
|
+
VxeRate: '評分',
|
|
400
|
+
VxeSlider: '滑桿'
|
|
401
401
|
}
|
|
402
402
|
},
|
|
403
403
|
widgetProp: {
|
|
@@ -498,7 +498,7 @@ export default {
|
|
|
498
498
|
area: {
|
|
499
499
|
mergeErr: '無法對合併儲存格進行該操作',
|
|
500
500
|
multiErr: '無法對多重選擇區域進行此操作',
|
|
501
|
-
selectErr: '
|
|
501
|
+
selectErr: '無法操作指定區域的儲存格',
|
|
502
502
|
extendErr: '若延伸的區域包含被合併的儲存格,所有合併的儲存格需大小相同',
|
|
503
503
|
pasteMultiErr: '無法貼上,需要相同大小的複製的區域和貼上的區域才能執行此操作',
|
|
504
504
|
cpInvalidErr: '此操作無法進行,您選擇的區域中存在被禁止的列({0})'
|
|
@@ -668,11 +668,11 @@ export default {
|
|
|
668
668
|
clearSort: '清除排序',
|
|
669
669
|
sortAsc: '升序',
|
|
670
670
|
sortDesc: '降序',
|
|
671
|
-
fixedColumn: '
|
|
672
|
-
fixedGroup: '
|
|
673
|
-
cancelFixed: '
|
|
674
|
-
fixedLeft: '
|
|
675
|
-
fixedRight: '
|
|
671
|
+
fixedColumn: '凍結列',
|
|
672
|
+
fixedGroup: '凍結分組',
|
|
673
|
+
cancelFixed: '取消凍結',
|
|
674
|
+
fixedLeft: '凍結到左側',
|
|
675
|
+
fixedRight: '凍結到右側',
|
|
676
676
|
clearFilter: '清除篩選',
|
|
677
677
|
textOption: '文字篩選',
|
|
678
678
|
numberOption: '數值篩選'
|
|
@@ -1198,7 +1198,7 @@ export default {
|
|
|
1198
1198
|
const { filename, sheetName, type, mode, columns, original, columnFilterMethod, beforeExportMethod, includeFields, excludeFields } = opts
|
|
1199
1199
|
let groups = []
|
|
1200
1200
|
const customCols = columns && columns.length ? columns : null
|
|
1201
|
-
const handleOptions: VxeTablePropTypes.ExportHandleOptions = Object.assign({ }
|
|
1201
|
+
const handleOptions: VxeTablePropTypes.ExportHandleOptions = Object.assign({ } as { data: any[], colgroups: any[], columns: any[] }, opts, { filename: '', sheetName: '' })
|
|
1202
1202
|
// 如果设置源数据,则默认导出设置了字段的列
|
|
1203
1203
|
if (!customCols && !columnFilterMethod) {
|
|
1204
1204
|
handleOptions.columnFilterMethod = ({ column }) => {
|
|
@@ -1003,7 +1003,7 @@ const Methods = {
|
|
|
1003
1003
|
const isLazy = treeConfig && treeOpts.lazy
|
|
1004
1004
|
const fullAllDataRowIdMaps: Record<string, VxeTableDefines.RowCacheItem> = {}
|
|
1005
1005
|
const fullDataRowIdMaps: Record<string, VxeTableDefines.RowCacheItem> = {}
|
|
1006
|
-
const handleCache = (row: any, index: any, items: any, path: any,
|
|
1006
|
+
const handleCache = (row: any, index: any, items: any, path: any, parentRow: any, nodes: any) => {
|
|
1007
1007
|
let rowid = getRowid(this, row)
|
|
1008
1008
|
const seq = treeConfig && path ? toTreePathSeq(path) : index + 1
|
|
1009
1009
|
const level = nodes ? nodes.length - 1 : 0
|
|
@@ -1016,13 +1016,13 @@ const Methods = {
|
|
|
1016
1016
|
}
|
|
1017
1017
|
let cacheItem = fullAllDataRowIdData[rowid]
|
|
1018
1018
|
if (!cacheItem) {
|
|
1019
|
-
cacheItem = { row, rowid, seq, index: -1, _index: -1, $index: -1, items, parent, level, height: 0 }
|
|
1019
|
+
cacheItem = { row, rowid, seq, index: -1, _index: -1, $index: -1, items, parent: parentRow, level, height: 0 }
|
|
1020
1020
|
}
|
|
1021
1021
|
cacheItem.row = row
|
|
1022
1022
|
cacheItem.items = items
|
|
1023
|
-
cacheItem.parent =
|
|
1023
|
+
cacheItem.parent = parentRow
|
|
1024
1024
|
cacheItem.level = level
|
|
1025
|
-
cacheItem.index = treeConfig &&
|
|
1025
|
+
cacheItem.index = treeConfig && parentRow ? -1 : index
|
|
1026
1026
|
if (isSource) {
|
|
1027
1027
|
fullDataRowIdMaps[rowid] = cacheItem
|
|
1028
1028
|
}
|
|
@@ -1086,9 +1086,9 @@ const Methods = {
|
|
|
1086
1086
|
sourceDataRowIdData[rowid] = XEUtils.clone(childRow, true)
|
|
1087
1087
|
})
|
|
1088
1088
|
}
|
|
1089
|
-
XEUtils.eachTree(rows, (childRow, index, items, path,
|
|
1089
|
+
XEUtils.eachTree(rows, (childRow, index, items, path, parentItem, nodes) => {
|
|
1090
1090
|
const rowid = getRowid($xeTable, childRow)
|
|
1091
|
-
const parentRow =
|
|
1091
|
+
const parentRow = parentItem || parentRest.row
|
|
1092
1092
|
const rest = { row: childRow, rowid, seq: -1, index, _index: -1, $index: -1, items, parent: parentRow, level: parentLevel + nodes.length, height: 0 }
|
|
1093
1093
|
fullDataRowIdData[rowid] = rest
|
|
1094
1094
|
fullAllDataRowIdData[rowid] = rest
|
|
@@ -1127,9 +1127,9 @@ const Methods = {
|
|
|
1127
1127
|
let radioColumn: VxeTableDefines.ColumnInfo | undefined
|
|
1128
1128
|
let htmlColumn: VxeTableDefines.ColumnInfo | undefined
|
|
1129
1129
|
let hasFixed: VxeColumnPropTypes.Fixed | undefined
|
|
1130
|
-
const handleFunc = (column: VxeTableDefines.ColumnInfo, index: number, items: VxeTableDefines.ColumnInfo[], path?: string[],
|
|
1130
|
+
const handleFunc = (column: VxeTableDefines.ColumnInfo, index: number, items: VxeTableDefines.ColumnInfo[], path?: string[], parentColumn?: VxeTableDefines.ColumnInfo) => {
|
|
1131
1131
|
const { id: colid, field, fixed, type, treeNode } = column
|
|
1132
|
-
const rest = { $index: -1, _index: -1, column, colid, index, items, parent:
|
|
1132
|
+
const rest = { $index: -1, _index: -1, column, colid, index, items, parent: parentColumn || null, width: 0 }
|
|
1133
1133
|
if (field) {
|
|
1134
1134
|
if (fullColumnFieldData[field]) {
|
|
1135
1135
|
errLog('vxe.error.colRepet', ['field', field])
|
|
@@ -1192,9 +1192,9 @@ const Methods = {
|
|
|
1192
1192
|
}
|
|
1193
1193
|
|
|
1194
1194
|
if (isGroup) {
|
|
1195
|
-
XEUtils.eachTree(collectColumn, (column, index, items, path,
|
|
1195
|
+
XEUtils.eachTree(collectColumn, (column, index, items, path, parentColumn, nodes) => {
|
|
1196
1196
|
column.level = nodes.length
|
|
1197
|
-
handleFunc(column, index, items, path,
|
|
1197
|
+
handleFunc(column, index, items, path, parentColumn)
|
|
1198
1198
|
})
|
|
1199
1199
|
} else {
|
|
1200
1200
|
tableFullColumn.forEach(handleFunc)
|
|
@@ -1782,10 +1782,10 @@ const Methods = {
|
|
|
1782
1782
|
if (treeConfig && treeOpts.transform) {
|
|
1783
1783
|
const fullData: any[] = []
|
|
1784
1784
|
const expandMaps: any = {}
|
|
1785
|
-
XEUtils.eachTree(afterTreeFullData, (row, index, items, path,
|
|
1785
|
+
XEUtils.eachTree(afterTreeFullData, (row, index, items, path, parentRow) => {
|
|
1786
1786
|
const rowid = getRowid(this, row)
|
|
1787
|
-
const parentRowid = getRowid(this,
|
|
1788
|
-
if (!
|
|
1787
|
+
const parentRowid = getRowid(this, parentRow)
|
|
1788
|
+
if (!parentRow || (expandMaps[parentRowid] && treeExpandedMaps[parentRowid])) {
|
|
1789
1789
|
const rowRest = fullAllDataRowIdData[rowid]
|
|
1790
1790
|
if (rowRest) {
|
|
1791
1791
|
rowRest._index = fullData.length
|
|
@@ -2319,11 +2319,11 @@ const Methods = {
|
|
|
2319
2319
|
let hasCustomSort = false
|
|
2320
2320
|
// 处理还原
|
|
2321
2321
|
if (resizableData || sortData || visibleData || fixedData) {
|
|
2322
|
-
XEUtils.eachTree(collectColumn, (column, index, items, path,
|
|
2322
|
+
XEUtils.eachTree(collectColumn, (column, index, items, path, parentRow) => {
|
|
2323
2323
|
const colKey = column.getKey()
|
|
2324
2324
|
// 支持一级
|
|
2325
|
-
if (!
|
|
2326
|
-
if (fixedData && fixedData[colKey]) {
|
|
2325
|
+
if (!parentRow) {
|
|
2326
|
+
if (fixedData && fixedData[colKey] !== undefined) {
|
|
2327
2327
|
column.fixed = fixedData[colKey]
|
|
2328
2328
|
}
|
|
2329
2329
|
if (sortData && XEUtils.isNumber(sortData[colKey])) {
|
|
@@ -2402,9 +2402,9 @@ const Methods = {
|
|
|
2402
2402
|
let hasSort = 0
|
|
2403
2403
|
let hasFixedt = 0
|
|
2404
2404
|
let hasVisible = 0
|
|
2405
|
-
XEUtils.eachTree(collectColumn, (column, index, items, path,
|
|
2405
|
+
XEUtils.eachTree(collectColumn, (column, index, items, path, parentColumn) => {
|
|
2406
2406
|
// 只支持一级
|
|
2407
|
-
if (!
|
|
2407
|
+
if (!parentColumn) {
|
|
2408
2408
|
collectColumn.forEach((column: any) => {
|
|
2409
2409
|
const colKey = column.getKey()
|
|
2410
2410
|
if (colKey) {
|
|
@@ -2412,7 +2412,7 @@ const Methods = {
|
|
|
2412
2412
|
sortData[colKey] = column.renderSortNumber
|
|
2413
2413
|
}
|
|
2414
2414
|
})
|
|
2415
|
-
if (column.fixed
|
|
2415
|
+
if (column.fixed !== column.defaultFixed) {
|
|
2416
2416
|
const colKey = column.getKey()
|
|
2417
2417
|
if (colKey) {
|
|
2418
2418
|
hasFixedt = 1
|
|
@@ -2535,13 +2535,13 @@ const Methods = {
|
|
|
2535
2535
|
const leftGroupList: any[] = []
|
|
2536
2536
|
const centerGroupList: any[] = []
|
|
2537
2537
|
const rightGroupList: any[] = []
|
|
2538
|
-
XEUtils.eachTree(collectColumn, (column, index, items, path,
|
|
2538
|
+
XEUtils.eachTree(collectColumn, (column, index, items, path, parentColumn) => {
|
|
2539
2539
|
const isColGroup = hasChildrenList(column)
|
|
2540
2540
|
// 如果是分组,必须按组设置固定列,不允许给子列设置固定
|
|
2541
|
-
if (
|
|
2542
|
-
column.fixed =
|
|
2541
|
+
if (parentColumn && parentColumn.fixed) {
|
|
2542
|
+
column.fixed = parentColumn.fixed
|
|
2543
2543
|
}
|
|
2544
|
-
if (
|
|
2544
|
+
if (parentColumn && column.fixed !== parentColumn.fixed) {
|
|
2545
2545
|
errLog('vxe.error.groupFixed')
|
|
2546
2546
|
}
|
|
2547
2547
|
if (isColGroup) {
|
|
@@ -5659,8 +5659,8 @@ const Methods = {
|
|
|
5659
5659
|
}
|
|
5660
5660
|
}
|
|
5661
5661
|
|
|
5662
|
-
XEUtils.eachTree(collectColumn, (column, index, items, path,
|
|
5663
|
-
if (!
|
|
5662
|
+
XEUtils.eachTree(collectColumn, (column, index, items, path, parentColumn) => {
|
|
5663
|
+
if (!parentColumn) {
|
|
5664
5664
|
const sortIndex = index + 1
|
|
5665
5665
|
column.renderSortNumber = sortIndex
|
|
5666
5666
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|