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.
Files changed (52) hide show
  1. package/es/locale/lang/de-DE.js +490 -490
  2. package/es/locale/lang/en-US.js +438 -438
  3. package/es/locale/lang/it-IT.js +692 -0
  4. package/es/locale/lang/ru-RU.js +36 -36
  5. package/es/locale/lang/th-TH.js +692 -0
  6. package/es/locale/lang/zh-CHT.js +19 -19
  7. package/es/style.css +1 -1
  8. package/es/table/module/export/mixin.js +1 -1
  9. package/es/table/src/methods.js +25 -25
  10. package/es/ui/index.js +1 -1
  11. package/es/ui/src/log.js +1 -1
  12. package/lib/index.umd.js +28 -31
  13. package/lib/index.umd.min.js +1 -1
  14. package/lib/locale/lang/de-DE.js +490 -490
  15. package/lib/locale/lang/de-DE.min.js +1 -1
  16. package/lib/locale/lang/en-US.js +438 -438
  17. package/lib/locale/lang/en-US.min.js +1 -1
  18. package/lib/locale/lang/en-US.umd.js +438 -438
  19. package/lib/locale/lang/it-IT.js +698 -0
  20. package/lib/locale/lang/it-IT.min.js +1 -0
  21. package/lib/locale/lang/ru-RU.js +36 -36
  22. package/lib/locale/lang/ru-RU.min.js +1 -1
  23. package/lib/locale/lang/ru-RU.umd.js +36 -36
  24. package/lib/locale/lang/th-TH.js +698 -0
  25. package/lib/locale/lang/th-TH.min.js +1 -0
  26. package/lib/locale/lang/zh-CHT.js +19 -19
  27. package/lib/locale/lang/zh-CHT.min.js +1 -1
  28. package/lib/locale/lang/zh-CHT.umd.js +19 -19
  29. package/lib/style.css +1 -1
  30. package/lib/table/module/export/mixin.js +1 -4
  31. package/lib/table/module/export/mixin.min.js +1 -1
  32. package/lib/table/src/methods.js +25 -25
  33. package/lib/table/src/methods.min.js +1 -1
  34. package/lib/ui/index.js +1 -1
  35. package/lib/ui/index.min.js +1 -1
  36. package/lib/ui/src/log.js +1 -1
  37. package/lib/ui/src/log.min.js +1 -1
  38. package/package.json +2 -2
  39. package/packages/locale/lang/de-DE.ts +492 -491
  40. package/packages/locale/lang/en-US.ts +438 -438
  41. package/packages/locale/lang/it-IT.ts +692 -0
  42. package/packages/locale/lang/ru-RU.ts +36 -36
  43. package/packages/locale/lang/th-TH.ts +692 -0
  44. package/packages/locale/lang/zh-CHT.ts +19 -19
  45. package/packages/table/module/export/mixin.ts +1 -1
  46. package/packages/table/src/methods.ts +25 -25
  47. /package/es/{iconfont.1735542540986.ttf → iconfont.1735615313592.ttf} +0 -0
  48. /package/es/{iconfont.1735542540986.woff → iconfont.1735615313592.woff} +0 -0
  49. /package/es/{iconfont.1735542540986.woff2 → iconfont.1735615313592.woff2} +0 -0
  50. /package/lib/{iconfont.1735542540986.ttf → iconfont.1735615313592.ttf} +0 -0
  51. /package/lib/{iconfont.1735542540986.woff → iconfont.1735615313592.woff} +0 -0
  52. /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: '主键重复 {0}="{1}",这可能会出现错误',
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: '可選擴展插件 "{1}" https://vxeui.com/other{0}/#/{1}/install'
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 仅用于启用表尾,需配合 show-confirm-button | show-cancel-button | 插槽使用'
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: '已复制到剪贴板:{0}'
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({ }, opts, { filename: '', sheetName: '', colgroups: [], columns: [], data: [] })
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, parent: any, nodes: 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 = parent
1023
+ cacheItem.parent = parentRow
1024
1024
  cacheItem.level = level
1025
- cacheItem.index = treeConfig && parent ? -1 : index
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, parent, nodes) => {
1089
+ XEUtils.eachTree(rows, (childRow, index, items, path, parentItem, nodes) => {
1090
1090
  const rowid = getRowid($xeTable, childRow)
1091
- const parentRow = parent || parentRest.row
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[], parent?: VxeTableDefines.ColumnInfo) => {
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: parent || null, width: 0 }
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, parent, nodes) => {
1195
+ XEUtils.eachTree(collectColumn, (column, index, items, path, parentColumn, nodes) => {
1196
1196
  column.level = nodes.length
1197
- handleFunc(column, index, items, path, parent)
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, parent) => {
1785
+ XEUtils.eachTree(afterTreeFullData, (row, index, items, path, parentRow) => {
1786
1786
  const rowid = getRowid(this, row)
1787
- const parentRowid = getRowid(this, parent)
1788
- if (!parent || (expandMaps[parentRowid] && treeExpandedMaps[parentRowid])) {
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, parent) => {
2322
+ XEUtils.eachTree(collectColumn, (column, index, items, path, parentRow) => {
2323
2323
  const colKey = column.getKey()
2324
2324
  // 支持一级
2325
- if (!parent) {
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, parent) => {
2405
+ XEUtils.eachTree(collectColumn, (column, index, items, path, parentColumn) => {
2406
2406
  // 只支持一级
2407
- if (!parent) {
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 && column.fixed !== column.defaultFixed) {
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, parent) => {
2538
+ XEUtils.eachTree(collectColumn, (column, index, items, path, parentColumn) => {
2539
2539
  const isColGroup = hasChildrenList(column)
2540
2540
  // 如果是分组,必须按组设置固定列,不允许给子列设置固定
2541
- if (parent && parent.fixed) {
2542
- column.fixed = parent.fixed
2541
+ if (parentColumn && parentColumn.fixed) {
2542
+ column.fixed = parentColumn.fixed
2543
2543
  }
2544
- if (parent && column.fixed !== parent.fixed) {
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, parent) => {
5663
- if (!parent) {
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
  }