@zero-library/common 2.1.6 → 2.1.7
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 +42 -12
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.mts +368 -24
- package/dist/index.d.ts +368 -24
- package/dist/index.esm.js +42 -12
- package/dist/index.esm.js.map +1 -1
- package/package.json +5 -2
package/dist/index.cjs.js
CHANGED
|
@@ -152,7 +152,7 @@ var FileIcon_default = ({ suffix, fontSize = 22 }) => {
|
|
|
152
152
|
return /* @__PURE__ */ jsxRuntime.jsx(icons.FileZipOutlined, {});
|
|
153
153
|
case "CATALOG":
|
|
154
154
|
return /* @__PURE__ */ jsxRuntime.jsx("i", { style: styles, className: "iconfont icon-wenjianjia" });
|
|
155
|
-
//
|
|
155
|
+
// 文件夹图标
|
|
156
156
|
default:
|
|
157
157
|
return /* @__PURE__ */ jsxRuntime.jsx(icons.FileUnknownOutlined, {});
|
|
158
158
|
}
|
|
@@ -1396,18 +1396,38 @@ var FilePreview_default = ({ suffix, fileUrl, pdfParams, password, searchValue }
|
|
|
1396
1396
|
}, [suffix, fileUrl, pdfParams]);
|
|
1397
1397
|
return /* @__PURE__ */ jsxRuntime.jsx(antd.Flex, { justify: "center", align: "center", className: "height-full", children: Preview });
|
|
1398
1398
|
};
|
|
1399
|
-
var FilePreviewDrawer_default = ({
|
|
1400
|
-
|
|
1401
|
-
|
|
1399
|
+
var FilePreviewDrawer_default = ({
|
|
1400
|
+
open,
|
|
1401
|
+
fileUrl,
|
|
1402
|
+
suffix,
|
|
1403
|
+
title = "\u6587\u4EF6\u9884\u89C8",
|
|
1404
|
+
onClose,
|
|
1405
|
+
password,
|
|
1406
|
+
fileParams,
|
|
1407
|
+
pdfParams,
|
|
1408
|
+
onSetPassSuccess
|
|
1409
|
+
}) => {
|
|
1410
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1411
|
+
antd.Drawer,
|
|
1402
1412
|
{
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1413
|
+
title,
|
|
1414
|
+
push: false,
|
|
1415
|
+
width: "100%",
|
|
1416
|
+
open,
|
|
1417
|
+
onClose,
|
|
1418
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1419
|
+
FilePreview_default,
|
|
1420
|
+
{
|
|
1421
|
+
fileUrl,
|
|
1422
|
+
suffix,
|
|
1423
|
+
password,
|
|
1424
|
+
fileParams,
|
|
1425
|
+
pdfParams,
|
|
1426
|
+
onSetPassSuccess
|
|
1427
|
+
}
|
|
1428
|
+
)
|
|
1409
1429
|
}
|
|
1410
|
-
)
|
|
1430
|
+
);
|
|
1411
1431
|
};
|
|
1412
1432
|
|
|
1413
1433
|
// src/components/Iframe/styles.module.less
|
|
@@ -4982,7 +5002,17 @@ var MobileToolbarContent = ({ type, onBack }) => /* @__PURE__ */ jsxRuntime.jsxs
|
|
|
4982
5002
|
/* @__PURE__ */ jsxRuntime.jsx(ToolbarSeparator, {}),
|
|
4983
5003
|
type === "highlighter" ? /* @__PURE__ */ jsxRuntime.jsx(HighlightContent, {}) : /* @__PURE__ */ jsxRuntime.jsx(LinkContent, {})
|
|
4984
5004
|
] });
|
|
4985
|
-
var MarkdownEditor_default = ({
|
|
5005
|
+
var MarkdownEditor_default = ({
|
|
5006
|
+
value = "",
|
|
5007
|
+
onChange,
|
|
5008
|
+
onScrollPage,
|
|
5009
|
+
searchValue,
|
|
5010
|
+
disabled,
|
|
5011
|
+
extraNav,
|
|
5012
|
+
showToolbar = true,
|
|
5013
|
+
onQuote,
|
|
5014
|
+
onDownloadFile
|
|
5015
|
+
}) => {
|
|
4986
5016
|
const isMobile = useMobile();
|
|
4987
5017
|
const windowSize = useWindowSize();
|
|
4988
5018
|
const lastContentRef = React16.useRef("");
|