vxe-table 3.19.43 → 3.19.45

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 (164) hide show
  1. package/es/index.css +1 -1
  2. package/es/index.min.css +1 -1
  3. package/es/locale/lang/ar-EG.js +4 -0
  4. package/es/locale/lang/de-DE.js +4 -0
  5. package/es/locale/lang/en-US.js +4 -0
  6. package/es/locale/lang/es-ES.js +4 -0
  7. package/es/locale/lang/fr-FR.js +4 -0
  8. package/es/locale/lang/hu-HU.js +4 -0
  9. package/es/locale/lang/hy-AM.js +4 -0
  10. package/es/locale/lang/id-ID.js +4 -0
  11. package/es/locale/lang/it-IT.js +4 -0
  12. package/es/locale/lang/ja-JP.js +4 -0
  13. package/es/locale/lang/ko-KR.js +4 -0
  14. package/es/locale/lang/ms-MY.js +4 -0
  15. package/es/locale/lang/nb-NO.js +4 -0
  16. package/es/locale/lang/pt-BR.js +4 -0
  17. package/es/locale/lang/ru-RU.js +4 -0
  18. package/es/locale/lang/th-TH.js +4 -0
  19. package/es/locale/lang/ug-CN.js +4 -0
  20. package/es/locale/lang/uk-UA.js +4 -0
  21. package/es/locale/lang/uz-UZ.js +4 -0
  22. package/es/locale/lang/vi-VN.js +4 -0
  23. package/es/locale/lang/zh-CHT.js +4 -0
  24. package/es/locale/lang/zh-CN.js +4 -0
  25. package/es/style.css +1 -1
  26. package/es/style.min.css +1 -1
  27. package/es/table/module/filter/panel.js +12 -3
  28. package/es/table/render/index.js +11 -0
  29. package/es/table/src/table.js +4 -1
  30. package/es/table/style.css +1 -1
  31. package/es/table/style.min.css +1 -1
  32. package/es/toolbar/style.css +5 -1
  33. package/es/toolbar/style.min.css +1 -1
  34. package/es/ui/index.js +1 -1
  35. package/es/ui/src/log.js +1 -1
  36. package/es/vxe-table/style.css +1 -1
  37. package/es/vxe-table/style.min.css +1 -1
  38. package/es/vxe-toolbar/style.css +5 -1
  39. package/es/vxe-toolbar/style.min.css +1 -1
  40. package/lib/index.css +1 -1
  41. package/lib/index.min.css +1 -1
  42. package/lib/index.umd.js +41 -6
  43. package/lib/index.umd.min.js +1 -1
  44. package/lib/locale/lang/ar-EG.js +4 -0
  45. package/lib/locale/lang/ar-EG.min.js +1 -1
  46. package/lib/locale/lang/ar-EG.umd.js +4 -0
  47. package/lib/locale/lang/de-DE.js +4 -0
  48. package/lib/locale/lang/de-DE.min.js +1 -1
  49. package/lib/locale/lang/de-DE.umd.js +4 -0
  50. package/lib/locale/lang/en-US.js +4 -0
  51. package/lib/locale/lang/en-US.min.js +1 -1
  52. package/lib/locale/lang/en-US.umd.js +4 -0
  53. package/lib/locale/lang/es-ES.js +4 -0
  54. package/lib/locale/lang/es-ES.min.js +1 -1
  55. package/lib/locale/lang/es-ES.umd.js +4 -0
  56. package/lib/locale/lang/fr-FR.js +4 -0
  57. package/lib/locale/lang/fr-FR.min.js +1 -1
  58. package/lib/locale/lang/fr-FR.umd.js +4 -0
  59. package/lib/locale/lang/hu-HU.js +4 -0
  60. package/lib/locale/lang/hu-HU.min.js +1 -1
  61. package/lib/locale/lang/hu-HU.umd.js +4 -0
  62. package/lib/locale/lang/hy-AM.js +4 -0
  63. package/lib/locale/lang/hy-AM.min.js +1 -1
  64. package/lib/locale/lang/hy-AM.umd.js +4 -0
  65. package/lib/locale/lang/id-ID.js +4 -0
  66. package/lib/locale/lang/id-ID.min.js +1 -1
  67. package/lib/locale/lang/id-ID.umd.js +4 -0
  68. package/lib/locale/lang/it-IT.js +4 -0
  69. package/lib/locale/lang/it-IT.min.js +1 -1
  70. package/lib/locale/lang/it-IT.umd.js +4 -0
  71. package/lib/locale/lang/ja-JP.js +4 -0
  72. package/lib/locale/lang/ja-JP.min.js +1 -1
  73. package/lib/locale/lang/ja-JP.umd.js +4 -0
  74. package/lib/locale/lang/ko-KR.js +4 -0
  75. package/lib/locale/lang/ko-KR.min.js +1 -1
  76. package/lib/locale/lang/ko-KR.umd.js +4 -0
  77. package/lib/locale/lang/ms-MY.js +4 -0
  78. package/lib/locale/lang/ms-MY.min.js +1 -1
  79. package/lib/locale/lang/ms-MY.umd.js +4 -0
  80. package/lib/locale/lang/nb-NO.js +4 -0
  81. package/lib/locale/lang/nb-NO.min.js +1 -1
  82. package/lib/locale/lang/nb-NO.umd.js +4 -0
  83. package/lib/locale/lang/pt-BR.js +4 -0
  84. package/lib/locale/lang/pt-BR.min.js +1 -1
  85. package/lib/locale/lang/pt-BR.umd.js +4 -0
  86. package/lib/locale/lang/ru-RU.js +4 -0
  87. package/lib/locale/lang/ru-RU.min.js +1 -1
  88. package/lib/locale/lang/ru-RU.umd.js +4 -0
  89. package/lib/locale/lang/th-TH.js +4 -0
  90. package/lib/locale/lang/th-TH.min.js +1 -1
  91. package/lib/locale/lang/th-TH.umd.js +4 -0
  92. package/lib/locale/lang/ug-CN.js +4 -0
  93. package/lib/locale/lang/ug-CN.min.js +1 -1
  94. package/lib/locale/lang/ug-CN.umd.js +4 -0
  95. package/lib/locale/lang/uk-UA.js +4 -0
  96. package/lib/locale/lang/uk-UA.min.js +1 -1
  97. package/lib/locale/lang/uk-UA.umd.js +4 -0
  98. package/lib/locale/lang/uz-UZ.js +4 -0
  99. package/lib/locale/lang/uz-UZ.min.js +1 -1
  100. package/lib/locale/lang/uz-UZ.umd.js +4 -0
  101. package/lib/locale/lang/vi-VN.js +4 -0
  102. package/lib/locale/lang/vi-VN.min.js +1 -1
  103. package/lib/locale/lang/vi-VN.umd.js +4 -0
  104. package/lib/locale/lang/zh-CHT.js +4 -0
  105. package/lib/locale/lang/zh-CHT.min.js +1 -1
  106. package/lib/locale/lang/zh-CHT.umd.js +4 -0
  107. package/lib/locale/lang/zh-CN.js +4 -0
  108. package/lib/locale/lang/zh-CN.min.js +1 -1
  109. package/lib/locale/lang/zh-CN.umd.js +4 -0
  110. package/lib/style.css +1 -1
  111. package/lib/style.min.css +1 -1
  112. package/lib/table/module/filter/panel.js +16 -3
  113. package/lib/table/module/filter/panel.min.js +1 -1
  114. package/lib/table/render/index.js +15 -0
  115. package/lib/table/render/index.min.js +1 -1
  116. package/lib/table/src/table.js +5 -1
  117. package/lib/table/src/table.min.js +1 -1
  118. package/lib/table/style/style.css +1 -1
  119. package/lib/table/style/style.min.css +1 -1
  120. package/lib/toolbar/style/style.css +5 -1
  121. package/lib/toolbar/style/style.min.css +1 -1
  122. package/lib/ui/index.js +1 -1
  123. package/lib/ui/index.min.js +1 -1
  124. package/lib/ui/src/log.js +1 -1
  125. package/lib/ui/src/log.min.js +1 -1
  126. package/lib/vxe-table/style/style.css +1 -1
  127. package/lib/vxe-table/style/style.min.css +1 -1
  128. package/lib/vxe-toolbar/style/style.css +5 -1
  129. package/lib/vxe-toolbar/style/style.min.css +1 -1
  130. package/package.json +1 -1
  131. package/packages/locale/lang/ar-EG.ts +4 -0
  132. package/packages/locale/lang/de-DE.ts +4 -0
  133. package/packages/locale/lang/en-US.ts +4 -0
  134. package/packages/locale/lang/es-ES.ts +4 -0
  135. package/packages/locale/lang/fr-FR.ts +4 -0
  136. package/packages/locale/lang/hu-HU.ts +4 -0
  137. package/packages/locale/lang/hy-AM.ts +4 -0
  138. package/packages/locale/lang/id-ID.ts +4 -0
  139. package/packages/locale/lang/it-IT.ts +4 -0
  140. package/packages/locale/lang/ja-JP.ts +4 -0
  141. package/packages/locale/lang/ko-KR.ts +4 -0
  142. package/packages/locale/lang/ms-MY.ts +4 -0
  143. package/packages/locale/lang/nb-NO.ts +4 -0
  144. package/packages/locale/lang/pt-BR.ts +4 -0
  145. package/packages/locale/lang/ru-RU.ts +4 -0
  146. package/packages/locale/lang/th-TH.ts +4 -0
  147. package/packages/locale/lang/ug-CN.ts +4 -0
  148. package/packages/locale/lang/uk-UA.ts +4 -0
  149. package/packages/locale/lang/uz-UZ.ts +4 -0
  150. package/packages/locale/lang/vi-VN.ts +4 -0
  151. package/packages/locale/lang/zh-CHT.ts +4 -0
  152. package/packages/locale/lang/zh-CN.ts +4 -0
  153. package/packages/table/module/filter/panel.ts +11 -3
  154. package/packages/table/render/index.ts +12 -0
  155. package/packages/table/src/table.ts +4 -1
  156. package/styles/components/table-module/filter.scss +1 -1
  157. package/styles/components/toolbar.scss +5 -1
  158. package/styles/theme/base.scss +4 -0
  159. /package/es/{iconfont.1768291198674.ttf → iconfont.1768899685524.ttf} +0 -0
  160. /package/es/{iconfont.1768291198674.woff → iconfont.1768899685524.woff} +0 -0
  161. /package/es/{iconfont.1768291198674.woff2 → iconfont.1768899685524.woff2} +0 -0
  162. /package/lib/{iconfont.1768291198674.ttf → iconfont.1768899685524.ttf} +0 -0
  163. /package/lib/{iconfont.1768291198674.woff → iconfont.1768899685524.woff} +0 -0
  164. /package/lib/{iconfont.1768291198674.woff2 → iconfont.1768899685524.woff2} +0 -0
@@ -4,6 +4,7 @@ import { formatText, isEnableConf } from '../../../ui/src/utils';
4
4
  import { getPropClass, toCssUnit } from '../../../ui/src/dom';
5
5
  import { getSlotVNs } from '../../../ui/src/vn';
6
6
  import { warnLog } from '../../../ui/src/log';
7
+ import XEUtils from 'xe-utils';
7
8
  const { getI18n, getIcon, renderer, globalMixins, renderEmptyElement } = VxeUI;
8
9
  // 全部筛选事件
9
10
  function filterCheckAllEvent($xeFilterPanel, evnt, value) {
@@ -234,9 +235,17 @@ export default {
234
235
  const filterOpts = $xeTable.computeFilterOpts;
235
236
  const hasCheckOption = $xeFilterPanel.computeHasCheckOption;
236
237
  const { filterRender, filterMultiple } = column;
238
+ const { confirmButtonText, resetButtonText, showFooter } = filterOpts;
237
239
  const compConf = isEnableConf(filterRender) ? renderer.get(filterRender.name) : null;
238
240
  const isDisabled = !hasCheckOption && !filterStore.isAllSelected && !filterStore.isIndeterminate;
239
- return filterMultiple && (compConf ? !(compConf.showTableFilterFooter === false || compConf.showFilterFooter === false || compConf.isFooter === false) : true)
241
+ let showFlFoot = !!filterMultiple;
242
+ if (XEUtils.isBoolean(showFooter)) {
243
+ showFlFoot = showFooter;
244
+ }
245
+ else if (compConf) {
246
+ showFlFoot = !(compConf.showTableFilterFooter === false || compConf.showFilterFooter === false || compConf.isFooter === false);
247
+ }
248
+ return showFlFoot
240
249
  ? [
241
250
  h('div', {
242
251
  class: 'vxe-table--filter-footer'
@@ -251,12 +260,12 @@ export default {
251
260
  on: {
252
261
  click: $xeFilterPanel.confirmFilter
253
262
  }
254
- }, filterOpts.confirmButtonText || getI18n('vxe.table.confirmFilter')),
263
+ }, confirmButtonText || getI18n('vxe.table.confirmFilter')),
255
264
  h('button', {
256
265
  on: {
257
266
  click: $xeFilterPanel.resetFilter
258
267
  }
259
- }, filterOpts.resetButtonText || getI18n('vxe.table.resetFilter'))
268
+ }, resetButtonText || getI18n('vxe.table.resetFilter'))
260
269
  ])
261
270
  ]
262
271
  : [];
@@ -725,6 +725,16 @@ function handleNumberCell(h, renderOpts, params) {
725
725
  }
726
726
  : {});
727
727
  }
728
+ function handleFormatDatePicker(renderOpts, params) {
729
+ const { props = {} } = renderOpts;
730
+ const { cellValue } = params;
731
+ if (cellValue) {
732
+ if (props.type !== 'time') {
733
+ return getLabelFormatDate(cellValue, props);
734
+ }
735
+ }
736
+ return cellValue;
737
+ }
728
738
  function handleFormatSelect(renderOpts, params) {
729
739
  const { cellValue } = params;
730
740
  return handleSelectCellValue(cellValue, renderOpts);
@@ -954,6 +964,7 @@ renderer.mixin({
954
964
  }
955
965
  return getCellLabelVNs(h, renderOpts, params, cellValue);
956
966
  },
967
+ tableCellFormatter: handleFormatDatePicker,
957
968
  renderTableDefault: defaultEditRender,
958
969
  createTableFilterOptions: defaultFilterOptions,
959
970
  renderTableFilter: defaultFilterRender,
@@ -1624,7 +1624,7 @@ export default {
1624
1624
  const internalData = $xeTable;
1625
1625
  XEUtils.assign(internalData, createInternalData());
1626
1626
  handleKeyField($xeTable);
1627
- const { exportConfig, importConfig, treeConfig } = props;
1627
+ const { exportConfig, importConfig, treeConfig, minHeight } = props;
1628
1628
  const { scrollXStore, scrollYStore } = internalData;
1629
1629
  const columnOpts = $xeTable.computeColumnOpts;
1630
1630
  const columnDragOpts = $xeTable.computeColumnDragOpts;
@@ -1793,6 +1793,9 @@ export default {
1793
1793
  if (checkboxOpts.halfField) {
1794
1794
  warnLog('vxe.error.delProp', ['checkbox-config.halfField', 'checkbox-config.indeterminateField']);
1795
1795
  }
1796
+ if (props.editConfig && isEnableConf(editOpts) && props.editRules && (minHeight === 0 || minHeight === '0')) {
1797
+ warnLog('vxe.error.reqSupportProp', ['edit-config & edit-rules', 'min-height']);
1798
+ }
1796
1799
  if (treeConfig) {
1797
1800
  XEUtils.arrayEach(['rowField', 'parentField', 'childrenField', 'hasChildField', 'mapChildrenField'], key => {
1798
1801
  const val = treeOpts[key];
@@ -1523,7 +1523,7 @@
1523
1523
  border: 1px solid var(--vxe-ui-base-popup-border-color);
1524
1524
  color: var(--vxe-ui-font-color);
1525
1525
  box-shadow: var(--vxe-ui-base-popup-box-shadow);
1526
- z-index: 10;
1526
+ z-index: 15;
1527
1527
  }
1528
1528
  .vxe-table--filter-wrapper:not(.is--multiple) .vxe-table--filter-header,
1529
1529
  .vxe-table--filter-wrapper:not(.is--multiple) .vxe-table--filter-body {