vxe-table 4.20.10 → 4.20.12

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 (137) hide show
  1. package/dist/all.esm.js +42 -8
  2. package/dist/style.css +1 -1
  3. package/es/grid/src/grid.js +2 -2
  4. package/es/locale/lang/ar-EG.js +20 -0
  5. package/es/locale/lang/de-DE.js +20 -0
  6. package/es/locale/lang/en-US.js +20 -0
  7. package/es/locale/lang/es-ES.js +20 -0
  8. package/es/locale/lang/fr-FR.js +20 -0
  9. package/es/locale/lang/hu-HU.js +20 -0
  10. package/es/locale/lang/hy-AM.js +20 -0
  11. package/es/locale/lang/id-ID.js +20 -0
  12. package/es/locale/lang/it-IT.js +20 -0
  13. package/es/locale/lang/ja-JP.js +20 -0
  14. package/es/locale/lang/ko-KR.js +20 -0
  15. package/es/locale/lang/ms-MY.js +20 -0
  16. package/es/locale/lang/nb-NO.js +20 -0
  17. package/es/locale/lang/pt-BR.js +20 -0
  18. package/es/locale/lang/ru-RU.js +20 -0
  19. package/es/locale/lang/th-TH.js +20 -0
  20. package/es/locale/lang/ug-CN.js +20 -0
  21. package/es/locale/lang/uk-UA.js +20 -0
  22. package/es/locale/lang/uz-UZ.js +20 -0
  23. package/es/locale/lang/vi-VN.js +20 -0
  24. package/es/locale/lang/zh-CHT.js +20 -0
  25. package/es/locale/lang/zh-CN.js +22 -2
  26. package/es/style.css +1 -1
  27. package/es/table/src/table.js +16 -2
  28. package/es/ui/index.js +1 -1
  29. package/es/ui/src/log.js +1 -1
  30. package/lib/grid/src/grid.js +2 -2
  31. package/lib/grid/src/grid.min.js +1 -1
  32. package/lib/index.umd.js +104 -101
  33. package/lib/index.umd.min.js +1 -1
  34. package/lib/locale/lang/ar-EG.js +20 -0
  35. package/lib/locale/lang/ar-EG.min.js +1 -1
  36. package/lib/locale/lang/ar-EG.umd.js +20 -0
  37. package/lib/locale/lang/de-DE.js +20 -0
  38. package/lib/locale/lang/de-DE.min.js +1 -1
  39. package/lib/locale/lang/de-DE.umd.js +20 -0
  40. package/lib/locale/lang/en-US.js +20 -0
  41. package/lib/locale/lang/en-US.min.js +1 -1
  42. package/lib/locale/lang/en-US.umd.js +20 -0
  43. package/lib/locale/lang/es-ES.js +20 -0
  44. package/lib/locale/lang/es-ES.min.js +1 -1
  45. package/lib/locale/lang/es-ES.umd.js +20 -0
  46. package/lib/locale/lang/fr-FR.js +20 -0
  47. package/lib/locale/lang/fr-FR.min.js +1 -1
  48. package/lib/locale/lang/fr-FR.umd.js +20 -0
  49. package/lib/locale/lang/hu-HU.js +20 -0
  50. package/lib/locale/lang/hu-HU.min.js +1 -1
  51. package/lib/locale/lang/hu-HU.umd.js +20 -0
  52. package/lib/locale/lang/hy-AM.js +20 -0
  53. package/lib/locale/lang/hy-AM.min.js +1 -1
  54. package/lib/locale/lang/hy-AM.umd.js +20 -0
  55. package/lib/locale/lang/id-ID.js +20 -0
  56. package/lib/locale/lang/id-ID.min.js +1 -1
  57. package/lib/locale/lang/id-ID.umd.js +20 -0
  58. package/lib/locale/lang/it-IT.js +20 -0
  59. package/lib/locale/lang/it-IT.min.js +1 -1
  60. package/lib/locale/lang/it-IT.umd.js +20 -0
  61. package/lib/locale/lang/ja-JP.js +20 -0
  62. package/lib/locale/lang/ja-JP.min.js +1 -1
  63. package/lib/locale/lang/ja-JP.umd.js +20 -0
  64. package/lib/locale/lang/ko-KR.js +20 -0
  65. package/lib/locale/lang/ko-KR.min.js +1 -1
  66. package/lib/locale/lang/ko-KR.umd.js +20 -0
  67. package/lib/locale/lang/ms-MY.js +20 -0
  68. package/lib/locale/lang/ms-MY.min.js +1 -1
  69. package/lib/locale/lang/ms-MY.umd.js +20 -0
  70. package/lib/locale/lang/nb-NO.js +20 -0
  71. package/lib/locale/lang/nb-NO.min.js +1 -1
  72. package/lib/locale/lang/nb-NO.umd.js +20 -0
  73. package/lib/locale/lang/pt-BR.js +20 -0
  74. package/lib/locale/lang/pt-BR.min.js +1 -1
  75. package/lib/locale/lang/pt-BR.umd.js +20 -0
  76. package/lib/locale/lang/ru-RU.js +20 -0
  77. package/lib/locale/lang/ru-RU.min.js +1 -1
  78. package/lib/locale/lang/ru-RU.umd.js +20 -0
  79. package/lib/locale/lang/th-TH.js +20 -0
  80. package/lib/locale/lang/th-TH.min.js +1 -1
  81. package/lib/locale/lang/th-TH.umd.js +20 -0
  82. package/lib/locale/lang/ug-CN.js +20 -0
  83. package/lib/locale/lang/ug-CN.min.js +1 -1
  84. package/lib/locale/lang/ug-CN.umd.js +20 -0
  85. package/lib/locale/lang/uk-UA.js +20 -0
  86. package/lib/locale/lang/uk-UA.min.js +1 -1
  87. package/lib/locale/lang/uk-UA.umd.js +20 -0
  88. package/lib/locale/lang/uz-UZ.js +20 -0
  89. package/lib/locale/lang/uz-UZ.min.js +1 -1
  90. package/lib/locale/lang/uz-UZ.umd.js +20 -0
  91. package/lib/locale/lang/vi-VN.js +20 -0
  92. package/lib/locale/lang/vi-VN.min.js +1 -1
  93. package/lib/locale/lang/vi-VN.umd.js +20 -0
  94. package/lib/locale/lang/zh-CHT.js +20 -0
  95. package/lib/locale/lang/zh-CHT.min.js +1 -1
  96. package/lib/locale/lang/zh-CHT.umd.js +20 -0
  97. package/lib/locale/lang/zh-CN.js +22 -2
  98. package/lib/locale/lang/zh-CN.min.js +1 -1
  99. package/lib/locale/lang/zh-CN.umd.js +22 -2
  100. package/lib/style.css +1 -1
  101. package/lib/table/src/table.js +2 -2
  102. package/lib/table/src/table.min.js +1 -1
  103. package/lib/ui/index.js +1 -1
  104. package/lib/ui/index.min.js +1 -1
  105. package/lib/ui/src/log.js +1 -1
  106. package/lib/ui/src/log.min.js +1 -1
  107. package/package.json +1 -1
  108. package/packages/grid/src/grid.ts +2 -2
  109. package/packages/locale/lang/ar-EG.ts +20 -0
  110. package/packages/locale/lang/de-DE.ts +20 -0
  111. package/packages/locale/lang/en-US.ts +20 -0
  112. package/packages/locale/lang/es-ES.ts +20 -0
  113. package/packages/locale/lang/fr-FR.ts +20 -0
  114. package/packages/locale/lang/hu-HU.ts +20 -0
  115. package/packages/locale/lang/hy-AM.ts +20 -0
  116. package/packages/locale/lang/id-ID.ts +20 -0
  117. package/packages/locale/lang/it-IT.ts +20 -0
  118. package/packages/locale/lang/ja-JP.ts +20 -0
  119. package/packages/locale/lang/ko-KR.ts +20 -0
  120. package/packages/locale/lang/ms-MY.ts +20 -0
  121. package/packages/locale/lang/nb-NO.ts +20 -0
  122. package/packages/locale/lang/pt-BR.ts +20 -0
  123. package/packages/locale/lang/ru-RU.ts +20 -0
  124. package/packages/locale/lang/th-TH.ts +20 -0
  125. package/packages/locale/lang/ug-CN.ts +20 -0
  126. package/packages/locale/lang/uk-UA.ts +20 -0
  127. package/packages/locale/lang/uz-UZ.ts +20 -0
  128. package/packages/locale/lang/vi-VN.ts +20 -0
  129. package/packages/locale/lang/zh-CHT.ts +20 -0
  130. package/packages/locale/lang/zh-CN.ts +22 -2
  131. package/packages/table/src/table.ts +16 -2
  132. /package/es/{iconfont.1785940490728.ttf → iconfont.1786589186405.ttf} +0 -0
  133. /package/es/{iconfont.1785940490728.woff → iconfont.1786589186405.woff} +0 -0
  134. /package/es/{iconfont.1785940490728.woff2 → iconfont.1786589186405.woff2} +0 -0
  135. /package/lib/{iconfont.1785940490728.ttf → iconfont.1786589186405.ttf} +0 -0
  136. /package/lib/{iconfont.1785940490728.woff → iconfont.1786589186405.woff} +0 -0
  137. /package/lib/{iconfont.1785940490728.woff2 → iconfont.1786589186405.woff2} +0 -0
package/dist/all.esm.js CHANGED
@@ -44,7 +44,7 @@ function eqEmptyValue(cellValue) {
44
44
  return cellValue === '' || XEUtils.eqNull(cellValue);
45
45
  }
46
46
 
47
- const version = "4.20.10";
47
+ const version = "4.20.12";
48
48
  VxeUI.version = version;
49
49
  VxeUI.tableVersion = version;
50
50
  VxeUI.setConfig({
@@ -758,7 +758,7 @@ function wheelScrollTopTo(diffNum, cb) {
758
758
  }
759
759
 
760
760
  const { log } = VxeUI;
761
- const tableVersion = `table v${"4.20.10"}`;
761
+ const tableVersion = `table v${"4.20.12"}`;
762
762
  function createComponentLog(name) {
763
763
  const uiVersion = VxeUI.uiVersion ? `ui v${VxeUI.uiVersion}` : '';
764
764
  const ganttVersion = VxeUI.ganttVersion ? `gantt v${VxeUI.ganttVersion}` : '';
@@ -20734,6 +20734,18 @@ var VxeTableComponent = defineVxeComponent({
20734
20734
  }
20735
20735
  const { editConfig } = props;
20736
20736
  const { formatter, editRender, cellRender } = column;
20737
+ let etOpSize = null;
20738
+ let etOgSize = null;
20739
+ let clOpSize = null;
20740
+ let clOgSize = null;
20741
+ if (editRender) {
20742
+ etOpSize = editRender.options ? editRender.options.length : 0;
20743
+ etOgSize = editRender.optionGroups ? editRender.optionGroups.length : 0;
20744
+ }
20745
+ if (cellRender) {
20746
+ clOpSize = cellRender.options ? cellRender.options.length : 0;
20747
+ clOgSize = cellRender.optionGroups ? cellRender.optionGroups.length : 0;
20748
+ }
20737
20749
  // formatter > tableCellFormatter
20738
20750
  const renderOpts = formatter ? null : (editConfig && isEnableConf(editRender) ? editRender : (isEnableConf(cellRender) ? cellRender : null));
20739
20751
  const compConf = renderOpts ? renderer$1.get(renderOpts.name) : null;
@@ -20752,7 +20764,8 @@ var VxeTableComponent = defineVxeComponent({
20752
20764
  formatData = fullAllDataRowIdData[rowid].formatData = {};
20753
20765
  }
20754
20766
  if (rowRest && formatData[colid]) {
20755
- if (formatData[colid].value === cellValue) {
20767
+ const ftValue = formatData[colid].value;
20768
+ if (ftValue && ftValue[0] === cellValue && ftValue[1] === etOpSize && ftValue[2] === etOgSize && ftValue[3] === clOpSize && ftValue[4] === clOgSize) {
20756
20769
  return formatData[colid].label;
20757
20770
  }
20758
20771
  }
@@ -20784,7 +20797,8 @@ var VxeTableComponent = defineVxeComponent({
20784
20797
  cellLabel = tcFormatter(renderOpts, formatParams);
20785
20798
  }
20786
20799
  if (formatData) {
20787
- formatData[colid] = { value: cellValue, label: cellLabel };
20800
+ const ftValue = [cellValue, etOpSize, etOgSize, clOpSize, clOgSize];
20801
+ formatData[colid] = { value: ftValue, label: cellLabel };
20788
20802
  }
20789
20803
  }
20790
20804
  return cellLabel;
@@ -31748,12 +31762,13 @@ var VxeGridComponent = defineVxeComponent({
31748
31762
  else {
31749
31763
  let tableData = [];
31750
31764
  if (rest) {
31765
+ const listProp = resConfigs.list;
31766
+ const resultProp = resConfigs.result;
31751
31767
  const reParams = { data: rest, $table: $xeTable, $grid: $xeGrid, $gantt: null };
31752
31768
  if (pagerConfig && isEnableConf(pagerOpts)) {
31753
31769
  const totalProp = resConfigs.total;
31754
31770
  const total = (XEUtils.isFunction(totalProp) ? totalProp(reParams) : XEUtils.get(rest, totalProp || 'page.total')) || 0;
31755
31771
  tablePage.total = XEUtils.toNumber(total);
31756
- const resultProp = resConfigs.result;
31757
31772
  tableData = (XEUtils.isFunction(resultProp) ? resultProp(reParams) : XEUtils.get(rest, resultProp || 'result')) || [];
31758
31773
  // 检验当前页码,不能超出当前最大页数
31759
31774
  const pageCount = Math.max(Math.ceil(total / tablePage.pageSize), 1);
@@ -31762,7 +31777,6 @@ var VxeGridComponent = defineVxeComponent({
31762
31777
  }
31763
31778
  }
31764
31779
  else {
31765
- const listProp = resConfigs.list;
31766
31780
  if (XEUtils.isArray(rest)) {
31767
31781
  tableData = rest;
31768
31782
  }
@@ -33138,7 +33152,7 @@ var zhCN = {
33138
33152
  quarter: '{yyyy}年第{q}季度',
33139
33153
  month: '{yyyy}年{MM}月',
33140
33154
  week: '{yyyy}年第{W}周',
33141
- day: '{yyyy}年{MM}月 {E}',
33155
+ day: '{yyyy}年{MM}月 {eLabel}',
33142
33156
  date: '{yyyy}年{MM}月{dd}日',
33143
33157
  hour: '{yyyy}年{MM}月{dd}日{HH}时',
33144
33158
  minute: '{yyyy}年{MM}月{dd}日{HH}时{mm}分',
@@ -33149,12 +33163,23 @@ var zhCN = {
33149
33163
  quarter: '{q}季度',
33150
33164
  month: '{M}月',
33151
33165
  week: '{W}周',
33152
- day: '{d}',
33166
+ day: '{eLabel}',
33153
33167
  date: '{d}',
33154
33168
  hour: '{HH}',
33155
33169
  minute: '{mm}',
33156
33170
  second: '{ss}'
33157
33171
  },
33172
+ stepFormat: {
33173
+ year: '{start.yyyy}~{end.yyyy}年',
33174
+ quarter: '{start.q}~{end.q}季度',
33175
+ month: '{start.M}~{end.M}月',
33176
+ week: '{start.W}~{end.W}周',
33177
+ day: '{eStartLabel}~{eEndLabel}',
33178
+ date: '{start.d}~{end.d}',
33179
+ hour: '{start.HH}~{end.HH}',
33180
+ minute: '{start.mm}~{end.mm}',
33181
+ second: '{start.ss}~{end.ss}'
33182
+ },
33158
33183
  dayss: {
33159
33184
  w0: '日',
33160
33185
  w1: '一',
@@ -33163,6 +33188,15 @@ var zhCN = {
33163
33188
  w4: '四',
33164
33189
  w5: '五',
33165
33190
  w6: '六'
33191
+ },
33192
+ days: {
33193
+ w0: '日',
33194
+ w1: '一',
33195
+ w2: '二',
33196
+ w3: '三',
33197
+ w4: '四',
33198
+ w5: '五',
33199
+ w6: '六'
33166
33200
  }
33167
33201
  },
33168
33202
  plugins: {