fantasy-ngzorro 1.0.40 → 1.0.41
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 +21 -25
- 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 +11 -25
- package/esm5/hd-form-lines/hd-form-lines.component.js +22 -26
- package/fesm2015/fantasy-ngzorro.js +10 -24
- package/fesm2015/fantasy-ngzorro.js.map +1 -1
- package/fesm5/fantasy-ngzorro.js +22 -26
- package/fesm5/fantasy-ngzorro.js.map +1 -1
- package/package.json +1 -1
|
@@ -1792,12 +1792,14 @@
|
|
|
1792
1792
|
*/
|
|
1793
1793
|
function () {
|
|
1794
1794
|
var _this = this;
|
|
1795
|
+
this.tableLoading = true;
|
|
1795
1796
|
/** @type {?} */
|
|
1796
1797
|
var filterValue = this.filterStr.trim().toLowerCase();
|
|
1797
1798
|
// 如果没有输入搜索字符串,则显示所有数据
|
|
1798
1799
|
if (!filterValue) {
|
|
1799
1800
|
this.hideForm();
|
|
1800
1801
|
this.addExistingFormLines(this.formLinesData);
|
|
1802
|
+
this.tableLoading = false;
|
|
1801
1803
|
return;
|
|
1802
1804
|
}
|
|
1803
1805
|
// 根据搜索字符串过滤数据
|
|
@@ -1807,32 +1809,25 @@
|
|
|
1807
1809
|
* @return {?}
|
|
1808
1810
|
*/
|
|
1809
1811
|
function (data) {
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
* @param {?} item
|
|
1820
|
-
* @return {?}
|
|
1821
|
-
*/
|
|
1822
|
-
function (item) { return item.name === key; }))) {
|
|
1823
|
-
acc[key] = value ? value.toString().toLowerCase() : '';
|
|
1812
|
+
var e_1, _a;
|
|
1813
|
+
try {
|
|
1814
|
+
for (var _b = __values(_this.formLines), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
1815
|
+
var item = _c.value;
|
|
1816
|
+
/** @type {?} */
|
|
1817
|
+
var value = data[item.name] ? data[item.name].toString().toLowerCase() : '';
|
|
1818
|
+
if (value.includes(filterValue)) {
|
|
1819
|
+
return true;
|
|
1820
|
+
}
|
|
1824
1821
|
}
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
*/
|
|
1835
|
-
function (val) { return val.includes(filterValue); }));
|
|
1822
|
+
}
|
|
1823
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
1824
|
+
finally {
|
|
1825
|
+
try {
|
|
1826
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
1827
|
+
}
|
|
1828
|
+
finally { if (e_1) throw e_1.error; }
|
|
1829
|
+
}
|
|
1830
|
+
return false;
|
|
1836
1831
|
}));
|
|
1837
1832
|
// 如果没有匹配的数据,则显示空白表单行
|
|
1838
1833
|
if (filteredData.length === 0) {
|
|
@@ -1843,6 +1838,7 @@
|
|
|
1843
1838
|
this.hideForm();
|
|
1844
1839
|
this.addExistingFormLines(filteredData);
|
|
1845
1840
|
}
|
|
1841
|
+
this.tableLoading = false;
|
|
1846
1842
|
};
|
|
1847
1843
|
/**
|
|
1848
1844
|
* @return {?}
|