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.
@@ -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
- this.getClientData(undefined);
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
- // console.log('cotain',container)
5066
+ let headerHeight = this.gridOptions().headerHeight ?? 49;
5062
5067
  let margin = this.calcGridMargin();
5063
- let total = container + margin + 49;
5064
- const height = Math.max(total, 49 + 42 + margin);
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.http.post('webget', { code: this.props.pageCode }).subscribe((res) => {
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();