szld-libs 0.3.94 → 0.3.95
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.
|
@@ -230,7 +230,7 @@ function useUniversalTable() {
|
|
|
230
230
|
dataIndex: (item == null ? void 0 : item["header-attribute-id"]) || "",
|
|
231
231
|
width: isDefaultWidth ? (item == null ? void 0 : item["header-width"]) || 180 : void 0,
|
|
232
232
|
render: (text, record) => {
|
|
233
|
-
var _a, _b;
|
|
233
|
+
var _a, _b, _c, _d;
|
|
234
234
|
if (text && text && typeof text === "string" && (text == null ? void 0 : text.includes("FileName")) && (text == null ? void 0 : text.includes("FilePath"))) {
|
|
235
235
|
try {
|
|
236
236
|
const items = JSON.parse(text);
|
|
@@ -261,6 +261,10 @@ function useUniversalTable() {
|
|
|
261
261
|
}
|
|
262
262
|
return /* @__PURE__ */ jsx(Tooltip, { title: text, children: /* @__PURE__ */ jsx("span", { style: { cursor: "pointer" }, children: getTitle == null ? void 0 : getTitle(otherLangPageId, text ?? "-") }) });
|
|
263
263
|
}
|
|
264
|
+
if (text && text && typeof text === "object" && ((_c = Object.keys(text)) == null ? void 0 : _c.includes("delimiter"))) {
|
|
265
|
+
const { list: list2, delimiter = "," } = text || {};
|
|
266
|
+
return /* @__PURE__ */ jsx("span", { dangerouslySetInnerHTML: { __html: ((_d = list2 == null ? void 0 : list2.join(delimiter)) == null ? void 0 : _d.replace(/br/g, "<br>")) || "-" } });
|
|
267
|
+
}
|
|
264
268
|
return text ?? "-";
|
|
265
269
|
}
|
|
266
270
|
};
|
|
@@ -231,7 +231,7 @@ function useUniversalTable() {
|
|
|
231
231
|
dataIndex: (item == null ? void 0 : item["header-attribute-id"]) || "",
|
|
232
232
|
width: isDefaultWidth ? (item == null ? void 0 : item["header-width"]) || 180 : void 0,
|
|
233
233
|
render: (text, record) => {
|
|
234
|
-
var _a, _b;
|
|
234
|
+
var _a, _b, _c, _d;
|
|
235
235
|
if (text && text && typeof text === "string" && (text == null ? void 0 : text.includes("FileName")) && (text == null ? void 0 : text.includes("FilePath"))) {
|
|
236
236
|
try {
|
|
237
237
|
const items = JSON.parse(text);
|
|
@@ -262,6 +262,10 @@ function useUniversalTable() {
|
|
|
262
262
|
}
|
|
263
263
|
return /* @__PURE__ */ jsxRuntime.jsx(antd.Tooltip, { title: text, children: /* @__PURE__ */ jsxRuntime.jsx("span", { style: { cursor: "pointer" }, children: getTitle == null ? void 0 : getTitle(otherLangPageId, text ?? "-") }) });
|
|
264
264
|
}
|
|
265
|
+
if (text && text && typeof text === "object" && ((_c = Object.keys(text)) == null ? void 0 : _c.includes("delimiter"))) {
|
|
266
|
+
const { list: list2, delimiter = "," } = text || {};
|
|
267
|
+
return /* @__PURE__ */ jsxRuntime.jsx("span", { dangerouslySetInnerHTML: { __html: ((_d = list2 == null ? void 0 : list2.join(delimiter)) == null ? void 0 : _d.replace(/br/g, "<br>")) || "-" } });
|
|
268
|
+
}
|
|
265
269
|
return text ?? "-";
|
|
266
270
|
}
|
|
267
271
|
};
|