xh-lab-rc 0.16.7 → 0.16.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/LabAltimeter/index.js +2 -2
- package/dist/LabGTreeSelect/index.d.ts +2 -1
- package/dist/LabGTreeSelect/index.js +12 -9
- package/dist/LabGroupTree/index.js +9 -7
- package/dist/LabGroupTree/style.less +54 -55
- package/dist/LabPdfViewMobile/index.d.ts +3 -1
- package/dist/LabPdfViewMobile/index.js +9 -5
- package/package.json +82 -82
|
@@ -8,7 +8,7 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
|
8
8
|
* @Author: xqy
|
|
9
9
|
* @Date: 2024-04-23 13:43:55
|
|
10
10
|
* @LastEditors: xqy
|
|
11
|
-
* @LastEditTime: 2024-
|
|
11
|
+
* @LastEditTime: 2024-09-30 10:44:58
|
|
12
12
|
* @Description: 高拍仪
|
|
13
13
|
*/
|
|
14
14
|
import { Iconfont } from "../components";
|
|
@@ -25,7 +25,7 @@ var LabAltimeter = function LabAltimeter(_ref) {
|
|
|
25
25
|
_ref$isMultiple = _ref.isMultiple,
|
|
26
26
|
isMultiple = _ref$isMultiple === void 0 ? true : _ref$isMultiple,
|
|
27
27
|
_ref$deviceType = _ref.deviceType,
|
|
28
|
-
deviceType = _ref$deviceType === void 0 ? '' : _ref$deviceType;
|
|
28
|
+
deviceType = _ref$deviceType === void 0 ? '1' : _ref$deviceType;
|
|
29
29
|
var _useState = useState(false),
|
|
30
30
|
_useState2 = _slicedToArray(_useState, 2),
|
|
31
31
|
setUpVisible = _useState2[0],
|
|
@@ -10,6 +10,7 @@ interface indexProps {
|
|
|
10
10
|
treeNodeFilterProp?: string;
|
|
11
11
|
treeDefaultExpandAll?: boolean;
|
|
12
12
|
style?: object;
|
|
13
|
+
dropdownStyle?: object;
|
|
13
14
|
}
|
|
14
|
-
declare const GTreeSelect: ({ defaultValue, treeData, onSelect, style, placeholder, ...restProps }: indexProps) => React.JSX.Element;
|
|
15
|
+
declare const GTreeSelect: ({ defaultValue, treeData, onSelect, style, placeholder, dropdownStyle, ...restProps }: indexProps) => React.JSX.Element;
|
|
15
16
|
export default GTreeSelect;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
3
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
3
4
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
4
|
-
var _excluded = ["defaultValue", "treeData", "onSelect", "style", "placeholder"];
|
|
5
|
-
/*
|
|
6
|
-
* @Author: xqy
|
|
7
|
-
* @Date: 2024-03-19 14:07:55
|
|
8
|
-
* @LastEditors: xqy
|
|
9
|
-
* @LastEditTime: 2024-
|
|
10
|
-
* @Description:
|
|
5
|
+
var _excluded = ["defaultValue", "treeData", "onSelect", "style", "placeholder", "dropdownStyle"];
|
|
6
|
+
/*
|
|
7
|
+
* @Author: xqy
|
|
8
|
+
* @Date: 2024-03-19 14:07:55
|
|
9
|
+
* @LastEditors: xqy
|
|
10
|
+
* @LastEditTime: 2024-09-25 17:40:04
|
|
11
|
+
* @Description:
|
|
11
12
|
*/
|
|
12
13
|
import { TreeSelect } from 'antd';
|
|
13
14
|
import React, { useEffect, useState } from 'react';
|
|
@@ -23,6 +24,8 @@ var GTreeSelect = function GTreeSelect(_ref) {
|
|
|
23
24
|
} : _ref$style,
|
|
24
25
|
_ref$placeholder = _ref.placeholder,
|
|
25
26
|
placeholder = _ref$placeholder === void 0 ? '院区/检验专业组' : _ref$placeholder,
|
|
27
|
+
_ref$dropdownStyle = _ref.dropdownStyle,
|
|
28
|
+
dropdownStyle = _ref$dropdownStyle === void 0 ? {} : _ref$dropdownStyle,
|
|
26
29
|
restProps = _objectWithoutProperties(_ref, _excluded);
|
|
27
30
|
var _useState = useState(defaultValue || undefined),
|
|
28
31
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -46,10 +49,10 @@ var GTreeSelect = function GTreeSelect(_ref) {
|
|
|
46
49
|
return /*#__PURE__*/React.createElement(TreeSelect, _extends({
|
|
47
50
|
showSearch: true,
|
|
48
51
|
style: style,
|
|
49
|
-
dropdownStyle: {
|
|
52
|
+
dropdownStyle: _objectSpread({
|
|
50
53
|
maxHeight: 400,
|
|
51
54
|
overflow: 'auto'
|
|
52
|
-
},
|
|
55
|
+
}, dropdownStyle),
|
|
53
56
|
allowClear: true,
|
|
54
57
|
treeData: treeData,
|
|
55
58
|
onChange: handClear,
|
|
@@ -4,12 +4,12 @@ import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
|
|
|
4
4
|
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
|
5
5
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
6
6
|
var _excluded = ["treeData", "GBeforeIcon", "showLine", "showIcon", "isShowNum", "isCustomTree", "treeProperties", "onExpand", "onSelect", "childTitleNode", "extraNodeProps"];
|
|
7
|
-
/*
|
|
8
|
-
* @Author: xqy
|
|
9
|
-
* @Date: 2024-03-18 16:23:10
|
|
10
|
-
* @LastEditors: xqy
|
|
11
|
-
* @LastEditTime: 2024-06-06 15:08:52
|
|
12
|
-
* @Description:专业组树形
|
|
7
|
+
/*
|
|
8
|
+
* @Author: xqy
|
|
9
|
+
* @Date: 2024-03-18 16:23:10
|
|
10
|
+
* @LastEditors: xqy
|
|
11
|
+
* @LastEditTime: 2024-06-06 15:08:52
|
|
12
|
+
* @Description:专业组树形
|
|
13
13
|
*/
|
|
14
14
|
import { Iconfont } from "../components";
|
|
15
15
|
import { Tree } from 'antd';
|
|
@@ -22,7 +22,9 @@ var IconTypes = {
|
|
|
22
22
|
// 管理专业组
|
|
23
23
|
'4': 'icon-ke',
|
|
24
24
|
// 科室
|
|
25
|
-
'10': 'icon-lei'
|
|
25
|
+
'10': 'icon-lei',
|
|
26
|
+
// 公共分类
|
|
27
|
+
'11': 'icon-lei' // 管理专业组级公共分类
|
|
26
28
|
};
|
|
27
29
|
var LabGroupTree = function LabGroupTree(_ref) {
|
|
28
30
|
var _ref$treeData = _ref.treeData,
|
|
@@ -1,55 +1,54 @@
|
|
|
1
|
-
.lab-group-tree {
|
|
2
|
-
width: 100%;
|
|
3
|
-
height: 100%;
|
|
4
|
-
background-color: #fff;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
overflow:
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
}
|
|
1
|
+
.lab-group-tree {
|
|
2
|
+
width: 100%;
|
|
3
|
+
height: 100%;
|
|
4
|
+
background-color: #fff;
|
|
5
|
+
|
|
6
|
+
.tree-first {
|
|
7
|
+
width: calc(100% - 1rem);
|
|
8
|
+
position: relative;
|
|
9
|
+
min-width: 100%;
|
|
10
|
+
overflow: hidden;
|
|
11
|
+
white-space: nowrap;
|
|
12
|
+
text-overflow: ellipsis;
|
|
13
|
+
line-height: 20px;
|
|
14
|
+
|
|
15
|
+
.num {
|
|
16
|
+
position: absolute;
|
|
17
|
+
right: 2px;
|
|
18
|
+
color: #185ddc;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.ant-tree-treenode {
|
|
23
|
+
width: 100%;
|
|
24
|
+
padding: 0 0 2px;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.ant-tree-title {
|
|
28
|
+
width: 100% !important;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.ant-tree-switcher {
|
|
32
|
+
height: 24px;
|
|
33
|
+
width: 24px;
|
|
34
|
+
display: flex;
|
|
35
|
+
align-items: center;
|
|
36
|
+
justify-content: center;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.ant-tree-switcher-line-icon > svg {
|
|
40
|
+
height: 16px;
|
|
41
|
+
width: 16px;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.ant-tree-node-content-wrapper {
|
|
45
|
+
width: 100%;
|
|
46
|
+
display: flex;
|
|
47
|
+
align-items: center;
|
|
48
|
+
min-height: 26px !important;
|
|
49
|
+
white-space: nowrap;
|
|
50
|
+
overflow: hidden;
|
|
51
|
+
text-overflow: ellipsis;
|
|
52
|
+
padding: 0 4px 0 2px;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -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:
|
|
9
|
-
* @LastEditTime: 2024-
|
|
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,82 +1,82 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "xh-lab-rc",
|
|
3
|
-
"version": "0.16.
|
|
4
|
-
"description": " A react library for xinhelab",
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"module": "dist/index.js",
|
|
7
|
-
"types": "dist/index.d.ts",
|
|
8
|
-
"files": [
|
|
9
|
-
"dist"
|
|
10
|
-
],
|
|
11
|
-
"scripts": {
|
|
12
|
-
"build": "father build",
|
|
13
|
-
"build:watch": "father dev",
|
|
14
|
-
"dev": "dumi dev",
|
|
15
|
-
"docs:build": "dumi build",
|
|
16
|
-
"doctor": "father doctor",
|
|
17
|
-
"lint": "npm run lint:es && npm run lint:css",
|
|
18
|
-
"lint:css": "stylelint \"{src,test}/**/*.{css,less}\"",
|
|
19
|
-
"lint:es": "eslint \"{src,test}/**/*.{js,jsx,ts,tsx}\"",
|
|
20
|
-
"prepare": "husky install && dumi setup",
|
|
21
|
-
"prepublishOnly": "father doctor && npm run build",
|
|
22
|
-
"start": "npm run dev"
|
|
23
|
-
},
|
|
24
|
-
"commitlint": {
|
|
25
|
-
"extends": [
|
|
26
|
-
"@commitlint/config-conventional"
|
|
27
|
-
]
|
|
28
|
-
},
|
|
29
|
-
"lint-staged": {
|
|
30
|
-
"*.{md,json}": [
|
|
31
|
-
"prettier --write --no-error-on-unmatched-pattern"
|
|
32
|
-
],
|
|
33
|
-
"*.{css,less}": [
|
|
34
|
-
"stylelint --fix",
|
|
35
|
-
"prettier --write"
|
|
36
|
-
],
|
|
37
|
-
"*.{js,jsx}": [
|
|
38
|
-
"eslint --fix",
|
|
39
|
-
"prettier --write"
|
|
40
|
-
],
|
|
41
|
-
"*.{ts,tsx}": [
|
|
42
|
-
"eslint --fix",
|
|
43
|
-
"prettier --parser=typescript --write"
|
|
44
|
-
]
|
|
45
|
-
},
|
|
46
|
-
"dependencies": {
|
|
47
|
-
"@ant-design/icons": "^5.3.5",
|
|
48
|
-
"@babel/runtime": "^7.24.6",
|
|
49
|
-
"antd": "^5.15.3",
|
|
50
|
-
"antd-mobile": "^5.36.1",
|
|
51
|
-
"antd-mobile-icons": "^0.3.0",
|
|
52
|
-
"axios": "^1.7.2",
|
|
53
|
-
"classnames": "^2.5.1",
|
|
54
|
-
"dayjs": "^1.11.10"
|
|
55
|
-
},
|
|
56
|
-
"devDependencies": {
|
|
57
|
-
"@commitlint/cli": "^17.1.2",
|
|
58
|
-
"@commitlint/config-conventional": "^17.1.0",
|
|
59
|
-
"@types/react": "^18.0.0",
|
|
60
|
-
"@types/react-dom": "^18.0.0",
|
|
61
|
-
"@umijs/lint": "^4.0.0",
|
|
62
|
-
"dumi": "^2.2.13",
|
|
63
|
-
"eslint": "^8.23.0",
|
|
64
|
-
"father": "^4.1.0",
|
|
65
|
-
"husky": "^8.0.1",
|
|
66
|
-
"lint-staged": "^13.0.3",
|
|
67
|
-
"prettier": "^2.7.1",
|
|
68
|
-
"prettier-plugin-organize-imports": "^3.0.0",
|
|
69
|
-
"prettier-plugin-packagejson": "^2.2.18",
|
|
70
|
-
"react": "^18.0.0",
|
|
71
|
-
"react-dom": "^18.0.0",
|
|
72
|
-
"stylelint": "^14.9.1"
|
|
73
|
-
},
|
|
74
|
-
"peerDependencies": {
|
|
75
|
-
"react": "^16.3.0 || ^17.0.0 || ^18.0.0",
|
|
76
|
-
"react-dom": "^16.3.0 || ^17.0.0 || ^18.0.0"
|
|
77
|
-
},
|
|
78
|
-
"publishConfig": {
|
|
79
|
-
"access": "public"
|
|
80
|
-
},
|
|
81
|
-
"authors": []
|
|
82
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "xh-lab-rc",
|
|
3
|
+
"version": "0.16.9",
|
|
4
|
+
"description": " A react library for xinhelab",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"module": "dist/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist"
|
|
10
|
+
],
|
|
11
|
+
"scripts": {
|
|
12
|
+
"build": "father build",
|
|
13
|
+
"build:watch": "father dev",
|
|
14
|
+
"dev": "dumi dev",
|
|
15
|
+
"docs:build": "dumi build",
|
|
16
|
+
"doctor": "father doctor",
|
|
17
|
+
"lint": "npm run lint:es && npm run lint:css",
|
|
18
|
+
"lint:css": "stylelint \"{src,test}/**/*.{css,less}\"",
|
|
19
|
+
"lint:es": "eslint \"{src,test}/**/*.{js,jsx,ts,tsx}\"",
|
|
20
|
+
"prepare": "husky install && dumi setup",
|
|
21
|
+
"prepublishOnly": "father doctor && npm run build",
|
|
22
|
+
"start": "npm run dev"
|
|
23
|
+
},
|
|
24
|
+
"commitlint": {
|
|
25
|
+
"extends": [
|
|
26
|
+
"@commitlint/config-conventional"
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
"lint-staged": {
|
|
30
|
+
"*.{md,json}": [
|
|
31
|
+
"prettier --write --no-error-on-unmatched-pattern"
|
|
32
|
+
],
|
|
33
|
+
"*.{css,less}": [
|
|
34
|
+
"stylelint --fix",
|
|
35
|
+
"prettier --write"
|
|
36
|
+
],
|
|
37
|
+
"*.{js,jsx}": [
|
|
38
|
+
"eslint --fix",
|
|
39
|
+
"prettier --write"
|
|
40
|
+
],
|
|
41
|
+
"*.{ts,tsx}": [
|
|
42
|
+
"eslint --fix",
|
|
43
|
+
"prettier --parser=typescript --write"
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
"dependencies": {
|
|
47
|
+
"@ant-design/icons": "^5.3.5",
|
|
48
|
+
"@babel/runtime": "^7.24.6",
|
|
49
|
+
"antd": "^5.15.3",
|
|
50
|
+
"antd-mobile": "^5.36.1",
|
|
51
|
+
"antd-mobile-icons": "^0.3.0",
|
|
52
|
+
"axios": "^1.7.2",
|
|
53
|
+
"classnames": "^2.5.1",
|
|
54
|
+
"dayjs": "^1.11.10"
|
|
55
|
+
},
|
|
56
|
+
"devDependencies": {
|
|
57
|
+
"@commitlint/cli": "^17.1.2",
|
|
58
|
+
"@commitlint/config-conventional": "^17.1.0",
|
|
59
|
+
"@types/react": "^18.0.0",
|
|
60
|
+
"@types/react-dom": "^18.0.0",
|
|
61
|
+
"@umijs/lint": "^4.0.0",
|
|
62
|
+
"dumi": "^2.2.13",
|
|
63
|
+
"eslint": "^8.23.0",
|
|
64
|
+
"father": "^4.1.0",
|
|
65
|
+
"husky": "^8.0.1",
|
|
66
|
+
"lint-staged": "^13.0.3",
|
|
67
|
+
"prettier": "^2.7.1",
|
|
68
|
+
"prettier-plugin-organize-imports": "^3.0.0",
|
|
69
|
+
"prettier-plugin-packagejson": "^2.2.18",
|
|
70
|
+
"react": "^18.0.0",
|
|
71
|
+
"react-dom": "^18.0.0",
|
|
72
|
+
"stylelint": "^14.9.1"
|
|
73
|
+
},
|
|
74
|
+
"peerDependencies": {
|
|
75
|
+
"react": "^16.3.0 || ^17.0.0 || ^18.0.0",
|
|
76
|
+
"react-dom": "^16.3.0 || ^17.0.0 || ^18.0.0"
|
|
77
|
+
},
|
|
78
|
+
"publishConfig": {
|
|
79
|
+
"access": "public"
|
|
80
|
+
},
|
|
81
|
+
"authors": []
|
|
82
|
+
}
|