vxe-table 4.3.6 → 4.3.8
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/grid/src/grid.js +15 -5
- package/es/header/src/header.js +2 -2
- package/es/icon/style/{iconfont.1669214286403.ttf → iconfont.1673016604432.ttf} +0 -0
- package/es/icon/style/{iconfont.1669214286403.woff → iconfont.1673016604432.woff} +0 -0
- package/es/icon/style/{iconfont.1669214286403.woff2 → iconfont.1673016604432.woff2} +0 -0
- package/es/icon/style.css +565 -1
- package/es/{iconfont.1669214286403.ttf → iconfont.1673016604432.ttf} +0 -0
- package/es/{iconfont.1669214286403.woff → iconfont.1673016604432.woff} +0 -0
- package/es/{iconfont.1669214286403.woff2 → iconfont.1673016604432.woff2} +0 -0
- package/es/input/src/input.js +46 -5
- package/es/loading/src/loading.js +7 -2
- package/es/loading/style.css +1 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table/src/table.js +12 -3
- package/es/table/src/util.js +25 -1
- package/es/table/style.css +1 -1
- package/es/tools/log.js +1 -1
- package/es/v-x-e-table/index.js +1 -1
- package/es/v-x-e-table/style.css +564 -1
- package/es/vxe-icon/style.css +564 -0
- package/es/vxe-loading/style.css +1 -1
- package/es/vxe-table/style.css +1 -1
- package/lib/grid/src/grid.js +19 -7
- package/lib/grid/src/grid.min.js +1 -1
- package/lib/header/src/header.js +1 -1
- package/lib/header/src/header.min.js +1 -1
- package/lib/icon/style/{iconfont.1669214286403.ttf → iconfont.1673016604432.ttf} +0 -0
- package/lib/icon/style/{iconfont.1669214286403.woff → iconfont.1673016604432.woff} +0 -0
- package/lib/icon/style/{iconfont.1669214286403.woff2 → iconfont.1673016604432.woff2} +0 -0
- package/lib/icon/style/style.css +565 -1
- package/lib/icon/style/style.min.css +565 -1
- package/lib/{iconfont.1669214286403.ttf → iconfont.1673016604432.ttf} +0 -0
- package/lib/{iconfont.1669214286403.woff → iconfont.1673016604432.woff} +0 -0
- package/lib/{iconfont.1669214286403.woff2 → iconfont.1673016604432.woff2} +0 -0
- package/lib/index.umd.js +107 -19
- package/lib/index.umd.min.js +1 -1
- package/lib/input/src/input.js +51 -5
- package/lib/input/src/input.min.js +1 -1
- package/lib/loading/src/loading.js +5 -2
- package/lib/loading/src/loading.min.js +1 -1
- package/lib/loading/style/style.css +1 -1
- package/lib/loading/style/style.min.css +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/src/table.js +14 -3
- package/lib/table/src/table.min.js +1 -1
- package/lib/table/src/util.js +27 -2
- package/lib/table/src/util.min.js +1 -1
- package/lib/table/style/style.css +1 -1
- package/lib/table/style/style.min.css +1 -1
- package/lib/tools/log.js +1 -1
- package/lib/tools/log.min.js +1 -1
- package/lib/v-x-e-table/index.js +1 -1
- package/lib/v-x-e-table/index.min.js +1 -1
- package/lib/v-x-e-table/style/style.css +564 -1
- package/lib/v-x-e-table/style/style.min.css +1 -1
- package/lib/vxe-icon/style/style.css +564 -0
- package/lib/vxe-icon/style/style.min.css +1 -1
- package/lib/vxe-loading/style/style.css +1 -1
- package/lib/vxe-loading/style/style.min.css +1 -1
- package/lib/vxe-table/style/style.css +1 -1
- package/lib/vxe-table/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/form/src/form.ts +1 -1
- package/packages/grid/src/grid.ts +18 -5
- package/packages/header/src/header.ts +2 -2
- package/packages/input/src/input.ts +35 -6
- package/packages/loading/src/loading.ts +6 -2
- package/packages/table/src/table.ts +12 -3
- package/packages/table/src/util.ts +33 -1
- package/styles/icon.scss +2 -0
- package/styles/loading.scss +2 -1
package/es/grid/src/grid.js
CHANGED
|
@@ -87,7 +87,9 @@ export default defineComponent({
|
|
|
87
87
|
args[_i] = arguments[_i];
|
|
88
88
|
}
|
|
89
89
|
var $xetable = refTable.value;
|
|
90
|
-
|
|
90
|
+
if ($xetable && $xetable[name]) {
|
|
91
|
+
return $xetable[name].apply($xetable, args);
|
|
92
|
+
}
|
|
91
93
|
};
|
|
92
94
|
});
|
|
93
95
|
return funcs;
|
|
@@ -100,7 +102,9 @@ export default defineComponent({
|
|
|
100
102
|
args[_i] = arguments[_i];
|
|
101
103
|
}
|
|
102
104
|
var $xetable = refTable.value;
|
|
103
|
-
|
|
105
|
+
if ($xetable && $xetable[name]) {
|
|
106
|
+
return $xetable && $xetable[name].apply($xetable, args);
|
|
107
|
+
}
|
|
104
108
|
};
|
|
105
109
|
});
|
|
106
110
|
var computeProxyOpts = computed(function () {
|
|
@@ -510,6 +514,7 @@ export default defineComponent({
|
|
|
510
514
|
var proxyOpts = computeProxyOpts.value;
|
|
511
515
|
var tableOns = Object.assign({}, tableCompEvents);
|
|
512
516
|
var emptySlot = slots.empty;
|
|
517
|
+
var loadingSlot = slots.loading;
|
|
513
518
|
if (proxyConfig) {
|
|
514
519
|
if (proxyOpts.sort) {
|
|
515
520
|
tableOns.onSortChange = sortChangeEvent;
|
|
@@ -518,10 +523,15 @@ export default defineComponent({
|
|
|
518
523
|
tableOns.onFilterChange = filterChangeEvent;
|
|
519
524
|
}
|
|
520
525
|
}
|
|
526
|
+
var slotObj = {};
|
|
527
|
+
if (emptySlot) {
|
|
528
|
+
slotObj.empty = function () { return emptySlot({}); };
|
|
529
|
+
}
|
|
530
|
+
if (loadingSlot) {
|
|
531
|
+
slotObj.loading = function () { return loadingSlot({}); };
|
|
532
|
+
}
|
|
521
533
|
return [
|
|
522
|
-
h(resolveComponent('vxe-table'), __assign(__assign({ ref: refTable }, tableProps), tableOns),
|
|
523
|
-
empty: function () { return emptySlot({}); }
|
|
524
|
-
} : {})
|
|
534
|
+
h(resolveComponent('vxe-table'), __assign(__assign({ ref: refTable }, tableProps), tableOns), slotObj)
|
|
525
535
|
];
|
|
526
536
|
};
|
|
527
537
|
/**
|
package/es/header/src/header.js
CHANGED
|
@@ -12,7 +12,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
12
12
|
import { createCommentVNode, defineComponent, h, ref, inject, nextTick, watch, onMounted, onUnmounted } from 'vue';
|
|
13
13
|
import XEUtils from 'xe-utils';
|
|
14
14
|
import { convertToRows } from './util';
|
|
15
|
-
import {
|
|
15
|
+
import { getColReMinWidth } from '../../table/src/util';
|
|
16
16
|
import { hasClass, getOffsetPos, addClass, removeClass } from '../../tools/dom';
|
|
17
17
|
var renderType = 'header';
|
|
18
18
|
export default defineComponent({
|
|
@@ -56,7 +56,7 @@ export default defineComponent({
|
|
|
56
56
|
var pos = getOffsetPos(dragBtnElem, wrapperElem);
|
|
57
57
|
var dragBtnWidth = dragBtnElem.clientWidth;
|
|
58
58
|
var dragBtnOffsetWidth = Math.floor(dragBtnWidth / 2);
|
|
59
|
-
var minInterval =
|
|
59
|
+
var minInterval = getColReMinWidth(params) - dragBtnOffsetWidth; // 列之间的最小间距
|
|
60
60
|
var dragMinLeft = pos.left - cell.clientWidth + dragBtnWidth + minInterval;
|
|
61
61
|
var dragPosLeft = pos.left + dragBtnOffsetWidth;
|
|
62
62
|
var domMousemove = document.onmousemove;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|