szld-libs 0.4.56 → 0.4.57

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.
@@ -1,7 +1,7 @@
1
1
  import { AxiosResponse } from 'axios';
2
2
  import { ReactNode } from 'react';
3
3
  declare function useUniversalTable(): {
4
- handleUniversalHeaderToColumns: ({ universalHeader, extraBtn, operationColumnConfig, attributeSetId, getTitle, downloadText, isDefaultWidth, otherLangPageId, objDefaultLangPageId, }: {
4
+ handleUniversalHeaderToColumns: ({ universalHeader, extraBtn, operationColumnConfig, attributeSetId, getTitle, downloadText, otherLangPageId, objDefaultLangPageId, }: {
5
5
  universalHeader: any[];
6
6
  extraBtn?: {
7
7
  [key: string]: (record: any, content: string, item: any) => ReactNode;
@@ -10,7 +10,6 @@ declare function useUniversalTable(): {
10
10
  attributeSetId?: string | undefined;
11
11
  getTitle?: ((pageID: string, dataID: string) => string) | undefined;
12
12
  downloadText?: string | undefined;
13
- isDefaultWidth?: boolean | undefined;
14
13
  otherLangPageId?: string | undefined;
15
14
  objDefaultLangPageId?: string | undefined;
16
15
  }) => any[] | import("antd/es/message/interface").MessageType;
@@ -219,7 +219,6 @@ function useUniversalTable() {
219
219
  attributeSetId,
220
220
  getTitle,
221
221
  downloadText = "下载",
222
- isDefaultWidth = true,
223
222
  otherLangPageId,
224
223
  objDefaultLangPageId = "5000000"
225
224
  // 处理这种数据时 如果没有拼接页面编号则使用默认编号{"list":["021"],"delimiter":""}
@@ -231,7 +230,7 @@ function useUniversalTable() {
231
230
  const column = {
232
231
  title: attributeSetId ? (getTitle == null ? void 0 : getTitle(attributeSetId, item == null ? void 0 : item["header-attribute-id"])) || "" : (item == null ? void 0 : item["header-name"]) || "",
233
232
  dataIndex: (item == null ? void 0 : item["header-attribute-id"]) || "",
234
- width: isDefaultWidth ? (item == null ? void 0 : item["header-width"]) || 180 : void 0,
233
+ width: (item == null ? void 0 : item["header-width"]) || void 0,
235
234
  render: (text, record) => {
236
235
  var _a, _b, _c, _d;
237
236
  if (text && text && typeof text === "string" && (text == null ? void 0 : text.includes("FileName")) && (text == null ? void 0 : text.includes("FilePath"))) {
@@ -1,7 +1,7 @@
1
1
  import { AxiosResponse } from 'axios';
2
2
  import { ReactNode } from 'react';
3
3
  declare function useUniversalTable(): {
4
- handleUniversalHeaderToColumns: ({ universalHeader, extraBtn, operationColumnConfig, attributeSetId, getTitle, downloadText, isDefaultWidth, otherLangPageId, objDefaultLangPageId, }: {
4
+ handleUniversalHeaderToColumns: ({ universalHeader, extraBtn, operationColumnConfig, attributeSetId, getTitle, downloadText, otherLangPageId, objDefaultLangPageId, }: {
5
5
  universalHeader: any[];
6
6
  extraBtn?: {
7
7
  [key: string]: (record: any, content: string, item: any) => ReactNode;
@@ -10,7 +10,6 @@ declare function useUniversalTable(): {
10
10
  attributeSetId?: string | undefined;
11
11
  getTitle?: ((pageID: string, dataID: string) => string) | undefined;
12
12
  downloadText?: string | undefined;
13
- isDefaultWidth?: boolean | undefined;
14
13
  otherLangPageId?: string | undefined;
15
14
  objDefaultLangPageId?: string | undefined;
16
15
  }) => any[] | import("antd/es/message/interface").MessageType;
@@ -220,7 +220,6 @@ function useUniversalTable() {
220
220
  attributeSetId,
221
221
  getTitle,
222
222
  downloadText = "下载",
223
- isDefaultWidth = true,
224
223
  otherLangPageId,
225
224
  objDefaultLangPageId = "5000000"
226
225
  // 处理这种数据时 如果没有拼接页面编号则使用默认编号{"list":["021"],"delimiter":""}
@@ -232,7 +231,7 @@ function useUniversalTable() {
232
231
  const column = {
233
232
  title: attributeSetId ? (getTitle == null ? void 0 : getTitle(attributeSetId, item == null ? void 0 : item["header-attribute-id"])) || "" : (item == null ? void 0 : item["header-name"]) || "",
234
233
  dataIndex: (item == null ? void 0 : item["header-attribute-id"]) || "",
235
- width: isDefaultWidth ? (item == null ? void 0 : item["header-width"]) || 180 : void 0,
234
+ width: (item == null ? void 0 : item["header-width"]) || void 0,
236
235
  render: (text, record) => {
237
236
  var _a, _b, _c, _d;
238
237
  if (text && text && typeof text === "string" && (text == null ? void 0 : text.includes("FileName")) && (text == null ? void 0 : text.includes("FilePath"))) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "szld-libs",
3
3
  "private": false,
4
- "version": "0.4.56",
4
+ "version": "0.4.57",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",