@zero-library/common 2.2.4 → 2.2.5
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.
- package/dist/index.cjs.js +2 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.mts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.esm.js +2 -2
- package/dist/index.esm.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs.js
CHANGED
|
@@ -2050,10 +2050,10 @@ var PdfPreview_default = ({ password, fileUrl, pageNo = 1, scale = 1, isHasThumb
|
|
|
2050
2050
|
] }) })
|
|
2051
2051
|
] }) }) });
|
|
2052
2052
|
};
|
|
2053
|
-
var FilePreview_default = ({ suffix, fileUrl, pdfParams, password, searchValue }) => {
|
|
2053
|
+
var FilePreview_default = ({ suffix, fileUrl, pdfParams, password, searchValue, emptyProps }) => {
|
|
2054
2054
|
const Preview = React16.useMemo(() => {
|
|
2055
2055
|
if (!fileUrl) {
|
|
2056
|
-
return /* @__PURE__ */ jsxRuntime.jsx(antd.Empty, {});
|
|
2056
|
+
return /* @__PURE__ */ jsxRuntime.jsx(antd.Empty, { ...emptyProps });
|
|
2057
2057
|
}
|
|
2058
2058
|
switch (suffix?.toUpperCase()) {
|
|
2059
2059
|
case "PNG":
|