vxe-table 3.15.17 → 3.15.19

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 (185) hide show
  1. package/es/locale/lang/ar-EG.js +1 -1
  2. package/es/locale/lang/de-DE.js +1 -1
  3. package/es/locale/lang/en-US.js +1 -1
  4. package/es/locale/lang/es-ES.js +1 -1
  5. package/es/locale/lang/fr-FR.d.ts +2 -0
  6. package/es/locale/lang/fr-FR.js +1 -1
  7. package/es/locale/lang/hu-HU.js +1 -1
  8. package/es/locale/lang/hy-AM.d.ts +2 -0
  9. package/es/locale/lang/hy-AM.js +1 -1
  10. package/es/locale/lang/id-ID.d.ts +2 -0
  11. package/es/locale/lang/id-ID.js +1 -1
  12. package/es/locale/lang/it-IT.d.ts +2 -0
  13. package/es/locale/lang/it-IT.js +1 -1
  14. package/es/locale/lang/ja-JP.js +1 -1
  15. package/es/locale/lang/ko-KR.js +1 -1
  16. package/es/locale/lang/ms-MY.d.ts +2 -0
  17. package/es/locale/lang/ms-MY.js +708 -0
  18. package/es/locale/lang/nb-NO.d.ts +2 -0
  19. package/es/locale/lang/nb-NO.js +1 -1
  20. package/es/locale/lang/pt-BR.js +1 -1
  21. package/es/locale/lang/ru-RU.js +1 -1
  22. package/es/locale/lang/th-TH.d.ts +2 -0
  23. package/es/locale/lang/th-TH.js +1 -1
  24. package/es/locale/lang/ug-CN.d.ts +2 -0
  25. package/es/locale/lang/ug-CN.js +1 -1
  26. package/es/locale/lang/uk-UA.js +1 -1
  27. package/es/locale/lang/uz-UZ.d.ts +2 -0
  28. package/es/locale/lang/uz-UZ.js +708 -0
  29. package/es/locale/lang/vi-VN.d.ts +2 -0
  30. package/es/locale/lang/vi-VN.js +1 -1
  31. package/es/locale/lang/zh-CHT.js +1 -1
  32. package/es/locale/lang/zh-CN.js +1 -1
  33. package/es/style.css +1 -1
  34. package/es/table/module/custom/panel.js +1 -1
  35. package/es/table/module/filter/mixin.js +10 -0
  36. package/es/table/render/index.js +27 -21
  37. package/es/table/src/body.js +2 -1
  38. package/es/table/src/footer.js +2 -1
  39. package/es/table/src/header.js +2 -1
  40. package/es/table/src/methods.js +54 -50
  41. package/es/table/src/table.js +2 -2
  42. package/es/ui/index.js +1 -1
  43. package/es/ui/src/log.js +1 -1
  44. package/lib/index.umd.js +112 -80
  45. package/lib/index.umd.min.js +1 -1
  46. package/lib/locale/lang/ar-EG.d.ts +2 -0
  47. package/lib/locale/lang/ar-EG.js +1 -1
  48. package/lib/locale/lang/ar-EG.min.js +1 -1
  49. package/lib/locale/lang/ar-EG.umd.js +728 -0
  50. package/lib/locale/lang/de-DE.d.ts +2 -0
  51. package/lib/locale/lang/de-DE.js +1 -1
  52. package/lib/locale/lang/de-DE.min.js +1 -1
  53. package/lib/locale/lang/de-DE.umd.js +728 -0
  54. package/lib/locale/lang/en-US.js +1 -1
  55. package/lib/locale/lang/en-US.min.js +1 -1
  56. package/lib/locale/lang/en-US.umd.js +1 -1
  57. package/lib/locale/lang/es-ES.js +1 -1
  58. package/lib/locale/lang/es-ES.min.js +1 -1
  59. package/lib/locale/lang/es-ES.umd.js +1 -1
  60. package/lib/locale/lang/fr-FR.d.ts +2 -0
  61. package/lib/locale/lang/fr-FR.js +1 -1
  62. package/lib/locale/lang/fr-FR.min.js +1 -1
  63. package/lib/locale/lang/fr-FR.umd.js +728 -0
  64. package/lib/locale/lang/hu-HU.js +1 -1
  65. package/lib/locale/lang/hu-HU.min.js +1 -1
  66. package/lib/locale/lang/hu-HU.umd.js +1 -1
  67. package/lib/locale/lang/hy-AM.d.ts +2 -0
  68. package/lib/locale/lang/hy-AM.js +1 -1
  69. package/lib/locale/lang/hy-AM.min.js +1 -1
  70. package/lib/locale/lang/hy-AM.umd.js +728 -0
  71. package/lib/locale/lang/id-ID.d.ts +2 -0
  72. package/lib/locale/lang/id-ID.js +1 -1
  73. package/lib/locale/lang/id-ID.min.js +1 -1
  74. package/lib/locale/lang/id-ID.umd.js +728 -0
  75. package/lib/locale/lang/it-IT.d.ts +2 -0
  76. package/lib/locale/lang/it-IT.js +1 -1
  77. package/lib/locale/lang/it-IT.min.js +1 -1
  78. package/lib/locale/lang/it-IT.umd.js +728 -0
  79. package/lib/locale/lang/ja-JP.js +1 -1
  80. package/lib/locale/lang/ja-JP.min.js +1 -1
  81. package/lib/locale/lang/ja-JP.umd.js +1 -1
  82. package/lib/locale/lang/ko-KR.js +1 -1
  83. package/lib/locale/lang/ko-KR.min.js +1 -1
  84. package/lib/locale/lang/ko-KR.umd.js +1 -1
  85. package/lib/locale/lang/ms-MY.d.ts +2 -0
  86. package/lib/locale/lang/ms-MY.js +714 -0
  87. package/lib/locale/lang/ms-MY.min.js +1 -0
  88. package/lib/locale/lang/ms-MY.umd.js +728 -0
  89. package/lib/locale/lang/nb-NO.d.ts +2 -0
  90. package/lib/locale/lang/nb-NO.js +1 -1
  91. package/lib/locale/lang/nb-NO.min.js +1 -1
  92. package/lib/locale/lang/nb-NO.umd.js +728 -0
  93. package/lib/locale/lang/pt-BR.js +1 -1
  94. package/lib/locale/lang/pt-BR.min.js +1 -1
  95. package/lib/locale/lang/pt-BR.umd.js +1 -1
  96. package/lib/locale/lang/ru-RU.js +1 -1
  97. package/lib/locale/lang/ru-RU.min.js +1 -1
  98. package/lib/locale/lang/ru-RU.umd.js +1 -1
  99. package/lib/locale/lang/th-TH.d.ts +2 -0
  100. package/lib/locale/lang/th-TH.js +1 -1
  101. package/lib/locale/lang/th-TH.min.js +1 -1
  102. package/lib/locale/lang/th-TH.umd.js +728 -0
  103. package/lib/locale/lang/ug-CN.d.ts +2 -0
  104. package/lib/locale/lang/ug-CN.js +1 -1
  105. package/lib/locale/lang/ug-CN.min.js +1 -1
  106. package/lib/locale/lang/ug-CN.umd.js +728 -0
  107. package/lib/locale/lang/uk-UA.js +1 -1
  108. package/lib/locale/lang/uk-UA.min.js +1 -1
  109. package/lib/locale/lang/uk-UA.umd.js +1 -1
  110. package/lib/locale/lang/uz-UZ.d.ts +2 -0
  111. package/lib/locale/lang/uz-UZ.js +714 -0
  112. package/lib/locale/lang/uz-UZ.min.js +1 -0
  113. package/lib/locale/lang/uz-UZ.umd.js +728 -0
  114. package/lib/locale/lang/vi-VN.d.ts +2 -0
  115. package/lib/locale/lang/vi-VN.js +1 -1
  116. package/lib/locale/lang/vi-VN.min.js +1 -1
  117. package/lib/locale/lang/vi-VN.umd.js +728 -0
  118. package/lib/locale/lang/zh-CHT.js +1 -1
  119. package/lib/locale/lang/zh-CHT.min.js +1 -1
  120. package/lib/locale/lang/zh-CHT.umd.js +1 -1
  121. package/lib/locale/lang/zh-CN.js +1 -1
  122. package/lib/locale/lang/zh-CN.min.js +1 -1
  123. package/lib/locale/lang/zh-CN.umd.js +1 -1
  124. package/lib/locale/lang/zh-TC.min.js +1 -1
  125. package/lib/style.css +1 -1
  126. package/lib/table/module/custom/panel.js +1 -1
  127. package/lib/table/module/custom/panel.min.js +1 -1
  128. package/lib/table/module/filter/mixin.js +10 -0
  129. package/lib/table/module/filter/mixin.min.js +1 -1
  130. package/lib/table/render/index.js +27 -21
  131. package/lib/table/render/index.min.js +1 -1
  132. package/lib/table/src/body.js +2 -1
  133. package/lib/table/src/body.min.js +1 -1
  134. package/lib/table/src/footer.js +2 -1
  135. package/lib/table/src/footer.min.js +1 -1
  136. package/lib/table/src/header.js +2 -1
  137. package/lib/table/src/header.min.js +1 -1
  138. package/lib/table/src/methods.js +62 -49
  139. package/lib/table/src/methods.min.js +1 -1
  140. package/lib/table/src/table.js +2 -2
  141. package/lib/table/src/table.min.js +1 -1
  142. package/lib/ui/index.js +1 -1
  143. package/lib/ui/index.min.js +1 -1
  144. package/lib/ui/src/log.js +1 -1
  145. package/lib/ui/src/log.min.js +1 -1
  146. package/package.json +1 -1
  147. package/packages/locale/lang/ar-EG.ts +1 -1
  148. package/packages/locale/lang/de-DE.ts +1 -1
  149. package/packages/locale/lang/en-US.ts +1 -1
  150. package/packages/locale/lang/es-ES.ts +1 -1
  151. package/packages/locale/lang/fr-FR.ts +1 -1
  152. package/packages/locale/lang/hu-HU.ts +1 -1
  153. package/packages/locale/lang/hy-AM.ts +1 -1
  154. package/packages/locale/lang/id-ID.ts +1 -1
  155. package/packages/locale/lang/it-IT.ts +1 -1
  156. package/packages/locale/lang/ja-JP.ts +1 -1
  157. package/packages/locale/lang/ko-KR.ts +1 -1
  158. package/packages/locale/lang/ms-MY.ts +708 -0
  159. package/packages/locale/lang/nb-NO.ts +1 -1
  160. package/packages/locale/lang/pt-BR.ts +1 -1
  161. package/packages/locale/lang/ru-RU.ts +1 -1
  162. package/packages/locale/lang/th-TH.ts +1 -1
  163. package/packages/locale/lang/ug-CN.ts +1 -1
  164. package/packages/locale/lang/uk-UA.ts +1 -1
  165. package/packages/locale/lang/uz-UZ.ts +708 -0
  166. package/packages/locale/lang/vi-VN.ts +1 -1
  167. package/packages/locale/lang/zh-CHT.ts +1 -1
  168. package/packages/locale/lang/zh-CN.ts +1 -1
  169. package/packages/table/module/custom/panel.ts +1 -1
  170. package/packages/table/module/filter/mixin.ts +12 -0
  171. package/packages/table/render/index.ts +26 -20
  172. package/packages/table/src/body.ts +2 -1
  173. package/packages/table/src/footer.ts +2 -1
  174. package/packages/table/src/header.ts +2 -1
  175. package/packages/table/src/methods.ts +58 -48
  176. package/packages/table/src/table.ts +2 -2
  177. package/lib/locale/lang/zh-TC.umd.js +0 -23
  178. /package/es/{iconfont.1746324587006.ttf → iconfont.1746694071741.ttf} +0 -0
  179. /package/es/{iconfont.1746324587006.woff → iconfont.1746694071741.woff} +0 -0
  180. /package/es/{iconfont.1746324587006.woff2 → iconfont.1746694071741.woff2} +0 -0
  181. /package/es/locale/lang/{zh-TC.d.ts → ar-EG.d.ts} +0 -0
  182. /package/{lib/locale/lang/zh-TC.d.ts → es/locale/lang/de-DE.d.ts} +0 -0
  183. /package/lib/{iconfont.1746324587006.ttf → iconfont.1746694071741.ttf} +0 -0
  184. /package/lib/{iconfont.1746324587006.woff → iconfont.1746694071741.woff} +0 -0
  185. /package/lib/{iconfont.1746324587006.woff2 → iconfont.1746694071741.woff2} +0 -0
@@ -272,7 +272,7 @@ export default {
272
272
  year: 'yyyy'
273
273
  },
274
274
  weeks: {
275
- w: 'Tuần',
275
+ w: '',
276
276
  w0: 'Mặt trời',
277
277
  w1: 'Mon',
278
278
  w2: 'TUE',
@@ -272,7 +272,7 @@ export default {
272
272
  year: 'yyyy'
273
273
  },
274
274
  weeks: {
275
- w: '週',
275
+ w: '',
276
276
  w0: '週日',
277
277
  w1: '週一',
278
278
  w2: '週二',
@@ -272,7 +272,7 @@ export default {
272
272
  year: 'yyyy'
273
273
  },
274
274
  weeks: {
275
- w: '周',
275
+ w: '',
276
276
  w0: '周日',
277
277
  w1: '周一',
278
278
  w2: '周二',
@@ -854,7 +854,7 @@ export default {
854
854
 
855
855
  const { customOpts } = $xeTable
856
856
  const { mode } = customOpts
857
- if (!VxeUIModalComponent) {
857
+ if (!VxeUIModalComponent && (mode === 'modal')) {
858
858
  errLog('vxe.error.reqComp', ['vxe-modal'])
859
859
  }
860
860
  if (!VxeUIDrawerComponent && (mode === 'drawer')) {
@@ -167,12 +167,24 @@ export default {
167
167
  $xeTable.handleFilterConfirmFilter(null)
168
168
  return $xeTable.$nextTick()
169
169
  },
170
+ _saveFilterPanelByEvent (evnt: Event) {
171
+ const $xeTable = this
172
+
173
+ $xeTable.handleFilterConfirmFilter(evnt)
174
+ return $xeTable.$nextTick()
175
+ },
170
176
  _resetFilterPanel () {
171
177
  const $xeTable = this
172
178
 
173
179
  $xeTable.handleFilterResetFilter(null)
174
180
  return $xeTable.$nextTick()
175
181
  },
182
+ _resetFilterPanelByEvent (evnt: Event) {
183
+ const $xeTable = this
184
+
185
+ $xeTable.handleFilterResetFilter(evnt)
186
+ return $xeTable.$nextTick()
187
+ },
176
188
  _getCheckedFilters () {
177
189
  const { tableFullColumn } = this
178
190
  const filterList: any[] = []
@@ -426,14 +426,17 @@ function renderNativeOptgroups (h: CreateElement, renderOpts: any, params: any,
426
426
  const { optionGroups, optionGroupProps = {} } = renderOpts
427
427
  const groupOptions = optionGroupProps.options || 'options'
428
428
  const groupLabel = optionGroupProps.label || 'label'
429
- return optionGroups.map((group: any, gIndex: any) => {
430
- return h('optgroup', {
431
- key: gIndex,
432
- attrs: {
433
- label: group[groupLabel]
434
- }
435
- }, renderOptionsMethods(h, group[groupOptions], renderOpts, params))
436
- })
429
+ if (optionGroups) {
430
+ return optionGroups.map((group: any, gIndex: any) => {
431
+ return h('optgroup', {
432
+ key: gIndex,
433
+ attrs: {
434
+ label: group[groupLabel]
435
+ }
436
+ }, renderOptionsMethods(h, group[groupOptions], renderOpts, params))
437
+ })
438
+ }
439
+ return []
437
440
  }
438
441
 
439
442
  /**
@@ -446,19 +449,22 @@ function renderNativeOptions (h: CreateElement, options: any, renderOpts: any, p
446
449
  const valueProp = optionProps.value || 'value'
447
450
  const disabledProp = optionProps.disabled || 'disabled'
448
451
  const cellValue = isImmediateCell(renderOpts, params) ? getCellValue(row, column) : column.model.value
449
- return options.map((option: any, oIndex: any) => {
450
- return h('option', {
451
- key: oIndex,
452
- attrs: {
453
- value: option[valueProp],
454
- disabled: option[disabledProp]
455
- },
456
- domProps: {
452
+ if (options) {
453
+ return options.map((option: any, oIndex: any) => {
454
+ return h('option', {
455
+ key: oIndex,
456
+ attrs: {
457
+ value: option[valueProp],
458
+ disabled: option[disabledProp]
459
+ },
460
+ domProps: {
457
461
  /* eslint-disable eqeqeq */
458
- selected: option[valueProp] == cellValue
459
- }
460
- }, option[labelProp])
461
- })
462
+ selected: option[valueProp] == cellValue
463
+ }
464
+ }, option[labelProp])
465
+ })
466
+ }
467
+ return []
462
468
  }
463
469
 
464
470
  function nativeFilterRender (h: CreateElement, renderOpts: any, params: any) {
@@ -849,7 +849,8 @@ export default {
849
849
  xid: xID,
850
850
  cellspacing: 0,
851
851
  cellpadding: 0,
852
- border: 0
852
+ border: 0,
853
+ xvm: isOptimizeMode ? '1' : null
853
854
  }
854
855
  }, [
855
856
  /**
@@ -377,7 +377,8 @@ export default {
377
377
  xid: xID,
378
378
  cellspacing: 0,
379
379
  cellpadding: 0,
380
- border: 0
380
+ border: 0,
381
+ xvm: isOptimizeMode ? '1' : null
381
382
  }
382
383
  }, [
383
384
  /**
@@ -372,7 +372,8 @@ export default {
372
372
  xid: xID,
373
373
  cellspacing: 0,
374
374
  cellpadding: 0,
375
- border: 0
375
+ border: 0,
376
+ xvm: isOptimizeMode ? '1' : null
376
377
  }
377
378
  }, [
378
379
  /**
@@ -1,5 +1,5 @@
1
1
  import XEUtils from 'xe-utils'
2
- import { getTpImg, isPx, isScale, hasClass, addClass, removeClass, getEventTargetNode, getPaddingTopBottomSize, getOffsetPos, setScrollTop, setScrollLeft, toCssUnit, hasControlKey } from '../../ui/src/dom'
2
+ import { getTpImg, isPx, isScale, hasClass, addClass, removeClass, getEventTargetNode, getPaddingTopBottomSize, setScrollTop, setScrollLeft, toCssUnit, hasControlKey } from '../../ui/src/dom'
3
3
  import { getLastZIndex, nextZIndex, hasChildrenList, getFuncText, isEnableConf, formatText, eqEmptyValue } from '../../ui/src/utils'
4
4
  import { VxeUI } from '../../ui'
5
5
  import Cell from './cell'
@@ -5128,8 +5128,9 @@ const Methods = {
5128
5128
  evnt.stopPropagation()
5129
5129
  evnt.preventDefault()
5130
5130
  const { column } = params
5131
- const { overflowX, scrollbarHeight } = reactData
5131
+ const { columnStore, overflowX, scrollbarHeight } = reactData
5132
5132
  const { elemStore, visibleColumn } = internalData
5133
+ const { leftList, rightList } = columnStore
5133
5134
  const resizableOpts = $xeTable.computeResizableOpts
5134
5135
  const osbHeight = overflowX ? scrollbarHeight : 0
5135
5136
  const tableEl = $xeTable.$refs.refElem as HTMLDivElement
@@ -5139,10 +5140,11 @@ const Methods = {
5139
5140
  if (!resizeBarElem) {
5140
5141
  return
5141
5142
  }
5143
+ const isLeftFixed = fixedType === 'left'
5144
+ const isRightFixed = fixedType === 'right'
5142
5145
  const resizeTipElem = resizeBarElem.firstElementChild as HTMLDivElement
5143
5146
  const scrollbarXToTop = $xeTable.computeScrollbarXToTop
5144
5147
  const { clientX: dragClientX } = evnt
5145
- const wrapperElem = $xeTable.$refs.refElem as HTMLDivElement
5146
5148
  const dragBtnElem = evnt.target as HTMLDivElement
5147
5149
  let resizeColumn = column
5148
5150
  if (column.children && column.children.length) {
@@ -5157,30 +5159,34 @@ const Methods = {
5157
5159
  if (!bodyScrollElem) {
5158
5160
  return
5159
5161
  }
5160
- const pos = getOffsetPos(dragBtnElem, wrapperElem)
5162
+ const tableRect = tableEl.getBoundingClientRect()
5163
+ const rightContainerRect = rightContainerElem ? rightContainerElem.getBoundingClientRect() : null
5164
+ const cellRect = cell.getBoundingClientRect()
5165
+ const dragBtnRect = dragBtnElem.getBoundingClientRect()
5166
+
5161
5167
  const dragBtnWidth = dragBtnElem.clientWidth
5162
5168
  const dragBtnOffsetWidth = Math.floor(dragBtnWidth / 2)
5169
+ const dragPosLeft = dragBtnRect.x - tableRect.x + dragBtnOffsetWidth
5170
+
5163
5171
  const minInterval = getColReMinWidth(cellParams) - dragBtnOffsetWidth // 列之间的最小间距
5164
- let dragMinLeft = pos.left - cell.clientWidth + dragBtnWidth + minInterval
5165
- let dragPosLeft = pos.left + dragBtnOffsetWidth
5166
- const isLeftFixed = fixedType === 'left'
5167
- const isRightFixed = fixedType === 'right'
5172
+ const dragMinLeft = isRightFixed ? 0 : (cellRect.x - tableRect.x + dragBtnWidth + minInterval)
5173
+ const dragMaxLeft = cellRect.x - tableRect.x + cell.clientWidth - minInterval
5168
5174
 
5169
- // 计算左右侧固定列偏移量
5170
- let fixedOffsetWidth = 0
5175
+ let fixedLeftRemainWidth = 0
5176
+ let fixedRightRemainWidth = 0
5171
5177
  if (isLeftFixed || isRightFixed) {
5172
- const siblingProp = isLeftFixed ? 'nextElementSibling' : 'previousElementSibling'
5173
- let tempCellElem = cell[siblingProp] as HTMLTableCellElement
5174
- while (tempCellElem) {
5175
- if (hasClass(tempCellElem, 'fixed--hidden')) {
5176
- break
5177
- } else if (!hasClass(tempCellElem, 'col--group')) {
5178
- fixedOffsetWidth += tempCellElem.offsetWidth
5178
+ let isMach = false
5179
+ const fixedColumn = isLeftFixed ? leftList : rightList
5180
+ for (let i = 0; i < fixedColumn.length; i++) {
5181
+ const item = fixedColumn[i]
5182
+ if (isMach) {
5183
+ fixedLeftRemainWidth += item.renderWidth
5184
+ } else {
5185
+ isMach = item.id === resizeColumn.id
5186
+ if (!isMach) {
5187
+ fixedRightRemainWidth += item.renderWidth
5188
+ }
5179
5189
  }
5180
- tempCellElem = tempCellElem[siblingProp] as HTMLTableCellElement
5181
- }
5182
- if (isRightFixed && rightContainerElem) {
5183
- dragPosLeft = rightContainerElem.offsetLeft + fixedOffsetWidth
5184
5190
  }
5185
5191
  }
5186
5192
 
@@ -5191,27 +5197,27 @@ const Methods = {
5191
5197
  const tableHeight = tableEl.clientHeight
5192
5198
  const offsetX = evnt.clientX - dragClientX
5193
5199
  let left = dragPosLeft + offsetX
5194
- const scrollLeft = fixedType ? 0 : bodyScrollElem.scrollLeft
5200
+
5195
5201
  if (isLeftFixed) {
5196
- // 左固定列(不允许超过右侧固定列、不允许超过右边距)
5197
- left = Math.min(left, (rightContainerElem ? rightContainerElem.offsetLeft : bodyScrollElem.clientWidth) - fixedOffsetWidth - minInterval)
5202
+ if (rightContainerRect) {
5203
+ left = Math.min(left, rightContainerRect.x - tableRect.x - fixedLeftRemainWidth - minInterval)
5204
+ }
5198
5205
  } else if (isRightFixed) {
5199
- // 右侧固定列(不允许超过左侧固定列、不允许超过左边距)
5200
- dragMinLeft = (leftContainerElem ? leftContainerElem.clientWidth : 0) + fixedOffsetWidth + minInterval
5201
- left = Math.min(left, dragPosLeft + cell.clientWidth - minInterval)
5202
- } else {
5203
- dragMinLeft = Math.max(bodyScrollElem.scrollLeft, dragMinLeft)
5204
- // left = Math.min(left, bodyScrollElem.clientWidth + bodyScrollElem.scrollLeft - 40)
5206
+ if (leftContainerElem) {
5207
+ left = Math.max(left, leftContainerElem.clientWidth + fixedRightRemainWidth + minInterval)
5208
+ }
5209
+ left = Math.min(left, dragMaxLeft)
5205
5210
  }
5211
+
5206
5212
  dragLeft = Math.max(left, dragMinLeft)
5207
- const resizeBarLeft = Math.max(1, dragLeft - scrollLeft)
5213
+
5214
+ const resizeBarLeft = Math.max(1, dragLeft)
5208
5215
  resizeBarElem.style.left = `${resizeBarLeft}px`
5209
5216
  resizeBarElem.style.top = `${scrollbarXToTop ? osbHeight : 0}px`
5210
5217
  resizeBarElem.style.height = `${scrollbarXToTop ? tableHeight - osbHeight : tableHeight}px`
5211
5218
  if (resizableOpts.showDragTip && resizeTipElem) {
5212
- resizeTipElem.textContent = getI18n('vxe.table.resizeColTip', [resizeColumn.renderWidth + (isRightFixed ? dragPosLeft - dragLeft : dragLeft - dragPosLeft)])
5219
+ resizeTipElem.textContent = getI18n('vxe.table.resizeColTip', [Math.floor(resizeColumn.renderWidth + (isRightFixed ? dragPosLeft - dragLeft : dragLeft - dragPosLeft))])
5213
5220
  const tableWrapperWidth = tableEl.clientWidth
5214
- const wrapperRect = wrapperElem.getBoundingClientRect()
5215
5221
  const resizeBarWidth = resizeBarElem.clientWidth
5216
5222
  const resizeTipWidth = resizeTipElem.clientWidth
5217
5223
  const resizeTipHeight = resizeTipElem.clientHeight
@@ -5222,7 +5228,7 @@ const Methods = {
5222
5228
  resizeTipLeft += tableWrapperWidth - resizeBarLeft
5223
5229
  }
5224
5230
  resizeTipElem.style.left = `${resizeTipLeft}px`
5225
- resizeTipElem.style.top = `${Math.min(tableHeight - resizeTipHeight, Math.max(0, evnt.clientY - wrapperRect.y - resizeTipHeight / 2))}px`
5231
+ resizeTipElem.style.top = `${Math.min(tableHeight - resizeTipHeight, Math.max(0, evnt.clientY - tableRect.y - resizeTipHeight / 2))}px`
5226
5232
  }
5227
5233
  reactData.isDragResize = true
5228
5234
  }
@@ -7090,24 +7096,26 @@ const Methods = {
7090
7096
  const { selectRadioRow: oldValue } = reactData
7091
7097
  const { row } = params
7092
7098
  const radioOpts = $xeTable.computeRadioOpts
7093
- const { trigger } = radioOpts
7099
+ const { trigger, checkMethod } = radioOpts
7094
7100
  if (trigger === 'manual') {
7095
7101
  return
7096
7102
  }
7097
7103
  evnt.stopPropagation()
7098
- let newValue = row
7099
- let isChange = oldValue !== newValue
7100
- if (isChange) {
7101
- handleCheckedRadioRow($xeTable, newValue)
7102
- } else if (!radioOpts.strict) {
7103
- isChange = oldValue === newValue
7104
+ if (!checkMethod || checkMethod({ $table: $xeTable, row })) {
7105
+ let newValue = row
7106
+ let isChange = oldValue !== newValue
7104
7107
  if (isChange) {
7105
- newValue = null
7106
- $xeTable.clearRadioRow()
7108
+ handleCheckedRadioRow($xeTable, newValue)
7109
+ } else if (!radioOpts.strict) {
7110
+ isChange = oldValue === newValue
7111
+ if (isChange) {
7112
+ newValue = null
7113
+ $xeTable.clearRadioRow()
7114
+ }
7115
+ }
7116
+ if (isChange) {
7117
+ $xeTable.dispatchEvent('radio-change', { oldValue, newValue, ...params }, evnt)
7107
7118
  }
7108
- }
7109
- if (isChange) {
7110
- $xeTable.dispatchEvent('radio-change', { oldValue, newValue, ...params }, evnt)
7111
7119
  }
7112
7120
  },
7113
7121
  triggerCurrentColumnEvent (evnt: Event, params: {
@@ -8916,7 +8924,9 @@ const Methods = {
8916
8924
  return rest
8917
8925
  },
8918
8926
  /**
8919
- * 获取树表格状态
8927
+ * 内部方法、获取树表格状态
8928
+ * @deprecated
8929
+ * @private
8920
8930
  */
8921
8931
  getTreeStatus () {
8922
8932
  if (this.treeConfig) {
@@ -10312,7 +10322,7 @@ const Methods = {
10312
10322
  } as any
10313
10323
 
10314
10324
  // Module methods
10315
- const funcs = 'setFilter,openFilter,clearFilter,saveFilterPanel,resetFilterPanel,getCheckedFilters,updateFilterOptionStatus,closeMenu,setActiveCellArea,getActiveCellArea,getCellAreas,clearCellAreas,copyCellArea,cutCellArea,pasteCellArea,getCopyCellArea,getCopyCellAreas,clearCopyCellArea,setCellAreas,openFNR,openFind,openReplace,closeFNR,getSelectedCell,clearSelected,insert,insertAt,insertNextAt,insertChild,insertChildAt,insertChildNextAt,remove,removeCheckboxRow,removeRadioRow,removeCurrentRow,getRecordset,getInsertRecords,getRemoveRecords,getUpdateRecords,clearEdit,clearActived,getEditRecord,getActiveRecord,isEditByRow,isActiveByRow,setEditRow,setActiveRow,setEditCell,setActiveCell,setSelectCell,clearValidate,fullValidate,validate,fullValidateField,validateField,openExport,closeExport,openPrint,closePrint,getPrintHtml,exportData,openImport,closeImport,importData,saveFile,readFile,importByFile,print,openCustom,closeCustom,saveCustom,cancelCustom,resetCustom,toggleCustomAllCheckbox,setCustomAllCheckbox'.split(',')
10325
+ const funcs = 'setFilter,openFilter,clearFilter,saveFilterPanel,saveFilterPanelByEvent,resetFilterPanel,resetFilterPanelByEvent,getCheckedFilters,updateFilterOptionStatus,closeMenu,setActiveCellArea,getActiveCellArea,getCellAreas,clearCellAreas,copyCellArea,cutCellArea,pasteCellArea,getCopyCellArea,getCopyCellAreas,clearCopyCellArea,setCellAreas,openFNR,openFind,openReplace,closeFNR,getSelectedCell,clearSelected,insert,insertAt,insertNextAt,insertChild,insertChildAt,insertChildNextAt,remove,removeCheckboxRow,removeRadioRow,removeCurrentRow,getRecordset,getInsertRecords,getRemoveRecords,getUpdateRecords,clearEdit,clearActived,getEditRecord,getActiveRecord,isEditByRow,isActiveByRow,setEditRow,setActiveRow,setEditCell,setActiveCell,setSelectCell,clearValidate,fullValidate,validate,fullValidateField,validateField,openExport,closeExport,openPrint,closePrint,getPrintHtml,exportData,openImport,closeImport,importData,saveFile,readFile,importByFile,print,openCustom,closeCustom,saveCustom,cancelCustom,resetCustom,toggleCustomAllCheckbox,setCustomAllCheckbox'.split(',')
10316
10326
 
10317
10327
  funcs.forEach(name => {
10318
10328
  Methods[name] = function (...args: any[]) {
@@ -1548,8 +1548,8 @@ export default {
1548
1548
  if (props.editConfig && editOpts.showStatus && !props.keepSource) {
1549
1549
  warnLog('vxe.error.reqProp', ['keep-source'])
1550
1550
  }
1551
- if (treeConfig && (treeOpts.showLine || treeOpts.line) && (!(props.rowKey || rowOpts.useKey) || !showOverflow)) {
1552
- warnLog('vxe.error.reqProp', ['row-config.useKey | show-overflow'])
1551
+ if (treeConfig && (treeOpts.showLine || treeOpts.line) && !showOverflow) {
1552
+ warnLog('vxe.error.reqProp', ['show-overflow'])
1553
1553
  }
1554
1554
  if (treeConfig && !treeOpts.transform && props.stripe) {
1555
1555
  warnLog('vxe.error.noTree', ['stripe'])
@@ -1,23 +0,0 @@
1
- (function (global, factory) {
2
- if (typeof define === "function" && define.amd) {
3
- define("vxe-table-lang.zh-TC", ["exports", "./zh-CHT"], factory);
4
- } else if (typeof exports !== "undefined") {
5
- factory(exports, require("./zh-CHT"));
6
- } else {
7
- var mod = {
8
- exports: {}
9
- };
10
- factory(mod.exports, global.zhCHT);
11
- global.vxeTableLangZhTC = mod.exports;
12
- }
13
- })(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports, _zhCHT) {
14
- "use strict";
15
-
16
- Object.defineProperty(_exports, "__esModule", {
17
- value: true
18
- });
19
- _exports.default = void 0;
20
- _zhCHT = _interopRequireDefault(_zhCHT);
21
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
22
- var _default = _exports.default = _zhCHT.default;
23
- });
File without changes