xh-lab-rc 0.0.5 → 0.0.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/LabDGTreeSelect/index.d.ts +3 -1
- package/dist/LabDGTreeSelect/index.js +15 -9
- package/dist/LabDGTreeSelect/style.less +15 -16
- package/dist/LabGroupTree/index.d.ts +1 -1
- package/dist/LabGroupTree/index.js +64 -6
- package/dist/LabGroupTree/typing.d.ts +1 -1
- package/dist/LabPdfView/index.d.ts +8 -0
- package/dist/LabPdfView/index.js +12 -0
- package/dist/LabPdfView/style.less +22 -0
- package/dist/LabPictureCarousel/index.d.ts +12 -0
- package/dist/LabPictureCarousel/index.js +161 -0
- package/dist/LabPictureCarousel/style.less +90 -0
- package/dist/components/Iconfont/iconfont.js +17 -17
- package/dist/components/Iconfont/index.js +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +4 -2
- package/package.json +1 -1
|
@@ -7,6 +7,8 @@ interface ILabDGTreeSelectProps {
|
|
|
7
7
|
treeData: object[];
|
|
8
8
|
dropdownStyle?: object;
|
|
9
9
|
onSelect?: (value: any, node: any) => void;
|
|
10
|
+
selectDisabledProp?: string;
|
|
11
|
+
selectDisabledArr?: string[];
|
|
10
12
|
}
|
|
11
|
-
declare const LabDGTreeSelect: ({ defaultValue, placeholder, style, treeData, dropdownStyle, onSelect, }: ILabDGTreeSelectProps) => React.JSX.Element;
|
|
13
|
+
declare const LabDGTreeSelect: ({ defaultValue, placeholder, style, treeData, dropdownStyle, onSelect, selectDisabledProp, selectDisabledArr, }: ILabDGTreeSelectProps) => React.JSX.Element;
|
|
12
14
|
export default LabDGTreeSelect;
|
|
@@ -4,16 +4,16 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
4
4
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
5
5
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
6
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
|
-
/*
|
|
8
|
-
* @Author: zy
|
|
9
|
-
* @Date: 2024-04-08 11:49:50
|
|
10
|
-
* @LastEditors:
|
|
11
|
-
* @LastEditTime:
|
|
12
|
-
* @Description: 科室/专业组树形下拉
|
|
7
|
+
/*
|
|
8
|
+
* @Author: zy
|
|
9
|
+
* @Date: 2024-04-08 11:49:50
|
|
10
|
+
* @LastEditors:
|
|
11
|
+
* @LastEditTime:
|
|
12
|
+
* @Description: 科室/专业组树形下拉
|
|
13
13
|
*/
|
|
14
|
-
import React, { useMemo, useState, useEffect } from 'react';
|
|
15
|
-
import { TreeSelect } from 'antd';
|
|
16
14
|
import { Iconfont } from "../components";
|
|
15
|
+
import { TreeSelect } from 'antd';
|
|
16
|
+
import React, { useEffect, useMemo, useState } from 'react';
|
|
17
17
|
import "./style.less";
|
|
18
18
|
// 图标类型
|
|
19
19
|
var IconTypes = {
|
|
@@ -40,7 +40,11 @@ var LabDGTreeSelect = function LabDGTreeSelect(_ref) {
|
|
|
40
40
|
maxHeight: 400,
|
|
41
41
|
overflow: 'auto'
|
|
42
42
|
} : _ref$dropdownStyle,
|
|
43
|
-
onSelect = _ref.onSelect
|
|
43
|
+
onSelect = _ref.onSelect,
|
|
44
|
+
_ref$selectDisabledPr = _ref.selectDisabledProp,
|
|
45
|
+
selectDisabledProp = _ref$selectDisabledPr === void 0 ? 'NODE_TYPE' : _ref$selectDisabledPr,
|
|
46
|
+
_ref$selectDisabledAr = _ref.selectDisabledArr,
|
|
47
|
+
selectDisabledArr = _ref$selectDisabledAr === void 0 ? [] : _ref$selectDisabledAr;
|
|
44
48
|
var _useState = useState(defaultValue || undefined),
|
|
45
49
|
_useState2 = _slicedToArray(_useState, 2),
|
|
46
50
|
value = _useState2[0],
|
|
@@ -84,6 +88,7 @@ var LabDGTreeSelect = function LabDGTreeSelect(_ref) {
|
|
|
84
88
|
marginRight: '4px'
|
|
85
89
|
}
|
|
86
90
|
}),
|
|
91
|
+
selectable: !selectDisabledArr.includes(item[selectDisabledProp]),
|
|
87
92
|
children: clearChild ? [] : getNewTreeData(CHILDREN)
|
|
88
93
|
};
|
|
89
94
|
});
|
|
@@ -91,6 +96,7 @@ var LabDGTreeSelect = function LabDGTreeSelect(_ref) {
|
|
|
91
96
|
|
|
92
97
|
// 将得到的树数据,处理成需要的数据
|
|
93
98
|
var newTreeData = useMemo(function () {
|
|
99
|
+
console.log(getNewTreeData(treeData));
|
|
94
100
|
return getNewTreeData(treeData);
|
|
95
101
|
}, [treeData]);
|
|
96
102
|
useEffect(function () {
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
.lab-group-tree-select {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
.lab-group-tree-select {
|
|
2
|
+
.ant-select-tree-list-holder-inner
|
|
3
|
+
.ant-select-tree-treenode
|
|
4
|
+
.ant-select-tree-node-content-wrapper {
|
|
5
|
+
width: 80% !important;
|
|
6
|
+
white-space: nowrap !important;
|
|
7
|
+
overflow: hidden !important;
|
|
8
|
+
text-overflow: ellipsis !important;
|
|
9
|
+
font-size: 12px !important;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.ant-select-tree-indent-unit {
|
|
13
|
+
width: 13px !important;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import './style.less';
|
|
3
3
|
import type { IGtreeProps } from './typing';
|
|
4
|
-
declare const LabGroupTree: ({ treeData,
|
|
4
|
+
declare const LabGroupTree: ({ treeData, GBeforeIcon, showLine, showIcon, isShowNum, treeProperties, onExpand, onSelect, childTitleNode, ...restProps }: IGtreeProps) => React.JSX.Element;
|
|
5
5
|
export default LabGroupTree;
|
|
@@ -1,12 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
var _excluded = ["treeData", "GBeforeIcon", "showLine", "showIcon", "isShowNum", "treeProperties", "onExpand", "onSelect", "childTitleNode"];
|
|
2
3
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
|
+
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
|
5
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
6
|
+
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
3
7
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
4
8
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
5
9
|
/*
|
|
6
10
|
* @Author: xqy
|
|
7
11
|
* @Date: 2024-03-18 16:23:10
|
|
8
12
|
* @LastEditors: xqy
|
|
9
|
-
* @LastEditTime: 2024-04-
|
|
13
|
+
* @LastEditTime: 2024-04-10 10:09:12
|
|
10
14
|
* @Description:专业组树形
|
|
11
15
|
*/
|
|
12
16
|
import { Iconfont } from "../components";
|
|
@@ -23,8 +27,6 @@ var IconTypes = {
|
|
|
23
27
|
var LabGroupTree = function LabGroupTree(_ref) {
|
|
24
28
|
var _ref$treeData = _ref.treeData,
|
|
25
29
|
treeData = _ref$treeData === void 0 ? [] : _ref$treeData,
|
|
26
|
-
_onSelect = _ref.onSelect,
|
|
27
|
-
childTitleNode = _ref.childTitleNode,
|
|
28
30
|
_ref$GBeforeIcon = _ref.GBeforeIcon,
|
|
29
31
|
GBeforeIcon = _ref$GBeforeIcon === void 0 ? function (type) {
|
|
30
32
|
return /*#__PURE__*/React.createElement(Iconfont, {
|
|
@@ -46,6 +48,9 @@ var LabGroupTree = function LabGroupTree(_ref) {
|
|
|
46
48
|
_ref$isShowNum = _ref.isShowNum,
|
|
47
49
|
isShowNum = _ref$isShowNum === void 0 ? true : _ref$isShowNum,
|
|
48
50
|
treeProperties = _ref.treeProperties,
|
|
51
|
+
onExpand = _ref.onExpand,
|
|
52
|
+
_onSelect = _ref.onSelect,
|
|
53
|
+
childTitleNode = _ref.childTitleNode,
|
|
49
54
|
restProps = _objectWithoutProperties(_ref, _excluded);
|
|
50
55
|
//构造标题的结构
|
|
51
56
|
var customTitle = function customTitle(nodeData) {
|
|
@@ -63,11 +68,63 @@ var LabGroupTree = function LabGroupTree(_ref) {
|
|
|
63
68
|
return childTitleNode === null || childTitleNode === void 0 ? void 0 : childTitleNode(nodeData);
|
|
64
69
|
}
|
|
65
70
|
};
|
|
71
|
+
|
|
72
|
+
//移除子节点
|
|
73
|
+
var removeChildNode = function removeChildNode(childNode, keys) {
|
|
74
|
+
var resultKeys = keys;
|
|
75
|
+
childNode.forEach(function (item) {
|
|
76
|
+
resultKeys = resultKeys.filter(function (i) {
|
|
77
|
+
return i !== (item === null || item === void 0 ? void 0 : item.NODE_NO);
|
|
78
|
+
});
|
|
79
|
+
if (item.CHILDREN && item.CHILDREN.length) {
|
|
80
|
+
removeChildNode(item.CHILDREN, resultKeys);
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
return resultKeys;
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
//展开树节点处理
|
|
87
|
+
var handleExpand = /*#__PURE__*/function () {
|
|
88
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(keys, e) {
|
|
89
|
+
var expanded, node, newKeys;
|
|
90
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
91
|
+
while (1) switch (_context.prev = _context.next) {
|
|
92
|
+
case 0:
|
|
93
|
+
expanded = e.expanded, node = e.node;
|
|
94
|
+
newKeys = keys;
|
|
95
|
+
if (expanded) {
|
|
96
|
+
_context.next = 8;
|
|
97
|
+
break;
|
|
98
|
+
}
|
|
99
|
+
//折叠收起展开节点
|
|
100
|
+
newKeys = newKeys.filter(function (i) {
|
|
101
|
+
return i !== (node === null || node === void 0 ? void 0 : node.NODE_NO);
|
|
102
|
+
}); //移除收起的节点
|
|
103
|
+
if (!(node !== null && node !== void 0 && node.CHILDREN && node.CHILDREN.length)) {
|
|
104
|
+
_context.next = 8;
|
|
105
|
+
break;
|
|
106
|
+
}
|
|
107
|
+
_context.next = 7;
|
|
108
|
+
return removeChildNode(node.CHILDREN, newKeys);
|
|
109
|
+
case 7:
|
|
110
|
+
newKeys = _context.sent;
|
|
111
|
+
case 8:
|
|
112
|
+
onExpand === null || onExpand === void 0 || onExpand(newKeys, e);
|
|
113
|
+
case 9:
|
|
114
|
+
case "end":
|
|
115
|
+
return _context.stop();
|
|
116
|
+
}
|
|
117
|
+
}, _callee);
|
|
118
|
+
}));
|
|
119
|
+
return function handleExpand(_x, _x2) {
|
|
120
|
+
return _ref2.apply(this, arguments);
|
|
121
|
+
};
|
|
122
|
+
}();
|
|
66
123
|
return /*#__PURE__*/React.createElement(Tree, _extends({
|
|
67
124
|
rootClassName: "lab-group-tree",
|
|
68
125
|
treeData: treeData,
|
|
69
126
|
onSelect: function onSelect(keys, node) {
|
|
70
|
-
|
|
127
|
+
_onSelect === null || _onSelect === void 0 || _onSelect(keys, node);
|
|
71
128
|
},
|
|
72
129
|
rootStyle: {
|
|
73
130
|
width: '100%'
|
|
@@ -79,7 +136,8 @@ var LabGroupTree = function LabGroupTree(_ref) {
|
|
|
79
136
|
title: 'NAME',
|
|
80
137
|
key: 'NODE_NO',
|
|
81
138
|
children: 'CHILDREN'
|
|
82
|
-
}
|
|
139
|
+
},
|
|
140
|
+
onExpand: handleExpand
|
|
83
141
|
}, treeProperties, restProps));
|
|
84
142
|
};
|
|
85
143
|
export default LabGroupTree;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import "./style.less";
|
|
3
|
+
var LabPdfView = function LabPdfView(_ref) {
|
|
4
|
+
var src = _ref.src,
|
|
5
|
+
_ref$waterMark = _ref.waterMark,
|
|
6
|
+
waterMark = _ref$waterMark === void 0 ? '' : _ref$waterMark;
|
|
7
|
+
return /*#__PURE__*/React.createElement("iframe", {
|
|
8
|
+
className: "pdf-iframe",
|
|
9
|
+
src: "/statics/pdfjs/web/viewer.html?file=".concat(src).concat(waterMark ? '&watermark=' + waterMark : '')
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
export default LabPdfView;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
.img-wrap {
|
|
2
|
+
width: 100%;
|
|
3
|
+
height: 100%;
|
|
4
|
+
margin: 0;
|
|
5
|
+
overflow: hidden;
|
|
6
|
+
background: #fff;
|
|
7
|
+
|
|
8
|
+
img {
|
|
9
|
+
display: block;
|
|
10
|
+
width: auto;
|
|
11
|
+
max-width: 94%;
|
|
12
|
+
height: auto;
|
|
13
|
+
max-height: 94%;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.pdf-iframe {
|
|
18
|
+
width: 100%;
|
|
19
|
+
height: 100%;
|
|
20
|
+
border: none;
|
|
21
|
+
outline: none;
|
|
22
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { FC } from 'react';
|
|
2
|
+
import './style.less';
|
|
3
|
+
interface IndexProps {
|
|
4
|
+
close: () => void;
|
|
5
|
+
imgList: any;
|
|
6
|
+
curImgIndex?: number;
|
|
7
|
+
visible?: boolean;
|
|
8
|
+
isShowTitle?: boolean;
|
|
9
|
+
fileField?: object;
|
|
10
|
+
}
|
|
11
|
+
declare const LabPictureCarousel: FC<IndexProps>;
|
|
12
|
+
export default LabPictureCarousel;
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
4
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
5
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
|
+
/*
|
|
8
|
+
* @Author: xqy
|
|
9
|
+
* @Date: 2024-04-10 11:04:12
|
|
10
|
+
* @LastEditors: xqy
|
|
11
|
+
* @LastEditTime: 2024-04-11 16:16:03
|
|
12
|
+
* @Description:图片轮播切换组件(支持pdf切换预览)
|
|
13
|
+
*/
|
|
14
|
+
import { CloseOutlined, LeftOutlined, RightOutlined } from '@ant-design/icons';
|
|
15
|
+
import cn from 'classnames';
|
|
16
|
+
import React, { useEffect, useState } from 'react';
|
|
17
|
+
import { LabPdfView } from "./..";
|
|
18
|
+
import "./style.less";
|
|
19
|
+
var LabPictureCarousel = function LabPictureCarousel(props) {
|
|
20
|
+
var _list$curIndex;
|
|
21
|
+
var close = props.close,
|
|
22
|
+
imgList = props.imgList,
|
|
23
|
+
curImgIndex = props.curImgIndex,
|
|
24
|
+
visible = props.visible,
|
|
25
|
+
_props$isShowTitle = props.isShowTitle,
|
|
26
|
+
isShowTitle = _props$isShowTitle === void 0 ? false : _props$isShowTitle,
|
|
27
|
+
_props$fileField = props.fileField,
|
|
28
|
+
fileField = _props$fileField === void 0 ? {
|
|
29
|
+
filePath: 'filePath',
|
|
30
|
+
fileName: 'fileName'
|
|
31
|
+
} : _props$fileField;
|
|
32
|
+
var _useState = useState(curImgIndex),
|
|
33
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
34
|
+
curIndex = _useState2[0],
|
|
35
|
+
setCurIndex = _useState2[1];
|
|
36
|
+
var _useState3 = useState(false),
|
|
37
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
38
|
+
isShow = _useState4[0],
|
|
39
|
+
setIsShow = _useState4[1];
|
|
40
|
+
var _useState5 = useState(1),
|
|
41
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
42
|
+
scale = _useState6[0],
|
|
43
|
+
setScale = _useState6[1];
|
|
44
|
+
var _useState7 = useState([]),
|
|
45
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
46
|
+
list = _useState8[0],
|
|
47
|
+
setList = _useState8[1]; //图片的数组
|
|
48
|
+
|
|
49
|
+
/**鼠标滚轮实现图片的放大缩小 */
|
|
50
|
+
var handleWheel = function handleWheel(event) {
|
|
51
|
+
// event.preventDefault() //阻止默认的滚动行为,防止浏览器默认进行页面滚动
|
|
52
|
+
var scaleChange = event.deltaY > 0 ? -0.1 : 0.1;
|
|
53
|
+
var newScale = scale + scaleChange; // 计算新的缩放比例
|
|
54
|
+
// 限制缩放比例在一定范围内(0.5到2之间)限制放大和缩小的范围
|
|
55
|
+
if (newScale >= 0.2 && newScale <= 3) {
|
|
56
|
+
setScale(newScale);
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
//点击切换事件
|
|
61
|
+
var carouselClick = function carouselClick(type) {
|
|
62
|
+
if (type === 'lt') {
|
|
63
|
+
//向左切换
|
|
64
|
+
if (curIndex === 0) {
|
|
65
|
+
//当前的索引为0,获取最后一张图片
|
|
66
|
+
setCurIndex((list === null || list === void 0 ? void 0 : list.length) - 1);
|
|
67
|
+
return;
|
|
68
|
+
} else {
|
|
69
|
+
//获取上一张的图片
|
|
70
|
+
setCurIndex(curIndex - 1);
|
|
71
|
+
}
|
|
72
|
+
} else {
|
|
73
|
+
//向右切换
|
|
74
|
+
if (curIndex === (list === null || list === void 0 ? void 0 : list.length) - 1) {
|
|
75
|
+
//索引为最后一张,还切换就是切换到第一张
|
|
76
|
+
setCurIndex(0);
|
|
77
|
+
} else {
|
|
78
|
+
//获取下一张的图片
|
|
79
|
+
setCurIndex(curIndex + 1);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
//关闭弹框
|
|
85
|
+
var closeCarousel = function closeCarousel() {
|
|
86
|
+
close === null || close === void 0 || close();
|
|
87
|
+
setScale(1); //恢复到初始图片的尺寸状态
|
|
88
|
+
};
|
|
89
|
+
useEffect(function () {
|
|
90
|
+
if (Array.isArray(imgList) && imgList.length) {
|
|
91
|
+
var filePath = fileField.filePath,
|
|
92
|
+
fileName = fileField.fileName;
|
|
93
|
+
var arr = imgList.map(function (i) {
|
|
94
|
+
var _i$filePath;
|
|
95
|
+
var type = (_i$filePath = i[filePath]) === null || _i$filePath === void 0 ? void 0 : _i$filePath.substring(i[filePath].lastIndexOf('.') + 1);
|
|
96
|
+
return {
|
|
97
|
+
fileType: type === null || type === void 0 ? void 0 : type.toLowerCase(),
|
|
98
|
+
filePath: i[filePath],
|
|
99
|
+
fileName: i[fileName]
|
|
100
|
+
};
|
|
101
|
+
});
|
|
102
|
+
setList(arr);
|
|
103
|
+
console.log('arr', arr, imgList);
|
|
104
|
+
}
|
|
105
|
+
setIsShow(visible);
|
|
106
|
+
setCurIndex(curImgIndex);
|
|
107
|
+
}, [visible]);
|
|
108
|
+
return isShow && /*#__PURE__*/React.createElement("div", {
|
|
109
|
+
className: cn('about-wrap')
|
|
110
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
111
|
+
className: "headerPart"
|
|
112
|
+
}, isShowTitle && /*#__PURE__*/React.createElement("span", {
|
|
113
|
+
className: "title"
|
|
114
|
+
}, (_list$curIndex = list[curIndex]) === null || _list$curIndex === void 0 ? void 0 : _list$curIndex.fileName), /*#__PURE__*/React.createElement(CloseOutlined, {
|
|
115
|
+
onClick: closeCarousel,
|
|
116
|
+
style: {
|
|
117
|
+
color: '#fff',
|
|
118
|
+
fontSize: '24px',
|
|
119
|
+
cursor: 'pointer',
|
|
120
|
+
margin: '2px 5px 0 0'
|
|
121
|
+
}
|
|
122
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
123
|
+
className: "contentPart",
|
|
124
|
+
style: {
|
|
125
|
+
height: "".concat(window.innerHeight - 45, "px")
|
|
126
|
+
}
|
|
127
|
+
}, list[curIndex] && Object.keys(list[curIndex]).length && /*#__PURE__*/React.createElement("div", {
|
|
128
|
+
className: "contentDiv",
|
|
129
|
+
style: {
|
|
130
|
+
width: list[curIndex].fileType === 'pdf' ? '830px' : '600px'
|
|
131
|
+
}
|
|
132
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
133
|
+
className: cn('imgContainer', list[curIndex].fileType === 'pdf' && 'pdfStyle')
|
|
134
|
+
}, list[curIndex].fileType === 'pdf' ? /*#__PURE__*/React.createElement(LabPdfView, {
|
|
135
|
+
src: list[curIndex].filePath
|
|
136
|
+
}) : /*#__PURE__*/React.createElement("img", {
|
|
137
|
+
style: {
|
|
138
|
+
maxWidth: '100%',
|
|
139
|
+
maxHeight: '100%',
|
|
140
|
+
transform: "scale(".concat(scale, ")"),
|
|
141
|
+
transition: 'transform 0.25s ease' // 添加平滑的缩放过渡效果
|
|
142
|
+
},
|
|
143
|
+
src: list[curIndex].filePath,
|
|
144
|
+
onWheel: handleWheel
|
|
145
|
+
}))), list.length > 1 ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("span", {
|
|
146
|
+
onClick: function onClick() {
|
|
147
|
+
return carouselClick('lt');
|
|
148
|
+
},
|
|
149
|
+
className: "toggleIcon leftIcon"
|
|
150
|
+
}, /*#__PURE__*/React.createElement(LeftOutlined, {
|
|
151
|
+
className: "spanIcon"
|
|
152
|
+
})), /*#__PURE__*/React.createElement("span", {
|
|
153
|
+
onClick: function onClick() {
|
|
154
|
+
return carouselClick('rt');
|
|
155
|
+
},
|
|
156
|
+
className: "toggleIcon rightIcon"
|
|
157
|
+
}, /*#__PURE__*/React.createElement(RightOutlined, {
|
|
158
|
+
className: "spanIcon"
|
|
159
|
+
}))) : null));
|
|
160
|
+
};
|
|
161
|
+
export default LabPictureCarousel;
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
.about-wrap {
|
|
2
|
+
position: fixed;
|
|
3
|
+
top: 0;
|
|
4
|
+
right: 0;
|
|
5
|
+
bottom: 0;
|
|
6
|
+
left: 0;
|
|
7
|
+
background-color: #00000073;
|
|
8
|
+
z-index: 1000000;
|
|
9
|
+
width: 100%;
|
|
10
|
+
height: 100%;
|
|
11
|
+
|
|
12
|
+
.headerPart {
|
|
13
|
+
position: absolute;
|
|
14
|
+
z-index: 9999;
|
|
15
|
+
height: 45px;
|
|
16
|
+
width: 100%;
|
|
17
|
+
padding-right: 10px;
|
|
18
|
+
display: flex;
|
|
19
|
+
justify-content: flex-end;
|
|
20
|
+
align-items: center;
|
|
21
|
+
background: rgba(0, 0, 0, 10%);
|
|
22
|
+
|
|
23
|
+
.title {
|
|
24
|
+
position: absolute;
|
|
25
|
+
left: 31px;
|
|
26
|
+
font-size: 24px;
|
|
27
|
+
color: #fff;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.contentPart {
|
|
32
|
+
position: relative;
|
|
33
|
+
|
|
34
|
+
.contentDiv {
|
|
35
|
+
height: 100%;
|
|
36
|
+
padding: 5px;
|
|
37
|
+
width: 600px;
|
|
38
|
+
margin: 0 auto;
|
|
39
|
+
|
|
40
|
+
.imgContainer {
|
|
41
|
+
display: flex;
|
|
42
|
+
align-items: center;
|
|
43
|
+
justify-content: center;
|
|
44
|
+
height: 100%;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.pdfStyle {
|
|
48
|
+
margin-top: 45px;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.toggleIcon {
|
|
53
|
+
position: fixed;
|
|
54
|
+
width: 44px;
|
|
55
|
+
height: 44px;
|
|
56
|
+
border-radius: 50%;
|
|
57
|
+
top: 50%;
|
|
58
|
+
display: flex;
|
|
59
|
+
justify-content: center;
|
|
60
|
+
align-items: center;
|
|
61
|
+
cursor: pointer;
|
|
62
|
+
background: rgba(0, 0, 0, 10%);
|
|
63
|
+
transform: translateY(-50%);
|
|
64
|
+
transition: all 0.3s;
|
|
65
|
+
pointer-events: auto;
|
|
66
|
+
|
|
67
|
+
.spanIcon {
|
|
68
|
+
color: #fff;
|
|
69
|
+
font-size: 18px;
|
|
70
|
+
font-weight: 600;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.leftIcon {
|
|
75
|
+
left: 8%;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.rightIcon {
|
|
79
|
+
right: 8%;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.empty {
|
|
84
|
+
display: flex;
|
|
85
|
+
align-items: center;
|
|
86
|
+
justify-content: center;
|
|
87
|
+
width: 100%;
|
|
88
|
+
height: 100%;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
window._iconfont_svg_string_4487114 = '<svg><symbol id="icon-ke" viewBox="0 0 1024 1024"><path d="M212.0192 631.2448a671.6416 671.6416 0 0 0 103.168-204.8H220.416V384h98.3552V295.8336q-46.08 4.7616-87.04 8.3968a310.3232 310.3232 0 0 0-11.9808-44.3904q116.3776-8.3968 231.0144-26.4192l15.36 44.3904q-54.016 7.2192-102.4 12.5952V384h95.488v42.5984H363.776v67.84l26.4192-24.0128q43.264 37.1712 79.8208 72.6016l-33.6384 34.2016q-38.4-43.1616-72.6016-75.008v293.9904h-45.0048v-270.592q-35.328 92.16-83.968 156.6208c-6.8096-16.384-14.3872-33.4336-22.784-50.9952z m216.576-31.7952l235.2128-20.8896V207.616h46.08v366.592l94.8224-8.96 3.584 43.1616-98.4064 9.0112v178.7904h-46.08v-174.592l-230.4 20.992z m35.84-154.2144l28.8256-30.72q68.352 53.4528 103.168 85.1968l-31.1808 36.608Q537.2416 506.88 464.5888 445.44z m35.4304-144.0256l27.7504-29.8496q66.56 51.2 107.9808 89.4464l-31.1808 35.3792a1328.5376 1328.5376 0 0 0-104.3968-94.976z" fill="#FF7D00" ></path><path d="M512 0a512 512 0 1 0 512 512A512 512 0 0 0 512 0z m0 962.56a450.56 450.56 0 1 1 450.56-450.56 450.56 450.56 0 0 1-450.56 450.56z" fill="#FF7D00" ></path></symbol><symbol id="icon-guan" viewBox="0 0 1024 1024"><path d="M512 0a512 512 0 1 0 512 512A512 512 0 0 0 512 0z m0 962.56a450.56 450.56 0 1 1 450.56-450.56 450.56 450.56 0 0 1-450.56 450.56z" fill="#3491FA" ></path><path d="M395.6224 375.6544q-22.784-30.0544-49.8176-61.44l26.9824-19.2H321.1776a465.92 465.92 0 0 1-76.8 77.4144q-11.9808-14.0288-29.952-33.3824a427.3664 427.3664 0 0 0 114.5856-137.4208h51.6096A565.8624 565.8624 0 0 1 348.16 258.048h176.0768v37.1712H380.0064q26.9824 26.112 51.2 53.4016zM239.0016 378.88h256.512q-10.5472-18.8928-25.6-41.984l41.3696-18.0224a567.2448 567.2448 0 0 1 35.84 60.0064h237.2608v92.7744h-46.08V417.6384H285.184v54.5792h-46.08z m67.7888 83.1488h369.6128v144.5888h-45.6192v-15.0016H353.28v45.6192h373.76v156.6208h-45.568v-22.8352H353.28v23.3984h-46.08z m323.9936 35.84H353.28v57.6h277.504z m50.432 175.2064H353.28V732.16h328.192z m-11.4176-298.1888a746.752 746.752 0 0 0-48.5888-61.44l26.112-18.6368h-50.7392a509.5424 509.5424 0 0 1-36.5568 51.6096 272.2816 272.2816 0 0 0-36.608-28.9792 395.3152 395.3152 0 0 0 70.1952-115.8144H645.12q-12.9024 29.7472-27.3408 56.32h191.744v37.1712h-153.6A670.1056 670.1056 0 0 1 705.1776 348.16z" fill="#3491FA" ></path></symbol><symbol id="icon-jian" viewBox="0 0 1024 1024"><path d="M212.5824 582.656q56.9856-91.136 87.04-213.0432H218.624v-39.5776h86.3744V209.408h41.984v120.6272h80.4352v39.5776H346.9824v88.832l26.4192-19.2q32.4096 39.5264 56.9856 74.3936l-32.9728 25.6a764.7232 764.7232 0 0 0-50.432-73.8304v330.24h-41.984V460.8q-30.72 106.752-73.216 174.592a340.1216 340.1216 0 0 0-19.2-52.736z m427.8272-368.64l-7.7824 12.032A483.4816 483.4816 0 0 0 814.08 411.0336q-16.1792 17.9712-33.024 40.96Q663.8592 369.0496 606.208 266.24q-71.68 115.8144-163.84 192.5632a299.0592 299.0592 0 0 0-34.2016-37.7856A610.048 610.048 0 0 0 583.68 214.2208zM412.416 726.6304h228.608q32.3072-87.6032 67.1744-223.1808l48.5888 13.7728Q716.8 643.8912 686.08 726.6304h112.64v42.5984H412.416z m29.3888-198.6048l41.4208-11.9808q22.7328 66.56 46.7968 162.6112l-44.4416 13.1584q-19.6608-89.3952-43.776-163.7888z m41.4208-98.4064h245.76v42.0352h-245.76z m72.6016 74.3936l41.984-10.24q23.4496 82.7904 39.0144 165.632l-45.0048 11.3152a1408 1408 0 0 0-35.9936-166.7072z" fill="#0CC6C2" ></path><path d="M512 0a512 512 0 1 0 512 512A512 512 0 0 0 512 0z m0 962.56a450.56 450.56 0 1 1 450.56-450.56 450.56 450.56 0 0 1-450.56 450.56z" fill="#0CC6C2" ></path></symbol></svg>', function (n) {
|
|
1
|
+
window._iconfont_svg_string_4487114 = '<svg><symbol id="icon-PDF1" viewBox="0 0 1024 1024"><path d="M916.979 266.291L661.633 10.945c-6.385-6.385-12.771-9.576-22.345-9.576H192.435c-54.261 0-95.756 41.495-95.756 95.756v829.87c0 54.266 41.495 95.756 95.756 95.756h638.364c54.261 0 95.756-41.49 95.756-95.756V288.631c0-9.574-3.196-15.954-9.576-22.34z m-54.265 660.704c0 19.155-15.955 31.92-31.915 31.92H192.435c-19.151 0-31.92-15.96-31.92-31.92V97.125c0-19.151 15.96-31.921 31.92-31.921h414.938l255.342 255.347v606.444z m0 0" fill="#D2251C" ></path><path d="M505.05 312.691c57.604-43.204 43.203-178.575-20.164-172.813-20.159 2.878-37.44 8.64-48.963 46.081 0 2.882-17.282 69.127 20.164 129.61 11.519 17.285-8.641 40.327-40.323 72.006-17.286 17.286-37.446 37.445-51.847 63.366-34.562 0-66.245 28.804-66.245 28.804s-40.324 37.445-31.683 72.008c2.878 14.401 14.401 25.921 37.445 31.683h5.757c17.28 0 74.89-5.762 95.05-80.647 2.878-2.878 8.64-17.279 20.163-34.561 0 0 95.05-14.402 175.697-28.804 5.758 2.878 43.202 31.682 83.525 37.445 17.28 2.877 60.487 0 80.646-31.683 8.641-11.524 8.641-46.085-11.519-60.485-11.523-8.643-40.323-25.923-158.415-2.881-34.562 8.639-69.128-31.686-89.288-69.129z m-17.28-115.21s5.757-2.882 8.639 8.641c0 0 8.641 25.921-11.523 72.006-5.761-14.403-5.761-31.683-5.761-46.085 0-17.281 5.761-34.562 8.645-34.562zM361.038 499.909c-8.641 17.28-17.281 40.323-43.207 37.44 0 0.001-5.757-31.683 43.207-37.44z m120.97-146.896c14.401 20.164 28.798 31.685 57.604 48.963-31.683 11.524-63.366 23.042-106.568 43.207 17.28-23.042 34.561-57.609 48.964-92.17z m169.934 66.244c23.043-20.159 69.128-5.757 69.128 0 0 0-37.445 28.805-69.128 0z m0 0" fill="#CE151C" ></path><path d="M344.694 793.549v70.441h-21.46V675.539h47.212c17.954 0 31.885 4.908 41.793 14.721 9.907 9.814 14.861 23.846 14.861 42.094 0 18.493-5.794 33.478-17.383 44.954-11.588 11.478-26.074 16.892-43.456 16.241h-21.567z m0-96.598v75.186h19.851c13.09 0 23.032-3.346 29.829-10.037 6.795-6.691 10.193-16.281 10.193-28.772 0-24.25-12.661-36.376-37.984-36.376h-21.889zM457.681 863.99V675.539h47.426c25.179 0 46.121 8.314 62.824 24.94 16.702 16.627 25.055 38.931 25.055 66.913 0 29.198-8.353 52.599-25.055 70.197-16.703 17.601-38.217 26.4-64.541 26.4h-45.709z m21.46-166.796v145.262h24.143c21.101 0 37.572-6.527 49.412-19.587 11.838-13.058 17.758-31.347 17.758-54.869 0-23.52-6.081-41.2-18.241-53.043-12.161-11.842-28.149-17.763-47.963-17.763h-25.109zM710.693 697.194h-64.165v63.02h59.444v21.412h-59.444v82.364h-21.46V675.539h85.625v21.655z" fill="#3C3C3C" ></path></symbol><symbol id="icon-ke" viewBox="0 0 1024 1024"><path d="M212.0192 631.2448a671.6416 671.6416 0 0 0 103.168-204.8H220.416V384h98.3552V295.8336q-46.08 4.7616-87.04 8.3968a310.3232 310.3232 0 0 0-11.9808-44.3904q116.3776-8.3968 231.0144-26.4192l15.36 44.3904q-54.016 7.2192-102.4 12.5952V384h95.488v42.5984H363.776v67.84l26.4192-24.0128q43.264 37.1712 79.8208 72.6016l-33.6384 34.2016q-38.4-43.1616-72.6016-75.008v293.9904h-45.0048v-270.592q-35.328 92.16-83.968 156.6208c-6.8096-16.384-14.3872-33.4336-22.784-50.9952z m216.576-31.7952l235.2128-20.8896V207.616h46.08v366.592l94.8224-8.96 3.584 43.1616-98.4064 9.0112v178.7904h-46.08v-174.592l-230.4 20.992z m35.84-154.2144l28.8256-30.72q68.352 53.4528 103.168 85.1968l-31.1808 36.608Q537.2416 506.88 464.5888 445.44z m35.4304-144.0256l27.7504-29.8496q66.56 51.2 107.9808 89.4464l-31.1808 35.3792a1328.5376 1328.5376 0 0 0-104.3968-94.976z" fill="#FF7D00" ></path><path d="M512 0a512 512 0 1 0 512 512A512 512 0 0 0 512 0z m0 962.56a450.56 450.56 0 1 1 450.56-450.56 450.56 450.56 0 0 1-450.56 450.56z" fill="#FF7D00" ></path></symbol><symbol id="icon-guan" viewBox="0 0 1024 1024"><path d="M512 0a512 512 0 1 0 512 512A512 512 0 0 0 512 0z m0 962.56a450.56 450.56 0 1 1 450.56-450.56 450.56 450.56 0 0 1-450.56 450.56z" fill="#3491FA" ></path><path d="M395.6224 375.6544q-22.784-30.0544-49.8176-61.44l26.9824-19.2H321.1776a465.92 465.92 0 0 1-76.8 77.4144q-11.9808-14.0288-29.952-33.3824a427.3664 427.3664 0 0 0 114.5856-137.4208h51.6096A565.8624 565.8624 0 0 1 348.16 258.048h176.0768v37.1712H380.0064q26.9824 26.112 51.2 53.4016zM239.0016 378.88h256.512q-10.5472-18.8928-25.6-41.984l41.3696-18.0224a567.2448 567.2448 0 0 1 35.84 60.0064h237.2608v92.7744h-46.08V417.6384H285.184v54.5792h-46.08z m67.7888 83.1488h369.6128v144.5888h-45.6192v-15.0016H353.28v45.6192h373.76v156.6208h-45.568v-22.8352H353.28v23.3984h-46.08z m323.9936 35.84H353.28v57.6h277.504z m50.432 175.2064H353.28V732.16h328.192z m-11.4176-298.1888a746.752 746.752 0 0 0-48.5888-61.44l26.112-18.6368h-50.7392a509.5424 509.5424 0 0 1-36.5568 51.6096 272.2816 272.2816 0 0 0-36.608-28.9792 395.3152 395.3152 0 0 0 70.1952-115.8144H645.12q-12.9024 29.7472-27.3408 56.32h191.744v37.1712h-153.6A670.1056 670.1056 0 0 1 705.1776 348.16z" fill="#3491FA" ></path></symbol><symbol id="icon-jian" viewBox="0 0 1024 1024"><path d="M212.5824 582.656q56.9856-91.136 87.04-213.0432H218.624v-39.5776h86.3744V209.408h41.984v120.6272h80.4352v39.5776H346.9824v88.832l26.4192-19.2q32.4096 39.5264 56.9856 74.3936l-32.9728 25.6a764.7232 764.7232 0 0 0-50.432-73.8304v330.24h-41.984V460.8q-30.72 106.752-73.216 174.592a340.1216 340.1216 0 0 0-19.2-52.736z m427.8272-368.64l-7.7824 12.032A483.4816 483.4816 0 0 0 814.08 411.0336q-16.1792 17.9712-33.024 40.96Q663.8592 369.0496 606.208 266.24q-71.68 115.8144-163.84 192.5632a299.0592 299.0592 0 0 0-34.2016-37.7856A610.048 610.048 0 0 0 583.68 214.2208zM412.416 726.6304h228.608q32.3072-87.6032 67.1744-223.1808l48.5888 13.7728Q716.8 643.8912 686.08 726.6304h112.64v42.5984H412.416z m29.3888-198.6048l41.4208-11.9808q22.7328 66.56 46.7968 162.6112l-44.4416 13.1584q-19.6608-89.3952-43.776-163.7888z m41.4208-98.4064h245.76v42.0352h-245.76z m72.6016 74.3936l41.984-10.24q23.4496 82.7904 39.0144 165.632l-45.0048 11.3152a1408 1408 0 0 0-35.9936-166.7072z" fill="#0CC6C2" ></path><path d="M512 0a512 512 0 1 0 512 512A512 512 0 0 0 512 0z m0 962.56a450.56 450.56 0 1 1 450.56-450.56 450.56 450.56 0 0 1-450.56 450.56z" fill="#0CC6C2" ></path></symbol></svg>', function (n) {
|
|
2
2
|
var t = (t = document.getElementsByTagName("script"))[t.length - 1],
|
|
3
3
|
e = t.getAttribute("data-injectcss"),
|
|
4
4
|
t = t.getAttribute("data-disable-injectsvg");
|
|
5
5
|
if (!t) {
|
|
6
|
-
var
|
|
7
|
-
|
|
6
|
+
var l,
|
|
7
|
+
_i,
|
|
8
|
+
h,
|
|
8
9
|
a,
|
|
9
10
|
o,
|
|
10
|
-
|
|
11
|
-
d = function d(t, e) {
|
|
11
|
+
c = function c(t, e) {
|
|
12
12
|
e.parentNode.insertBefore(t, e);
|
|
13
13
|
};
|
|
14
14
|
if (e && !n.__iconfont__svg__cssinject__) {
|
|
@@ -19,25 +19,25 @@ window._iconfont_svg_string_4487114 = '<svg><symbol id="icon-ke" viewBox="0 0 10
|
|
|
19
19
|
console && console.log(t);
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
-
|
|
22
|
+
l = function l() {
|
|
23
23
|
var t,
|
|
24
24
|
e = document.createElement("div");
|
|
25
|
-
e.innerHTML = n._iconfont_svg_string_4487114, (e = e.getElementsByTagName("svg")[0]) && (e.setAttribute("aria-hidden", "true"), e.style.position = "absolute", e.style.width = 0, e.style.height = 0, e.style.overflow = "hidden", e = e, (t = document.body).firstChild ?
|
|
26
|
-
}, document.addEventListener ? ~["complete", "loaded", "interactive"].indexOf(document.readyState) ? setTimeout(
|
|
27
|
-
document.removeEventListener("DOMContentLoaded",
|
|
28
|
-
}, document.addEventListener("DOMContentLoaded",
|
|
29
|
-
"complete" ==
|
|
25
|
+
e.innerHTML = n._iconfont_svg_string_4487114, (e = e.getElementsByTagName("svg")[0]) && (e.setAttribute("aria-hidden", "true"), e.style.position = "absolute", e.style.width = 0, e.style.height = 0, e.style.overflow = "hidden", e = e, (t = document.body).firstChild ? c(e, t.firstChild) : t.appendChild(e));
|
|
26
|
+
}, document.addEventListener ? ~["complete", "loaded", "interactive"].indexOf(document.readyState) ? setTimeout(l, 0) : (_i = function i() {
|
|
27
|
+
document.removeEventListener("DOMContentLoaded", _i, !1), l();
|
|
28
|
+
}, document.addEventListener("DOMContentLoaded", _i, !1)) : document.attachEvent && (h = l, a = n.document, o = !1, v(), a.onreadystatechange = function () {
|
|
29
|
+
"complete" == a.readyState && (a.onreadystatechange = null, d());
|
|
30
30
|
});
|
|
31
31
|
}
|
|
32
|
-
function
|
|
33
|
-
|
|
32
|
+
function d() {
|
|
33
|
+
o || (o = !0, h());
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function v() {
|
|
36
36
|
try {
|
|
37
|
-
|
|
37
|
+
a.documentElement.doScroll("left");
|
|
38
38
|
} catch (t) {
|
|
39
|
-
return void setTimeout(
|
|
39
|
+
return void setTimeout(v, 50);
|
|
40
40
|
}
|
|
41
|
-
|
|
41
|
+
d();
|
|
42
42
|
}
|
|
43
43
|
}(window);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createFromIconfontCN } from '@ant-design/icons';
|
|
2
|
-
var ICONFONT_URL = '//at.alicdn.com/t/c/
|
|
2
|
+
var ICONFONT_URL = '//at.alicdn.com/t/c/font_4487114_tarzbgmnf89.js';
|
|
3
3
|
// 生产环境使用本地的iconfont.js,开发环境使用线上环境以方便开发
|
|
4
4
|
var Iconfont = createFromIconfontCN({
|
|
5
5
|
scriptUrl: process.env.NODE_ENV === 'development' ? ICONFONT_URL : require("./iconfont.js") // 在 iconfont.cn 上生成
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
export { default as LabDGTreeSelect } from './LabDGTreeSelect';
|
|
1
2
|
export { default as LabGTreeSelect } from './LabGTreeSelect';
|
|
2
3
|
export { default as LabGroupTree } from './LabGroupTree';
|
|
3
|
-
export { default as LabDGTreeSelect } from './LabDGTreeSelect';
|
|
4
4
|
export * from './LabGroupTree/typing';
|
|
5
|
+
export { default as LabPdfView } from './LabPdfView';
|
|
6
|
+
export { default as LabPictureCarousel } from './LabPictureCarousel';
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
export { default as LabDGTreeSelect } from "./LabDGTreeSelect";
|
|
1
2
|
export { default as LabGTreeSelect } from "./LabGTreeSelect";
|
|
2
3
|
export { default as LabGroupTree } from "./LabGroupTree";
|
|
3
|
-
export
|
|
4
|
-
export
|
|
4
|
+
export * from "./LabGroupTree/typing";
|
|
5
|
+
export { default as LabPdfView } from "./LabPdfView";
|
|
6
|
+
export { default as LabPictureCarousel } from "./LabPictureCarousel";
|