vxe-table 3.19.42 → 3.19.44

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 (151) 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/src/table.js +6 -3
  29. package/es/toolbar/style.css +5 -1
  30. package/es/toolbar/style.min.css +1 -1
  31. package/es/ui/index.js +1 -1
  32. package/es/ui/src/log.js +1 -1
  33. package/es/vxe-toolbar/style.css +5 -1
  34. package/es/vxe-toolbar/style.min.css +1 -1
  35. package/lib/index.css +1 -1
  36. package/lib/index.min.css +1 -1
  37. package/lib/index.umd.js +28 -8
  38. package/lib/index.umd.min.js +1 -1
  39. package/lib/locale/lang/ar-EG.js +4 -0
  40. package/lib/locale/lang/ar-EG.min.js +1 -1
  41. package/lib/locale/lang/ar-EG.umd.js +4 -0
  42. package/lib/locale/lang/de-DE.js +4 -0
  43. package/lib/locale/lang/de-DE.min.js +1 -1
  44. package/lib/locale/lang/de-DE.umd.js +4 -0
  45. package/lib/locale/lang/en-US.js +4 -0
  46. package/lib/locale/lang/en-US.min.js +1 -1
  47. package/lib/locale/lang/en-US.umd.js +4 -0
  48. package/lib/locale/lang/es-ES.js +4 -0
  49. package/lib/locale/lang/es-ES.min.js +1 -1
  50. package/lib/locale/lang/es-ES.umd.js +4 -0
  51. package/lib/locale/lang/fr-FR.js +4 -0
  52. package/lib/locale/lang/fr-FR.min.js +1 -1
  53. package/lib/locale/lang/fr-FR.umd.js +4 -0
  54. package/lib/locale/lang/hu-HU.js +4 -0
  55. package/lib/locale/lang/hu-HU.min.js +1 -1
  56. package/lib/locale/lang/hu-HU.umd.js +4 -0
  57. package/lib/locale/lang/hy-AM.js +4 -0
  58. package/lib/locale/lang/hy-AM.min.js +1 -1
  59. package/lib/locale/lang/hy-AM.umd.js +4 -0
  60. package/lib/locale/lang/id-ID.js +4 -0
  61. package/lib/locale/lang/id-ID.min.js +1 -1
  62. package/lib/locale/lang/id-ID.umd.js +4 -0
  63. package/lib/locale/lang/it-IT.js +4 -0
  64. package/lib/locale/lang/it-IT.min.js +1 -1
  65. package/lib/locale/lang/it-IT.umd.js +4 -0
  66. package/lib/locale/lang/ja-JP.js +4 -0
  67. package/lib/locale/lang/ja-JP.min.js +1 -1
  68. package/lib/locale/lang/ja-JP.umd.js +4 -0
  69. package/lib/locale/lang/ko-KR.js +4 -0
  70. package/lib/locale/lang/ko-KR.min.js +1 -1
  71. package/lib/locale/lang/ko-KR.umd.js +4 -0
  72. package/lib/locale/lang/ms-MY.js +4 -0
  73. package/lib/locale/lang/ms-MY.min.js +1 -1
  74. package/lib/locale/lang/ms-MY.umd.js +4 -0
  75. package/lib/locale/lang/nb-NO.js +4 -0
  76. package/lib/locale/lang/nb-NO.min.js +1 -1
  77. package/lib/locale/lang/nb-NO.umd.js +4 -0
  78. package/lib/locale/lang/pt-BR.js +4 -0
  79. package/lib/locale/lang/pt-BR.min.js +1 -1
  80. package/lib/locale/lang/pt-BR.umd.js +4 -0
  81. package/lib/locale/lang/ru-RU.js +4 -0
  82. package/lib/locale/lang/ru-RU.min.js +1 -1
  83. package/lib/locale/lang/ru-RU.umd.js +4 -0
  84. package/lib/locale/lang/th-TH.js +4 -0
  85. package/lib/locale/lang/th-TH.min.js +1 -1
  86. package/lib/locale/lang/th-TH.umd.js +4 -0
  87. package/lib/locale/lang/ug-CN.js +4 -0
  88. package/lib/locale/lang/ug-CN.min.js +1 -1
  89. package/lib/locale/lang/ug-CN.umd.js +4 -0
  90. package/lib/locale/lang/uk-UA.js +4 -0
  91. package/lib/locale/lang/uk-UA.min.js +1 -1
  92. package/lib/locale/lang/uk-UA.umd.js +4 -0
  93. package/lib/locale/lang/uz-UZ.js +4 -0
  94. package/lib/locale/lang/uz-UZ.min.js +1 -1
  95. package/lib/locale/lang/uz-UZ.umd.js +4 -0
  96. package/lib/locale/lang/vi-VN.js +4 -0
  97. package/lib/locale/lang/vi-VN.min.js +1 -1
  98. package/lib/locale/lang/vi-VN.umd.js +4 -0
  99. package/lib/locale/lang/zh-CHT.js +4 -0
  100. package/lib/locale/lang/zh-CHT.min.js +1 -1
  101. package/lib/locale/lang/zh-CHT.umd.js +4 -0
  102. package/lib/locale/lang/zh-CN.js +4 -0
  103. package/lib/locale/lang/zh-CN.min.js +1 -1
  104. package/lib/locale/lang/zh-CN.umd.js +4 -0
  105. package/lib/style.css +1 -1
  106. package/lib/style.min.css +1 -1
  107. package/lib/table/module/filter/panel.js +16 -3
  108. package/lib/table/module/filter/panel.min.js +1 -1
  109. package/lib/table/src/table.js +7 -3
  110. package/lib/table/src/table.min.js +1 -1
  111. package/lib/toolbar/style/style.css +5 -1
  112. package/lib/toolbar/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-toolbar/style/style.css +5 -1
  118. package/lib/vxe-toolbar/style/style.min.css +1 -1
  119. package/package.json +1 -1
  120. package/packages/locale/lang/ar-EG.ts +4 -0
  121. package/packages/locale/lang/de-DE.ts +4 -0
  122. package/packages/locale/lang/en-US.ts +4 -0
  123. package/packages/locale/lang/es-ES.ts +4 -0
  124. package/packages/locale/lang/fr-FR.ts +4 -0
  125. package/packages/locale/lang/hu-HU.ts +4 -0
  126. package/packages/locale/lang/hy-AM.ts +4 -0
  127. package/packages/locale/lang/id-ID.ts +4 -0
  128. package/packages/locale/lang/it-IT.ts +4 -0
  129. package/packages/locale/lang/ja-JP.ts +4 -0
  130. package/packages/locale/lang/ko-KR.ts +4 -0
  131. package/packages/locale/lang/ms-MY.ts +4 -0
  132. package/packages/locale/lang/nb-NO.ts +4 -0
  133. package/packages/locale/lang/pt-BR.ts +4 -0
  134. package/packages/locale/lang/ru-RU.ts +4 -0
  135. package/packages/locale/lang/th-TH.ts +4 -0
  136. package/packages/locale/lang/ug-CN.ts +4 -0
  137. package/packages/locale/lang/uk-UA.ts +4 -0
  138. package/packages/locale/lang/uz-UZ.ts +4 -0
  139. package/packages/locale/lang/vi-VN.ts +4 -0
  140. package/packages/locale/lang/zh-CHT.ts +4 -0
  141. package/packages/locale/lang/zh-CN.ts +4 -0
  142. package/packages/table/module/filter/panel.ts +11 -3
  143. package/packages/table/src/table.ts +6 -3
  144. package/styles/components/toolbar.scss +5 -1
  145. package/styles/theme/base.scss +4 -0
  146. /package/es/{iconfont.1767938663589.ttf → iconfont.1768624947935.ttf} +0 -0
  147. /package/es/{iconfont.1767938663589.woff → iconfont.1768624947935.woff} +0 -0
  148. /package/es/{iconfont.1767938663589.woff2 → iconfont.1768624947935.woff2} +0 -0
  149. /package/lib/{iconfont.1767938663589.ttf → iconfont.1768624947935.ttf} +0 -0
  150. /package/lib/{iconfont.1767938663589.woff → iconfont.1768624947935.woff} +0 -0
  151. /package/lib/{iconfont.1767938663589.woff2 → iconfont.1768624947935.woff2} +0 -0
@@ -333,6 +333,10 @@ export default {
333
333
  }
334
334
  }
335
335
  },
336
+ calendar: {
337
+ yearLabel: '{0} 年',
338
+ monthLabel: '{0} 月'
339
+ },
336
340
  numberInput: {
337
341
  currencySymbol: '$'
338
342
  },
@@ -333,6 +333,10 @@ export default {
333
333
  }
334
334
  }
335
335
  },
336
+ calendar: {
337
+ yearLabel: '{0} 年',
338
+ monthLabel: '{0} 月'
339
+ },
336
340
  numberInput: {
337
341
  currencySymbol: '$'
338
342
  },
@@ -333,6 +333,10 @@ export default {
333
333
  }
334
334
  }
335
335
  },
336
+ calendar: {
337
+ yearLabel: '{0} 年',
338
+ monthLabel: '{0} 月'
339
+ },
336
340
  numberInput: {
337
341
  currencySymbol: '$'
338
342
  },
@@ -333,6 +333,10 @@ export default {
333
333
  }
334
334
  }
335
335
  },
336
+ calendar: {
337
+ yearLabel: '{0} 年',
338
+ monthLabel: '{0} 月'
339
+ },
336
340
  numberInput: {
337
341
  currencySymbol: '$'
338
342
  },
@@ -333,6 +333,10 @@ export default {
333
333
  }
334
334
  }
335
335
  },
336
+ calendar: {
337
+ yearLabel: '{0} 年',
338
+ monthLabel: '{0} 月'
339
+ },
336
340
  numberInput: {
337
341
  currencySymbol: '$'
338
342
  },
@@ -333,6 +333,10 @@ export default {
333
333
  }
334
334
  }
335
335
  },
336
+ calendar: {
337
+ yearLabel: '{0} 年',
338
+ monthLabel: '{0} 月'
339
+ },
336
340
  numberInput: {
337
341
  currencySymbol: '$'
338
342
  },
@@ -333,6 +333,10 @@ export default {
333
333
  }
334
334
  }
335
335
  },
336
+ calendar: {
337
+ yearLabel: '{0} 年',
338
+ monthLabel: '{0} 月'
339
+ },
336
340
  numberInput: {
337
341
  currencySymbol: '$'
338
342
  },
@@ -333,6 +333,10 @@ export default {
333
333
  }
334
334
  }
335
335
  },
336
+ calendar: {
337
+ yearLabel: '{0} 年',
338
+ monthLabel: '{0} 月'
339
+ },
336
340
  numberInput: {
337
341
  currencySymbol: '$'
338
342
  },
@@ -333,6 +333,10 @@ export default {
333
333
  }
334
334
  }
335
335
  },
336
+ calendar: {
337
+ yearLabel: '{0} 年',
338
+ monthLabel: '{0} 月'
339
+ },
336
340
  numberInput: {
337
341
  currencySymbol: '$'
338
342
  },
@@ -333,6 +333,10 @@ export default {
333
333
  }
334
334
  }
335
335
  },
336
+ calendar: {
337
+ yearLabel: '{0} 年',
338
+ monthLabel: '{0} 月'
339
+ },
336
340
  numberInput: {
337
341
  currencySymbol: '¥'
338
342
  },
@@ -333,6 +333,10 @@ export default {
333
333
  }
334
334
  }
335
335
  },
336
+ calendar: {
337
+ yearLabel: '{0} 年',
338
+ monthLabel: '{0} 月'
339
+ },
336
340
  numberInput: {
337
341
  currencySymbol: '$'
338
342
  },
@@ -333,6 +333,10 @@ export default {
333
333
  }
334
334
  }
335
335
  },
336
+ calendar: {
337
+ yearLabel: '{0} 年',
338
+ monthLabel: '{0} 月'
339
+ },
336
340
  numberInput: {
337
341
  currencySymbol: '¥'
338
342
  },
@@ -333,6 +333,10 @@ export default {
333
333
  }
334
334
  }
335
335
  },
336
+ calendar: {
337
+ yearLabel: '{0} 年',
338
+ monthLabel: '{0} 月'
339
+ },
336
340
  numberInput: {
337
341
  currencySymbol: '¥'
338
342
  },
@@ -5,6 +5,7 @@ import { formatText, isEnableConf } from '../../../ui/src/utils'
5
5
  import { getPropClass, toCssUnit } from '../../../ui/src/dom'
6
6
  import { getSlotVNs } from '../../../ui/src/vn'
7
7
  import { warnLog } from '../../../ui/src/log'
8
+ import XEUtils from 'xe-utils'
8
9
 
9
10
  import type { VxeGlobalRendererOptions, VxeComponentSizeType } from 'vxe-pc-ui'
10
11
  import type { VxeTableConstructor, VxeTablePrivateMethods, TableInternalData, VxeTableDefines, VxeColumnPropTypes } from '../../../../types'
@@ -272,9 +273,16 @@ export default /* define-vxe-component start */ defineVxeComponent({
272
273
  const filterOpts = $xeTable.computeFilterOpts
273
274
  const hasCheckOption = $xeFilterPanel.computeHasCheckOption
274
275
  const { filterRender, filterMultiple } = column
276
+ const { confirmButtonText, resetButtonText, showFooter } = filterOpts
275
277
  const compConf = isEnableConf(filterRender) ? renderer.get(filterRender.name) : null
276
278
  const isDisabled = !hasCheckOption && !filterStore.isAllSelected && !filterStore.isIndeterminate
277
- return filterMultiple && (compConf ? !(compConf.showTableFilterFooter === false || compConf.showFilterFooter === false || compConf.isFooter === false) : true)
279
+ let showFlFoot = !!filterMultiple
280
+ if (XEUtils.isBoolean(showFooter)) {
281
+ showFlFoot = showFooter
282
+ } else if (compConf) {
283
+ showFlFoot = !(compConf.showTableFilterFooter === false || compConf.showFilterFooter === false || compConf.isFooter === false)
284
+ }
285
+ return showFlFoot
278
286
  ? [
279
287
  h('div', {
280
288
  class: 'vxe-table--filter-footer'
@@ -289,12 +297,12 @@ export default /* define-vxe-component start */ defineVxeComponent({
289
297
  on: {
290
298
  click: ($xeFilterPanel as any).confirmFilter
291
299
  }
292
- }, filterOpts.confirmButtonText || getI18n('vxe.table.confirmFilter')),
300
+ }, confirmButtonText || getI18n('vxe.table.confirmFilter')),
293
301
  h('button', {
294
302
  on: {
295
303
  click: ($xeFilterPanel as any).resetFilter
296
304
  }
297
- }, filterOpts.resetButtonText || getI18n('vxe.table.resetFilter'))
305
+ }, resetButtonText || getI18n('vxe.table.resetFilter'))
298
306
  ])
299
307
  ]
300
308
  : []
@@ -1756,7 +1756,7 @@ export default {
1756
1756
 
1757
1757
  handleKeyField($xeTable)
1758
1758
 
1759
- const { exportConfig, importConfig, treeConfig } = props
1759
+ const { exportConfig, importConfig, treeConfig, minHeight } = props
1760
1760
  const { scrollXStore, scrollYStore } = internalData
1761
1761
  const columnOpts = $xeTable.computeColumnOpts
1762
1762
  const columnDragOpts = $xeTable.computeColumnDragOpts
@@ -1871,8 +1871,8 @@ export default {
1871
1871
  errLog('vxe.error.notProp', ['mouse-config.area'])
1872
1872
  return
1873
1873
  }
1874
- if (areaOpts.selectCellByHeader && columnOpts.drag && columnDragOpts.trigger === 'cell') {
1875
- errLog('vxe.error.notSupportProp', ['area-config.selectCellByHeader & column-config.drag', 'column-drag-config.trigger=cell', 'column-drag-config.trigger=default'])
1874
+ if (mouseOpts.area && areaOpts.selectCellByHeader && columnOpts.drag && columnDragOpts.trigger === 'cell') {
1875
+ errLog('vxe.error.notSupportProp', ['area-config.selectCellByHeader & column-config.drag', 'column-drag-config.trigger=cell', 'column-drag-config.trigger=default | area-config.selectCellByHeader=false'])
1876
1876
  }
1877
1877
  }
1878
1878
  if (!$xeTable.handlePivotTableAggregateData) {
@@ -1927,6 +1927,9 @@ export default {
1927
1927
  if (checkboxOpts.halfField) {
1928
1928
  warnLog('vxe.error.delProp', ['checkbox-config.halfField', 'checkbox-config.indeterminateField'])
1929
1929
  }
1930
+ if (props.editConfig && isEnableConf(editOpts) && props.editRules && (minHeight === 0 || minHeight === '0')) {
1931
+ warnLog('vxe.error.reqSupportProp', ['edit-config & edit-rules', 'min-height'])
1932
+ }
1930
1933
 
1931
1934
  if (treeConfig) {
1932
1935
  XEUtils.arrayEach(['rowField', 'parentField', 'childrenField', 'hasChildField', 'mapChildrenField'], key => {
@@ -4,7 +4,7 @@
4
4
  display: flex;
5
5
  flex-direction: row;
6
6
  align-items: center;
7
- padding: 0.6em 0;
7
+ padding: 0.5em 0;
8
8
  color: var(--vxe-ui-font-color);
9
9
  font-family: var(--vxe-ui-font-family);
10
10
  background-color: var(--vxe-ui-layout-background-color);
@@ -104,13 +104,17 @@
104
104
 
105
105
  .vxe-toolbar {
106
106
  font-size: var(--vxe-ui-font-size-default);
107
+ min-height: var(--vxe-ui-toolbar-height-default);
107
108
  &.size--medium {
108
109
  font-size: var(--vxe-ui-font-size-medium);
110
+ min-height: var(--vxe-ui-toolbar-height-medium);
109
111
  }
110
112
  &.size--small {
111
113
  font-size: var(--vxe-ui-font-size-small);
114
+ min-height: var(--vxe-ui-toolbar-height-small);
112
115
  }
113
116
  &.size--mini {
114
117
  font-size: var(--vxe-ui-font-size-mini);
118
+ min-height: var(--vxe-ui-toolbar-height-mini);
115
119
  }
116
120
  }
@@ -84,4 +84,8 @@
84
84
 
85
85
  /*toolbar*/
86
86
  --vxe-ui-toolbar-custom-active-background-color: #D9DADB;
87
+ --vxe-ui-toolbar-height-default: 48px;
88
+ --vxe-ui-toolbar-height-medium: 46px;
89
+ --vxe-ui-toolbar-height-small: 44px;
90
+ --vxe-ui-toolbar-height-mini: 42px;
87
91
  }