szld-libs 0.3.87 → 0.3.89
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.
|
@@ -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();
|
|
@@ -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();
|