aq-fe-framework 0.1.127 → 0.1.129
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.
@@ -57,7 +57,7 @@ function MyButtonViewPDF({
|
|
57
57
|
isActionIcon = false,
|
58
58
|
filePath
|
59
59
|
}) {
|
60
|
-
var _a, _b;
|
60
|
+
var _a, _b, _c;
|
61
61
|
const disc = useDisclosure(false);
|
62
62
|
const fullScreen = useState(false);
|
63
63
|
const hSize = useState("80vh");
|
@@ -70,8 +70,8 @@ function MyButtonViewPDF({
|
|
70
70
|
}
|
71
71
|
const res = await baseAxios_default.get("/Document/Get?id=" + id);
|
72
72
|
return res.data.data;
|
73
|
-
}
|
74
|
-
enabled: disc[0] == true
|
73
|
+
}
|
74
|
+
// enabled: disc[0] == true,
|
75
75
|
});
|
76
76
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
77
77
|
/* @__PURE__ */ jsx2(Tooltip, { label: "Xem t\xE0i li\u1EC7u tr\u1EF1c ti\u1EBFp", children: isActionIcon ? /* @__PURE__ */ jsx2(
|
@@ -90,7 +90,7 @@ function MyButtonViewPDF({
|
|
90
90
|
disc[1].open();
|
91
91
|
},
|
92
92
|
leftSection: /* @__PURE__ */ jsx2(IconLivePhoto, {}),
|
93
|
-
children: label
|
93
|
+
children: label
|
94
94
|
}
|
95
95
|
) }),
|
96
96
|
/* @__PURE__ */ jsx2(
|
@@ -134,7 +134,7 @@ function MyButtonViewPDF({
|
|
134
134
|
query.data ? /* @__PURE__ */ jsx2(
|
135
135
|
"iframe",
|
136
136
|
{
|
137
|
-
src: `data:application/pdf;base64, ${
|
137
|
+
src: `data:application/pdf;base64, ${filePath ? (_a = query.data) == null ? void 0 : _a.fileBase64String : (_c = (_b = query.data) == null ? void 0 : _b.fileDetail) == null ? void 0 : _c.fileBase64String}`,
|
138
138
|
width: "100%",
|
139
139
|
height: "100%"
|
140
140
|
}
|
@@ -65,7 +65,7 @@ import {
|
|
65
65
|
useS_BasicAppShell,
|
66
66
|
useS_ButtonImport,
|
67
67
|
utils_layout_getItemsWithoutLinks
|
68
|
-
} from "../chunk-
|
68
|
+
} from "../chunk-7GAQYHTL.mjs";
|
69
69
|
import "../chunk-7EHNYA4A.mjs";
|
70
70
|
import "../chunk-Y3YGC5IH.mjs";
|
71
71
|
import "../chunk-CJDXLINF.mjs";
|