@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.cjs.js
CHANGED
|
@@ -63,7 +63,6 @@ var reactHotkeysHook = require('react-hotkeys-hook');
|
|
|
63
63
|
var DropdownMenuPrimitive = require('@radix-ui/react-dropdown-menu');
|
|
64
64
|
var throttle = require('lodash.throttle');
|
|
65
65
|
|
|
66
|
-
var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
|
|
67
66
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
68
67
|
|
|
69
68
|
function _interopNamespace(e) {
|
|
@@ -2809,7 +2808,7 @@ var CodePreview = ({ fileUrl, suffix }) => {
|
|
|
2809
2808
|
};
|
|
2810
2809
|
var CodePreview_default = CodePreview;
|
|
2811
2810
|
var { Text } = antd.Typography;
|
|
2812
|
-
pdfjsLib__namespace.GlobalWorkerOptions.workerSrc =
|
|
2811
|
+
pdfjsLib__namespace.GlobalWorkerOptions.workerSrc = "https://logosdata.cn/public/pdf/pdf-5.4.296.worker.min.js";
|
|
2813
2812
|
var MIN_SCALE = 0.6;
|
|
2814
2813
|
var MAX_SCALE = 1.5;
|
|
2815
2814
|
var SCALE_STEP = 0.1;
|
|
@@ -3223,7 +3222,7 @@ var luyaFilePreview_default = ({ suffix, fileUrl, emptyProps, fileName }) => {
|
|
|
3223
3222
|
return /* @__PURE__ */ jsxRuntime.jsx(antd.Result, { subTitle: `\u6682\u4E0D\u652F\u6301 ${suffix || ""} \u6587\u4EF6\u7684\u9884\u89C8` });
|
|
3224
3223
|
}
|
|
3225
3224
|
}, [suffix, fileUrl, fileName]);
|
|
3226
|
-
return /* @__PURE__ */ jsxRuntime.jsx(antd.Flex, { justify: "center", align: "center", className: "height-full", children: Preview });
|
|
3225
|
+
return /* @__PURE__ */ jsxRuntime.jsx(antd.Flex, { justify: "center", align: "center", className: "height-full p-t-16 p-b-16 p-l-16", children: Preview });
|
|
3227
3226
|
};
|
|
3228
3227
|
var FilePreviewDrawer_default = ({ open, title = "\u6587\u4EF6\u9884\u89C8", onClose, ...props }) => {
|
|
3229
3228
|
return /* @__PURE__ */ jsxRuntime.jsx(
|