xh-lab-rc 0.16.7 → 0.16.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.
@@ -19,6 +19,8 @@ interface PdfViewerProps {
19
19
  onMoveBtnClick?: () => void;
20
20
  onDownBtnClick?: () => void;
21
21
  onDeleteBtnClick?: () => void;
22
+ isShowTab?: boolean;
23
+ style?: object;
22
24
  }
23
- declare const LabPdfViewMobile: ({ src, pdfjsSrc, fileTypeName, fileTitle, isColl, timeout, showTop, onCollected, onDownloaded, onTimeoutCallback, onChangeBookmarkDatas, onRenameBtnClick, onMoveBtnClick, onDownBtnClick, onDeleteBtnClick, btnShowList, }: PdfViewerProps) => React.JSX.Element;
25
+ declare const LabPdfViewMobile: ({ src, pdfjsSrc, fileTypeName, fileTitle, isColl, timeout, showTop, onCollected, onDownloaded, onTimeoutCallback, onChangeBookmarkDatas, onRenameBtnClick, onMoveBtnClick, onDownBtnClick, onDeleteBtnClick, btnShowList, isShowTab, style, }: PdfViewerProps) => React.JSX.Element;
24
26
  export default LabPdfViewMobile;
@@ -5,8 +5,8 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
5
5
  * @Descripttion:
6
6
  * @Author: wusum
7
7
  * @Date: 2024-05-27 14:50:05
8
- * @LastEditors: wusum
9
- * @LastEditTime: 2024-08-15 11:01:54
8
+ * @LastEditors: xqy
9
+ * @LastEditTime: 2024-09-02 16:05:54
10
10
  */
11
11
  import { SearchBar, TabBar } from 'antd-mobile';
12
12
  import { CloseOutline, DownlandOutline, LeftOutline, RightOutline, SearchOutline, StarOutline, UnorderedListOutline } from 'antd-mobile-icons';
@@ -36,7 +36,10 @@ var LabPdfViewMobile = function LabPdfViewMobile(_ref) {
36
36
  onDownBtnClick = _ref.onDownBtnClick,
37
37
  onDeleteBtnClick = _ref.onDeleteBtnClick,
38
38
  _ref$btnShowList = _ref.btnShowList,
39
- btnShowList = _ref$btnShowList === void 0 ? [true, true, false, false, false] : _ref$btnShowList;
39
+ btnShowList = _ref$btnShowList === void 0 ? [true, true, false, false, false] : _ref$btnShowList,
40
+ _ref$isShowTab = _ref.isShowTab,
41
+ isShowTab = _ref$isShowTab === void 0 ? true : _ref$isShowTab,
42
+ style = _ref.style;
40
43
  var fileSrc = src.replace(/\.(doc|docx|xls|xlsx)$/, '.pdf');
41
44
  var isTimeout = false;
42
45
  var isWork = false;
@@ -306,7 +309,8 @@ var LabPdfViewMobile = function LabPdfViewMobile(_ref) {
306
309
  }
307
310
  }, []);
308
311
  return /*#__PURE__*/React.createElement("div", {
309
- className: "lab-pdf-view-mobile"
312
+ className: "lab-pdf-view-mobile",
313
+ style: style
310
314
  }, /*#__PURE__*/React.createElement("div", {
311
315
  className: "view-box",
312
316
  style: {
@@ -428,7 +432,7 @@ var LabPdfViewMobile = function LabPdfViewMobile(_ref) {
428
432
  },
429
433
  fontSize: 16,
430
434
  onClick: clickNextHandle
431
- })))), /*#__PURE__*/React.createElement(TabBar, {
435
+ })))), isShowTab && /*#__PURE__*/React.createElement(TabBar, {
432
436
  activeKey: '',
433
437
  onChange: changeTabHandle
434
438
  }, btnShowList[0] && /*#__PURE__*/React.createElement(TabBar.Item, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xh-lab-rc",
3
- "version": "0.16.7",
3
+ "version": "0.16.8",
4
4
  "description": " A react library for xinhelab",
5
5
  "license": "MIT",
6
6
  "module": "dist/index.js",