fantasy-ngzorro 1.3.1 → 1.3.3

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.
@@ -1559,10 +1559,12 @@ var HdFormLinesComponent = /** @class */ (function () {
1559
1559
  }
1560
1560
  else {
1561
1561
  if (y === this.collectDomList[0].length - 1) {
1562
+ console.log('执行过程1');
1562
1563
  // 如果是最后一列,则跳转到下一行第一个输入框
1563
1564
  this.focusDom(x + 1, 0, 'right');
1564
1565
  }
1565
1566
  else {
1567
+ console.log('执行过程2');
1566
1568
  // 如果不是最后一列,则跳转到当前行下一个输入框
1567
1569
  this.focusDom(x, y + 1, 'right');
1568
1570
  }
@@ -1597,6 +1599,7 @@ var HdFormLinesComponent = /** @class */ (function () {
1597
1599
  */
1598
1600
  function () {
1599
1601
  _this.collectDomData();
1602
+ console.log('执行过程3');
1600
1603
  _this.focusDom(0, 0, 'right');
1601
1604
  }), 0);
1602
1605
  }
@@ -1609,6 +1612,7 @@ var HdFormLinesComponent = /** @class */ (function () {
1609
1612
  */
1610
1613
  function () {
1611
1614
  _this.collectDomData();
1615
+ console.log('执行过程4');
1612
1616
  _this.focusDom(0, 0);
1613
1617
  }), 0);
1614
1618
  }
@@ -1646,6 +1650,7 @@ var HdFormLinesComponent = /** @class */ (function () {
1646
1650
  */
1647
1651
  function () {
1648
1652
  _this.collectDomData();
1653
+ console.log('执行过程5');
1649
1654
  _this.focusDom(_this.collectDomList.length - 1, _this.collectDomList[0].length - 1);
1650
1655
  }), 0);
1651
1656
  }
@@ -1653,10 +1658,12 @@ var HdFormLinesComponent = /** @class */ (function () {
1653
1658
  }
1654
1659
  else {
1655
1660
  if (y === 0) {
1661
+ console.log('执行过程6');
1656
1662
  // 如果是第一列,则跳转到上一行最后一个输入框
1657
1663
  this.focusDom(x - 1, this.collectDomList[0].length - 1, 'left');
1658
1664
  }
1659
1665
  else {
1666
+ console.log('执行过程7');
1660
1667
  // 如果不是第一列,则跳转到当前行上一个输入框
1661
1668
  this.focusDom(x, y - 1, 'left');
1662
1669
  }
@@ -1870,6 +1877,7 @@ var HdFormLinesComponent = /** @class */ (function () {
1870
1877
  return;
1871
1878
  }
1872
1879
  if (this.activeDomX !== 0) {
1880
+ console.log('执行过程8');
1873
1881
  this.focusDom(this.activeDomX - 1, this.activeDomY);
1874
1882
  }
1875
1883
  break;
@@ -1879,6 +1887,7 @@ var HdFormLinesComponent = /** @class */ (function () {
1879
1887
  return;
1880
1888
  }
1881
1889
  if (this.activeDomX !== this.collectDomList.length - 1) {
1890
+ console.log('执行过程9');
1882
1891
  this.focusDom(this.activeDomX + 1, this.activeDomY);
1883
1892
  }
1884
1893
  break;
@@ -1892,6 +1901,7 @@ var HdFormLinesComponent = /** @class */ (function () {
1892
1901
  if (this.activeDom instanceof NzSelectComponent) {
1893
1902
  this.activeSelectedComponentOpen = this.activeDom.open;
1894
1903
  if (this.activeSelectedComponentOpen === false) {
1904
+ console.log('执行过程10');
1895
1905
  this.focusDom(this.activeDomX, this.activeDomY);
1896
1906
  }
1897
1907
  break;
@@ -1915,10 +1925,12 @@ var HdFormLinesComponent = /** @class */ (function () {
1915
1925
  * @return {?}
1916
1926
  */
1917
1927
  function () {
1928
+ console.log('执行过程11');
1918
1929
  _this.focusDom(_this.activeDomX, _this.activeDomY);
1919
1930
  }), 0);
1920
1931
  }
1921
1932
  else {
1933
+ console.log('执行过程12');
1922
1934
  _this.focusDom(_this.activeDomX, _this.activeDomY);
1923
1935
  }
1924
1936
  }
@@ -2340,7 +2352,7 @@ var HdFormLinesComponent = /** @class */ (function () {
2340
2352
  // 如果没有formLinesData,则认为是新增
2341
2353
  if (!isEdit && (!this.formLinesData || (this.formLinesData && this.formLinesData.length === 0))) {
2342
2354
  this.tableLoading = false;
2343
- this.addFormLine();
2355
+ this.addFormLine(0, false);
2344
2356
  this.showForm = true;
2345
2357
  }
2346
2358
  else {
@@ -2533,14 +2545,17 @@ var HdFormLinesComponent = /** @class */ (function () {
2533
2545
  };
2534
2546
  /**
2535
2547
  * @param {?=} index
2548
+ * @param {?=} isFocus
2536
2549
  * @return {?}
2537
2550
  */
2538
2551
  HdFormLinesComponent.prototype.addFormLine = /**
2539
2552
  * @param {?=} index
2553
+ * @param {?=} isFocus
2540
2554
  * @return {?}
2541
2555
  */
2542
- function (index) {
2556
+ function (index, isFocus) {
2543
2557
  var _this = this;
2558
+ if (isFocus === void 0) { isFocus = true; }
2544
2559
  this.linesFormArray.insert(index || this.linesFormArray.controls.length, this.newLineItem());
2545
2560
  this.calculateLineNumber();
2546
2561
  setTimeout((/**
@@ -2548,14 +2563,17 @@ var HdFormLinesComponent = /** @class */ (function () {
2548
2563
  */
2549
2564
  function () {
2550
2565
  _this.collectDomData();
2551
- if (index !== null && index !== undefined) {
2552
- _this.activeDomX = index;
2553
- }
2554
- else {
2555
- _this.activeDomX = _this.collectDomList.length - 1;
2566
+ if (isFocus) {
2567
+ if (index !== null && index !== undefined) {
2568
+ _this.activeDomX = index;
2569
+ }
2570
+ else {
2571
+ _this.activeDomX = _this.collectDomList.length - 1;
2572
+ }
2573
+ _this.activeDomY = 0;
2574
+ console.log('执行过程13');
2575
+ _this.focusDom(_this.activeDomX, _this.activeDomY);
2556
2576
  }
2557
- _this.activeDomY = 0;
2558
- _this.focusDom(_this.activeDomX, _this.activeDomY);
2559
2577
  }), 0);
2560
2578
  };
2561
2579
  /**