fantasy-ngzorro 1.3.2 → 1.3.4

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.
@@ -2103,6 +2103,7 @@
2103
2103
  this.jumpToNextInput(this.activeDomX, this.activeDomY);
2104
2104
  break;
2105
2105
  case 'Enter':
2106
+ console.log('this.activeDom', this.activeDom);
2106
2107
  if (this.activeDom instanceof ngZorroAntd.NzSelectComponent) {
2107
2108
  this.activeSelectedComponentOpen = this.activeDom.open;
2108
2109
  if (this.activeSelectedComponentOpen === false) {
@@ -2112,6 +2113,7 @@
2112
2113
  break;
2113
2114
  }
2114
2115
  if (this.activeDomX === this.collectDomList.length - 1) {
2116
+ console.log('执行过程qqq');
2115
2117
  this.addNewLineAndFocus();
2116
2118
  }
2117
2119
  break;
@@ -2557,7 +2559,7 @@
2557
2559
  // 如果没有formLinesData,则认为是新增
2558
2560
  if (!isEdit && (!this.formLinesData || (this.formLinesData && this.formLinesData.length === 0))) {
2559
2561
  this.tableLoading = false;
2560
- this.addFormLine();
2562
+ this.addFormLine(0, false);
2561
2563
  this.showForm = true;
2562
2564
  }
2563
2565
  else {
@@ -2750,14 +2752,17 @@
2750
2752
  };
2751
2753
  /**
2752
2754
  * @param {?=} index
2755
+ * @param {?=} isFocus
2753
2756
  * @return {?}
2754
2757
  */
2755
2758
  HdFormLinesComponent.prototype.addFormLine = /**
2756
2759
  * @param {?=} index
2760
+ * @param {?=} isFocus
2757
2761
  * @return {?}
2758
2762
  */
2759
- function (index) {
2763
+ function (index, isFocus) {
2760
2764
  var _this = this;
2765
+ if (isFocus === void 0) { isFocus = true; }
2761
2766
  this.linesFormArray.insert(index || this.linesFormArray.controls.length, this.newLineItem());
2762
2767
  this.calculateLineNumber();
2763
2768
  setTimeout((/**
@@ -2765,15 +2770,17 @@
2765
2770
  */
2766
2771
  function () {
2767
2772
  _this.collectDomData();
2768
- if (index !== null && index !== undefined) {
2769
- _this.activeDomX = index;
2770
- }
2771
- else {
2772
- _this.activeDomX = _this.collectDomList.length - 1;
2773
+ if (isFocus) {
2774
+ if (index !== null && index !== undefined) {
2775
+ _this.activeDomX = index;
2776
+ }
2777
+ else {
2778
+ _this.activeDomX = _this.collectDomList.length - 1;
2779
+ }
2780
+ _this.activeDomY = 0;
2781
+ console.log('执行过程13');
2782
+ _this.focusDom(_this.activeDomX, _this.activeDomY);
2773
2783
  }
2774
- _this.activeDomY = 0;
2775
- console.log('执行过程13');
2776
- _this.focusDom(_this.activeDomX, _this.activeDomY);
2777
2784
  }), 0);
2778
2785
  };
2779
2786
  /**