@zero-library/common 3.0.7 → 3.0.9
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 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +2 -2
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/dist/pdf.worker.min.mjs +0 -28
package/dist/index.esm.js
CHANGED
|
@@ -2762,7 +2762,7 @@ var CodePreview = ({ fileUrl, suffix }) => {
|
|
|
2762
2762
|
};
|
|
2763
2763
|
var CodePreview_default = CodePreview;
|
|
2764
2764
|
var { Text } = Typography;
|
|
2765
|
-
pdfjsLib.GlobalWorkerOptions.workerSrc =
|
|
2765
|
+
pdfjsLib.GlobalWorkerOptions.workerSrc = "https://logosdata.cn/public/pdf/pdf-5.4.296.worker.min.js";
|
|
2766
2766
|
var MIN_SCALE = 0.6;
|
|
2767
2767
|
var MAX_SCALE = 1.5;
|
|
2768
2768
|
var SCALE_STEP = 0.1;
|
|
@@ -3176,7 +3176,7 @@ var luyaFilePreview_default = ({ suffix, fileUrl, emptyProps, fileName }) => {
|
|
|
3176
3176
|
return /* @__PURE__ */ jsx(Result, { subTitle: `\u6682\u4E0D\u652F\u6301 ${suffix || ""} \u6587\u4EF6\u7684\u9884\u89C8` });
|
|
3177
3177
|
}
|
|
3178
3178
|
}, [suffix, fileUrl, fileName]);
|
|
3179
|
-
return /* @__PURE__ */ jsx(Flex, { justify: "center", align: "center", className: "height-full", children: Preview });
|
|
3179
|
+
return /* @__PURE__ */ jsx(Flex, { justify: "center", align: "center", className: "height-full p-t-16 p-b-16 p-l-16", children: Preview });
|
|
3180
3180
|
};
|
|
3181
3181
|
var FilePreviewDrawer_default = ({ open, title = "\u6587\u4EF6\u9884\u89C8", onClose, ...props }) => {
|
|
3182
3182
|
return /* @__PURE__ */ jsx(
|