imm-element-ui 0.7.6 → 0.7.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/esm2022/lib/form/form-type/rowselector.type.mjs +2 -2
- package/esm2022/lib/grid/grid/grid.component.mjs +7 -5
- package/esm2022/lib/share/utils.mjs +4 -1
- package/fesm2022/imm-element-ui.mjs +10 -5
- package/fesm2022/imm-element-ui.mjs.map +1 -1
- package/lib/crumb-action/crumb-action.component.d.ts +1 -1
- package/lib/grid/grid/grid.component.d.ts +2 -1
- package/package.json +1 -1
|
@@ -3723,6 +3723,9 @@ const convertGrid = (thisArg, gridList, fiterPreloads) => {
|
|
|
3723
3723
|
subDataKey,
|
|
3724
3724
|
mainField,
|
|
3725
3725
|
};
|
|
3726
|
+
if (gridOptions.rowModelType == 'clientSide') {
|
|
3727
|
+
gridOptions.suppressRowVirtualisation = true;
|
|
3728
|
+
}
|
|
3726
3729
|
if (scrollHeight) {
|
|
3727
3730
|
gridOptions.scrollHeight = scrollHeight;
|
|
3728
3731
|
}
|
|
@@ -4720,7 +4723,9 @@ class GridComponent {
|
|
|
4720
4723
|
return;
|
|
4721
4724
|
untracked(() => {
|
|
4722
4725
|
this.toOptions().clientFunc = () => of({ data: this.rowData(), totalNum: this.rowData()?.length });
|
|
4723
|
-
|
|
4726
|
+
setTimeout(() => {
|
|
4727
|
+
this.getClientData(undefined);
|
|
4728
|
+
}, 100);
|
|
4724
4729
|
});
|
|
4725
4730
|
});
|
|
4726
4731
|
effect(() => {
|
|
@@ -5058,10 +5063,10 @@ class GridComponent {
|
|
|
5058
5063
|
}
|
|
5059
5064
|
ajustGridHeight() {
|
|
5060
5065
|
let container = this.getContainerHeight();
|
|
5061
|
-
|
|
5066
|
+
let headerHeight = this.gridOptions().headerHeight ?? 49;
|
|
5062
5067
|
let margin = this.calcGridMargin();
|
|
5063
|
-
let total = container + margin +
|
|
5064
|
-
const height = Math.max(total,
|
|
5068
|
+
let total = container + margin + headerHeight;
|
|
5069
|
+
const height = Math.max(total, headerHeight + 42 + margin);
|
|
5065
5070
|
this.ngZone.run(() => {
|
|
5066
5071
|
this.renderer.setStyle(this.gridRef.nativeElement, 'height', `${height + this.horizontalScrollBarHeight}px`);
|
|
5067
5072
|
this.ajustGridState();
|
|
@@ -6135,7 +6140,7 @@ class RowSelectorComponent extends AmComponent {
|
|
|
6135
6140
|
this.createRowSelector();
|
|
6136
6141
|
}
|
|
6137
6142
|
createRowSelector() {
|
|
6138
|
-
this.
|
|
6143
|
+
this.webget({ code: this.props.pageCode }).subscribe((res) => {
|
|
6139
6144
|
let content = parseFunctions(JSON.parse(res.content), this);
|
|
6140
6145
|
this.handlePopGridOptions(content.gridOptions);
|
|
6141
6146
|
this.container.clear();
|