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.
- package/bundles/fantasy-ngzorro.umd.js +27 -9
- package/bundles/fantasy-ngzorro.umd.js.map +1 -1
- package/bundles/fantasy-ngzorro.umd.min.js +1 -1
- package/bundles/fantasy-ngzorro.umd.min.js.map +1 -1
- package/esm2015/hd-form-lines/hd-form-lines.component.js +26 -10
- package/esm5/hd-form-lines/hd-form-lines.component.js +28 -10
- package/fesm2015/fantasy-ngzorro.js +25 -9
- package/fesm2015/fantasy-ngzorro.js.map +1 -1
- package/fesm5/fantasy-ngzorro.js +27 -9
- package/fesm5/fantasy-ngzorro.js.map +1 -1
- package/hd-form-lines/hd-form-lines.component.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1764,10 +1764,12 @@
|
|
|
1764
1764
|
}
|
|
1765
1765
|
else {
|
|
1766
1766
|
if (y === this.collectDomList[0].length - 1) {
|
|
1767
|
+
console.log('执行过程1');
|
|
1767
1768
|
// 如果是最后一列,则跳转到下一行第一个输入框
|
|
1768
1769
|
this.focusDom(x + 1, 0, 'right');
|
|
1769
1770
|
}
|
|
1770
1771
|
else {
|
|
1772
|
+
console.log('执行过程2');
|
|
1771
1773
|
// 如果不是最后一列,则跳转到当前行下一个输入框
|
|
1772
1774
|
this.focusDom(x, y + 1, 'right');
|
|
1773
1775
|
}
|
|
@@ -1802,6 +1804,7 @@
|
|
|
1802
1804
|
*/
|
|
1803
1805
|
function () {
|
|
1804
1806
|
_this.collectDomData();
|
|
1807
|
+
console.log('执行过程3');
|
|
1805
1808
|
_this.focusDom(0, 0, 'right');
|
|
1806
1809
|
}), 0);
|
|
1807
1810
|
}
|
|
@@ -1814,6 +1817,7 @@
|
|
|
1814
1817
|
*/
|
|
1815
1818
|
function () {
|
|
1816
1819
|
_this.collectDomData();
|
|
1820
|
+
console.log('执行过程4');
|
|
1817
1821
|
_this.focusDom(0, 0);
|
|
1818
1822
|
}), 0);
|
|
1819
1823
|
}
|
|
@@ -1851,6 +1855,7 @@
|
|
|
1851
1855
|
*/
|
|
1852
1856
|
function () {
|
|
1853
1857
|
_this.collectDomData();
|
|
1858
|
+
console.log('执行过程5');
|
|
1854
1859
|
_this.focusDom(_this.collectDomList.length - 1, _this.collectDomList[0].length - 1);
|
|
1855
1860
|
}), 0);
|
|
1856
1861
|
}
|
|
@@ -1858,10 +1863,12 @@
|
|
|
1858
1863
|
}
|
|
1859
1864
|
else {
|
|
1860
1865
|
if (y === 0) {
|
|
1866
|
+
console.log('执行过程6');
|
|
1861
1867
|
// 如果是第一列,则跳转到上一行最后一个输入框
|
|
1862
1868
|
this.focusDom(x - 1, this.collectDomList[0].length - 1, 'left');
|
|
1863
1869
|
}
|
|
1864
1870
|
else {
|
|
1871
|
+
console.log('执行过程7');
|
|
1865
1872
|
// 如果不是第一列,则跳转到当前行上一个输入框
|
|
1866
1873
|
this.focusDom(x, y - 1, 'left');
|
|
1867
1874
|
}
|
|
@@ -2075,6 +2082,7 @@
|
|
|
2075
2082
|
return;
|
|
2076
2083
|
}
|
|
2077
2084
|
if (this.activeDomX !== 0) {
|
|
2085
|
+
console.log('执行过程8');
|
|
2078
2086
|
this.focusDom(this.activeDomX - 1, this.activeDomY);
|
|
2079
2087
|
}
|
|
2080
2088
|
break;
|
|
@@ -2084,6 +2092,7 @@
|
|
|
2084
2092
|
return;
|
|
2085
2093
|
}
|
|
2086
2094
|
if (this.activeDomX !== this.collectDomList.length - 1) {
|
|
2095
|
+
console.log('执行过程9');
|
|
2087
2096
|
this.focusDom(this.activeDomX + 1, this.activeDomY);
|
|
2088
2097
|
}
|
|
2089
2098
|
break;
|
|
@@ -2097,6 +2106,7 @@
|
|
|
2097
2106
|
if (this.activeDom instanceof ngZorroAntd.NzSelectComponent) {
|
|
2098
2107
|
this.activeSelectedComponentOpen = this.activeDom.open;
|
|
2099
2108
|
if (this.activeSelectedComponentOpen === false) {
|
|
2109
|
+
console.log('执行过程10');
|
|
2100
2110
|
this.focusDom(this.activeDomX, this.activeDomY);
|
|
2101
2111
|
}
|
|
2102
2112
|
break;
|
|
@@ -2120,10 +2130,12 @@
|
|
|
2120
2130
|
* @return {?}
|
|
2121
2131
|
*/
|
|
2122
2132
|
function () {
|
|
2133
|
+
console.log('执行过程11');
|
|
2123
2134
|
_this.focusDom(_this.activeDomX, _this.activeDomY);
|
|
2124
2135
|
}), 0);
|
|
2125
2136
|
}
|
|
2126
2137
|
else {
|
|
2138
|
+
console.log('执行过程12');
|
|
2127
2139
|
_this.focusDom(_this.activeDomX, _this.activeDomY);
|
|
2128
2140
|
}
|
|
2129
2141
|
}
|
|
@@ -2545,7 +2557,7 @@
|
|
|
2545
2557
|
// 如果没有formLinesData,则认为是新增
|
|
2546
2558
|
if (!isEdit && (!this.formLinesData || (this.formLinesData && this.formLinesData.length === 0))) {
|
|
2547
2559
|
this.tableLoading = false;
|
|
2548
|
-
this.addFormLine();
|
|
2560
|
+
this.addFormLine(0, false);
|
|
2549
2561
|
this.showForm = true;
|
|
2550
2562
|
}
|
|
2551
2563
|
else {
|
|
@@ -2738,14 +2750,17 @@
|
|
|
2738
2750
|
};
|
|
2739
2751
|
/**
|
|
2740
2752
|
* @param {?=} index
|
|
2753
|
+
* @param {?=} isFocus
|
|
2741
2754
|
* @return {?}
|
|
2742
2755
|
*/
|
|
2743
2756
|
HdFormLinesComponent.prototype.addFormLine = /**
|
|
2744
2757
|
* @param {?=} index
|
|
2758
|
+
* @param {?=} isFocus
|
|
2745
2759
|
* @return {?}
|
|
2746
2760
|
*/
|
|
2747
|
-
function (index) {
|
|
2761
|
+
function (index, isFocus) {
|
|
2748
2762
|
var _this = this;
|
|
2763
|
+
if (isFocus === void 0) { isFocus = true; }
|
|
2749
2764
|
this.linesFormArray.insert(index || this.linesFormArray.controls.length, this.newLineItem());
|
|
2750
2765
|
this.calculateLineNumber();
|
|
2751
2766
|
setTimeout((/**
|
|
@@ -2753,14 +2768,17 @@
|
|
|
2753
2768
|
*/
|
|
2754
2769
|
function () {
|
|
2755
2770
|
_this.collectDomData();
|
|
2756
|
-
if (
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2771
|
+
if (isFocus) {
|
|
2772
|
+
if (index !== null && index !== undefined) {
|
|
2773
|
+
_this.activeDomX = index;
|
|
2774
|
+
}
|
|
2775
|
+
else {
|
|
2776
|
+
_this.activeDomX = _this.collectDomList.length - 1;
|
|
2777
|
+
}
|
|
2778
|
+
_this.activeDomY = 0;
|
|
2779
|
+
console.log('执行过程13');
|
|
2780
|
+
_this.focusDom(_this.activeDomX, _this.activeDomY);
|
|
2761
2781
|
}
|
|
2762
|
-
_this.activeDomY = 0;
|
|
2763
|
-
_this.focusDom(_this.activeDomX, _this.activeDomY);
|
|
2764
2782
|
}), 0);
|
|
2765
2783
|
};
|
|
2766
2784
|
/**
|