vxe-table 4.19.14 → 4.19.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 (149) hide show
  1. package/dist/all.esm.js +55 -20
  2. package/dist/style.css +1 -1
  3. package/dist/style.min.css +1 -1
  4. package/es/index.css +1 -1
  5. package/es/index.min.css +1 -1
  6. package/es/locale/lang/ar-EG.js +7 -0
  7. package/es/locale/lang/de-DE.js +7 -0
  8. package/es/locale/lang/en-US.js +7 -0
  9. package/es/locale/lang/es-ES.js +7 -0
  10. package/es/locale/lang/fr-FR.js +7 -0
  11. package/es/locale/lang/hu-HU.js +7 -0
  12. package/es/locale/lang/hy-AM.js +7 -0
  13. package/es/locale/lang/id-ID.js +7 -0
  14. package/es/locale/lang/it-IT.js +7 -0
  15. package/es/locale/lang/ja-JP.js +7 -0
  16. package/es/locale/lang/ko-KR.js +7 -0
  17. package/es/locale/lang/ms-MY.js +7 -0
  18. package/es/locale/lang/nb-NO.js +7 -0
  19. package/es/locale/lang/pt-BR.js +7 -0
  20. package/es/locale/lang/ru-RU.js +7 -0
  21. package/es/locale/lang/th-TH.js +7 -0
  22. package/es/locale/lang/ug-CN.js +7 -0
  23. package/es/locale/lang/uk-UA.js +7 -0
  24. package/es/locale/lang/uz-UZ.js +7 -0
  25. package/es/locale/lang/vi-VN.js +7 -0
  26. package/es/locale/lang/zh-CHT.js +7 -0
  27. package/es/locale/lang/zh-CN.js +7 -0
  28. package/es/style.css +1 -1
  29. package/es/style.min.css +1 -1
  30. package/es/table/render/index.js +46 -18
  31. package/es/table/style.css +10 -5
  32. package/es/table/style.min.css +1 -1
  33. package/es/ui/index.js +1 -1
  34. package/es/ui/src/log.js +1 -1
  35. package/es/vxe-table/style.css +10 -5
  36. package/es/vxe-table/style.min.css +1 -1
  37. package/lib/index.css +1 -1
  38. package/lib/index.min.css +1 -1
  39. package/lib/index.umd.js +71 -20
  40. package/lib/index.umd.min.js +1 -1
  41. package/lib/locale/lang/ar-EG.js +7 -0
  42. package/lib/locale/lang/ar-EG.min.js +1 -1
  43. package/lib/locale/lang/ar-EG.umd.js +7 -0
  44. package/lib/locale/lang/de-DE.js +7 -0
  45. package/lib/locale/lang/de-DE.min.js +1 -1
  46. package/lib/locale/lang/de-DE.umd.js +7 -0
  47. package/lib/locale/lang/en-US.js +7 -0
  48. package/lib/locale/lang/en-US.min.js +1 -1
  49. package/lib/locale/lang/en-US.umd.js +7 -0
  50. package/lib/locale/lang/es-ES.js +7 -0
  51. package/lib/locale/lang/es-ES.min.js +1 -1
  52. package/lib/locale/lang/es-ES.umd.js +7 -0
  53. package/lib/locale/lang/fr-FR.js +7 -0
  54. package/lib/locale/lang/fr-FR.min.js +1 -1
  55. package/lib/locale/lang/fr-FR.umd.js +7 -0
  56. package/lib/locale/lang/hu-HU.js +7 -0
  57. package/lib/locale/lang/hu-HU.min.js +1 -1
  58. package/lib/locale/lang/hu-HU.umd.js +7 -0
  59. package/lib/locale/lang/hy-AM.js +7 -0
  60. package/lib/locale/lang/hy-AM.min.js +1 -1
  61. package/lib/locale/lang/hy-AM.umd.js +7 -0
  62. package/lib/locale/lang/id-ID.js +7 -0
  63. package/lib/locale/lang/id-ID.min.js +1 -1
  64. package/lib/locale/lang/id-ID.umd.js +7 -0
  65. package/lib/locale/lang/it-IT.js +7 -0
  66. package/lib/locale/lang/it-IT.min.js +1 -1
  67. package/lib/locale/lang/it-IT.umd.js +7 -0
  68. package/lib/locale/lang/ja-JP.js +7 -0
  69. package/lib/locale/lang/ja-JP.min.js +1 -1
  70. package/lib/locale/lang/ja-JP.umd.js +7 -0
  71. package/lib/locale/lang/ko-KR.js +7 -0
  72. package/lib/locale/lang/ko-KR.min.js +1 -1
  73. package/lib/locale/lang/ko-KR.umd.js +7 -0
  74. package/lib/locale/lang/ms-MY.js +7 -0
  75. package/lib/locale/lang/ms-MY.min.js +1 -1
  76. package/lib/locale/lang/ms-MY.umd.js +7 -0
  77. package/lib/locale/lang/nb-NO.js +7 -0
  78. package/lib/locale/lang/nb-NO.min.js +1 -1
  79. package/lib/locale/lang/nb-NO.umd.js +7 -0
  80. package/lib/locale/lang/pt-BR.js +7 -0
  81. package/lib/locale/lang/pt-BR.min.js +1 -1
  82. package/lib/locale/lang/pt-BR.umd.js +7 -0
  83. package/lib/locale/lang/ru-RU.js +7 -0
  84. package/lib/locale/lang/ru-RU.min.js +1 -1
  85. package/lib/locale/lang/ru-RU.umd.js +7 -0
  86. package/lib/locale/lang/th-TH.js +7 -0
  87. package/lib/locale/lang/th-TH.min.js +1 -1
  88. package/lib/locale/lang/th-TH.umd.js +7 -0
  89. package/lib/locale/lang/ug-CN.js +7 -0
  90. package/lib/locale/lang/ug-CN.min.js +1 -1
  91. package/lib/locale/lang/ug-CN.umd.js +7 -0
  92. package/lib/locale/lang/uk-UA.js +7 -0
  93. package/lib/locale/lang/uk-UA.min.js +1 -1
  94. package/lib/locale/lang/uk-UA.umd.js +7 -0
  95. package/lib/locale/lang/uz-UZ.js +7 -0
  96. package/lib/locale/lang/uz-UZ.min.js +1 -1
  97. package/lib/locale/lang/uz-UZ.umd.js +7 -0
  98. package/lib/locale/lang/vi-VN.js +7 -0
  99. package/lib/locale/lang/vi-VN.min.js +1 -1
  100. package/lib/locale/lang/vi-VN.umd.js +7 -0
  101. package/lib/locale/lang/zh-CHT.js +7 -0
  102. package/lib/locale/lang/zh-CHT.min.js +1 -1
  103. package/lib/locale/lang/zh-CHT.umd.js +7 -0
  104. package/lib/locale/lang/zh-CN.js +7 -0
  105. package/lib/locale/lang/zh-CN.min.js +1 -1
  106. package/lib/locale/lang/zh-CN.umd.js +7 -0
  107. package/lib/style.css +1 -1
  108. package/lib/style.min.css +1 -1
  109. package/lib/table/render/index.js +62 -18
  110. package/lib/table/render/index.min.js +1 -1
  111. package/lib/table/style/style.css +10 -5
  112. package/lib/table/style/style.min.css +1 -1
  113. package/lib/ui/index.js +1 -1
  114. package/lib/ui/index.min.js +1 -1
  115. package/lib/ui/src/log.js +1 -1
  116. package/lib/ui/src/log.min.js +1 -1
  117. package/lib/vxe-table/style/style.css +10 -5
  118. package/lib/vxe-table/style/style.min.css +1 -1
  119. package/package.json +2 -2
  120. package/packages/locale/lang/ar-EG.ts +7 -0
  121. package/packages/locale/lang/de-DE.ts +7 -0
  122. package/packages/locale/lang/en-US.ts +7 -0
  123. package/packages/locale/lang/es-ES.ts +7 -0
  124. package/packages/locale/lang/fr-FR.ts +7 -0
  125. package/packages/locale/lang/hu-HU.ts +7 -0
  126. package/packages/locale/lang/hy-AM.ts +7 -0
  127. package/packages/locale/lang/id-ID.ts +7 -0
  128. package/packages/locale/lang/it-IT.ts +7 -0
  129. package/packages/locale/lang/ja-JP.ts +7 -0
  130. package/packages/locale/lang/ko-KR.ts +7 -0
  131. package/packages/locale/lang/ms-MY.ts +7 -0
  132. package/packages/locale/lang/nb-NO.ts +7 -0
  133. package/packages/locale/lang/pt-BR.ts +7 -0
  134. package/packages/locale/lang/ru-RU.ts +7 -0
  135. package/packages/locale/lang/th-TH.ts +7 -0
  136. package/packages/locale/lang/ug-CN.ts +7 -0
  137. package/packages/locale/lang/uk-UA.ts +7 -0
  138. package/packages/locale/lang/uz-UZ.ts +7 -0
  139. package/packages/locale/lang/vi-VN.ts +7 -0
  140. package/packages/locale/lang/zh-CHT.ts +7 -0
  141. package/packages/locale/lang/zh-CN.ts +7 -0
  142. package/packages/table/render/index.ts +46 -18
  143. package/styles/components/table.scss +8 -4
  144. /package/es/{iconfont.1781257692019.ttf → iconfont.1781675408206.ttf} +0 -0
  145. /package/es/{iconfont.1781257692019.woff → iconfont.1781675408206.woff} +0 -0
  146. /package/es/{iconfont.1781257692019.woff2 → iconfont.1781675408206.woff2} +0 -0
  147. /package/lib/{iconfont.1781257692019.ttf → iconfont.1781675408206.ttf} +0 -0
  148. /package/lib/{iconfont.1781257692019.woff → iconfont.1781675408206.woff} +0 -0
  149. /package/lib/{iconfont.1781257692019.woff2 → iconfont.1781675408206.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$1 = "4.19.14";
47
+ const version$1 = "4.19.15";
48
48
  VxeUI.version = version$1;
49
49
  VxeUI.tableVersion = version$1;
50
50
  VxeUI.setConfig({
@@ -743,7 +743,7 @@ function wheelScrollTopTo(diffNum, cb) {
743
743
  }
744
744
 
745
745
  const { log } = VxeUI;
746
- const version = `table v${"4.19.14"}`;
746
+ const version = `table v${"4.19.15"}`;
747
747
  const warnLog = log.create('warn', version);
748
748
  const errLog = log.create('error', version);
749
749
 
@@ -14218,7 +14218,7 @@ function handleSetTreeSelectValue(renderOpts, params) {
14218
14218
  */
14219
14219
  renderer$2.mixin({
14220
14220
  input: {
14221
- tableAutoFocus: 'input',
14221
+ tableAutoFocus: true,
14222
14222
  renderTableEdit: nativeEditRender,
14223
14223
  renderTableDefault: nativeEditRender,
14224
14224
  createTableFilterOptions: defaultFilterOptions,
@@ -14226,7 +14226,7 @@ renderer$2.mixin({
14226
14226
  tableFilterDefaultMethod: handleInputFilterMethod
14227
14227
  },
14228
14228
  textarea: {
14229
- tableAutoFocus: 'textarea',
14229
+ tableAutoFocus: true,
14230
14230
  renderTableEdit: nativeEditRender
14231
14231
  },
14232
14232
  select: {
@@ -14266,7 +14266,7 @@ renderer$2.mixin({
14266
14266
  tableExportMethod: handleExportSelectMethod
14267
14267
  },
14268
14268
  VxeInput: {
14269
- tableAutoFocus: 'input',
14269
+ tableAutoFocus: true,
14270
14270
  renderTableEdit: defaultEditRender,
14271
14271
  renderTableCell(renderOpts, params) {
14272
14272
  const { props = {} } = renderOpts;
@@ -14306,7 +14306,7 @@ renderer$2.mixin({
14306
14306
  }
14307
14307
  },
14308
14308
  VxeNumberInput: {
14309
- tableAutoFocus: 'input',
14309
+ tableAutoFocus: true,
14310
14310
  renderTableEdit: defaultEditRender,
14311
14311
  renderTableCell: handleNumberCell,
14312
14312
  renderTableFooter(renderOpts, params) {
@@ -14358,7 +14358,7 @@ renderer$2.mixin({
14358
14358
  }
14359
14359
  },
14360
14360
  VxeDatePicker: {
14361
- tableAutoFocus: 'input',
14361
+ tableAutoFocus: true,
14362
14362
  renderTableEdit: defaultEditRender,
14363
14363
  renderTableCell(renderOpts, params) {
14364
14364
  const props = renderOpts.props || {};
@@ -14384,7 +14384,7 @@ renderer$2.mixin({
14384
14384
  tableFilterDefaultMethod: handleFilterMethod
14385
14385
  },
14386
14386
  VxeDateRangePicker: {
14387
- tableAutoFocus: 'input',
14387
+ tableAutoFocus: true,
14388
14388
  renderTableEdit(renderOpts, params) {
14389
14389
  const { startField, endField } = renderOpts;
14390
14390
  const { $table, row, column } = params;
@@ -14484,7 +14484,7 @@ renderer$2.mixin({
14484
14484
  }
14485
14485
  },
14486
14486
  VxeTextarea: {
14487
- tableAutoFocus: 'textarea',
14487
+ tableAutoFocus: true,
14488
14488
  renderTableDefault: defaultEditRender,
14489
14489
  renderTableEdit: defaultEditRender,
14490
14490
  renderTableCell(renderOpts, params) {
@@ -14505,7 +14505,7 @@ renderer$2.mixin({
14505
14505
  }
14506
14506
  },
14507
14507
  VxeSelect: {
14508
- tableAutoFocus: 'input',
14508
+ tableAutoFocus: true,
14509
14509
  renderTableEdit: defaultSelectEditRender,
14510
14510
  renderTableDefault: defaultSelectEditRender,
14511
14511
  renderTableCell(renderOpts, params) {
@@ -14607,7 +14607,7 @@ renderer$2.mixin({
14607
14607
  tableExportMethod: handleExportSelectMethod
14608
14608
  },
14609
14609
  VxeTreeSelect: {
14610
- tableAutoFocus: 'input',
14610
+ tableAutoFocus: true,
14611
14611
  renderTableEdit: defaultTableOrTreeSelectEditRender,
14612
14612
  renderTableCell(renderOpts, params) {
14613
14613
  const { options, optionGroups } = renderOpts;
@@ -14669,8 +14669,36 @@ renderer$2.mixin({
14669
14669
  tableCellPasteMethod: handleSetTreeSelectValue,
14670
14670
  tableExportMethod: handleExportTreeSelectMethod
14671
14671
  },
14672
+ VxeCascader: {
14673
+ tableAutoFocus: true,
14674
+ renderTableEdit: defaultTableOrTreeSelectEditRender,
14675
+ renderTableCell(renderOpts, params) {
14676
+ const { options, optionGroups } = renderOpts;
14677
+ const { $table, row, column } = params;
14678
+ const opSize = options ? options.length : null;
14679
+ const ogSize = optionGroups ? optionGroups.length : null;
14680
+ const { cellResult } = $table.effectCellData(row, column, {
14681
+ key: 'render_table_cell',
14682
+ isChanged({ oldValue, cellValue }) {
14683
+ return oldValue && oldValue[0] === cellValue && oldValue[1] === opSize && oldValue[2] === ogSize;
14684
+ },
14685
+ setValue({ cellValue }) {
14686
+ return [cellValue, opSize, ogSize];
14687
+ },
14688
+ getResult({ cellValue }) {
14689
+ return handleTreeSelectCellValue(cellValue, renderOpts);
14690
+ }
14691
+ });
14692
+ // const cellResult = getTreeSelectCellValue(renderOpts, params)
14693
+ return getCellLabelVNs(renderOpts, params, cellResult);
14694
+ },
14695
+ tableCellFormatter: handleFormatTreeSelect,
14696
+ tableCellCopyMethod: handleFormatTreeSelect,
14697
+ tableCellPasteMethod: handleSetTreeSelectValue,
14698
+ tableExportMethod: handleExportTreeSelectMethod
14699
+ },
14672
14700
  VxeTableSelect: {
14673
- tableAutoFocus: 'input',
14701
+ tableAutoFocus: true,
14674
14702
  renderTableEdit: defaultTableOrTreeSelectEditRender,
14675
14703
  renderTableCell(renderOpts, params) {
14676
14704
  const { options, optionGroups } = renderOpts;
@@ -14698,7 +14726,7 @@ renderer$2.mixin({
14698
14726
  tableExportMethod: handleExportTreeSelectMethod
14699
14727
  },
14700
14728
  VxeColorPicker: {
14701
- tableAutoFocus: 'input',
14729
+ tableAutoFocus: true,
14702
14730
  renderTableEdit(renderOpts, params) {
14703
14731
  const { row, column } = params;
14704
14732
  const { options } = renderOpts;
@@ -14723,7 +14751,7 @@ renderer$2.mixin({
14723
14751
  }
14724
14752
  },
14725
14753
  VxeIconPicker: {
14726
- tableAutoFocus: 'input',
14754
+ tableAutoFocus: true,
14727
14755
  renderTableEdit(renderOpts, params) {
14728
14756
  const { row, column } = params;
14729
14757
  const { options } = renderOpts;
@@ -14797,7 +14825,7 @@ renderer$2.mixin({
14797
14825
  },
14798
14826
  // 以下已废弃
14799
14827
  $input: {
14800
- tableAutoFocus: '.vxe-input--inner',
14828
+ tableAutoFocus: 'input',
14801
14829
  renderTableEdit: oldEditRender,
14802
14830
  renderTableCell(renderOpts, params) {
14803
14831
  var _a;
@@ -14825,7 +14853,7 @@ renderer$2.mixin({
14825
14853
  tableFilterDefaultMethod: handleInputFilterMethod
14826
14854
  },
14827
14855
  $textarea: {
14828
- tableAutoFocus: '.vxe-textarea--inner'
14856
+ tableAutoFocus: 'textarea'
14829
14857
  },
14830
14858
  $button: {
14831
14859
  renderTableDefault: oldButtonEditRender
@@ -14834,7 +14862,7 @@ renderer$2.mixin({
14834
14862
  renderTableDefault: oldButtonsEditRender
14835
14863
  },
14836
14864
  $select: {
14837
- tableAutoFocus: '.vxe-input--inner',
14865
+ tableAutoFocus: 'input',
14838
14866
  renderTableEdit: oldSelectEditRender,
14839
14867
  renderTableDefault: oldSelectEditRender,
14840
14868
  renderTableCell(renderOpts, params) {
@@ -14852,13 +14880,13 @@ renderer$2.mixin({
14852
14880
  tableExportMethod: handleExportSelectMethod
14853
14881
  },
14854
14882
  $radio: {
14855
- tableAutoFocus: '.vxe-radio--input'
14883
+ tableAutoFocus: 'input'
14856
14884
  },
14857
14885
  $checkbox: {
14858
- tableAutoFocus: '.vxe-checkbox--input'
14886
+ tableAutoFocus: 'input'
14859
14887
  },
14860
14888
  $switch: {
14861
- tableAutoFocus: '.vxe-switch--button',
14889
+ tableAutoFocus: 'button',
14862
14890
  renderTableEdit: oldEditRender,
14863
14891
  renderTableDefault: oldEditRender
14864
14892
  }
@@ -32063,6 +32091,13 @@ var zhCN = {
32063
32091
  yearLabel: '{0} 年',
32064
32092
  monthLabel: '{0} 月'
32065
32093
  },
32094
+ cascader: {
32095
+ clearChecked: '清除',
32096
+ allChecked: '全选',
32097
+ total: '已选 {0} 项',
32098
+ close: '关闭',
32099
+ search: '搜索'
32100
+ },
32066
32101
  numberInput: {
32067
32102
  currencySymbol: '¥'
32068
32103
  },