vxe-table 4.13.16 → 4.13.18
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/fr-FR.d.ts +2 -0
- package/es/locale/lang/hy-AM.d.ts +2 -0
- package/es/locale/lang/id-ID.d.ts +2 -0
- package/es/locale/lang/it-IT.d.ts +2 -0
- 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/th-TH.d.ts +2 -0
- package/es/locale/lang/ug-CN.d.ts +2 -0
- 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/zh-CHT.d.ts +2 -0
- 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/src/table.js +38 -44
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +15 -11
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/ar-EG.d.ts +2 -0
- 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.min.js +1 -1
- package/lib/locale/lang/de-DE.umd.js +728 -0
- package/lib/locale/lang/fr-FR.d.ts +2 -0
- package/lib/locale/lang/fr-FR.min.js +1 -1
- package/lib/locale/lang/fr-FR.umd.js +728 -0
- package/lib/locale/lang/hy-AM.d.ts +2 -0
- 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.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.min.js +1 -1
- package/lib/locale/lang/it-IT.umd.js +728 -0
- 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.min.js +1 -1
- package/lib/locale/lang/nb-NO.umd.js +728 -0
- package/lib/locale/lang/th-TH.d.ts +2 -0
- 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.min.js +1 -1
- package/lib/locale/lang/ug-CN.umd.js +728 -0
- 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.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.min.js +1 -1
- package/lib/locale/lang/zh-CHT.umd.js +728 -0
- 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/src/table.js +4 -8
- 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/ms-MY.ts +708 -0
- package/packages/locale/lang/uz-UZ.ts +708 -0
- package/packages/table/module/custom/panel.ts +1 -1
- package/packages/table/module/filter/hook.ts +8 -0
- package/packages/table/src/table.ts +43 -42
- package/lib/locale/lang/zh-TC.umd.js +0 -23
- /package/es/{iconfont.1745983712875.ttf → iconfont.1746578870894.ttf} +0 -0
- /package/es/{iconfont.1745983712875.woff → iconfont.1746578870894.woff} +0 -0
- /package/es/{iconfont.1745983712875.woff2 → iconfont.1746578870894.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.1745983712875.ttf → iconfont.1746578870894.ttf} +0 -0
- /package/lib/{iconfont.1745983712875.woff → iconfont.1746578870894.woff} +0 -0
- /package/lib/{iconfont.1745983712875.woff2 → iconfont.1746578870894.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[] = []
|
|
@@ -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'
|
|
@@ -4698,15 +4698,10 @@ export default defineComponent({
|
|
|
4698
4698
|
rowList = currTableData.filter((row) => XEUtils.get(row, checkField))
|
|
4699
4699
|
}
|
|
4700
4700
|
} else {
|
|
4701
|
+
const currMaps = isFull || (treeConfig && !transform) ? fullDataRowIdData : afterFullRowMaps
|
|
4701
4702
|
XEUtils.each(selectCheckboxMaps, (row, rowid) => {
|
|
4702
|
-
if (
|
|
4703
|
-
|
|
4704
|
-
rowList.push(fullDataRowIdData[rowid].row)
|
|
4705
|
-
}
|
|
4706
|
-
} else {
|
|
4707
|
-
if (afterFullRowMaps[rowid]) {
|
|
4708
|
-
rowList.push(afterFullRowMaps[rowid])
|
|
4709
|
-
}
|
|
4703
|
+
if (currMaps[rowid]) {
|
|
4704
|
+
rowList.push(fullDataRowIdData[rowid].row)
|
|
4710
4705
|
}
|
|
4711
4706
|
})
|
|
4712
4707
|
}
|
|
@@ -7614,8 +7609,9 @@ export default defineComponent({
|
|
|
7614
7609
|
evnt.stopPropagation()
|
|
7615
7610
|
evnt.preventDefault()
|
|
7616
7611
|
const { column } = params
|
|
7617
|
-
const { overflowX, scrollbarHeight } = reactData
|
|
7612
|
+
const { columnStore, overflowX, scrollbarHeight } = reactData
|
|
7618
7613
|
const { elemStore, visibleColumn } = internalData
|
|
7614
|
+
const { leftList, rightList } = columnStore
|
|
7619
7615
|
const resizableOpts = computeResizableOpts.value
|
|
7620
7616
|
const osbHeight = overflowX ? scrollbarHeight : 0
|
|
7621
7617
|
const tableEl = refElem.value
|
|
@@ -7625,10 +7621,11 @@ export default defineComponent({
|
|
|
7625
7621
|
if (!resizeBarElem) {
|
|
7626
7622
|
return
|
|
7627
7623
|
}
|
|
7624
|
+
const isLeftFixed = fixedType === 'left'
|
|
7625
|
+
const isRightFixed = fixedType === 'right'
|
|
7628
7626
|
const resizeTipElem = resizeBarElem.firstElementChild as HTMLDivElement
|
|
7629
7627
|
const scrollbarXToTop = computeScrollbarXToTop.value
|
|
7630
7628
|
const { clientX: dragClientX } = evnt
|
|
7631
|
-
const wrapperElem = refElem.value
|
|
7632
7629
|
const dragBtnElem = evnt.target as HTMLDivElement
|
|
7633
7630
|
let resizeColumn = column
|
|
7634
7631
|
if (column.children && column.children.length) {
|
|
@@ -7643,30 +7640,34 @@ export default defineComponent({
|
|
|
7643
7640
|
if (!bodyScrollElem) {
|
|
7644
7641
|
return
|
|
7645
7642
|
}
|
|
7646
|
-
const
|
|
7643
|
+
const tableRect = tableEl.getBoundingClientRect()
|
|
7644
|
+
const rightContainerRect = rightContainerElem ? rightContainerElem.getBoundingClientRect() : null
|
|
7645
|
+
const cellRect = cell.getBoundingClientRect()
|
|
7646
|
+
const dragBtnRect = dragBtnElem.getBoundingClientRect()
|
|
7647
|
+
|
|
7647
7648
|
const dragBtnWidth = dragBtnElem.clientWidth
|
|
7648
7649
|
const dragBtnOffsetWidth = Math.floor(dragBtnWidth / 2)
|
|
7650
|
+
const dragPosLeft = dragBtnRect.x - tableRect.x + dragBtnOffsetWidth
|
|
7651
|
+
|
|
7649
7652
|
const minInterval = getColReMinWidth(cellParams) - dragBtnOffsetWidth // 列之间的最小间距
|
|
7650
|
-
|
|
7651
|
-
|
|
7652
|
-
const isLeftFixed = fixedType === 'left'
|
|
7653
|
-
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
|
|
7654
7655
|
|
|
7655
|
-
|
|
7656
|
-
let
|
|
7656
|
+
let fixedLeftRemainWidth = 0
|
|
7657
|
+
let fixedRightRemainWidth = 0
|
|
7657
7658
|
if (isLeftFixed || isRightFixed) {
|
|
7658
|
-
|
|
7659
|
-
|
|
7660
|
-
|
|
7661
|
-
|
|
7662
|
-
|
|
7663
|
-
|
|
7664
|
-
|
|
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
|
+
}
|
|
7665
7670
|
}
|
|
7666
|
-
tempCellElem = tempCellElem[siblingProp] as HTMLTableCellElement
|
|
7667
|
-
}
|
|
7668
|
-
if (isRightFixed && rightContainerElem) {
|
|
7669
|
-
dragPosLeft = rightContainerElem.offsetLeft + fixedOffsetWidth
|
|
7670
7671
|
}
|
|
7671
7672
|
}
|
|
7672
7673
|
|
|
@@ -7677,27 +7678,27 @@ export default defineComponent({
|
|
|
7677
7678
|
const tableHeight = tableEl.clientHeight
|
|
7678
7679
|
const offsetX = evnt.clientX - dragClientX
|
|
7679
7680
|
let left = dragPosLeft + offsetX
|
|
7680
|
-
|
|
7681
|
+
|
|
7681
7682
|
if (isLeftFixed) {
|
|
7682
|
-
|
|
7683
|
-
|
|
7683
|
+
if (rightContainerRect) {
|
|
7684
|
+
left = Math.min(left, rightContainerRect.x - tableRect.x - fixedLeftRemainWidth - minInterval)
|
|
7685
|
+
}
|
|
7684
7686
|
} else if (isRightFixed) {
|
|
7685
|
-
|
|
7686
|
-
|
|
7687
|
-
|
|
7688
|
-
|
|
7689
|
-
dragMinLeft = Math.max(bodyScrollElem.scrollLeft, dragMinLeft)
|
|
7690
|
-
// 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)
|
|
7691
7691
|
}
|
|
7692
|
+
|
|
7692
7693
|
dragLeft = Math.max(left, dragMinLeft)
|
|
7693
|
-
|
|
7694
|
+
|
|
7695
|
+
const resizeBarLeft = Math.max(1, dragLeft)
|
|
7694
7696
|
resizeBarElem.style.left = `${resizeBarLeft}px`
|
|
7695
7697
|
resizeBarElem.style.top = `${scrollbarXToTop ? osbHeight : 0}px`
|
|
7696
7698
|
resizeBarElem.style.height = `${scrollbarXToTop ? tableHeight - osbHeight : tableHeight}px`
|
|
7697
7699
|
if (resizableOpts.showDragTip && resizeTipElem) {
|
|
7698
|
-
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))])
|
|
7699
7701
|
const tableWrapperWidth = tableEl.clientWidth
|
|
7700
|
-
const wrapperRect = wrapperElem.getBoundingClientRect()
|
|
7701
7702
|
const resizeBarWidth = resizeBarElem.clientWidth
|
|
7702
7703
|
const resizeTipWidth = resizeTipElem.clientWidth
|
|
7703
7704
|
const resizeTipHeight = resizeTipElem.clientHeight
|
|
@@ -7708,7 +7709,7 @@ export default defineComponent({
|
|
|
7708
7709
|
resizeTipLeft += tableWrapperWidth - resizeBarLeft
|
|
7709
7710
|
}
|
|
7710
7711
|
resizeTipElem.style.left = `${resizeTipLeft}px`
|
|
7711
|
-
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`
|
|
7712
7713
|
}
|
|
7713
7714
|
reactData.isDragResize = true
|
|
7714
7715
|
}
|
|
@@ -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
|