vxe-table 4.13.17 → 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 +35 -35
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +14 -10
- 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 +3 -7
- 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 +40 -34
- package/lib/locale/lang/zh-TC.umd.js +0 -23
- /package/es/{iconfont.1746324623861.ttf → iconfont.1746578870894.ttf} +0 -0
- /package/es/{iconfont.1746324623861.woff → iconfont.1746578870894.woff} +0 -0
- /package/es/{iconfont.1746324623861.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.1746324623861.ttf → iconfont.1746578870894.ttf} +0 -0
- /package/lib/{iconfont.1746324623861.woff → iconfont.1746578870894.woff} +0 -0
- /package/lib/{iconfont.1746324623861.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'
|
|
@@ -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
|
}
|
|
@@ -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
|