fantasy-ngzorro 1.3.2 → 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 +15 -10
- 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 +14 -11
- package/esm5/hd-form-lines/hd-form-lines.component.js +16 -11
- package/fesm2015/fantasy-ngzorro.js +13 -10
- package/fesm2015/fantasy-ngzorro.js.map +1 -1
- package/fesm5/fantasy-ngzorro.js +15 -10
- 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
|
@@ -2557,7 +2557,7 @@
|
|
|
2557
2557
|
// 如果没有formLinesData,则认为是新增
|
|
2558
2558
|
if (!isEdit && (!this.formLinesData || (this.formLinesData && this.formLinesData.length === 0))) {
|
|
2559
2559
|
this.tableLoading = false;
|
|
2560
|
-
this.addFormLine();
|
|
2560
|
+
this.addFormLine(0, false);
|
|
2561
2561
|
this.showForm = true;
|
|
2562
2562
|
}
|
|
2563
2563
|
else {
|
|
@@ -2750,14 +2750,17 @@
|
|
|
2750
2750
|
};
|
|
2751
2751
|
/**
|
|
2752
2752
|
* @param {?=} index
|
|
2753
|
+
* @param {?=} isFocus
|
|
2753
2754
|
* @return {?}
|
|
2754
2755
|
*/
|
|
2755
2756
|
HdFormLinesComponent.prototype.addFormLine = /**
|
|
2756
2757
|
* @param {?=} index
|
|
2758
|
+
* @param {?=} isFocus
|
|
2757
2759
|
* @return {?}
|
|
2758
2760
|
*/
|
|
2759
|
-
function (index) {
|
|
2761
|
+
function (index, isFocus) {
|
|
2760
2762
|
var _this = this;
|
|
2763
|
+
if (isFocus === void 0) { isFocus = true; }
|
|
2761
2764
|
this.linesFormArray.insert(index || this.linesFormArray.controls.length, this.newLineItem());
|
|
2762
2765
|
this.calculateLineNumber();
|
|
2763
2766
|
setTimeout((/**
|
|
@@ -2765,15 +2768,17 @@
|
|
|
2765
2768
|
*/
|
|
2766
2769
|
function () {
|
|
2767
2770
|
_this.collectDomData();
|
|
2768
|
-
if (
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
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);
|
|
2773
2781
|
}
|
|
2774
|
-
_this.activeDomY = 0;
|
|
2775
|
-
console.log('执行过程13');
|
|
2776
|
-
_this.focusDom(_this.activeDomX, _this.activeDomY);
|
|
2777
2782
|
}), 0);
|
|
2778
2783
|
};
|
|
2779
2784
|
/**
|