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.
- package/es/locale/lang/ar-EG.js +1 -1
- package/es/locale/lang/de-DE.js +1 -1
- package/es/locale/lang/en-US.js +1 -1
- package/es/locale/lang/es-ES.js +1 -1
- package/es/locale/lang/fr-FR.d.ts +2 -0
- package/es/locale/lang/fr-FR.js +1 -1
- package/es/locale/lang/hu-HU.js +1 -1
- package/es/locale/lang/hy-AM.d.ts +2 -0
- package/es/locale/lang/hy-AM.js +1 -1
- package/es/locale/lang/id-ID.d.ts +2 -0
- package/es/locale/lang/id-ID.js +1 -1
- package/es/locale/lang/it-IT.d.ts +2 -0
- package/es/locale/lang/it-IT.js +1 -1
- package/es/locale/lang/ja-JP.js +1 -1
- package/es/locale/lang/ko-KR.js +1 -1
- package/es/locale/lang/ms-MY.d.ts +2 -0
- package/es/locale/lang/ms-MY.js +708 -0
- package/es/locale/lang/nb-NO.d.ts +2 -0
- package/es/locale/lang/nb-NO.js +1 -1
- package/es/locale/lang/pt-BR.js +1 -1
- package/es/locale/lang/ru-RU.js +1 -1
- package/es/locale/lang/th-TH.d.ts +2 -0
- package/es/locale/lang/th-TH.js +1 -1
- package/es/locale/lang/ug-CN.d.ts +2 -0
- package/es/locale/lang/ug-CN.js +1 -1
- package/es/locale/lang/uk-UA.js +1 -1
- package/es/locale/lang/uz-UZ.d.ts +2 -0
- package/es/locale/lang/uz-UZ.js +708 -0
- package/es/locale/lang/vi-VN.d.ts +2 -0
- package/es/locale/lang/vi-VN.js +1 -1
- package/es/locale/lang/zh-CHT.js +1 -1
- package/es/locale/lang/zh-CN.js +1 -1
- package/es/style.css +1 -1
- package/es/table/module/custom/panel.js +1 -1
- package/es/table/module/filter/mixin.js +10 -0
- package/es/table/render/index.js +27 -21
- package/es/table/src/body.js +2 -1
- package/es/table/src/footer.js +2 -1
- package/es/table/src/header.js +2 -1
- package/es/table/src/methods.js +54 -50
- package/es/table/src/table.js +2 -2
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +112 -80
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/ar-EG.d.ts +2 -0
- package/lib/locale/lang/ar-EG.js +1 -1
- package/lib/locale/lang/ar-EG.min.js +1 -1
- package/lib/locale/lang/ar-EG.umd.js +728 -0
- package/lib/locale/lang/de-DE.d.ts +2 -0
- package/lib/locale/lang/de-DE.js +1 -1
- package/lib/locale/lang/de-DE.min.js +1 -1
- package/lib/locale/lang/de-DE.umd.js +728 -0
- package/lib/locale/lang/en-US.js +1 -1
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +1 -1
- package/lib/locale/lang/es-ES.js +1 -1
- package/lib/locale/lang/es-ES.min.js +1 -1
- package/lib/locale/lang/es-ES.umd.js +1 -1
- package/lib/locale/lang/fr-FR.d.ts +2 -0
- package/lib/locale/lang/fr-FR.js +1 -1
- package/lib/locale/lang/fr-FR.min.js +1 -1
- package/lib/locale/lang/fr-FR.umd.js +728 -0
- package/lib/locale/lang/hu-HU.js +1 -1
- package/lib/locale/lang/hu-HU.min.js +1 -1
- package/lib/locale/lang/hu-HU.umd.js +1 -1
- package/lib/locale/lang/hy-AM.d.ts +2 -0
- package/lib/locale/lang/hy-AM.js +1 -1
- package/lib/locale/lang/hy-AM.min.js +1 -1
- package/lib/locale/lang/hy-AM.umd.js +728 -0
- package/lib/locale/lang/id-ID.d.ts +2 -0
- package/lib/locale/lang/id-ID.js +1 -1
- package/lib/locale/lang/id-ID.min.js +1 -1
- package/lib/locale/lang/id-ID.umd.js +728 -0
- package/lib/locale/lang/it-IT.d.ts +2 -0
- package/lib/locale/lang/it-IT.js +1 -1
- package/lib/locale/lang/it-IT.min.js +1 -1
- package/lib/locale/lang/it-IT.umd.js +728 -0
- package/lib/locale/lang/ja-JP.js +1 -1
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +1 -1
- package/lib/locale/lang/ko-KR.js +1 -1
- package/lib/locale/lang/ko-KR.min.js +1 -1
- package/lib/locale/lang/ko-KR.umd.js +1 -1
- package/lib/locale/lang/ms-MY.d.ts +2 -0
- package/lib/locale/lang/ms-MY.js +714 -0
- package/lib/locale/lang/ms-MY.min.js +1 -0
- package/lib/locale/lang/ms-MY.umd.js +728 -0
- package/lib/locale/lang/nb-NO.d.ts +2 -0
- package/lib/locale/lang/nb-NO.js +1 -1
- package/lib/locale/lang/nb-NO.min.js +1 -1
- package/lib/locale/lang/nb-NO.umd.js +728 -0
- package/lib/locale/lang/pt-BR.js +1 -1
- package/lib/locale/lang/pt-BR.min.js +1 -1
- package/lib/locale/lang/pt-BR.umd.js +1 -1
- package/lib/locale/lang/ru-RU.js +1 -1
- package/lib/locale/lang/ru-RU.min.js +1 -1
- package/lib/locale/lang/ru-RU.umd.js +1 -1
- package/lib/locale/lang/th-TH.d.ts +2 -0
- package/lib/locale/lang/th-TH.js +1 -1
- package/lib/locale/lang/th-TH.min.js +1 -1
- package/lib/locale/lang/th-TH.umd.js +728 -0
- package/lib/locale/lang/ug-CN.d.ts +2 -0
- package/lib/locale/lang/ug-CN.js +1 -1
- package/lib/locale/lang/ug-CN.min.js +1 -1
- package/lib/locale/lang/ug-CN.umd.js +728 -0
- package/lib/locale/lang/uk-UA.js +1 -1
- package/lib/locale/lang/uk-UA.min.js +1 -1
- package/lib/locale/lang/uk-UA.umd.js +1 -1
- package/lib/locale/lang/uz-UZ.d.ts +2 -0
- package/lib/locale/lang/uz-UZ.js +714 -0
- package/lib/locale/lang/uz-UZ.min.js +1 -0
- package/lib/locale/lang/uz-UZ.umd.js +728 -0
- package/lib/locale/lang/vi-VN.d.ts +2 -0
- package/lib/locale/lang/vi-VN.js +1 -1
- package/lib/locale/lang/vi-VN.min.js +1 -1
- package/lib/locale/lang/vi-VN.umd.js +728 -0
- package/lib/locale/lang/zh-CHT.js +1 -1
- package/lib/locale/lang/zh-CHT.min.js +1 -1
- package/lib/locale/lang/zh-CHT.umd.js +1 -1
- package/lib/locale/lang/zh-CN.js +1 -1
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +1 -1
- package/lib/locale/lang/zh-TC.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/table/module/custom/panel.js +1 -1
- package/lib/table/module/custom/panel.min.js +1 -1
- package/lib/table/module/filter/mixin.js +10 -0
- package/lib/table/module/filter/mixin.min.js +1 -1
- package/lib/table/render/index.js +27 -21
- package/lib/table/render/index.min.js +1 -1
- package/lib/table/src/body.js +2 -1
- package/lib/table/src/body.min.js +1 -1
- package/lib/table/src/footer.js +2 -1
- package/lib/table/src/footer.min.js +1 -1
- package/lib/table/src/header.js +2 -1
- package/lib/table/src/header.min.js +1 -1
- package/lib/table/src/methods.js +62 -49
- package/lib/table/src/methods.min.js +1 -1
- package/lib/table/src/table.js +2 -2
- package/lib/table/src/table.min.js +1 -1
- package/lib/ui/index.js +1 -1
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/package.json +1 -1
- package/packages/locale/lang/ar-EG.ts +1 -1
- package/packages/locale/lang/de-DE.ts +1 -1
- package/packages/locale/lang/en-US.ts +1 -1
- package/packages/locale/lang/es-ES.ts +1 -1
- package/packages/locale/lang/fr-FR.ts +1 -1
- package/packages/locale/lang/hu-HU.ts +1 -1
- package/packages/locale/lang/hy-AM.ts +1 -1
- package/packages/locale/lang/id-ID.ts +1 -1
- package/packages/locale/lang/it-IT.ts +1 -1
- package/packages/locale/lang/ja-JP.ts +1 -1
- package/packages/locale/lang/ko-KR.ts +1 -1
- package/packages/locale/lang/ms-MY.ts +708 -0
- package/packages/locale/lang/nb-NO.ts +1 -1
- package/packages/locale/lang/pt-BR.ts +1 -1
- package/packages/locale/lang/ru-RU.ts +1 -1
- package/packages/locale/lang/th-TH.ts +1 -1
- package/packages/locale/lang/ug-CN.ts +1 -1
- package/packages/locale/lang/uk-UA.ts +1 -1
- package/packages/locale/lang/uz-UZ.ts +708 -0
- package/packages/locale/lang/vi-VN.ts +1 -1
- package/packages/locale/lang/zh-CHT.ts +1 -1
- package/packages/locale/lang/zh-CN.ts +1 -1
- package/packages/table/module/custom/panel.ts +1 -1
- package/packages/table/module/filter/mixin.ts +12 -0
- package/packages/table/render/index.ts +26 -20
- package/packages/table/src/body.ts +2 -1
- package/packages/table/src/footer.ts +2 -1
- package/packages/table/src/header.ts +2 -1
- package/packages/table/src/methods.ts +58 -48
- package/packages/table/src/table.ts +2 -2
- package/lib/locale/lang/zh-TC.umd.js +0 -23
- /package/es/{iconfont.1746324587006.ttf → iconfont.1746694071741.ttf} +0 -0
- /package/es/{iconfont.1746324587006.woff → iconfont.1746694071741.woff} +0 -0
- /package/es/{iconfont.1746324587006.woff2 → iconfont.1746694071741.woff2} +0 -0
- /package/es/locale/lang/{zh-TC.d.ts → ar-EG.d.ts} +0 -0
- /package/{lib/locale/lang/zh-TC.d.ts → es/locale/lang/de-DE.d.ts} +0 -0
- /package/lib/{iconfont.1746324587006.ttf → iconfont.1746694071741.ttf} +0 -0
- /package/lib/{iconfont.1746324587006.woff → iconfont.1746694071741.woff} +0 -0
- /package/lib/{iconfont.1746324587006.woff2 → iconfont.1746694071741.woff2} +0 -0
|
@@ -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
|
-
|
|
430
|
-
return
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
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
|
-
|
|
450
|
-
return
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
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
|
-
|
|
459
|
-
|
|
460
|
-
|
|
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) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import XEUtils from 'xe-utils'
|
|
2
|
-
import { getTpImg, isPx, isScale, hasClass, addClass, removeClass, getEventTargetNode, getPaddingTopBottomSize,
|
|
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
|
|
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
|
-
|
|
5165
|
-
|
|
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
|
|
5175
|
+
let fixedLeftRemainWidth = 0
|
|
5176
|
+
let fixedRightRemainWidth = 0
|
|
5171
5177
|
if (isLeftFixed || isRightFixed) {
|
|
5172
|
-
|
|
5173
|
-
|
|
5174
|
-
|
|
5175
|
-
|
|
5176
|
-
|
|
5177
|
-
|
|
5178
|
-
|
|
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
|
-
|
|
5200
|
+
|
|
5195
5201
|
if (isLeftFixed) {
|
|
5196
|
-
|
|
5197
|
-
|
|
5202
|
+
if (rightContainerRect) {
|
|
5203
|
+
left = Math.min(left, rightContainerRect.x - tableRect.x - fixedLeftRemainWidth - minInterval)
|
|
5204
|
+
}
|
|
5198
5205
|
} else if (isRightFixed) {
|
|
5199
|
-
|
|
5200
|
-
|
|
5201
|
-
|
|
5202
|
-
|
|
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
|
-
|
|
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 -
|
|
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
|
-
|
|
7099
|
-
|
|
7100
|
-
|
|
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
|
|
7106
|
-
|
|
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) &&
|
|
1552
|
-
warnLog('vxe.error.reqProp', ['
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|