szld-libs 0.3.88 → 0.3.90
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/szld-components.es.js +33 -10
- package/dist/szld-components.umd.js +32 -32
- package/es/hooks/useDetailRender.js +32 -9
- package/es/hooks/useUniversalTable.d.ts +1 -1
- package/es/hooks/useUniversalTable.js +1 -1
- package/lib/hooks/useDetailRender.js +32 -9
- package/lib/hooks/useUniversalTable.d.ts +1 -1
- package/lib/hooks/useUniversalTable.js +1 -1
- package/package.json +1 -1
|
@@ -95,18 +95,41 @@ function useDetailRender({
|
|
|
95
95
|
item == null ? void 0 : item.attrname,
|
|
96
96
|
":"
|
|
97
97
|
] }),
|
|
98
|
-
/* @__PURE__ */ jsxs(
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
98
|
+
/* @__PURE__ */ jsxs(
|
|
99
|
+
"span",
|
|
100
|
+
{
|
|
101
|
+
style: {
|
|
102
|
+
wordWrap: "break-word",
|
|
103
|
+
wordBreak: "break-all",
|
|
104
|
+
overflowWrap: "break-word",
|
|
105
|
+
minWidth: 0,
|
|
106
|
+
flex: 1
|
|
107
|
+
},
|
|
108
|
+
children: [
|
|
109
|
+
beforeExtraValue || "",
|
|
110
|
+
" ",
|
|
111
|
+
getTitle(langConfig || [], (item == null ? void 0 : item.attrvalue) || "-")
|
|
112
|
+
]
|
|
113
|
+
}
|
|
114
|
+
)
|
|
103
115
|
] }) }),
|
|
104
116
|
layoutType === "row" && /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
105
117
|
/* @__PURE__ */ jsx(Col, { span: labelSpan, children: item == null ? void 0 : item.attrname }),
|
|
106
|
-
/* @__PURE__ */ jsxs(
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
118
|
+
/* @__PURE__ */ jsxs(
|
|
119
|
+
Col,
|
|
120
|
+
{
|
|
121
|
+
span: valueSpan,
|
|
122
|
+
style: {
|
|
123
|
+
wordWrap: "break-word",
|
|
124
|
+
wordBreak: "break-all",
|
|
125
|
+
overflowWrap: "break-word"
|
|
126
|
+
},
|
|
127
|
+
children: [
|
|
128
|
+
beforeExtraValue || "",
|
|
129
|
+
getTitle(langConfig || [], (item == null ? void 0 : item.attrvalue) || "-")
|
|
130
|
+
]
|
|
131
|
+
}
|
|
132
|
+
)
|
|
110
133
|
] })
|
|
111
134
|
] }, item == null ? void 0 : item.attrid);
|
|
112
135
|
};
|
|
@@ -40,7 +40,7 @@ declare function useUniversalTable(): {
|
|
|
40
40
|
cancelText?: string | undefined;
|
|
41
41
|
okType?: 'primary' | 'default' | 'link' | 'text' | 'dashed' | undefined;
|
|
42
42
|
cancelType?: 'primary' | 'default' | 'link' | 'text' | 'dashed' | undefined;
|
|
43
|
-
getTitle?: ((pageID: string, dataID: string
|
|
43
|
+
getTitle?: ((pageID: string, dataID: string) => string) | undefined;
|
|
44
44
|
pageID?: string | undefined;
|
|
45
45
|
deleteItem?: Record<string, any> | undefined;
|
|
46
46
|
}) => Promise<void>;
|
|
@@ -362,7 +362,7 @@ function useUniversalTable() {
|
|
|
362
362
|
onOk: () => {
|
|
363
363
|
return new Promise(async (resolve, reject) => {
|
|
364
364
|
const res = await commonRequest(interfaceType, params);
|
|
365
|
-
const msg = getTitle && getTitle(pageID || "", res == null ? void 0 : res["msg-code"]
|
|
365
|
+
const msg = getTitle && getTitle(pageID || "", res == null ? void 0 : res["msg-code"]) || (res == null ? void 0 : res.msg);
|
|
366
366
|
if ((res == null ? void 0 : res.ReturnValue) === 1) {
|
|
367
367
|
message.success(msg);
|
|
368
368
|
refresh();
|
|
@@ -96,18 +96,41 @@ function useDetailRender({
|
|
|
96
96
|
item == null ? void 0 : item.attrname,
|
|
97
97
|
":"
|
|
98
98
|
] }),
|
|
99
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
99
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
100
|
+
"span",
|
|
101
|
+
{
|
|
102
|
+
style: {
|
|
103
|
+
wordWrap: "break-word",
|
|
104
|
+
wordBreak: "break-all",
|
|
105
|
+
overflowWrap: "break-word",
|
|
106
|
+
minWidth: 0,
|
|
107
|
+
flex: 1
|
|
108
|
+
},
|
|
109
|
+
children: [
|
|
110
|
+
beforeExtraValue || "",
|
|
111
|
+
" ",
|
|
112
|
+
method.getTitle(langConfig || [], (item == null ? void 0 : item.attrvalue) || "-")
|
|
113
|
+
]
|
|
114
|
+
}
|
|
115
|
+
)
|
|
104
116
|
] }) }),
|
|
105
117
|
layoutType === "row" && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
106
118
|
/* @__PURE__ */ jsxRuntime.jsx(antd.Col, { span: labelSpan, children: item == null ? void 0 : item.attrname }),
|
|
107
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
119
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
120
|
+
antd.Col,
|
|
121
|
+
{
|
|
122
|
+
span: valueSpan,
|
|
123
|
+
style: {
|
|
124
|
+
wordWrap: "break-word",
|
|
125
|
+
wordBreak: "break-all",
|
|
126
|
+
overflowWrap: "break-word"
|
|
127
|
+
},
|
|
128
|
+
children: [
|
|
129
|
+
beforeExtraValue || "",
|
|
130
|
+
method.getTitle(langConfig || [], (item == null ? void 0 : item.attrvalue) || "-")
|
|
131
|
+
]
|
|
132
|
+
}
|
|
133
|
+
)
|
|
111
134
|
] })
|
|
112
135
|
] }, item == null ? void 0 : item.attrid);
|
|
113
136
|
};
|
|
@@ -40,7 +40,7 @@ declare function useUniversalTable(): {
|
|
|
40
40
|
cancelText?: string | undefined;
|
|
41
41
|
okType?: 'primary' | 'default' | 'link' | 'text' | 'dashed' | undefined;
|
|
42
42
|
cancelType?: 'primary' | 'default' | 'link' | 'text' | 'dashed' | undefined;
|
|
43
|
-
getTitle?: ((pageID: string, dataID: string
|
|
43
|
+
getTitle?: ((pageID: string, dataID: string) => string) | undefined;
|
|
44
44
|
pageID?: string | undefined;
|
|
45
45
|
deleteItem?: Record<string, any> | undefined;
|
|
46
46
|
}) => Promise<void>;
|
|
@@ -363,7 +363,7 @@ function useUniversalTable() {
|
|
|
363
363
|
onOk: () => {
|
|
364
364
|
return new Promise(async (resolve, reject) => {
|
|
365
365
|
const res = await commonRequest(interfaceType, params);
|
|
366
|
-
const msg = getTitle && getTitle(pageID || "", res == null ? void 0 : res["msg-code"]
|
|
366
|
+
const msg = getTitle && getTitle(pageID || "", res == null ? void 0 : res["msg-code"]) || (res == null ? void 0 : res.msg);
|
|
367
367
|
if ((res == null ? void 0 : res.ReturnValue) === 1) {
|
|
368
368
|
message.success(msg);
|
|
369
369
|
refresh();
|