szld-libs 0.3.89 → 0.3.91

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.
@@ -95,18 +95,41 @@ function useDetailRender({
95
95
  item == null ? void 0 : item.attrname,
96
96
  ":"
97
97
  ] }),
98
- /* @__PURE__ */ jsxs("span", { style: { wordWrap: "break-word" }, children: [
99
- beforeExtraValue || "",
100
- " ",
101
- getTitle(langConfig || [], (item == null ? void 0 : item.attrvalue) || "-")
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(Col, { span: valueSpan, style: { wordWrap: "break-word" }, children: [
107
- beforeExtraValue || "",
108
- getTitle(langConfig || [], (item == null ? void 0 : item.attrvalue) || "-")
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
  };
@@ -28,6 +28,7 @@ declare function useUniversalTable(): {
28
28
  }) => Promise<{
29
29
  formItems: import("szld-libs/lib/components/CreateForm").CreateFormItemProps<import("szld-libs/lib/components/CreateForm").ValueType>[];
30
30
  selList: any[];
31
+ attrList: any[];
31
32
  }>;
32
33
  handleUniversalDelete: ({ commonRequest, refresh, interfaceType, record, configData, title, okText, cancelText, getTitle, pageID, deleteItem, okType, cancelType, }: {
33
34
  commonRequest: (InterfaceType: string, data?: any) => Promise<AxiosResponse<any, any>>;
@@ -205,9 +205,9 @@ function useUniversalTable() {
205
205
  formItemProps: { style: { marginBottom: 10, minWidth: 127 } }
206
206
  });
207
207
  }
208
- return { formItems, selList: selListData };
208
+ return { formItems, selList: selListData, attrList };
209
209
  } catch (error) {
210
- return { formItems: [], selList: [] };
210
+ return { formItems: [], selList: [], attrList: [] };
211
211
  }
212
212
  };
213
213
  const handleUniversalHeaderToColumns = ({
@@ -96,18 +96,41 @@ function useDetailRender({
96
96
  item == null ? void 0 : item.attrname,
97
97
  ":"
98
98
  ] }),
99
- /* @__PURE__ */ jsxRuntime.jsxs("span", { style: { wordWrap: "break-word" }, children: [
100
- beforeExtraValue || "",
101
- " ",
102
- method.getTitle(langConfig || [], (item == null ? void 0 : item.attrvalue) || "-")
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(antd.Col, { span: valueSpan, style: { wordWrap: "break-word" }, children: [
108
- beforeExtraValue || "",
109
- method.getTitle(langConfig || [], (item == null ? void 0 : item.attrvalue) || "-")
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
  };
@@ -28,6 +28,7 @@ declare function useUniversalTable(): {
28
28
  }) => Promise<{
29
29
  formItems: import("szld-libs/lib/components/CreateForm").CreateFormItemProps<import("szld-libs/lib/components/CreateForm").ValueType>[];
30
30
  selList: any[];
31
+ attrList: any[];
31
32
  }>;
32
33
  handleUniversalDelete: ({ commonRequest, refresh, interfaceType, record, configData, title, okText, cancelText, getTitle, pageID, deleteItem, okType, cancelType, }: {
33
34
  commonRequest: (InterfaceType: string, data?: any) => Promise<AxiosResponse<any, any>>;
@@ -206,9 +206,9 @@ function useUniversalTable() {
206
206
  formItemProps: { style: { marginBottom: 10, minWidth: 127 } }
207
207
  });
208
208
  }
209
- return { formItems, selList: selListData };
209
+ return { formItems, selList: selListData, attrList };
210
210
  } catch (error) {
211
- return { formItems: [], selList: [] };
211
+ return { formItems: [], selList: [], attrList: [] };
212
212
  }
213
213
  };
214
214
  const handleUniversalHeaderToColumns = ({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "szld-libs",
3
3
  "private": false,
4
- "version": "0.3.89",
4
+ "version": "0.3.91",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",