@oinone/kunlun-vue-admin-base 6.2.1 → 6.2.2
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/dist/oinone-kunlun-vue-admin-base.css +1 -1
- package/dist/oinone-kunlun-vue-admin-base.esm.js +10 -7
- package/dist/oinone-kunlun-vue-admin-base.scss +1 -1
- package/dist/types/src/field/form/float/Plat.vue.d.ts +2 -2
- package/dist/types/src/view/table/TableWidget.d.ts +4 -1
- package/package.json +9 -9
- package/src/view/table/DefaultTable.vue +4 -2
- package/src/view/table/TableWidget.ts +6 -5
|
@@ -68227,8 +68227,11 @@ const __default__$1 = defineComponent({
|
|
|
68227
68227
|
const rightFixedRows = tableEle.querySelectorAll('.vxe-table--fixed-wrapper .vxe-table--fixed-left-wrapper .vxe-body--row');
|
|
68228
68228
|
rows.forEach((row, index) => {
|
|
68229
68229
|
const height = row.clientHeight;
|
|
68230
|
+
row.style.height = 'auto';
|
|
68230
68231
|
const leftFixedRow = leftFixedRows[index];
|
|
68231
68232
|
const rightFixedRow = rightFixedRows[index];
|
|
68233
|
+
leftFixedRow && (leftFixedRow.style.height = 'auto');
|
|
68234
|
+
rightFixedRow && (rightFixedRow.style.height = 'auto');
|
|
68232
68235
|
const maxHeight = Math.max(height || 0, (leftFixedRow === null || leftFixedRow === void 0 ? void 0 : leftFixedRow.clientHeight) || 0, (rightFixedRow === null || rightFixedRow === void 0 ? void 0 : rightFixedRow.clientHeight) || 0, props.minLineHeight || 0);
|
|
68233
68236
|
if (leftFixedRow && leftFixedRow.clientHeight !== maxHeight) {
|
|
68234
68237
|
leftFixedRow.style.height = `${maxHeight}px`;
|
|
@@ -68276,11 +68279,10 @@ const __default__$1 = defineComponent({
|
|
|
68276
68279
|
window.removeEventListener('resize', calcTableColumnHeight);
|
|
68277
68280
|
resizeObserver.unobserve(tableContentElement.value);
|
|
68278
68281
|
});
|
|
68279
|
-
|
|
68282
|
+
watch(() => props.dataSource, (v) => {
|
|
68280
68283
|
if (v && v.length) {
|
|
68281
68284
|
nextTick(() => {
|
|
68282
68285
|
calcTableColumnHeight();
|
|
68283
|
-
stop();
|
|
68284
68286
|
});
|
|
68285
68287
|
}
|
|
68286
68288
|
}, { immediate: true });
|
|
@@ -68546,17 +68548,18 @@ let TableWidget = class TableWidget extends BaseTableWidget {
|
|
|
68546
68548
|
}
|
|
68547
68549
|
return undefined;
|
|
68548
68550
|
}
|
|
68551
|
+
/**
|
|
68552
|
+
* 表格行高是否自适应,默认开启
|
|
68553
|
+
*/
|
|
68549
68554
|
get autoLineHeight() {
|
|
68550
|
-
const autoLineHeight = Optional.ofNullable(this.getDsl().autoLineHeight)
|
|
68551
|
-
.map(BooleanHelper.toBoolean)
|
|
68552
|
-
.orElse(undefined);
|
|
68555
|
+
const autoLineHeight = Optional.ofNullable(this.getDsl().autoLineHeight).map(BooleanHelper.toBoolean).orElse(true);
|
|
68553
68556
|
if (typeof autoLineHeight === 'boolean') {
|
|
68554
68557
|
return autoLineHeight;
|
|
68555
68558
|
}
|
|
68556
68559
|
if (typeof this.tableConfig.autoLineHeight === 'boolean') {
|
|
68557
68560
|
return this.tableConfig.autoLineHeight;
|
|
68558
68561
|
}
|
|
68559
|
-
return
|
|
68562
|
+
return true;
|
|
68560
68563
|
}
|
|
68561
68564
|
get enableSequence() {
|
|
68562
68565
|
return Optional.ofNullable(this.getDsl().enableSequence).map(BooleanHelper.toBoolean).orElse(false);
|
|
@@ -69306,7 +69309,7 @@ __decorate([
|
|
|
69306
69309
|
], TableWidget.prototype, "minLineHeight", null);
|
|
69307
69310
|
__decorate([
|
|
69308
69311
|
Widget.Reactive(),
|
|
69309
|
-
__metadata("design:type",
|
|
69312
|
+
__metadata("design:type", Boolean),
|
|
69310
69313
|
__metadata("design:paramtypes", [])
|
|
69311
69314
|
], TableWidget.prototype, "autoLineHeight", null);
|
|
69312
69315
|
__decorate([
|