@zero-library/common 2.1.6 → 2.1.8

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 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 = ({ open, fileUrl, suffix, title = "\u6587\u4EF6\u9884\u89C8", onClose, password, fileParams, pdfParams, onSetPassSuccess }) => {
1400
- return /* @__PURE__ */ jsxRuntime.jsx(antd.Drawer, { title, push: false, width: "100%", open, onClose, children: /* @__PURE__ */ jsxRuntime.jsx(
1401
- FilePreview_default,
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
- fileUrl,
1404
- suffix,
1405
- password,
1406
- fileParams,
1407
- pdfParams,
1408
- onSetPassSuccess
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 = ({ value = "", onChange, onScrollPage, searchValue, disabled, extraNav, showToolbar = true, onQuote, onDownloadFile }) => {
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("");