vxe-table 4.10.8 → 4.10.10
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/index.css +1 -1
- package/es/index.min.css +1 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table/src/table.js +66 -28
- package/es/table/style.css +23 -0
- package/es/table/style.min.css +1 -1
- package/es/ui/index.js +5 -3
- package/es/ui/src/log.js +1 -1
- package/es/vxe-table/style.css +23 -0
- package/es/vxe-table/style.min.css +1 -1
- package/lib/index.css +1 -1
- package/lib/index.min.css +1 -1
- package/lib/index.umd.js +48 -13
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/src/table.js +42 -9
- package/lib/table/src/table.min.js +1 -1
- package/lib/table/style/style.css +23 -0
- package/lib/table/style/style.min.css +1 -1
- package/lib/ui/index.js +5 -3
- 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/lib/vxe-table/style/style.css +23 -0
- package/lib/vxe-table/style/style.min.css +1 -1
- package/package.json +2 -2
- package/packages/table/src/table.ts +68 -28
- package/packages/ui/index.ts +4 -2
- package/styles/components/table.scss +21 -0
- /package/es/{iconfont.1739010729902.ttf → iconfont.1739161310227.ttf} +0 -0
- /package/es/{iconfont.1739010729902.woff → iconfont.1739161310227.woff} +0 -0
- /package/es/{iconfont.1739010729902.woff2 → iconfont.1739161310227.woff2} +0 -0
- /package/lib/{iconfont.1739010729902.ttf → iconfont.1739161310227.ttf} +0 -0
- /package/lib/{iconfont.1739010729902.woff → iconfont.1739161310227.woff} +0 -0
- /package/lib/{iconfont.1739010729902.woff2 → iconfont.1739161310227.woff2} +0 -0
package/lib/table/src/table.js
CHANGED
|
@@ -269,6 +269,12 @@ var _default = exports.default = (0, _vue.defineComponent)({
|
|
|
269
269
|
isHeader: false,
|
|
270
270
|
isFooter: false
|
|
271
271
|
},
|
|
272
|
+
rowHeightStore: {
|
|
273
|
+
default: 48,
|
|
274
|
+
medium: 44,
|
|
275
|
+
small: 40,
|
|
276
|
+
mini: 36
|
|
277
|
+
},
|
|
272
278
|
scrollVMLoading: false,
|
|
273
279
|
calcCellHeightFlag: 1,
|
|
274
280
|
resizeHeightFlag: 0,
|
|
@@ -363,6 +369,7 @@ var _default = exports.default = (0, _vue.defineComponent)({
|
|
|
363
369
|
let tableMethods = {};
|
|
364
370
|
let tablePrivateMethods = {};
|
|
365
371
|
const refElem = (0, _vue.ref)();
|
|
372
|
+
const refVarElem = (0, _vue.ref)();
|
|
366
373
|
const refTooltip = (0, _vue.ref)();
|
|
367
374
|
const refCommTooltip = (0, _vue.ref)();
|
|
368
375
|
const refValidTooltip = (0, _vue.ref)();
|
|
@@ -471,12 +478,7 @@ var _default = exports.default = (0, _vue.defineComponent)({
|
|
|
471
478
|
return 0;
|
|
472
479
|
});
|
|
473
480
|
const computeRowHeightMaps = (0, _vue.computed)(() => {
|
|
474
|
-
return
|
|
475
|
-
default: 48,
|
|
476
|
-
medium: 44,
|
|
477
|
-
small: 40,
|
|
478
|
-
mini: 36
|
|
479
|
-
};
|
|
481
|
+
return reactData.rowHeightStore;
|
|
480
482
|
});
|
|
481
483
|
const computeDefaultRowHeight = (0, _vue.computed)(() => {
|
|
482
484
|
const vSize = computeSize.value;
|
|
@@ -10529,7 +10531,8 @@ var _default = exports.default = (0, _vue.defineComponent)({
|
|
|
10529
10531
|
};
|
|
10530
10532
|
const renderDragTip = () => {
|
|
10531
10533
|
const {
|
|
10532
|
-
dragRow
|
|
10534
|
+
dragRow,
|
|
10535
|
+
dragCol
|
|
10533
10536
|
} = reactData;
|
|
10534
10537
|
const rowOpts = computeRowOpts.value;
|
|
10535
10538
|
const columnOpts = computeColumnOpts.value;
|
|
@@ -10548,7 +10551,7 @@ var _default = exports.default = (0, _vue.defineComponent)({
|
|
|
10548
10551
|
class: ['vxe-table--drag-col-line', {
|
|
10549
10552
|
'is--guides': columnDragOpts.showGuidesStatus
|
|
10550
10553
|
}]
|
|
10551
|
-
}), (0, _vue.h)('div', {
|
|
10554
|
+
}), dragRow && rowDragOpts.showDragTip || dragCol && columnDragOpts.showDragTip ? (0, _vue.h)('div', {
|
|
10552
10555
|
ref: refDragTipElem,
|
|
10553
10556
|
class: 'vxe-table--drag-sort-tip'
|
|
10554
10557
|
}, [(0, _vue.h)('div', {
|
|
@@ -10563,7 +10566,7 @@ var _default = exports.default = (0, _vue.defineComponent)({
|
|
|
10563
10566
|
class: ['vxe-table--drag-sort-tip-disabled-status', getIcon().TABLE_DRAG_DISABLED]
|
|
10564
10567
|
})]), (0, _vue.h)('div', {
|
|
10565
10568
|
class: 'vxe-table--drag-sort-tip-content'
|
|
10566
|
-
}, renderDragTipContents())])])]);
|
|
10569
|
+
}, renderDragTipContents())])]) : renderEmptyElement($xeTable)]);
|
|
10567
10570
|
}
|
|
10568
10571
|
return renderEmptyElement($xeTable);
|
|
10569
10572
|
};
|
|
@@ -10761,6 +10764,17 @@ var _default = exports.default = (0, _vue.defineComponent)({
|
|
|
10761
10764
|
(0, _vue.h)('div', {
|
|
10762
10765
|
class: 'vxe-table-slots'
|
|
10763
10766
|
}, slots.default ? slots.default({}) : []), (0, _vue.h)('div', {
|
|
10767
|
+
ref: refVarElem,
|
|
10768
|
+
class: 'vxe-table-vars'
|
|
10769
|
+
}, [(0, _vue.h)('div', {
|
|
10770
|
+
class: 'vxe-table-var-default'
|
|
10771
|
+
}), (0, _vue.h)('div', {
|
|
10772
|
+
class: 'vxe-table-var-medium'
|
|
10773
|
+
}), (0, _vue.h)('div', {
|
|
10774
|
+
class: 'vxe-table-var-small'
|
|
10775
|
+
}), (0, _vue.h)('div', {
|
|
10776
|
+
class: 'vxe-table-var-mini'
|
|
10777
|
+
})]), (0, _vue.h)('div', {
|
|
10764
10778
|
key: 'tw',
|
|
10765
10779
|
class: 'vxe-table--render-wrapper'
|
|
10766
10780
|
}, scrollbarXToTop ? [renderScrollX(), renderBody()] : [renderBody(), renderScrollX()]),
|
|
@@ -11087,9 +11101,28 @@ var _default = exports.default = (0, _vue.defineComponent)({
|
|
|
11087
11101
|
});
|
|
11088
11102
|
});
|
|
11089
11103
|
(0, _vue.onMounted)(() => {
|
|
11104
|
+
const {
|
|
11105
|
+
rowHeightStore
|
|
11106
|
+
} = reactData;
|
|
11107
|
+
const varEl = refVarElem.value;
|
|
11090
11108
|
const columnOpts = computeColumnOpts.value;
|
|
11091
11109
|
const rowOpts = computeRowOpts.value;
|
|
11092
11110
|
const customOpts = computeCustomOpts.value;
|
|
11111
|
+
if (varEl) {
|
|
11112
|
+
const [defEl, mediumEl, smallEl, miniEl] = varEl.children;
|
|
11113
|
+
if (defEl) {
|
|
11114
|
+
rowHeightStore.default = defEl.clientHeight;
|
|
11115
|
+
}
|
|
11116
|
+
if (mediumEl) {
|
|
11117
|
+
rowHeightStore.medium = mediumEl.clientHeight;
|
|
11118
|
+
}
|
|
11119
|
+
if (smallEl) {
|
|
11120
|
+
rowHeightStore.small = smallEl.clientHeight;
|
|
11121
|
+
}
|
|
11122
|
+
if (miniEl) {
|
|
11123
|
+
rowHeightStore.mini = miniEl.clientHeight;
|
|
11124
|
+
}
|
|
11125
|
+
}
|
|
11093
11126
|
if (columnOpts.drag || rowOpts.drag || customOpts.allowSort) {
|
|
11094
11127
|
(0, _dom.initTpImg)();
|
|
11095
11128
|
}
|