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
package/fesm5/fantasy-ngzorro.js
CHANGED
|
@@ -2352,7 +2352,7 @@ var HdFormLinesComponent = /** @class */ (function () {
|
|
|
2352
2352
|
// 如果没有formLinesData,则认为是新增
|
|
2353
2353
|
if (!isEdit && (!this.formLinesData || (this.formLinesData && this.formLinesData.length === 0))) {
|
|
2354
2354
|
this.tableLoading = false;
|
|
2355
|
-
this.addFormLine();
|
|
2355
|
+
this.addFormLine(0, false);
|
|
2356
2356
|
this.showForm = true;
|
|
2357
2357
|
}
|
|
2358
2358
|
else {
|
|
@@ -2545,14 +2545,17 @@ var HdFormLinesComponent = /** @class */ (function () {
|
|
|
2545
2545
|
};
|
|
2546
2546
|
/**
|
|
2547
2547
|
* @param {?=} index
|
|
2548
|
+
* @param {?=} isFocus
|
|
2548
2549
|
* @return {?}
|
|
2549
2550
|
*/
|
|
2550
2551
|
HdFormLinesComponent.prototype.addFormLine = /**
|
|
2551
2552
|
* @param {?=} index
|
|
2553
|
+
* @param {?=} isFocus
|
|
2552
2554
|
* @return {?}
|
|
2553
2555
|
*/
|
|
2554
|
-
function (index) {
|
|
2556
|
+
function (index, isFocus) {
|
|
2555
2557
|
var _this = this;
|
|
2558
|
+
if (isFocus === void 0) { isFocus = true; }
|
|
2556
2559
|
this.linesFormArray.insert(index || this.linesFormArray.controls.length, this.newLineItem());
|
|
2557
2560
|
this.calculateLineNumber();
|
|
2558
2561
|
setTimeout((/**
|
|
@@ -2560,15 +2563,17 @@ var HdFormLinesComponent = /** @class */ (function () {
|
|
|
2560
2563
|
*/
|
|
2561
2564
|
function () {
|
|
2562
2565
|
_this.collectDomData();
|
|
2563
|
-
if (
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
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);
|
|
2568
2576
|
}
|
|
2569
|
-
_this.activeDomY = 0;
|
|
2570
|
-
console.log('执行过程13');
|
|
2571
|
-
_this.focusDom(_this.activeDomX, _this.activeDomY);
|
|
2572
2577
|
}), 0);
|
|
2573
2578
|
};
|
|
2574
2579
|
/**
|