fantasy-ngzorro 1.1.14 → 1.1.16

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.
@@ -3346,6 +3346,7 @@
3346
3346
  var OperateBtn = /** @class */ (function () {
3347
3347
  function OperateBtn() {
3348
3348
  this.showConfirm = false;
3349
+ this.isRepeat = false; // 是否和别的按钮有显示冲突,譬如:开启,关闭需要再关闭按钮加一个这个属性
3349
3350
  }
3350
3351
  return OperateBtn;
3351
3352
  }());
@@ -3355,6 +3356,8 @@
3355
3356
  /** @type {?} */
3356
3357
  OperateBtn.prototype.showConfirm;
3357
3358
  /** @type {?} */
3359
+ OperateBtn.prototype.isRepeat;
3360
+ /** @type {?} */
3358
3361
  OperateBtn.prototype.click;
3359
3362
  /** @type {?} */
3360
3363
  OperateBtn.prototype.permission;
@@ -3422,8 +3425,9 @@
3422
3425
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3423
3426
  */
3424
3427
  var HdTableComponent = /** @class */ (function () {
3425
- function HdTableComponent(commonSessionService) {
3428
+ function HdTableComponent(cdr, commonSessionService) {
3426
3429
  var _this = this;
3430
+ this.cdr = cdr;
3427
3431
  this.commonSessionService = commonSessionService;
3428
3432
  this.tableCols = [];
3429
3433
  this.showSelected = false;
@@ -3558,7 +3562,6 @@
3558
3562
  _this.tableCacheOption = value;
3559
3563
  if (_this.tableCacheOption.pageSize && _this.tableCacheOption.pageSize > 10) {
3560
3564
  _this.tablePageSize = _this.tableCacheOption.pageSize;
3561
- _this.tablePageSizeChange.emit(_this.tablePageSize);
3562
3565
  }
3563
3566
  else {
3564
3567
  _this.tablePageSize = _this.tableCacheOption.pageSize || 10;
@@ -3566,6 +3569,7 @@
3566
3569
  if (!_this.tableCacheOption.colWidths) {
3567
3570
  _this.tableCacheOption.colWidths = new Map();
3568
3571
  }
3572
+ _this.tablePageSizeChange.emit(_this.tablePageSize);
3569
3573
  _this.initTable();
3570
3574
  })).catch((/**
3571
3575
  * @param {?} err
@@ -3576,6 +3580,7 @@
3576
3580
  _this.tablePageSize = 10;
3577
3581
  _this.tableCacheOption.pageSize = 10;
3578
3582
  _this.tableCacheOption.colWidths = new Map();
3583
+ _this.tablePageSizeChange.emit(_this.tablePageSize);
3579
3584
  _this.initTable();
3580
3585
  }));
3581
3586
  };
@@ -4005,7 +4010,9 @@
4005
4010
  * @return {?}
4006
4011
  */
4007
4012
  function (btn) {
4008
- textStr_1 += btn.name;
4013
+ if (!btn.isRepeat) {
4014
+ textStr_1 += btn.name;
4015
+ }
4009
4016
  }));
4010
4017
  /** @type {?} */
4011
4018
  var span = document.createElement('a');
@@ -4016,7 +4023,11 @@
4016
4023
  span.style.display = 'inline-block'; // 将样式修改为 inline-block
4017
4024
  span.innerText = textStr_1;
4018
4025
  document.body.appendChild(span);
4019
- operateCol.width = span.offsetWidth + (operateCol.btnList.length - 1) * 4 + 16;
4026
+ operateCol.width = span.offsetWidth + (operateCol.btnList.filter((/**
4027
+ * @param {?} item
4028
+ * @return {?}
4029
+ */
4030
+ function (item) { return !item.isRepeat; })).length - 1) * 4 + 16;
4020
4031
  span.style.display = 'none';
4021
4032
  document.body.removeChild(span);
4022
4033
  }
@@ -4266,6 +4277,7 @@
4266
4277
  ];
4267
4278
  /** @nocollapse */
4268
4279
  HdTableComponent.ctorParameters = function () { return [
4280
+ { type: core.ChangeDetectorRef },
4269
4281
  { type: CommonSessionService }
4270
4282
  ]; };
4271
4283
  HdTableComponent.propDecorators = {
@@ -4392,6 +4404,11 @@
4392
4404
  HdTableComponent.prototype.localforage;
4393
4405
  /** @type {?} */
4394
4406
  HdTableComponent.prototype.beforeDrop;
4407
+ /**
4408
+ * @type {?}
4409
+ * @private
4410
+ */
4411
+ HdTableComponent.prototype.cdr;
4395
4412
  /**
4396
4413
  * @type {?}
4397
4414
  * @private