fantasy-ngzorro 1.3.10 → 1.3.12
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 +29 -31
- 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 +30 -32
- package/esm5/hd-form-lines/hd-form-lines.component.js +30 -32
- package/fesm2015/fantasy-ngzorro.js +29 -31
- package/fesm2015/fantasy-ngzorro.js.map +1 -1
- package/fesm5/fantasy-ngzorro.js +29 -31
- package/fesm5/fantasy-ngzorro.js.map +1 -1
- package/package.json +1 -1
|
@@ -1708,7 +1708,7 @@
|
|
|
1708
1708
|
function (value) {
|
|
1709
1709
|
var _this = this;
|
|
1710
1710
|
this.activeSelectedComponentOpen = value;
|
|
1711
|
-
if (value === true &&
|
|
1711
|
+
if (value === true && document.querySelectorAll('.hd-option-header').length === 0) {
|
|
1712
1712
|
setTimeout((/**
|
|
1713
1713
|
* @return {?}
|
|
1714
1714
|
*/
|
|
@@ -1742,38 +1742,36 @@
|
|
|
1742
1742
|
var hdOptionHeader = document.createElement('div');
|
|
1743
1743
|
hdOptionHeader.className = 'hd-option-header';
|
|
1744
1744
|
// 检查条件,确定是否要创建子元素
|
|
1745
|
-
|
|
1746
|
-
var selectListLength = (formItem && formItem.selectOption && formItem.selectOption.selectList && formItem.selectOption.selectList.length) || 0;
|
|
1745
|
+
// const selectListLength = (formItem && formItem.selectOption && formItem.selectOption.selectList && formItem.selectOption.selectList.length) || 0;
|
|
1747
1746
|
// if
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1747
|
+
// const lineValueLength = (line.get(formItem.selectOption.selectListName) && line.get(formItem.selectOption.selectListName).value && line.get(formItem.selectOption.selectListName).value.length) || 0;
|
|
1748
|
+
// if (selectListLength > 0 || lineValueLength > 0) {
|
|
1749
|
+
// 遍历 tableColumns 创建内部列 div
|
|
1750
|
+
formItem.selectOption.tableColumns.forEach((/**
|
|
1751
|
+
* @param {?} selectOptionTableColumn
|
|
1752
|
+
* @param {?} index
|
|
1753
|
+
* @return {?}
|
|
1754
|
+
*/
|
|
1755
|
+
function (selectOptionTableColumn, index) {
|
|
1756
|
+
/** @type {?} */
|
|
1757
|
+
var columnDiv = document.createElement('div');
|
|
1758
|
+
columnDiv.className = 'hd-option-header-column';
|
|
1759
|
+
// 设置宽度样式
|
|
1760
|
+
/** @type {?} */
|
|
1761
|
+
var width = (selectOptionTableColumn && selectOptionTableColumn.width) ?
|
|
1762
|
+
(selectOptionTableColumn && selectOptionTableColumn.width) + ((index === 0 && !(selectOptionTableColumn && selectOptionTableColumn.label)) ? 12 : 0) + 'px'
|
|
1763
|
+
: 'unset';
|
|
1764
|
+
columnDiv.style.width = width;
|
|
1765
|
+
// 添加列标签内容
|
|
1766
|
+
if (selectOptionTableColumn.label) {
|
|
1762
1767
|
/** @type {?} */
|
|
1763
|
-
var
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
var labelText = document.createTextNode(selectOptionTableColumn.label);
|
|
1771
|
-
columnDiv.appendChild(labelText);
|
|
1772
|
-
}
|
|
1773
|
-
// 添加列 div 到外部 div
|
|
1774
|
-
hdOptionHeader.appendChild(columnDiv);
|
|
1775
|
-
}));
|
|
1776
|
-
}
|
|
1768
|
+
var labelText = document.createTextNode(selectOptionTableColumn.label);
|
|
1769
|
+
columnDiv.appendChild(labelText);
|
|
1770
|
+
}
|
|
1771
|
+
// 添加列 div 到外部 div
|
|
1772
|
+
hdOptionHeader.appendChild(columnDiv);
|
|
1773
|
+
}));
|
|
1774
|
+
// }
|
|
1777
1775
|
return hdOptionHeader;
|
|
1778
1776
|
};
|
|
1779
1777
|
/**
|