vxe-table 3.14.0-beta.3 → 3.14.0-beta.5
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/style.css +1 -1
- package/es/table/render/index.js +12 -3
- package/es/table/src/methods.js +20 -4
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +36 -11
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/table/render/index.js +15 -3
- package/lib/table/render/index.min.js +1 -1
- package/lib/table/src/methods.js +19 -6
- package/lib/table/src/methods.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/table/render/index.ts +12 -3
- package/packages/table/src/methods.ts +21 -5
- /package/es/{iconfont.1741160631070.ttf → iconfont.1741176404780.ttf} +0 -0
- /package/es/{iconfont.1741160631070.woff → iconfont.1741176404780.woff} +0 -0
- /package/es/{iconfont.1741160631070.woff2 → iconfont.1741176404780.woff2} +0 -0
- /package/lib/{iconfont.1741160631070.ttf → iconfont.1741176404780.ttf} +0 -0
- /package/lib/{iconfont.1741160631070.woff → iconfont.1741176404780.woff} +0 -0
- /package/lib/{iconfont.1741160631070.woff2 → iconfont.1741176404780.woff2} +0 -0
package/es/table/src/methods.js
CHANGED
|
@@ -2274,10 +2274,26 @@ const Methods = {
|
|
|
2274
2274
|
* 获取父容器的高度
|
|
2275
2275
|
*/
|
|
2276
2276
|
getParentHeight() {
|
|
2277
|
-
const
|
|
2278
|
-
const
|
|
2279
|
-
const
|
|
2280
|
-
|
|
2277
|
+
const $xeTable = this;
|
|
2278
|
+
const $xeGrid = $xeTable.$xeGrid;
|
|
2279
|
+
const props = $xeTable;
|
|
2280
|
+
const { height } = props;
|
|
2281
|
+
const el = $xeTable.$refs.refElem;
|
|
2282
|
+
if (el) {
|
|
2283
|
+
const parentElem = el.parentNode;
|
|
2284
|
+
const parentPaddingSize = height === '100%' || height === 'auto' ? getPaddingTopBottomSize(parentElem) : 0;
|
|
2285
|
+
let parentWrapperHeight = 0;
|
|
2286
|
+
if (parentElem) {
|
|
2287
|
+
if ($xeGrid && hasClass(parentElem, 'vxe-grid--table-wrapper')) {
|
|
2288
|
+
parentWrapperHeight = $xeGrid.getParentHeight();
|
|
2289
|
+
}
|
|
2290
|
+
else {
|
|
2291
|
+
parentWrapperHeight = parentElem.clientHeight;
|
|
2292
|
+
}
|
|
2293
|
+
}
|
|
2294
|
+
return Math.floor(parentWrapperHeight - parentPaddingSize);
|
|
2295
|
+
}
|
|
2296
|
+
return 0;
|
|
2281
2297
|
},
|
|
2282
2298
|
/**
|
|
2283
2299
|
* 获取需要排除的高度
|
package/es/ui/index.js
CHANGED
package/es/ui/src/log.js
CHANGED
package/lib/index.umd.js
CHANGED
|
@@ -2220,7 +2220,7 @@ function getClass(property, params) {
|
|
|
2220
2220
|
;// CONCATENATED MODULE: ./packages/ui/index.ts
|
|
2221
2221
|
|
|
2222
2222
|
|
|
2223
|
-
const version = "3.14.0-beta.
|
|
2223
|
+
const version = "3.14.0-beta.5";
|
|
2224
2224
|
core_.VxeUI.version = version;
|
|
2225
2225
|
core_.VxeUI.tableVersion = version;
|
|
2226
2226
|
core_.VxeUI.setConfig({
|
|
@@ -2843,7 +2843,7 @@ function isNodeElement(elem) {
|
|
|
2843
2843
|
const {
|
|
2844
2844
|
log: log_log
|
|
2845
2845
|
} = core_.VxeUI;
|
|
2846
|
-
const log_version = `table v${"3.14.0-beta.
|
|
2846
|
+
const log_version = `table v${"3.14.0-beta.5"}`;
|
|
2847
2847
|
const warnLog = log_log.create('warn', log_version);
|
|
2848
2848
|
const errLog = log_log.create('error', log_version);
|
|
2849
2849
|
;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
|
|
@@ -7709,14 +7709,27 @@ const Methods = {
|
|
|
7709
7709
|
* 获取父容器的高度
|
|
7710
7710
|
*/
|
|
7711
7711
|
getParentHeight() {
|
|
7712
|
+
const $xeTable = this;
|
|
7713
|
+
const $xeGrid = $xeTable.$xeGrid;
|
|
7714
|
+
const props = $xeTable;
|
|
7712
7715
|
const {
|
|
7713
|
-
$el,
|
|
7714
|
-
$xegrid,
|
|
7715
7716
|
height
|
|
7716
|
-
} =
|
|
7717
|
-
const
|
|
7718
|
-
|
|
7719
|
-
|
|
7717
|
+
} = props;
|
|
7718
|
+
const el = $xeTable.$refs.refElem;
|
|
7719
|
+
if (el) {
|
|
7720
|
+
const parentElem = el.parentNode;
|
|
7721
|
+
const parentPaddingSize = height === '100%' || height === 'auto' ? getPaddingTopBottomSize(parentElem) : 0;
|
|
7722
|
+
let parentWrapperHeight = 0;
|
|
7723
|
+
if (parentElem) {
|
|
7724
|
+
if ($xeGrid && hasClass(parentElem, 'vxe-grid--table-wrapper')) {
|
|
7725
|
+
parentWrapperHeight = $xeGrid.getParentHeight();
|
|
7726
|
+
} else {
|
|
7727
|
+
parentWrapperHeight = parentElem.clientHeight;
|
|
7728
|
+
}
|
|
7729
|
+
}
|
|
7730
|
+
return Math.floor(parentWrapperHeight - parentPaddingSize);
|
|
7731
|
+
}
|
|
7732
|
+
return 0;
|
|
7720
7733
|
},
|
|
7721
7734
|
/**
|
|
7722
7735
|
* 获取需要排除的高度
|
|
@@ -30429,7 +30442,16 @@ render_renderer.mixin({
|
|
|
30429
30442
|
tableFilterDefaultMethod: handleInputFilterMethod
|
|
30430
30443
|
},
|
|
30431
30444
|
FormatNumberInput: {
|
|
30432
|
-
renderTableDefault: handleNumberCell
|
|
30445
|
+
renderTableDefault: handleNumberCell,
|
|
30446
|
+
tableFilterDefaultMethod: handleInputFilterMethod,
|
|
30447
|
+
tableExportMethod(params) {
|
|
30448
|
+
const {
|
|
30449
|
+
row,
|
|
30450
|
+
column
|
|
30451
|
+
} = params;
|
|
30452
|
+
const cellValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, column.field);
|
|
30453
|
+
return cellValue;
|
|
30454
|
+
}
|
|
30433
30455
|
},
|
|
30434
30456
|
VxeNumberInput: {
|
|
30435
30457
|
tableAutoFocus: 'input',
|
|
@@ -30583,7 +30605,9 @@ render_renderer.mixin({
|
|
|
30583
30605
|
FormatSelect: {
|
|
30584
30606
|
renderTableDefault(h, renderOpts, params) {
|
|
30585
30607
|
return getCellLabelVNs(h, renderOpts, params, getSelectCellValue(renderOpts, params));
|
|
30586
|
-
}
|
|
30608
|
+
},
|
|
30609
|
+
tableFilterDefaultMethod: handleFilterMethod,
|
|
30610
|
+
tableExportMethod: handleExportSelectMethod
|
|
30587
30611
|
},
|
|
30588
30612
|
VxeTreeSelect: {
|
|
30589
30613
|
tableAutoFocus: 'input',
|
|
@@ -30613,7 +30637,8 @@ render_renderer.mixin({
|
|
|
30613
30637
|
FormatTreeSelect: {
|
|
30614
30638
|
renderTableDefault(h, renderOpts, params) {
|
|
30615
30639
|
return getCellLabelVNs(h, renderOpts, params, getTreeSelectCellValue(renderOpts, params));
|
|
30616
|
-
}
|
|
30640
|
+
},
|
|
30641
|
+
tableExportMethod: handleExportTreeSelectMethod
|
|
30617
30642
|
},
|
|
30618
30643
|
VxeColorPicker: {
|
|
30619
30644
|
tableAutoFocus: 'input',
|