xh-lab-rc 0.0.7 → 0.0.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.
@@ -0,0 +1,8 @@
1
+ import type { FC } from 'react';
2
+ import '../style.less';
3
+ interface IndexProps {
4
+ visible?: boolean;
5
+ onCancel?: () => void;
6
+ }
7
+ declare const SetupModal: FC<IndexProps>;
8
+ export default SetupModal;
@@ -0,0 +1,42 @@
1
+ import { Button, Form, Input, Modal } from 'antd';
2
+ import React from 'react';
3
+ import "../style.less";
4
+ var SetupModal = function SetupModal(_ref) {
5
+ var _ref$visible = _ref.visible,
6
+ visible = _ref$visible === void 0 ? false : _ref$visible,
7
+ onCancel = _ref.onCancel;
8
+ var onFinish = function onFinish(values) {
9
+ console.log('Success:', values);
10
+ };
11
+ var handleCancel = function handleCancel() {
12
+ onCancel === null || onCancel === void 0 || onCancel();
13
+ };
14
+ return /*#__PURE__*/React.createElement(Modal, {
15
+ title: "\u8BBE\u7F6E",
16
+ open: visible,
17
+ onCancel: handleCancel
18
+ }, /*#__PURE__*/React.createElement("div", {
19
+ className: "setup"
20
+ }, /*#__PURE__*/React.createElement(Form, {
21
+ name: "basic",
22
+ labelCol: {
23
+ span: 5
24
+ },
25
+ wrapperCol: {
26
+ span: 19
27
+ },
28
+ onFinish: onFinish
29
+ }, /*#__PURE__*/React.createElement(Form.Item, {
30
+ label: "\u8BBE\u5907",
31
+ name: "username"
32
+ }, /*#__PURE__*/React.createElement(Input, null)), /*#__PURE__*/React.createElement(Form.Item, {
33
+ wrapperCol: {
34
+ offset: 8,
35
+ span: 16
36
+ }
37
+ }, /*#__PURE__*/React.createElement(Button, {
38
+ type: "primary",
39
+ htmlType: "submit"
40
+ }, "\u4FDD\u5B58")))));
41
+ };
42
+ export default SetupModal;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import './style.less';
3
+ interface IndexProps {
4
+ onSave?: (imgList: any) => void;
5
+ }
6
+ declare const LabAltimeter: ({ onSave }: IndexProps) => React.JSX.Element;
7
+ export default LabAltimeter;
@@ -0,0 +1,595 @@
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
+ 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; }
3
+ 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); } }
4
+ 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); }); }; }
5
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
6
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
7
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
8
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
9
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
10
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
11
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
12
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
13
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
14
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
15
+ 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."); }
16
+ 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); }
17
+ 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; }
18
+ 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; } }
19
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
20
+ /*
21
+ * @Author: xqy
22
+ * @Date: 2024-04-23 13:43:55
23
+ * @LastEditors: xqy
24
+ * @LastEditTime: 2024-04-28 19:05:34
25
+ * @Description: 高拍仪
26
+ */
27
+ import { Iconfont } from "../components";
28
+ import { LabBase64ToFile } from "../utils/utils";
29
+ import { Button, Checkbox, Input, Select, message } from 'antd';
30
+ import cn from 'classnames';
31
+ import dayjs from 'dayjs';
32
+ import React, { useEffect, useState } from 'react';
33
+ import SetupModal from "./SetupModal";
34
+ import "./style.less";
35
+ var LabAltimeter = function LabAltimeter(_ref) {
36
+ var onSave = _ref.onSave;
37
+ var _useState = useState(false),
38
+ _useState2 = _slicedToArray(_useState, 2),
39
+ setUpVisible = _useState2[0],
40
+ setSetUpVisible = _useState2[1];
41
+ var _useState3 = useState([]),
42
+ _useState4 = _slicedToArray(_useState3, 2),
43
+ imgList = _useState4[0],
44
+ setImgList = _useState4[1];
45
+ var _useState5 = useState(false),
46
+ _useState6 = _slicedToArray(_useState5, 2),
47
+ selectAll = _useState6[0],
48
+ setSelectAll = _useState6[1];
49
+ // 当前拖拽对象
50
+ var _useState7 = useState(),
51
+ _useState8 = _slicedToArray(_useState7, 2),
52
+ oldDragItem = _useState8[0],
53
+ setOldDrageItem = _useState8[1];
54
+ // 是否拖拽
55
+ var _useState9 = useState(),
56
+ _useState10 = _slicedToArray(_useState9, 2),
57
+ isActive = _useState10[0],
58
+ setIsActive = _useState10[1];
59
+ // 是否拖拽进行
60
+ var _useState11 = useState(),
61
+ _useState12 = _slicedToArray(_useState11, 2),
62
+ isEnter = _useState12[0],
63
+ setIsEnter = _useState12[1];
64
+ // 拖拽交换对象
65
+ var _useState13 = useState(),
66
+ _useState14 = _slicedToArray(_useState13, 2),
67
+ newDragItem = _useState14[0],
68
+ setNewDragItem = _useState14[1];
69
+ //当前预览的pdf的地址
70
+ var _useState15 = useState(''),
71
+ _useState16 = _slicedToArray(_useState15, 2),
72
+ curPreviewPath = _useState16[0],
73
+ setCurPreviewPath = _useState16[1];
74
+ //合成的pdf的文件下标索引
75
+ var _useState17 = useState(0),
76
+ _useState18 = _slicedToArray(_useState17, 2),
77
+ pdfIndex = _useState18[0],
78
+ setPdfIndex = _useState18[1];
79
+ //预览的图片或pdf
80
+ var _useState19 = useState(false),
81
+ _useState20 = _slicedToArray(_useState19, 2),
82
+ isShowPdf = _useState20[0],
83
+ setIsShowPdf = _useState20[1];
84
+ // 图标
85
+ var iconType = ['icon-zuoxuan', 'icon-youxuan', 'icon-duijiao'];
86
+ // 高拍仪类型
87
+ var options = [{
88
+ value: '1',
89
+ label: '良田'
90
+ }, {
91
+ value: '2',
92
+ label: '科密'
93
+ }];
94
+
95
+ //关闭设置弹框
96
+ var handleCancel = function handleCancel() {
97
+ setSetUpVisible(false);
98
+ };
99
+
100
+ //全选和取消全选
101
+ var handleSelectAll = function handleSelectAll() {
102
+ var updatedList = imgList.map(function (item) {
103
+ return _objectSpread(_objectSpread({}, item), {}, {
104
+ isChecked: !selectAll
105
+ });
106
+ });
107
+ setImgList(updatedList);
108
+ setSelectAll(!selectAll);
109
+ };
110
+
111
+ // 单选功能
112
+ var handleSelectSingle = function handleSelectSingle(e, index) {
113
+ var _e$target;
114
+ var updatedList = _toConsumableArray(imgList);
115
+ updatedList[index].isChecked = e === null || e === void 0 || (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.checked;
116
+ setImgList(updatedList);
117
+ };
118
+
119
+ //抽取接口请求方法
120
+ var fetchRequest = /*#__PURE__*/function () {
121
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(url, params, method) {
122
+ var res;
123
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
124
+ while (1) switch (_context.prev = _context.next) {
125
+ case 0:
126
+ _context.next = 2;
127
+ return fetch(url, {
128
+ method: method,
129
+ headers: {
130
+ 'Content-Type': 'application/json'
131
+ },
132
+ body: JSON.stringify(params) // 将JS对象转换为JSON字符串作为请求体
133
+ }).then(function (res) {
134
+ if (res.ok) {
135
+ return res.json();
136
+ } else {
137
+ message.error('请求接口异常');
138
+ }
139
+ throw new Error('网络请求失败!'); //抛出异常
140
+ }).then(function (data) {
141
+ return data;
142
+ });
143
+ case 2:
144
+ res = _context.sent;
145
+ return _context.abrupt("return", res);
146
+ case 4:
147
+ case "end":
148
+ return _context.stop();
149
+ }
150
+ }, _callee);
151
+ }));
152
+ return function fetchRequest(_x, _x2, _x3) {
153
+ return _ref2.apply(this, arguments);
154
+ };
155
+ }();
156
+
157
+ //图片添加到右边图像区域
158
+ var add_image = function add_image(img_base64, type) {
159
+ // type(1-pdf,0-图片)
160
+ var filePrefix = type ? 'data:application/pdf;base64,' : 'data:image/jpg;base64,';
161
+ var imgs = [{
162
+ filePath: "".concat(filePrefix).concat(img_base64),
163
+ fileName: '',
164
+ isShowIcon: false,
165
+ disabled: true,
166
+ isChecked: false,
167
+ fileType: type ? 'pdf' : 'jpg'
168
+ }];
169
+ //添加文件名(索引,四位数,前补0)
170
+ var curDate = dayjs().format('YYYYMMDD');
171
+ var newImgList = [].concat(imgs, _toConsumableArray(imgList)).map(function (item, index) {
172
+ item.fileName = "".concat(curDate, "-").concat("".concat(index + 1).padStart(4, '0'), ".").concat(item.fileType);
173
+ return item;
174
+ });
175
+ if (type) {
176
+ //合成完pdf,需要取消选中的图片
177
+ newImgList.map(function (item) {
178
+ return item.isChecked = false;
179
+ });
180
+ }
181
+ setImgList(newImgList);
182
+ };
183
+
184
+ //打开摄像头
185
+ var openCamera = function openCamera() {
186
+ var _document;
187
+ if ((_document = document) !== null && _document !== void 0 && _document.getElementById('view')) {
188
+ var img = document.getElementById('view');
189
+ img.src = 'http://127.0.0.1:38088/video=stream&camidx=0?1';
190
+ }
191
+ };
192
+
193
+ // 主摄像头拍照
194
+ var onTakePhoto = /*#__PURE__*/function () {
195
+ var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
196
+ var params, data;
197
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
198
+ while (1) switch (_context2.prev = _context2.next) {
199
+ case 0:
200
+ params = {
201
+ filepath: 'base64',
202
+ rotate: '0',
203
+ cutpage: '0',
204
+ camidx: '0',
205
+ ColorMode: '0',
206
+ quality: '3'
207
+ };
208
+ _context2.next = 3;
209
+ return fetchRequest('http://127.0.0.1:38088/video=grabimage', params, 'POST');
210
+ case 3:
211
+ data = _context2.sent;
212
+ if (_typeof(data) === 'object' && Object.keys(data).length > 0) {
213
+ add_image(data === null || data === void 0 ? void 0 : data.photoBase64, 0);
214
+ }
215
+ case 5:
216
+ case "end":
217
+ return _context2.stop();
218
+ }
219
+ }, _callee2);
220
+ }));
221
+ return function onTakePhoto() {
222
+ return _ref3.apply(this, arguments);
223
+ };
224
+ }();
225
+
226
+ // 旋转(左右旋转)
227
+ var rotate = /*#__PURE__*/function () {
228
+ var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(angle) {
229
+ var params, data;
230
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
231
+ while (1) switch (_context3.prev = _context3.next) {
232
+ case 0:
233
+ params = {
234
+ camidx: '0',
235
+ rotate: String(angle)
236
+ };
237
+ _context3.next = 3;
238
+ return fetchRequest('http://127.0.0.1:38088/video=rotate', params, 'POST');
239
+ case 3:
240
+ data = _context3.sent;
241
+ if (data) {
242
+ console.log('旋转' + String(angle) + '度成功');
243
+ }
244
+ case 5:
245
+ case "end":
246
+ return _context3.stop();
247
+ }
248
+ }, _callee3);
249
+ }));
250
+ return function rotate(_x4) {
251
+ return _ref4.apply(this, arguments);
252
+ };
253
+ }();
254
+
255
+ //放大
256
+ var onEnlarge = function onEnlarge() {};
257
+
258
+ //图标的点击事件
259
+ var onIconClick = function onIconClick(iconName) {
260
+ switch (iconName) {
261
+ case 'icon-a-fangda3':
262
+ onEnlarge();
263
+ break;
264
+ case 'icon-zuoxuan':
265
+ rotate(90);
266
+ break;
267
+ case 'icon-youxuan':
268
+ rotate(270);
269
+ break;
270
+ case 'icon-duijiao':
271
+ onTakePhoto();
272
+ break;
273
+ default:
274
+ (function () {})();
275
+ break;
276
+ //开关
277
+ }
278
+ };
279
+
280
+ //预览图片
281
+ var onPreviewFile = function onPreviewFile(item) {
282
+ if (item.fileType === 'pdf') {
283
+ setCurPreviewPath(item === null || item === void 0 ? void 0 : item.filePath);
284
+ setIsShowPdf(true);
285
+ } else {
286
+ var _document2;
287
+ if ((_document2 = document) !== null && _document2 !== void 0 && _document2.getElementById('view')) {
288
+ var img = document.getElementById('view');
289
+ img.src = item === null || item === void 0 ? void 0 : item.filePath;
290
+ }
291
+ setIsShowPdf(false);
292
+ }
293
+ setOldDrageItem(item);
294
+ setIsActive(item.filePath);
295
+ };
296
+
297
+ //鼠标移入图片(显示编辑和删除图标)
298
+ var handleMouseEnter = function handleMouseEnter(item, index) {
299
+ var updateList = _toConsumableArray(imgList);
300
+ updateList[index].isShowIcon = true;
301
+ setImgList(updateList);
302
+ setOldDrageItem(item);
303
+ setIsActive(item.filePath);
304
+ };
305
+
306
+ //鼠标移出图片(隐藏编辑和删除)
307
+ var handleMouseLeave = function handleMouseLeave(index) {
308
+ var updateList = _toConsumableArray(imgList);
309
+ updateList[index].isShowIcon = false;
310
+ updateList[index].disabled = true;
311
+ setImgList(updateList);
312
+ };
313
+
314
+ //修改文件的名称
315
+ var handChange = function handChange(e, index) {
316
+ var updateList = _toConsumableArray(imgList);
317
+ updateList[index].fileName = e === null || e === void 0 ? void 0 : e.target.value;
318
+ setImgList(updateList);
319
+ };
320
+
321
+ //点击编辑图标,允许编辑
322
+ var onEdit = function onEdit(index) {
323
+ var updateList = _toConsumableArray(imgList);
324
+ updateList[index].disabled = false;
325
+ setImgList(updateList);
326
+ };
327
+
328
+ //删除文件
329
+ var onDelete = function onDelete(filePath) {
330
+ var updateList = _toConsumableArray(imgList);
331
+ var newFileList = updateList.filter(function (item) {
332
+ return item.filePath !== filePath;
333
+ });
334
+ setImgList(newFileList);
335
+ };
336
+
337
+ // 计算选中的图片数量
338
+ var selectedCount = imgList.filter(function (item) {
339
+ return item.isChecked;
340
+ }).length;
341
+
342
+ //图片合成PDF
343
+ var ComposePhotosPDF = /*#__PURE__*/function () {
344
+ var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
345
+ var index, updateList, checkImgList, imgs, params, data;
346
+ return _regeneratorRuntime().wrap(function _callee4$(_context4) {
347
+ while (1) switch (_context4.prev = _context4.next) {
348
+ case 0:
349
+ index = pdfIndex + 1;
350
+ updateList = _toConsumableArray(imgList);
351
+ checkImgList = updateList.filter(function (item) {
352
+ return item.isChecked;
353
+ }); //选中的图片合成
354
+ if (!(checkImgList && checkImgList.length)) {
355
+ _context4.next = 13;
356
+ break;
357
+ }
358
+ imgs = imgList.map(function (i) {
359
+ return i.filePath;
360
+ }).join(',');
361
+ params = {
362
+ outputfilepath: "D:\\\u56FE\u7247\u5408\u6210PDF\\".concat(index, ".pdf"),
363
+ // 输出文件保存地址。例:D://图片合成pdf
364
+ outputmaxwidth: '3000',
365
+ // 合成后文件最大宽度。例:3000px
366
+ inputimagetype: '1',
367
+ // 待合成文件类型:0:file;1:base64
368
+ outputimagetype: '1',
369
+ // 合成后文件类型:0:jpg;1:PDF
370
+ imagelist: imgs.toString()
371
+ };
372
+ _context4.next = 8;
373
+ return fetchRequest('http://127.0.0.1:38088/compose=photos', params, 'POST');
374
+ case 8:
375
+ data = _context4.sent;
376
+ if (data) {
377
+ add_image(data === null || data === void 0 ? void 0 : data.base64, 1);
378
+ }
379
+ setPdfIndex(index);
380
+ _context4.next = 14;
381
+ break;
382
+ case 13:
383
+ message.warning('请先选择图片!');
384
+ case 14:
385
+ case "end":
386
+ return _context4.stop();
387
+ }
388
+ }, _callee4);
389
+ }));
390
+ return function ComposePhotosPDF() {
391
+ return _ref5.apply(this, arguments);
392
+ };
393
+ }();
394
+
395
+ // 拖拽开始
396
+ var _onDragStart = function onDragStart(item) {
397
+ setOldDrageItem(item);
398
+ setIsActive(item.filePath);
399
+ };
400
+
401
+ // 拖拽进行
402
+ var _onDragEnter = function onDragEnter(item) {
403
+ setIsEnter(item.filePath);
404
+ setNewDragItem(item);
405
+ };
406
+
407
+ //拖拽结束
408
+ var _onDragEnd = function onDragEnd() {
409
+ if (oldDragItem !== newDragItem) {
410
+ var oldIndex = imgList.indexOf(oldDragItem); //获取当前对象所在数组坐标
411
+ var newIndex = imgList.indexOf(newDragItem); //获取当前目标对象所在数组坐标
412
+ var newArray = _toConsumableArray(imgList);
413
+ newArray.splice(oldIndex, 1); //删除老节点
414
+ newArray.splice(newIndex, 0, oldDragItem); //增加新节点
415
+ setImgList(newArray); //保存拖拽后的数组
416
+ setIsActive(-1); //重置状态
417
+ setIsEnter(-1);
418
+ }
419
+ };
420
+
421
+ //保存文件
422
+ var handleSave = function handleSave() {
423
+ //将文件类型转化成file类型
424
+ var newImgList = imgList.map(function (i) {
425
+ var _i$fileName;
426
+ //去掉fileName后缀
427
+ var nameArr = (_i$fileName = i.fileName) === null || _i$fileName === void 0 ? void 0 : _i$fileName.split(".".concat(i.fileType));
428
+ return _objectSpread(_objectSpread({}, i), {}, {
429
+ file: LabBase64ToFile(i.filePath, nameArr[0])
430
+ });
431
+ });
432
+ onSave === null || onSave === void 0 || onSave(newImgList);
433
+ };
434
+ useEffect(function () {
435
+ openCamera(); //一开始就打开摄像头
436
+ }, []);
437
+ return /*#__PURE__*/React.createElement("div", {
438
+ className: "altimeter"
439
+ }, /*#__PURE__*/React.createElement("div", {
440
+ className: "top"
441
+ }, /*#__PURE__*/React.createElement("span", {
442
+ className: "top-text"
443
+ }, "\u626B\u63CF\u56FE\u50CF\u9884\u89C8"), /*#__PURE__*/React.createElement(Select, {
444
+ style: {
445
+ width: 160,
446
+ marginRight: '4px'
447
+ },
448
+ placeholder: "\u9AD8\u62CD\u4EEA",
449
+ allowClear: true,
450
+ options: options,
451
+ defaultValue: "1"
452
+ }), /*#__PURE__*/React.createElement("div", {
453
+ className: "g-f-rc icon-div"
454
+ }, iconType.map(function (iconName, i) {
455
+ return /*#__PURE__*/React.createElement("div", {
456
+ className: "icon g-f-rc",
457
+ key: i,
458
+ onClick: function onClick() {
459
+ return onIconClick(iconName);
460
+ }
461
+ }, /*#__PURE__*/React.createElement(Iconfont, {
462
+ type: iconName,
463
+ style: {
464
+ fontSize: '16px',
465
+ color: '#333333'
466
+ }
467
+ }));
468
+ })), /*#__PURE__*/React.createElement("div", {
469
+ className: "btns"
470
+ }, /*#__PURE__*/React.createElement(Button, {
471
+ type: "primary",
472
+ className: "g-m-r-4",
473
+ onClick: function onClick() {
474
+ return ComposePhotosPDF();
475
+ }
476
+ }, "\u5408\u6210PDF"), /*#__PURE__*/React.createElement(Button, {
477
+ type: "primary",
478
+ className: "g-m-r-4",
479
+ onClick: function onClick() {
480
+ return openCamera();
481
+ }
482
+ }, "\u56FE\u50CF\u91C7\u96C6"), /*#__PURE__*/React.createElement(Button, {
483
+ type: "primary",
484
+ className: "g-m-r-4",
485
+ onClick: function onClick() {
486
+ return handleSave();
487
+ }
488
+ }, "\u786E\u5B9A"))), /*#__PURE__*/React.createElement("div", {
489
+ className: "content"
490
+ }, /*#__PURE__*/React.createElement("div", {
491
+ className: "con-left"
492
+ }, !isShowPdf ? /*#__PURE__*/React.createElement("img", {
493
+ id: "view",
494
+ src: "http://127.0.0.1:38088/video=stream&camidx=0",
495
+ alt: "\u4E3B\u6444\u50CF\u5934"
496
+ }) : /*#__PURE__*/React.createElement("embed", {
497
+ src: curPreviewPath,
498
+ type: "application/pdf",
499
+ width: "100%",
500
+ height: "100%",
501
+ style: {
502
+ minHeight: '725px',
503
+ overflowY: 'auto'
504
+ }
505
+ })), /*#__PURE__*/React.createElement("div", {
506
+ className: "con-right"
507
+ }, /*#__PURE__*/React.createElement("div", {
508
+ className: "con-right-top"
509
+ }, /*#__PURE__*/React.createElement("span", {
510
+ className: "con-right-text"
511
+ }, "\u5DF2\u626B\u63CF\u56FE\u7247"), /*#__PURE__*/React.createElement(Checkbox, {
512
+ indeterminate: selectedCount > 0,
513
+ onChange: handleSelectAll
514
+ }, "\u5168\u9009(", selectedCount, "/", imgList.length, ")")), /*#__PURE__*/React.createElement("div", {
515
+ className: "con-right-preview"
516
+ }, imgList.length ? imgList.map(function (item, index) {
517
+ return /*#__PURE__*/React.createElement("div", {
518
+ className: cn('preview-item', oldDragItem === item && isActive === item.filePath ? 'active' : newDragItem === item && isEnter === item.filePath ? 'enter' : ''),
519
+ draggable: true,
520
+ key: index,
521
+ onMouseEnter: function onMouseEnter() {
522
+ return handleMouseEnter(item, index);
523
+ },
524
+ onMouseLeave: function onMouseLeave() {
525
+ return handleMouseLeave(index);
526
+ },
527
+ onDragStart: function onDragStart() {
528
+ return _onDragStart(item);
529
+ },
530
+ onDragEnter: function onDragEnter() {
531
+ return _onDragEnter(item);
532
+ },
533
+ onDragEnd: function onDragEnd() {
534
+ return _onDragEnd();
535
+ }
536
+ }, /*#__PURE__*/React.createElement("div", {
537
+ className: "imageArea g-f-rc",
538
+ key: index,
539
+ onClick: function onClick() {
540
+ return onPreviewFile(item);
541
+ }
542
+ }, item.isShowIcon && /*#__PURE__*/React.createElement(Iconfont, {
543
+ type: "icon-chahao",
544
+ style: {
545
+ fontSize: '13px',
546
+ color: '#909090',
547
+ cursor: 'pointer',
548
+ position: 'absolute',
549
+ top: '0px',
550
+ right: '1px'
551
+ },
552
+ onClick: function onClick() {
553
+ return onDelete(item.filePath);
554
+ }
555
+ }), item.fileType === 'pdf' ? /*#__PURE__*/React.createElement(Iconfont, {
556
+ type: "icon-PDF1",
557
+ style: {
558
+ fontSize: '50px'
559
+ }
560
+ }) : /*#__PURE__*/React.createElement("img", {
561
+ src: item === null || item === void 0 ? void 0 : item.filePath,
562
+ alt: ""
563
+ }), /*#__PURE__*/React.createElement(Checkbox, {
564
+ key: "".concat(item.filePath).concat(index),
565
+ checked: item.isChecked,
566
+ onChange: function onChange(e) {
567
+ return handleSelectSingle(e, index);
568
+ }
569
+ })), /*#__PURE__*/React.createElement("p", {
570
+ className: "img-text"
571
+ }, /*#__PURE__*/React.createElement(Input, {
572
+ variant: "borderless",
573
+ disabled: item.disabled,
574
+ value: item === null || item === void 0 ? void 0 : item.fileName,
575
+ onChange: function onChange(e) {
576
+ return handChange(e, index);
577
+ },
578
+ suffix: item.isShowIcon ? /*#__PURE__*/React.createElement(Iconfont, {
579
+ type: "icon-bianji",
580
+ style: {
581
+ fontSize: '13px',
582
+ color: '#1677FF',
583
+ cursor: 'pointer'
584
+ },
585
+ onClick: function onClick() {
586
+ return onEdit(index);
587
+ }
588
+ }) : false
589
+ })));
590
+ }) : null))), /*#__PURE__*/React.createElement(SetupModal, {
591
+ visible: setUpVisible,
592
+ onCancel: handleCancel
593
+ }));
594
+ };
595
+ export default LabAltimeter;
@@ -0,0 +1,177 @@
1
+ .altimeter {
2
+ width: 100%;
3
+ height: 100%;
4
+ background-color: #fff;
5
+ position: relative;
6
+ padding: 4px;
7
+ border: 1px solid #ddd;
8
+
9
+ .top {
10
+ display: flex;
11
+ flex-direction: row;
12
+ justify-content: flex-start;
13
+ align-items: center;
14
+
15
+ .icon-div {
16
+ border: 1px solid #ccc;
17
+ border-left: none;
18
+ }
19
+
20
+ .icon {
21
+ width: 24px;
22
+ height: 20px;
23
+ border-left: 1px solid #ccc;
24
+ cursor: pointer;
25
+ }
26
+
27
+ .btns {
28
+ position: absolute;
29
+ right: 4px;
30
+
31
+ .ant-btn-primary {
32
+ font-size: 13px;
33
+ color: #fff;
34
+ background-color: #58b0f8;
35
+ }
36
+ }
37
+ }
38
+
39
+ .g-m-r-4 {
40
+ margin-right: 4px;
41
+ }
42
+
43
+ .top-text {
44
+ font-size: 14px;
45
+ color: #185ddc;
46
+ margin-right: 4px;
47
+ }
48
+
49
+ .content {
50
+ display: flex;
51
+ flex-direction: row;
52
+ margin-top: 4px;
53
+ height: calc(100% - 32px);
54
+
55
+ .con-left {
56
+ width: 100%;
57
+ height: 100%;
58
+ border: 1px solid #ccc;
59
+ margin-right: 16px;
60
+ overflow-y: hidden;
61
+
62
+ img {
63
+ width: 100%;
64
+ height: 100%;
65
+ }
66
+ }
67
+
68
+ .con-right {
69
+ width: 500px;
70
+ overflow-y: auto;
71
+ }
72
+
73
+ .con-right-top {
74
+ margin-bottom: 4px;
75
+ }
76
+
77
+ .con-right-text {
78
+ font-size: 14px;
79
+ color: #185ddc;
80
+ margin-right: 8px;
81
+ }
82
+
83
+ .con-right-preview {
84
+ display: flex;
85
+ flex-wrap: wrap;
86
+
87
+ .preview-item {
88
+ height: 137px;
89
+ width: 29%;
90
+ margin-right: 12px;
91
+ margin-bottom: 24px;
92
+ }
93
+
94
+ .active-item {
95
+ border: 1px solid #cee4f8;
96
+ }
97
+
98
+ .item:hover {
99
+ transition-duration: 0.3s;
100
+ transform: scale(1.05);
101
+ }
102
+
103
+ .active {
104
+ cursor: pointer !important;
105
+ border: 1px solid #cee4f8;
106
+ }
107
+
108
+ .enter {
109
+ cursor: pointer !important;
110
+ opacity: 0.3;
111
+ box-shadow: 1px 1px 10px 1px rgba(0, 0, 0, 10%) inset;
112
+ }
113
+
114
+ .imageArea {
115
+ height: 136px;
116
+ background-color: #f0f0f0;
117
+ position: relative;
118
+ cursor: pointer;
119
+
120
+ .ant-checkbox-wrapper {
121
+ position: absolute;
122
+ top: 112px;
123
+ right: 3px;
124
+ width: 17px;
125
+ height: 17px;
126
+ }
127
+ }
128
+
129
+ img {
130
+ width: 90%;
131
+ height: 118px;
132
+ }
133
+
134
+ .img-text {
135
+ font-size: 10px;
136
+ color: #535353;
137
+ text-align: center;
138
+ cursor: pointer;
139
+ height: 28px;
140
+ margin: 0;
141
+ margin-top: 4px;
142
+
143
+ .ant-input {
144
+ font-size: 8px;
145
+ height: 20px;
146
+ overflow: hidden;
147
+ text-overflow: ellipsis;
148
+ white-space: nowrap;
149
+ background: #fff;
150
+ border: none;
151
+ }
152
+
153
+ .ant-input-borderless[disabled] {
154
+ color: #535353;
155
+ font-size: 8px;
156
+ height: 20px;
157
+ }
158
+
159
+ .ant-input-affix-wrapper > input.ant-input {
160
+ color: #535353;
161
+ font-size: 8px;
162
+ height: 20px;
163
+ }
164
+ }
165
+ }
166
+ }
167
+
168
+ .ant-checkbox + span {
169
+ padding-inline-start: 4px;
170
+ }
171
+
172
+ .g-f-rc {
173
+ display: flex;
174
+ justify-content: center;
175
+ align-items: center;
176
+ }
177
+ }
@@ -1,3 +1,7 @@
1
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
2
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
3
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
4
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
1
5
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2
6
  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
7
  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); }
@@ -8,7 +12,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
8
12
  * @Author: xqy
9
13
  * @Date: 2024-04-10 11:04:12
10
14
  * @LastEditors: xqy
11
- * @LastEditTime: 2024-04-11 16:16:03
15
+ * @LastEditTime: 2024-04-17 10:37:14
12
16
  * @Description:图片轮播切换组件(支持pdf切换预览)
13
17
  */
14
18
  import { CloseOutlined, LeftOutlined, RightOutlined } from '@ant-design/icons';
@@ -88,22 +92,33 @@ var LabPictureCarousel = function LabPictureCarousel(props) {
88
92
  };
89
93
  useEffect(function () {
90
94
  if (Array.isArray(imgList) && imgList.length) {
95
+ var _document$getElements, _document;
91
96
  var filePath = fileField.filePath,
92
97
  fileName = fileField.fileName;
93
98
  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);
99
+ var _i$filePath, _i$filePath2;
100
+ var name = i[fileName] ? i[fileName] : (_i$filePath = i[filePath]) === null || _i$filePath === void 0 ? void 0 : _i$filePath.split('/').pop();
101
+ var type = (_i$filePath2 = i[filePath]) === null || _i$filePath2 === void 0 ? void 0 : _i$filePath2.substring(i[filePath].lastIndexOf('.') + 1);
96
102
  return {
97
103
  fileType: type === null || type === void 0 ? void 0 : type.toLowerCase(),
98
104
  filePath: i[filePath],
99
- fileName: i[fileName]
105
+ fileName: name
100
106
  };
101
107
  });
102
108
  setList(arr);
103
- console.log('arr', arr, imgList);
109
+
110
+ //嵌入在弹框(可能会有多个弹框),需要设置样式全屏显示
111
+ var modalArray = (_document$getElements = (_document = document).getElementsByClassName) === null || _document$getElements === void 0 ? void 0 : _document$getElements.call(_document, 'react-draggable');
112
+ if (modalArray && modalArray.length) {
113
+ var modalData = _toConsumableArray(modalArray);
114
+ modalData.map(function (item) {
115
+ item.style.transform = 'none';
116
+ return item;
117
+ });
118
+ }
104
119
  }
105
120
  setIsShow(visible);
106
- setCurIndex(curImgIndex);
121
+ setCurIndex(curImgIndex !== null && curImgIndex !== void 0 ? curImgIndex : 0);
107
122
  }, [visible]);
108
123
  return isShow && /*#__PURE__*/React.createElement("div", {
109
124
  className: cn('about-wrap')
@@ -87,4 +87,8 @@
87
87
  width: 100%;
88
88
  height: 100%;
89
89
  }
90
+
91
+ ::selection {
92
+ background: none;
93
+ }
90
94
  }
@@ -1,43 +1,43 @@
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
- var t = (t = document.getElementsByTagName("script"))[t.length - 1],
3
- e = t.getAttribute("data-injectcss"),
4
- t = t.getAttribute("data-disable-injectsvg");
5
- if (!t) {
6
- var l,
7
- _i,
8
- h,
9
- a,
1
+ window._iconfont_svg_string_4487114 = '<svg><symbol id="icon-chahao" viewBox="0 0 1024 1024"><path d="M512 0C231.111 0 3.556 227.556 3.556 508.444S231.11 1016.89 512 1016.89s508.444-227.556 508.444-508.445C1016.89 227.556 789.334 0 512 0z m209.778 661.333c14.222 14.223 14.222 39.111 0 56.89-14.222 14.221-39.111 14.221-56.89 0L508.445 561.777 352 718.222c-14.222 14.222-39.111 14.222-56.889 0-14.222-14.222-14.222-39.11 0-56.889L451.556 504.89 295.11 348.444c-14.222-14.222-14.222-39.11 0-56.888 14.222-14.223 39.111-14.223 56.889 0L508.444 448 664.89 291.556c14.222-14.223 39.111-14.223 56.889 0 14.222 14.222 14.222 39.11 0 56.888L565.333 504.89l156.445 156.444z" ></path></symbol><symbol id="icon-bianji" viewBox="0 0 1024 1024"><path d="M764.829528 341.024019c-50.418233-54.349518-103.759985-105.765539-156.064037-158.21926C478.47432 313.09593 345.509077 440.693073 218.580452 574.376723c18.678593 9.219562 38.105528 19.416957 57.68213 29.594396 21.921405 11.39474 44.341703 21.512312 56.544652 39.841679 16.922486 25.393707 25.094371 54.579009 41.847233 83.095793 131.598273-127.088271 258.816257-258.56681 390.175061-385.884572zM140.553422 774.712619c-4.549914 18.449102-18.668615 48.442613-2.264979 54.638877 60.236468-18.668615 115.493973-42.356105 173.036413-63.738704-11.554386-29.344948-27.389284-54.38943-39.582254-83.095794-31.839418-16.902531-64.057996-33.415924-96.126906-50.088962-9.03996 40.829489-23.567755 95.63799-35.062274 142.284583z m-81.429488 47.804029v-2.274957c2.993364-24.246251 10.277217-51.605601 15.834897-75.123467 5.687392-24.086605 12.153059-47.79405 18.099877-71.711031 6.246154-25.14426 10.476775-49.62998 18.099876-71.711031 7.473433-21.671958 19.456868-40.560087 32.797295-56.913834 26.451363-32.428113 58.679919-61.344013 88.214447-91.058142C365.544662 319.45184 500.824773 186.716088 635.895349 50.767459c21.093241-21.232931 38.404864-44.371637 68.98707-47.804028 54.509164-6.136397 79.044774 29.474661 104.049344 54.638876 12.262816 12.342639 25.244039 25.403685 38.454753 38.704201 26.531186 26.70081 59.278591 53.501398 74.644528 79.683358 8.481199 14.447972 14.697419 32.837207 14.697419 52.36392 0 48.12332-28.706364 73.616806-55.417151 99.03047-15.355959 14.607618-30.572228 29.634307-44.102234 43.254114-118.337669 119.076033-232.285071 232.634297-349.465307 350.572851-28.955811 29.135413-57.512506 60.895008-91.606926 84.233272-32.53787 22.260653-78.306411 37.696435-121.011741 53.501398-19.975718 7.383632-40.879379 15.525583-63.329612 23.907003-19.716293 7.353698-46.307346 20.76397-66.72209 21.632047-49.480312 2.095355-80.990461-36.818381-85.949468-81.968293z m802.960001-586.210491c7.523322-28.307249-19.82605-42.715309-33.924796-56.913833-23.787268-23.936937-47.265223-47.564559-71.252048-71.711032-11.634209-11.714032-24.615433-30.502382-40.709755-33.00683-10.426886 8.790513-16.283902 16.393659-29.404816 29.594395-3.162988 3.182944-26.171982 22.470188-26.012335 26.18196 0.049889 1.187368 7.782747 6.695158 10.177438 9.109805 44.651018 44.940376 82.457209 82.996015 126.6692 127.487387 3.143033 3.162988 17.80054 19.466846 20.354878 19.347111 0.588695-0.019956 9.638633-9.6985 11.304939-11.384762 10.576554-10.646399 29.315015-25.573309 32.797295-38.704201zM115.668586 1023.990022c-16.95242-3.631949-38.085572-18.07992-37.317275-44.391593 0.449005-15.44576 13.23067-33.455835 28.277315-38.7042 22.769525-7.932415 65.085718-3.412435 100.656864-3.412436H836.081577c57.063502 0 119.475148-9.55881 125.531722 36.429244 3.921307 29.783975-16.832685 45.728629-37.317276 50.088963-269.552457-0.009978-539.07498-0.009978-808.627437-0.009978z" ></path></symbol><symbol id="icon-dancengbiaoti" viewBox="0 0 1024 1024"><path d="M959.539978 0.820702H62.759712C28.240323 0.820702 0 29.061025 0 63.580414v138.164419c0 34.518391 28.241321 62.758714 62.759712 62.758714h896.780266c34.518391 0 62.764704-28.240323 62.764704-62.758714V63.580414c0-34.519389-28.246313-62.759712-62.764704-62.759712zM201.046937 383.002079H62.636906C28.184411 383.002079 0 411.192481 0 445.638985v138.41103c0 34.451497 28.190402 62.636906 62.637905 62.636906h138.410031c34.450498 0 62.635908-28.18541 62.635908-62.636906V445.644976c0-34.452495-28.186408-62.642897-62.636907-62.642897z m0 375.942247H62.636906C28.184411 758.944326 0 787.128738 0 821.582231v138.405039c0 34.451497 28.190402 62.6409 62.637905 62.6409h138.410031c34.450498 0 62.635908-28.189403 62.635908-62.6409V821.582231c0-34.453493-28.186408-62.637905-62.636907-62.637905z m758.615846-379.064308H821.257745c-34.451497 0-62.641899 28.190402-62.641899 62.641898v138.405039c0 34.452495 28.190402 62.637905 62.641899 62.637905h138.405038c34.451497 0 62.636906-28.18541 62.636907-62.637905V442.521916c0.004992-34.450498-28.18541-62.641899-62.636907-62.641898z m0 379.064308H821.257745c-34.451497 0-62.641899 28.184411-62.641899 62.637905v138.405039c0 34.451497 28.190402 62.6409 62.641899 62.6409h138.405038c34.451497 0 62.636906-28.189403 62.636907-62.6409V821.582231c0.004992-34.453493-28.18541-62.637905-62.636907-62.637905zM580.351865 383.002079H441.946826c-34.452495 0-62.641899 28.190402-62.641898 62.636906v138.41103c0 34.451497 28.189403 62.636906 62.641898 62.636906H580.351865c34.452495 0 62.641899-28.18541 62.641899-62.636906V445.644976c0-34.452495-28.190402-62.642897-62.641899-62.642897z m0 375.942247H441.946826c-34.452495 0-62.641899 28.184411-62.641898 62.637905v138.405039c0 34.451497 28.189403 62.6409 62.641898 62.6409H580.351865c34.452495 0 62.641899-28.189403 62.641899-62.6409V821.582231c0-34.453493-28.190402-62.637905-62.641899-62.637905z m0 0" ></path></symbol><symbol id="icon-bangzhu" viewBox="0 0 1024 1024"><path d="M511.2 0.8c282.4 0 511.2 228.8 511.2 511.2s-228.8 511.2-511.2 511.2S0 794.4 0 512 228.8 0.8 511.2 0.8z m0 102.4c-225.6 0-408.8 183.2-408.8 408.8 0 225.6 183.2 408.8 408.8 408.8 225.6 0 408.8-183.2 408.8-408.8 0-225.6-183.2-408.8-408.8-408.8z" ></path><path d="M544 620.8v20.8H464v-23.2c-1.6-52 23.2-96 75.2-132 46.4-31.2 67.2-64.8 62.4-100.8-4.8-41.6-30.4-64-75.2-67.2-62.4-3.2-99.2 28-111.2 93.6l-80-25.6c22.4-100 88-148.8 196.8-144.8 96.8 4.8 149.6 54.4 158.4 148 1.6 56.8-31.2 108.8-98.4 155.2-35.2 20.8-51.2 46.4-48 76z m-88 72.8h96V784H456V693.6z" ></path></symbol><symbol id="icon-kaiguan" viewBox="0 0 1355 1024"><path d="M409.512 922.023h536.422c226.168 0 409.512-183.348 409.512-409.512 0-226.167-183.344-409.512-409.512-409.512H409.512C183.344 103 0 286.344 0 512.512c0 226.164 183.344 409.511 409.512 409.511z m-0.465-780.281c150.433-0.418 286.285 89.891 344.125 228.766 57.836 138.871 26.258 298.914-80 405.402-106.254 106.492-266.227 138.426-405.227 80.895S38.336 663.621 38.422 513.188A371.128 371.128 0 0 1 146.77 250.617a371.137 371.137 0 0 1 262.277-109.051v0.176z m0 0" ></path></symbol><symbol id="icon-duijiao" viewBox="0 0 1024 1024"><path d="M916.761 192.567H750.463L699.294 90.233C690.77 77.439 677.975 64.65 660.92 64.65H362.439c-17.055 0-29.85 8.529-38.375 25.583l-51.169 102.334H106.598C46.904 192.567 0 239.471 0 299.171v554.317c0 59.699 46.904 106.604 106.598 106.604h810.163c59.694 0 106.599-46.904 106.599-106.604V299.171c0-59.699-46.904-106.604-106.599-106.604z m21.32 660.921c0 12.795-8.529 21.325-21.319 21.325H106.598c-12.79 0-21.319-8.53-21.319-21.325V299.171c0-12.795 8.529-21.319 21.319-21.319h191.883c17.054 0 29.849-8.53 38.374-25.585l51.169-102.338h247.312l51.169 102.338c8.53 12.79 21.32 25.585 38.375 25.585h191.882c12.79 0 21.319 8.524 21.319 21.319v554.317z m0 0" ></path><path d="M618.281 606.177c17.055 0 34.109-12.789 34.109-34.109 0-21.319-12.79-34.114-34.109-34.114h-76.754V469.73c0-17.055-12.79-34.109-34.109-34.109-21.32 0-34.115 12.789-34.115 34.109v76.754H405.08c-17.056 0-34.11 12.788-34.11 34.109 0 21.319 12.79 34.113 34.11 34.113h76.753v68.225c0 17.055 12.79 34.108 34.109 34.108 21.32 0 34.115-12.788 34.115-34.108v-76.754h68.224zM405.08 759.685h-76.75v-76.754c0-17.055-12.795-34.114-34.114-34.114-21.32 0-29.85 17.06-29.85 34.114v76.754c0 34.109 29.85 63.959 63.964 63.959h76.75c17.059 0 34.114-12.795 34.114-34.114s-17.055-29.845-34.114-29.845z m319.799-110.869c-17.055 0-34.109 12.795-34.109 34.114v76.754h-76.754c-17.055 0-34.11 12.789-34.11 34.109s12.79 34.113 34.11 34.113h76.754c34.109 0 63.959-29.848 63.959-63.963v-81.014c4.265-17.053-12.79-34.113-29.85-34.113z m-29.844-315.535h-76.754c-17.055 0-34.114 12.794-34.114 34.114 0 21.32 12.795 34.109 34.114 34.109h76.754v68.225c0 17.06 12.79 34.114 34.109 34.114s34.114-12.794 34.114-34.114v-76.75c-4.264-34.113-34.114-59.698-68.223-59.698zM298.481 503.843c17.054 0 34.108-12.794 34.108-34.114v-76.75h76.755c17.054 0 34.113-12.794 34.113-34.114 0-21.32-21.319-25.584-38.378-25.584h-76.75c-34.114 0-63.964 29.85-63.964 63.958v72.489c0.001 17.061 17.061 34.115 34.116 34.115z m0 0" ></path></symbol><symbol id="icon-shiping" viewBox="0 0 1025 1024"><path d="M992.066 0H32.033C14.34 0 0 14.34 0 32.033v959.934C0 1009.659 14.34 1024 32.033 1024h960.034c17.693 0 32.033-14.341 32.033-32.033V31.944C1024.051 14.284 1009.727 0 992.066 0z m-44.804 947.162H76.838V76.737h870.423v870.425z m0 0" ></path><path d="M621.541 433.854c12.504 12.481 32.756 12.481 45.258 0l215.168-215.167c12.48-12.502 12.48-32.754 0-45.256l-4.107-4.102c-12.508-12.48-32.754-12.48-45.262 0l-215.18 215.157c-12.475 12.503-12.475 32.749 0 45.251l4.123 4.117zM434.563 590.039c-12.503-12.48-32.753-12.48-45.262 0L174.14 805.218c-12.487 12.509-12.487 32.76 0 45.263l4.117 4.106c12.502 12.475 32.743 12.475 45.251 0L438.68 639.425c12.487-12.509 12.487-32.76 0-45.263l-4.117-4.123z m0 0" ></path><path d="M448.056 497.285v78.67h123.29c-0.402 0.369-0.811 0.755-1.145 1.146l-4.117 4.117c-12.475 12.509-12.475 32.749 0 45.252l137.973 138.039v131.452h192.004V703.949H742.246L615.396 577.1c-10.463-10.441-26.709-12.369-39.324-4.665V447.95h-78.603L320.05 270.542V127.938H128.038v192.006h142.677l177.341 177.341z m0 0" ></path></symbol><symbol id="icon-youxuan" viewBox="0 0 1025 1024"><path d="M549.844 17.723c146.295 15.432 275.213 94.455 355.949 211.421l51.923-14.093c19.896-6.59 41.774 0.419 54.146 17.345 13.611 15.518 16.997 37.515 8.67 56.403l-69.467 166.974a55.637 55.637 0 0 1-36.801 32.61h-10.841c-12.98 0-23.908-4.337-34.749-10.841L729.801 366.936a55.988 55.988 0 0 1-19.455-54.316c3.452-20.359 18.893-36.605 39.053-41.081l43.053-11.67a391.873 391.873 0 0 0-255.673-135.907c-212.649-23.82-405.673 132.341-427.351 344.989-10.842 104.073 19.54 203.837 84.556 286.228 65.073 82.502 158.361 132.372 262.491 143.209 112.799 12.984 223.485-26.016 305.903-101.959 21.653-19.453 56.402-19.453 75.857 2.195 19.544 21.654 19.544 56.403-2.109 75.858-93.288 86.726-212.563 134.453-338.348 134.453-17.397 0-34.743 0-52.089-2.109-132.431-15.236-251.706-78.107-334.152-182.238C29.434 721.801-9.452 591.143 3.132 460.196a488.905 488.905 0 0 1 182.177-334.124C289.495 43.739 417.475 4.602 549.814 17.723h0.03z m-0.03 0" ></path></symbol><symbol id="icon-a-1_1" viewBox="0 0 1025 1024"><path d="M0 133.183C0 56.018 61.864 1.954 128.139 1.954h768.635c66.28 0 128.139 54.065 128.139 131.229v758.222c0 77.165-61.858 131.229-128.139 131.229H128.138C61.914 1022.634 0.05 968.57 0.05 891.405V133.183H0z m128.138-43.741c-31.743 0-49.298 24.262-49.298 43.741v758.222c0 19.477 17.555 43.739 49.298 43.739h768.636c31.744 0 49.303-24.263 49.303-43.739V133.183c0-19.479-17.559-43.741-49.303-43.741H128.138z m0 0" ></path><path d="M356.147 328.047c12.651 7.681 20.516 22.427 20.497 38.435v291.625c0 24.157-17.649 43.741-39.419 43.741-21.774 0-39.423-19.584-39.423-43.741V446.734l-26.803 19.251c-18.305 13.093-42.706 7.242-54.505-13.066s-6.531-47.39 11.775-60.483l87.613-62.698c12.13-8.705 27.579-9.356 40.265-1.691z m416.062 0c12.677 7.67 20.562 22.416 20.551 38.435v291.625c0 24.157-17.648 43.741-39.423 43.741-21.77 0-39.418-19.584-39.418-43.741V446.734l-26.807 19.251c-18.301 13.093-42.702 7.242-54.501-13.066-11.8-20.308-6.531-47.39 11.77-60.483l87.618-62.698c12.115-8.683 27.538-9.334 40.21-1.691z m-259.753 43.274c21.775 0 39.419 19.584 39.419 43.748v24.318c0 24.163-17.644 43.748-39.419 43.748-21.768 0-39.417-19.585-39.417-43.748v-24.318c0-24.164 17.649-43.748 39.417-43.748z m0 170.133c21.775 0 39.419 19.585 39.419 43.748v24.317c0 24.162-17.644 43.74-39.419 43.74-21.768 0-39.417-19.578-39.417-43.74v-24.317c0-24.163 17.649-43.748 39.417-43.748z m0 0" ></path></symbol><symbol id="icon-suoxiao" viewBox="0 0 1024 1024"><path d="M1005.504 920.527l-145.07-144.71c156.06-199.747 129.556-486.173-60.519-654.019C609.841-46.048 321.747-37.437 142.078 141.46c-179.67 178.896-188.946 466.394-21.189 656.463 167.751 190.064 454.698 217.168 655.201 61.875l145.068 144.778c14.953 15.468 37.104 21.676 57.943 16.242 20.833-5.43 37.109-21.663 42.569-42.454 5.462-20.789-0.746-42.898-16.23-57.838h0.064zM95.746 483.216c-0.049-156.386 94.304-297.397 239.065-357.282 144.758-59.881 311.406-26.832 422.23 83.73 110.82 110.562 143.99 276.865 84.032 421.346-59.953 144.491-201.22 238.698-357.923 238.703-213.821-0.215-387.122-173.107-387.404-386.497z m548.642-45.483H321.915c-25.167 0.005-45.571 20.368-45.571 45.483 0 25.117 20.405 45.48 45.571 45.485h322.791c25.172-0.005 45.571-20.368 45.571-45.485 0-25.116-20.399-45.479-45.571-45.483h-0.318z m0 0" ></path></symbol><symbol id="icon-zuoxuan" viewBox="0 0 1025 1024"><path d="M475.228 17.723c132.34-13.122 260.319 26.016 364.506 108.349a488.908 488.908 0 0 1 182.177 334.124c12.584 130.947-26.302 261.605-108.405 364.392-82.446 104.131-201.722 167.002-334.152 182.238-17.346 2.109-34.691 2.109-52.09 2.109-125.783 0-245.06-47.728-338.347-134.453-21.653-19.455-21.653-54.204-2.11-75.858 19.456-21.648 54.205-21.648 75.858-2.195 82.417 75.943 193.104 114.943 305.903 101.959 104.13-10.837 197.418-60.707 262.49-143.209 65.017-82.391 95.398-182.154 84.557-286.228-21.678-212.648-214.701-368.81-427.351-344.989A391.87 391.87 0 0 0 232.59 259.869l43.053 11.67c20.16 4.475 35.6 20.721 39.052 41.081a55.987 55.987 0 0 1-19.455 54.316L156.368 477.541c-10.841 6.504-21.77 10.841-34.75 10.841h-10.84a55.632 55.632 0 0 1-36.801-32.61L4.51 288.799c-8.327-18.888-4.941-40.885 8.67-56.403 12.37-16.926 34.249-23.935 54.146-17.345l51.922 14.093c80.737-116.966 209.654-195.989 355.95-211.421h0.029z m0 0" ></path></symbol><symbol id="icon-a-fangda3" viewBox="0 0 1024 1024"><path d="M1005.504 920.527l-145.07-144.71c156.06-199.747 129.556-486.173-60.519-654.019C609.841-46.048 321.747-37.437 142.078 141.46c-179.67 178.896-188.946 466.394-21.189 656.463 167.751 190.064 454.698 217.168 655.201 61.875l145.068 144.778c14.953 15.468 37.104 21.676 57.943 16.242 20.833-5.43 37.109-21.663 42.569-42.454 5.462-20.789-0.746-42.898-16.23-57.838h0.064zM95.746 483.216c-0.049-156.386 94.304-297.397 239.065-357.282 144.758-59.881 311.406-26.832 422.23 83.73 110.82 110.562 143.99 276.865 84.032 421.346-59.953 144.491-201.22 238.698-357.923 238.703-213.821-0.215-387.122-173.107-387.404-386.497z m548.642-45.483h-115.66V322.306c-0.005-25.117-20.41-45.479-45.577-45.479-25.167 0-45.571 20.363-45.577 45.479v115.427h-115.66c-25.167 0.005-45.571 20.368-45.571 45.483 0 25.117 20.405 45.48 45.571 45.485h115.978v115.428c0.005 25.116 20.409 45.479 45.577 45.479 25.171 0 45.575-20.362 45.575-45.479V528.701h115.661c25.172-0.005 45.571-20.368 45.571-45.485 0-25.116-20.399-45.479-45.571-45.483h-0.317z m0 0" ></path></symbol><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 (t) {
2
+ var c = (c = document.getElementsByTagName("script"))[c.length - 1],
3
+ h = c.getAttribute("data-injectcss"),
4
+ c = c.getAttribute("data-disable-injectsvg");
5
+ if (!c) {
6
+ var a,
7
+ _l,
10
8
  o,
11
- c = function c(t, e) {
12
- e.parentNode.insertBefore(t, e);
9
+ i,
10
+ e,
11
+ m = function m(c, h) {
12
+ h.parentNode.insertBefore(c, h);
13
13
  };
14
- if (e && !n.__iconfont__svg__cssinject__) {
15
- n.__iconfont__svg__cssinject__ = !0;
14
+ if (h && !t.__iconfont__svg__cssinject__) {
15
+ t.__iconfont__svg__cssinject__ = !0;
16
16
  try {
17
17
  document.write("<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>");
18
- } catch (t) {
19
- console && console.log(t);
18
+ } catch (c) {
19
+ console && console.log(c);
20
20
  }
21
21
  }
22
- l = function l() {
23
- var t,
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 ? 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());
22
+ a = function a() {
23
+ var c,
24
+ h = document.createElement("div");
25
+ h.innerHTML = t._iconfont_svg_string_4487114, (h = h.getElementsByTagName("svg")[0]) && (h.setAttribute("aria-hidden", "true"), h.style.position = "absolute", h.style.width = 0, h.style.height = 0, h.style.overflow = "hidden", h = h, (c = document.body).firstChild ? m(h, c.firstChild) : c.appendChild(h));
26
+ }, document.addEventListener ? ~["complete", "loaded", "interactive"].indexOf(document.readyState) ? setTimeout(a, 0) : (_l = function l() {
27
+ document.removeEventListener("DOMContentLoaded", _l, !1), a();
28
+ }, document.addEventListener("DOMContentLoaded", _l, !1)) : document.attachEvent && (o = a, i = t.document, e = !1, n(), i.onreadystatechange = function () {
29
+ "complete" == i.readyState && (i.onreadystatechange = null, v());
30
30
  });
31
31
  }
32
- function d() {
33
- o || (o = !0, h());
34
- }
35
32
  function v() {
33
+ e || (e = !0, o());
34
+ }
35
+ function n() {
36
36
  try {
37
- a.documentElement.doScroll("left");
38
- } catch (t) {
39
- return void setTimeout(v, 50);
37
+ i.documentElement.doScroll("left");
38
+ } catch (c) {
39
+ return void setTimeout(n, 50);
40
40
  }
41
- d();
41
+ v();
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/font_4487114_tarzbgmnf89.js';
2
+ var ICONFONT_URL = '//at.alicdn.com/t/c/font_4487114_n09g4r54t2.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,3 +1,4 @@
1
+ export { default as LabAltimeter } from './LabAltimeter';
1
2
  export { default as LabDGTreeSelect } from './LabDGTreeSelect';
2
3
  export { default as LabGTreeSelect } from './LabGTreeSelect';
3
4
  export { default as LabGroupTree } from './LabGroupTree';
package/dist/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ export { default as LabAltimeter } from "./LabAltimeter";
1
2
  export { default as LabDGTreeSelect } from "./LabDGTreeSelect";
2
3
  export { default as LabGTreeSelect } from "./LabGTreeSelect";
3
4
  export { default as LabGroupTree } from "./LabGroupTree";
@@ -0,0 +1,5 @@
1
+ /**
2
+ * base64文件类型转file
3
+ */
4
+ declare const LabBase64ToFile: (dataurl: any, filename: any) => File;
5
+ export { LabBase64ToFile };
@@ -0,0 +1,18 @@
1
+ /**
2
+ * base64文件类型转file
3
+ */
4
+ var LabBase64ToFile = function LabBase64ToFile(dataurl, filename) {
5
+ var arr = dataurl.split(',');
6
+ var mime = arr[0].match(/:(.*?);/)[1];
7
+ var suffix = mime.split('/')[1];
8
+ var bstr = atob(arr[1]);
9
+ var n = bstr.length;
10
+ var u8arr = new Uint8Array(n);
11
+ while (n--) {
12
+ u8arr[n] = bstr.charCodeAt(n);
13
+ }
14
+ return new File([u8arr], "".concat(filename, ".").concat(suffix), {
15
+ type: mime
16
+ });
17
+ };
18
+ export { LabBase64ToFile };
package/package.json CHANGED
@@ -1,77 +1,78 @@
1
- {
2
- "name": "xh-lab-rc",
3
- "version": "0.0.7",
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
- "antd": "^5.15.3",
49
- "classnames": "^2.5.1"
50
- },
51
- "devDependencies": {
52
- "@commitlint/cli": "^17.1.2",
53
- "@commitlint/config-conventional": "^17.1.0",
54
- "@types/react": "^18.0.0",
55
- "@types/react-dom": "^18.0.0",
56
- "@umijs/lint": "^4.0.0",
57
- "dumi": "^2.2.13",
58
- "eslint": "^8.23.0",
59
- "father": "^4.1.0",
60
- "husky": "^8.0.1",
61
- "lint-staged": "^13.0.3",
62
- "prettier": "^2.7.1",
63
- "prettier-plugin-organize-imports": "^3.0.0",
64
- "prettier-plugin-packagejson": "^2.2.18",
65
- "react": "^18.0.0",
66
- "react-dom": "^18.0.0",
67
- "stylelint": "^14.9.1"
68
- },
69
- "peerDependencies": {
70
- "react": ">=16.9.0",
71
- "react-dom": ">=16.9.0"
72
- },
73
- "publishConfig": {
74
- "access": "public"
75
- },
76
- "authors": []
77
- }
1
+ {
2
+ "name": "xh-lab-rc",
3
+ "version": "0.0.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
+ "antd": "^5.15.3",
49
+ "classnames": "^2.5.1",
50
+ "dayjs": "^1.11.10"
51
+ },
52
+ "devDependencies": {
53
+ "@commitlint/cli": "^17.1.2",
54
+ "@commitlint/config-conventional": "^17.1.0",
55
+ "@types/react": "^18.0.0",
56
+ "@types/react-dom": "^18.0.0",
57
+ "@umijs/lint": "^4.0.0",
58
+ "dumi": "^2.2.13",
59
+ "eslint": "^8.23.0",
60
+ "father": "^4.1.0",
61
+ "husky": "^8.0.1",
62
+ "lint-staged": "^13.0.3",
63
+ "prettier": "^2.7.1",
64
+ "prettier-plugin-organize-imports": "^3.0.0",
65
+ "prettier-plugin-packagejson": "^2.2.18",
66
+ "react": "^18.0.0",
67
+ "react-dom": "^18.0.0",
68
+ "stylelint": "^14.9.1"
69
+ },
70
+ "peerDependencies": {
71
+ "react": ">=16.9.0",
72
+ "react-dom": ">=16.9.0"
73
+ },
74
+ "publishConfig": {
75
+ "access": "public"
76
+ },
77
+ "authors": []
78
+ }