vxe-table 4.13.17 → 4.13.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.d.ts +2 -0
- 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/hook.js +8 -0
- package/es/table/render/index.js +21 -15
- package/es/table/src/body.js +2 -1
- package/es/table/src/table.js +52 -50
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +40 -29
- 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.d.ts +2 -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 +728 -0
- 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/hook.js +8 -0
- package/lib/table/module/filter/hook.min.js +1 -1
- package/lib/table/render/index.js +21 -15
- 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/table.js +5 -9
- 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 +2 -2
- 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/hook.ts +8 -0
- package/packages/table/render/index.ts +21 -15
- package/packages/table/src/body.ts +2 -1
- package/packages/table/src/table.ts +56 -48
- package/lib/locale/lang/zh-TC.umd.js +0 -23
- /package/es/{iconfont.1746324623861.ttf → iconfont.1746694097015.ttf} +0 -0
- /package/es/{iconfont.1746324623861.woff → iconfont.1746694097015.woff} +0 -0
- /package/es/{iconfont.1746324623861.woff2 → iconfont.1746694097015.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.1746324623861.ttf → iconfont.1746694097015.ttf} +0 -0
- /package/lib/{iconfont.1746324623861.woff → iconfont.1746694097015.woff} +0 -0
- /package/lib/{iconfont.1746324623861.woff2 → iconfont.1746694097015.woff2} +0 -0
|
@@ -1158,7 +1158,7 @@ export default defineComponent({
|
|
|
1158
1158
|
nextTick(() => {
|
|
1159
1159
|
const customOpts = computeCustomOpts.value
|
|
1160
1160
|
const { mode } = customOpts
|
|
1161
|
-
if (!VxeUIModalComponent) {
|
|
1161
|
+
if (!VxeUIModalComponent && (mode === 'modal')) {
|
|
1162
1162
|
errLog('vxe.error.reqComp', ['vxe-modal'])
|
|
1163
1163
|
}
|
|
1164
1164
|
if (!VxeUIDrawerComponent && (mode === 'drawer')) {
|
|
@@ -315,10 +315,18 @@ hooks.add('tableFilterModule', {
|
|
|
315
315
|
handleFilterConfirmFilter(null)
|
|
316
316
|
return nextTick()
|
|
317
317
|
},
|
|
318
|
+
saveFilterPanelByEvent (evnt) {
|
|
319
|
+
handleFilterConfirmFilter(evnt)
|
|
320
|
+
return nextTick()
|
|
321
|
+
},
|
|
318
322
|
resetFilterPanel () {
|
|
319
323
|
handleFilterResetFilter(null)
|
|
320
324
|
return nextTick()
|
|
321
325
|
},
|
|
326
|
+
resetFilterPanelByEvent (evnt) {
|
|
327
|
+
handleFilterResetFilter(evnt)
|
|
328
|
+
return nextTick()
|
|
329
|
+
},
|
|
322
330
|
getCheckedFilters () {
|
|
323
331
|
const { tableFullColumn } = internalData
|
|
324
332
|
const filterList: any[] = []
|
|
@@ -422,12 +422,15 @@ function renderNativeOptgroups (renderOpts: any, params: any, renderOptionsMetho
|
|
|
422
422
|
const { optionGroups, optionGroupProps = {} } = renderOpts
|
|
423
423
|
const groupOptions = optionGroupProps.options || 'options'
|
|
424
424
|
const groupLabel = optionGroupProps.label || 'label'
|
|
425
|
-
|
|
426
|
-
return
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
425
|
+
if (optionGroups) {
|
|
426
|
+
return optionGroups.map((group: any, gIndex: any) => {
|
|
427
|
+
return h('optgroup', {
|
|
428
|
+
key: gIndex,
|
|
429
|
+
label: group[groupLabel]
|
|
430
|
+
}, renderOptionsMethods(group[groupOptions], renderOpts, params))
|
|
431
|
+
})
|
|
432
|
+
}
|
|
433
|
+
return []
|
|
431
434
|
}
|
|
432
435
|
|
|
433
436
|
/**
|
|
@@ -440,15 +443,18 @@ function renderNativeOptions (options: any, renderOpts: any, params: any) {
|
|
|
440
443
|
const valueProp = optionProps.value || 'value'
|
|
441
444
|
const disabledProp = optionProps.disabled || 'disabled'
|
|
442
445
|
const cellValue = isImmediateCell(renderOpts, params) ? getCellValue(row, column) : column.model.value
|
|
443
|
-
|
|
444
|
-
return
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
446
|
+
if (options) {
|
|
447
|
+
return options.map((option: any, oIndex: any) => {
|
|
448
|
+
return h('option', {
|
|
449
|
+
key: oIndex,
|
|
450
|
+
value: option[valueProp],
|
|
451
|
+
disabled: option[disabledProp],
|
|
452
|
+
/* eslint-disable eqeqeq */
|
|
453
|
+
selected: option[valueProp] == cellValue
|
|
454
|
+
}, option[labelProp])
|
|
455
|
+
})
|
|
456
|
+
}
|
|
457
|
+
return []
|
|
452
458
|
}
|
|
453
459
|
|
|
454
460
|
function nativeFilterRender (renderOpts: any, params: any) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, h, ComponentPublicInstance, reactive, ref, Ref, provide, inject, nextTick, onActivated, onDeactivated, onBeforeUnmount, onUnmounted, watch, computed, onMounted } from 'vue'
|
|
2
2
|
import XEUtils from 'xe-utils'
|
|
3
|
-
import { initTpImg, getTpImg, isPx, isScale, hasClass, addClass, removeClass, getEventTargetNode, getPaddingTopBottomSize,
|
|
3
|
+
import { initTpImg, getTpImg, isPx, isScale, hasClass, addClass, removeClass, getEventTargetNode, getPaddingTopBottomSize, setScrollTop, setScrollLeft, toCssUnit, hasControlKey } from '../../ui/src/dom'
|
|
4
4
|
import { getLastZIndex, nextZIndex, hasChildrenList, getFuncText, isEnableConf, formatText, eqEmptyValue } from '../../ui/src/utils'
|
|
5
5
|
import { VxeUI } from '../../ui'
|
|
6
6
|
import Cell from './cell'
|
|
@@ -7609,8 +7609,9 @@ export default defineComponent({
|
|
|
7609
7609
|
evnt.stopPropagation()
|
|
7610
7610
|
evnt.preventDefault()
|
|
7611
7611
|
const { column } = params
|
|
7612
|
-
const { overflowX, scrollbarHeight } = reactData
|
|
7612
|
+
const { columnStore, overflowX, scrollbarHeight } = reactData
|
|
7613
7613
|
const { elemStore, visibleColumn } = internalData
|
|
7614
|
+
const { leftList, rightList } = columnStore
|
|
7614
7615
|
const resizableOpts = computeResizableOpts.value
|
|
7615
7616
|
const osbHeight = overflowX ? scrollbarHeight : 0
|
|
7616
7617
|
const tableEl = refElem.value
|
|
@@ -7620,10 +7621,11 @@ export default defineComponent({
|
|
|
7620
7621
|
if (!resizeBarElem) {
|
|
7621
7622
|
return
|
|
7622
7623
|
}
|
|
7624
|
+
const isLeftFixed = fixedType === 'left'
|
|
7625
|
+
const isRightFixed = fixedType === 'right'
|
|
7623
7626
|
const resizeTipElem = resizeBarElem.firstElementChild as HTMLDivElement
|
|
7624
7627
|
const scrollbarXToTop = computeScrollbarXToTop.value
|
|
7625
7628
|
const { clientX: dragClientX } = evnt
|
|
7626
|
-
const wrapperElem = refElem.value
|
|
7627
7629
|
const dragBtnElem = evnt.target as HTMLDivElement
|
|
7628
7630
|
let resizeColumn = column
|
|
7629
7631
|
if (column.children && column.children.length) {
|
|
@@ -7638,30 +7640,34 @@ export default defineComponent({
|
|
|
7638
7640
|
if (!bodyScrollElem) {
|
|
7639
7641
|
return
|
|
7640
7642
|
}
|
|
7641
|
-
const
|
|
7643
|
+
const tableRect = tableEl.getBoundingClientRect()
|
|
7644
|
+
const rightContainerRect = rightContainerElem ? rightContainerElem.getBoundingClientRect() : null
|
|
7645
|
+
const cellRect = cell.getBoundingClientRect()
|
|
7646
|
+
const dragBtnRect = dragBtnElem.getBoundingClientRect()
|
|
7647
|
+
|
|
7642
7648
|
const dragBtnWidth = dragBtnElem.clientWidth
|
|
7643
7649
|
const dragBtnOffsetWidth = Math.floor(dragBtnWidth / 2)
|
|
7650
|
+
const dragPosLeft = dragBtnRect.x - tableRect.x + dragBtnOffsetWidth
|
|
7651
|
+
|
|
7644
7652
|
const minInterval = getColReMinWidth(cellParams) - dragBtnOffsetWidth // 列之间的最小间距
|
|
7645
|
-
|
|
7646
|
-
|
|
7647
|
-
const isLeftFixed = fixedType === 'left'
|
|
7648
|
-
const isRightFixed = fixedType === 'right'
|
|
7653
|
+
const dragMinLeft = isRightFixed ? 0 : (cellRect.x - tableRect.x + dragBtnWidth + minInterval)
|
|
7654
|
+
const dragMaxLeft = cellRect.x - tableRect.x + cell.clientWidth - minInterval
|
|
7649
7655
|
|
|
7650
|
-
|
|
7651
|
-
let
|
|
7656
|
+
let fixedLeftRemainWidth = 0
|
|
7657
|
+
let fixedRightRemainWidth = 0
|
|
7652
7658
|
if (isLeftFixed || isRightFixed) {
|
|
7653
|
-
|
|
7654
|
-
|
|
7655
|
-
|
|
7656
|
-
|
|
7657
|
-
|
|
7658
|
-
|
|
7659
|
-
|
|
7659
|
+
let isMach = false
|
|
7660
|
+
const fixedColumn = isLeftFixed ? leftList : rightList
|
|
7661
|
+
for (let i = 0; i < fixedColumn.length; i++) {
|
|
7662
|
+
const item = fixedColumn[i]
|
|
7663
|
+
if (isMach) {
|
|
7664
|
+
fixedLeftRemainWidth += item.renderWidth
|
|
7665
|
+
} else {
|
|
7666
|
+
isMach = item.id === resizeColumn.id
|
|
7667
|
+
if (!isMach) {
|
|
7668
|
+
fixedRightRemainWidth += item.renderWidth
|
|
7669
|
+
}
|
|
7660
7670
|
}
|
|
7661
|
-
tempCellElem = tempCellElem[siblingProp] as HTMLTableCellElement
|
|
7662
|
-
}
|
|
7663
|
-
if (isRightFixed && rightContainerElem) {
|
|
7664
|
-
dragPosLeft = rightContainerElem.offsetLeft + fixedOffsetWidth
|
|
7665
7671
|
}
|
|
7666
7672
|
}
|
|
7667
7673
|
|
|
@@ -7672,27 +7678,27 @@ export default defineComponent({
|
|
|
7672
7678
|
const tableHeight = tableEl.clientHeight
|
|
7673
7679
|
const offsetX = evnt.clientX - dragClientX
|
|
7674
7680
|
let left = dragPosLeft + offsetX
|
|
7675
|
-
|
|
7681
|
+
|
|
7676
7682
|
if (isLeftFixed) {
|
|
7677
|
-
|
|
7678
|
-
|
|
7683
|
+
if (rightContainerRect) {
|
|
7684
|
+
left = Math.min(left, rightContainerRect.x - tableRect.x - fixedLeftRemainWidth - minInterval)
|
|
7685
|
+
}
|
|
7679
7686
|
} else if (isRightFixed) {
|
|
7680
|
-
|
|
7681
|
-
|
|
7682
|
-
|
|
7683
|
-
|
|
7684
|
-
dragMinLeft = Math.max(bodyScrollElem.scrollLeft, dragMinLeft)
|
|
7685
|
-
// left = Math.min(left, bodyScrollElem.clientWidth + bodyScrollElem.scrollLeft - 40)
|
|
7687
|
+
if (leftContainerElem) {
|
|
7688
|
+
left = Math.max(left, leftContainerElem.clientWidth + fixedRightRemainWidth + minInterval)
|
|
7689
|
+
}
|
|
7690
|
+
left = Math.min(left, dragMaxLeft)
|
|
7686
7691
|
}
|
|
7692
|
+
|
|
7687
7693
|
dragLeft = Math.max(left, dragMinLeft)
|
|
7688
|
-
|
|
7694
|
+
|
|
7695
|
+
const resizeBarLeft = Math.max(1, dragLeft)
|
|
7689
7696
|
resizeBarElem.style.left = `${resizeBarLeft}px`
|
|
7690
7697
|
resizeBarElem.style.top = `${scrollbarXToTop ? osbHeight : 0}px`
|
|
7691
7698
|
resizeBarElem.style.height = `${scrollbarXToTop ? tableHeight - osbHeight : tableHeight}px`
|
|
7692
7699
|
if (resizableOpts.showDragTip && resizeTipElem) {
|
|
7693
|
-
resizeTipElem.textContent = getI18n('vxe.table.resizeColTip', [resizeColumn.renderWidth + (isRightFixed ? dragPosLeft - dragLeft : dragLeft - dragPosLeft)])
|
|
7700
|
+
resizeTipElem.textContent = getI18n('vxe.table.resizeColTip', [Math.floor(resizeColumn.renderWidth + (isRightFixed ? dragPosLeft - dragLeft : dragLeft - dragPosLeft))])
|
|
7694
7701
|
const tableWrapperWidth = tableEl.clientWidth
|
|
7695
|
-
const wrapperRect = wrapperElem.getBoundingClientRect()
|
|
7696
7702
|
const resizeBarWidth = resizeBarElem.clientWidth
|
|
7697
7703
|
const resizeTipWidth = resizeTipElem.clientWidth
|
|
7698
7704
|
const resizeTipHeight = resizeTipElem.clientHeight
|
|
@@ -7703,7 +7709,7 @@ export default defineComponent({
|
|
|
7703
7709
|
resizeTipLeft += tableWrapperWidth - resizeBarLeft
|
|
7704
7710
|
}
|
|
7705
7711
|
resizeTipElem.style.left = `${resizeTipLeft}px`
|
|
7706
|
-
resizeTipElem.style.top = `${Math.min(tableHeight - resizeTipHeight, Math.max(0, evnt.clientY -
|
|
7712
|
+
resizeTipElem.style.top = `${Math.min(tableHeight - resizeTipHeight, Math.max(0, evnt.clientY - tableRect.y - resizeTipHeight / 2))}px`
|
|
7707
7713
|
}
|
|
7708
7714
|
reactData.isDragResize = true
|
|
7709
7715
|
}
|
|
@@ -8663,24 +8669,26 @@ export default defineComponent({
|
|
|
8663
8669
|
const { selectRadioRow: oldValue } = reactData
|
|
8664
8670
|
const { row } = params
|
|
8665
8671
|
const radioOpts = computeRadioOpts.value
|
|
8666
|
-
const { trigger } = radioOpts
|
|
8672
|
+
const { trigger, checkMethod } = radioOpts
|
|
8667
8673
|
if (trigger === 'manual') {
|
|
8668
8674
|
return
|
|
8669
8675
|
}
|
|
8670
8676
|
evnt.stopPropagation()
|
|
8671
|
-
|
|
8672
|
-
|
|
8673
|
-
|
|
8674
|
-
handleCheckedRadioRow(newValue)
|
|
8675
|
-
} else if (!radioOpts.strict) {
|
|
8676
|
-
isChange = oldValue === newValue
|
|
8677
|
+
if (!checkMethod || checkMethod({ $table: $xeTable, row })) {
|
|
8678
|
+
let newValue = row
|
|
8679
|
+
let isChange = oldValue !== newValue
|
|
8677
8680
|
if (isChange) {
|
|
8678
|
-
newValue
|
|
8679
|
-
|
|
8681
|
+
handleCheckedRadioRow(newValue)
|
|
8682
|
+
} else if (!radioOpts.strict) {
|
|
8683
|
+
isChange = oldValue === newValue
|
|
8684
|
+
if (isChange) {
|
|
8685
|
+
newValue = null
|
|
8686
|
+
$xeTable.clearRadioRow()
|
|
8687
|
+
}
|
|
8688
|
+
}
|
|
8689
|
+
if (isChange) {
|
|
8690
|
+
dispatchEvent('radio-change', { oldValue, newValue, ...params }, evnt)
|
|
8680
8691
|
}
|
|
8681
|
-
}
|
|
8682
|
-
if (isChange) {
|
|
8683
|
-
dispatchEvent('radio-change', { oldValue, newValue, ...params }, evnt)
|
|
8684
8692
|
}
|
|
8685
8693
|
},
|
|
8686
8694
|
triggerCurrentColumnEvent (evnt, params) {
|
|
@@ -11211,8 +11219,8 @@ export default defineComponent({
|
|
|
11211
11219
|
if (props.editConfig && (editOpts.showStatus || editOpts.showUpdateStatus || editOpts.showInsertStatus) && !props.keepSource) {
|
|
11212
11220
|
warnLog('vxe.error.reqProp', ['keep-source'])
|
|
11213
11221
|
}
|
|
11214
|
-
if (treeConfig && (treeOpts.showLine || treeOpts.line) &&
|
|
11215
|
-
warnLog('vxe.error.reqProp', ['
|
|
11222
|
+
if (treeConfig && (treeOpts.showLine || treeOpts.line) && !showOverflow) {
|
|
11223
|
+
warnLog('vxe.error.reqProp', ['show-overflow'])
|
|
11216
11224
|
}
|
|
11217
11225
|
if (treeConfig && !treeOpts.transform && props.stripe) {
|
|
11218
11226
|
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
|