fantasy-ngzorro 1.3.53 → 1.4.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.
@@ -5064,13 +5064,22 @@
5064
5064
  * @return {?}
5065
5065
  */
5066
5066
  function (value) {
5067
- _this.tableCacheOption = value;
5068
- if (_this.tableCacheOption.pageSize && _this.tableCacheOption.pageSize > 10) {
5069
- _this.tablePageSize = _this.tableCacheOption.pageSize;
5070
- _this.tablePageSizeChange.emit(_this.tablePageSize);
5067
+ if (value) {
5068
+ _this.tableCacheOption = value;
5069
+ if (_this.tableCacheOption.pageSize && _this.tableCacheOption.pageSize > 10) {
5070
+ _this.tablePageSize = _this.tableCacheOption.pageSize;
5071
+ console.log('getInitLocalforage触发tablePageSizeChange事件1');
5072
+ _this.tablePageSizeChange.emit(_this.tablePageSize);
5073
+ }
5074
+ if (!_this.tableCacheOption.colWidths) {
5075
+ _this.tableCacheOption.colWidths = new Map();
5076
+ }
5071
5077
  }
5072
- if (!_this.tableCacheOption.colWidths) {
5073
- _this.tableCacheOption.colWidths = new Map();
5078
+ else {
5079
+ _this.tableCacheOption = new TableCacheOption();
5080
+ _this.tableCacheOption.pageSize = _this.tablePageSize;
5081
+ console.log('getInitLocalforage触发tablePageSizeChange事件2');
5082
+ _this.tablePageSizeChange.emit(_this.tablePageSize);
5074
5083
  }
5075
5084
  _this.initTable();
5076
5085
  })).catch((/**
@@ -5078,6 +5087,8 @@
5078
5087
  * @return {?}
5079
5088
  */
5080
5089
  function (err) {
5090
+ _this.tableCacheOption = new TableCacheOption();
5091
+ _this.tableCacheOption.pageSize = _this.tablePageSize;
5081
5092
  _this.initTable();
5082
5093
  }));
5083
5094
  };
@@ -5166,7 +5177,7 @@
5166
5177
  this.showListNodes = false;
5167
5178
  this.nowListNodes = [];
5168
5179
  this.hideListNodes = [];
5169
- if (this.tableCacheOption.cols) {
5180
+ if (this.tableCacheOption && this.tableCacheOption.cols) {
5170
5181
  var _a = this.tableColsCache.reduce((/**
5171
5182
  * @param {?} acc
5172
5183
  * @param {?} item
@@ -5197,7 +5208,7 @@
5197
5208
  * @return {?}
5198
5209
  */
5199
5210
  function (element, index) {
5200
- if (_this.tableCacheOption.cols) {
5211
+ if (_this.tableCacheOption && _this.tableCacheOption.cols) {
5201
5212
  element.isShow = _this.tableCacheOption.cols.includes(element.title) ? true : false;
5202
5213
  if (element.isShow) {
5203
5214
  _this.nowListNodes.push({
@@ -5669,9 +5680,11 @@
5669
5680
  this.tableCacheOption.pageSize = this.tablePageSize;
5670
5681
  this.saveTableCacheOption();
5671
5682
  if (reset) {
5683
+ console.log('search触发tablePageSizeChange事件1');
5672
5684
  this.tablePageSizeChange.emit(this.tablePageSize);
5673
5685
  }
5674
5686
  else {
5687
+ console.log('search触发tablePageSizeChange事件2');
5675
5688
  this.tablePageIndexChange.emit(this.tablePageIndex);
5676
5689
  // 触发父组件查询事件
5677
5690
  this.tableSearchEvent.emit(reset);