form-custom-test 3.0.53 → 3.0.54
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/dist/designer.es.js +42 -6
- package/dist/designer.umd.js +3 -3
- package/dist/render.es.js +23 -4
- package/dist/render.umd.js +76 -76
- package/package.json +1 -1
package/dist/render.es.js
CHANGED
|
@@ -8864,8 +8864,27 @@ var fieldMixin = {
|
|
|
8864
8864
|
return formRef && typeof formRef.findColByName === "function" ? formRef.findColByName(null, colName) : null;
|
|
8865
8865
|
},
|
|
8866
8866
|
setColHidden(colName, hidden) {
|
|
8867
|
-
const
|
|
8868
|
-
|
|
8867
|
+
const hiddenVal = !!hidden;
|
|
8868
|
+
console.log("colName", colName);
|
|
8869
|
+
if (Array.isArray(colName)) {
|
|
8870
|
+
let anySet = false;
|
|
8871
|
+
colName.forEach((cName) => {
|
|
8872
|
+
console.log("cName", cName);
|
|
8873
|
+
const col2 = this.findColByName(cName);
|
|
8874
|
+
console.log("col", col2);
|
|
8875
|
+
if (col2 && col2.options) {
|
|
8876
|
+
col2.options.hidden = hiddenVal;
|
|
8877
|
+
console.log("col.options.hidden", col2.options.hidden);
|
|
8878
|
+
anySet = true;
|
|
8879
|
+
}
|
|
8880
|
+
});
|
|
8881
|
+
return anySet;
|
|
8882
|
+
}
|
|
8883
|
+
const col = this.findColByName(colName);
|
|
8884
|
+
if (!col || !col.options)
|
|
8885
|
+
return false;
|
|
8886
|
+
col.options.hidden = hiddenVal;
|
|
8887
|
+
return true;
|
|
8869
8888
|
},
|
|
8870
8889
|
getWidgetRef(widgetName, showError, rowId) {
|
|
8871
8890
|
let foundRef = null;
|
|
@@ -25848,13 +25867,13 @@ function registerIcon(app) {
|
|
|
25848
25867
|
if (typeof window !== "undefined") {
|
|
25849
25868
|
let loadSvg = function() {
|
|
25850
25869
|
var body = document.body;
|
|
25851
|
-
var svgDom = document.getElementById("
|
|
25870
|
+
var svgDom = document.getElementById("__svg__icons__dom__1772675919581__");
|
|
25852
25871
|
if (!svgDom) {
|
|
25853
25872
|
svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
25854
25873
|
svgDom.style.position = "absolute";
|
|
25855
25874
|
svgDom.style.width = "0";
|
|
25856
25875
|
svgDom.style.height = "0";
|
|
25857
|
-
svgDom.id = "
|
|
25876
|
+
svgDom.id = "__svg__icons__dom__1772675919581__";
|
|
25858
25877
|
svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
|
|
25859
25878
|
svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
|
|
25860
25879
|
}
|