aq-fe-framework 0.1.120 → 0.1.122
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.
@@ -54,7 +54,8 @@ function MyButtonViewPDF({
|
|
54
54
|
modalSize = "80%",
|
55
55
|
label = "Xem file",
|
56
56
|
src = "https://datafiles.chinhphu.vn/cpp/files/vbpq/2016/07/85.signed.pdf",
|
57
|
-
isActionIcon = false
|
57
|
+
isActionIcon = false,
|
58
|
+
filePath
|
58
59
|
}) {
|
59
60
|
var _a, _b;
|
60
61
|
const disc = useDisclosure(false);
|
@@ -63,6 +64,7 @@ function MyButtonViewPDF({
|
|
63
64
|
const query = useQuery({
|
64
65
|
queryKey: ["MyButtonViewPDF", id],
|
65
66
|
queryFn: async () => {
|
67
|
+
if (filePath) (await baseAxios_default.get("/AQ/GetFile?filePath=" + filePath)).data.data;
|
66
68
|
return (await baseAxios_default.get("/Document/Get?id=" + id)).data.data;
|
67
69
|
},
|
68
70
|
enabled: id != void 0 && disc[0] == true
|
@@ -241,8 +241,9 @@ interface IMyButtonViewPDF {
|
|
241
241
|
id?: number;
|
242
242
|
src?: string;
|
243
243
|
isActionIcon?: boolean;
|
244
|
+
filePath?: string;
|
244
245
|
}
|
245
|
-
declare function MyButtonViewPDF({ id, modalSize, label, src, isActionIcon, }: IMyButtonViewPDF): react_jsx_runtime.JSX.Element;
|
246
|
+
declare function MyButtonViewPDF({ id, modalSize, label, src, isActionIcon, filePath }: IMyButtonViewPDF): react_jsx_runtime.JSX.Element;
|
246
247
|
|
247
248
|
declare function MyCalendar(): react_jsx_runtime.JSX.Element;
|
248
249
|
|
@@ -65,7 +65,7 @@ import {
|
|
65
65
|
useS_BasicAppShell,
|
66
66
|
useS_ButtonImport,
|
67
67
|
utils_layout_getItemsWithoutLinks
|
68
|
-
} from "../chunk-
|
68
|
+
} from "../chunk-XKLDYSM6.mjs";
|
69
69
|
import "../chunk-7EHNYA4A.mjs";
|
70
70
|
import "../chunk-Y3YGC5IH.mjs";
|
71
71
|
import "../chunk-CJDXLINF.mjs";
|