ydb-components-material 0.1.86 → 0.1.88

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.
Files changed (98) hide show
  1. package/build/docs/404.html +3 -3
  2. package/build/docs/_demos/:uuid +3 -3
  3. package/build/docs/colorful-button.html +3 -3
  4. package/build/docs/colorful-input.html +3 -3
  5. package/build/docs/index.html +3 -3
  6. package/build/docs/{umi.466b4c0a.css → umi.666eb3a7.css} +1 -1
  7. package/build/docs/umi.f5d91602.js +1 -0
  8. package/build/docs/~demos/:uuid.html +3 -3
  9. package/build/docs/~demos/colorful-button-demo.html +3 -3
  10. package/build/docs/~demos/colorful-input-demo.html +3 -3
  11. package/build/lowcode/assets-daily.json +11 -11
  12. package/build/lowcode/assets-dev.json +2 -2
  13. package/build/lowcode/assets-prod.json +11 -11
  14. package/build/lowcode/index.js +1 -1
  15. package/build/lowcode/meta.js +1 -1
  16. package/build/lowcode/preview.js +9 -9
  17. package/build/lowcode/render/default/view.css +1 -1
  18. package/build/lowcode/render/default/view.js +55 -2
  19. package/build/lowcode/view.css +1 -1
  20. package/build/lowcode/view.js +55 -2
  21. package/dist/BizComps.css +1 -1
  22. package/dist/BizComps.js +58 -5
  23. package/dist/BizComps.js.map +1 -1
  24. package/es/components/file-item/index.js +165 -70
  25. package/es/components/file-item/index.scss +13 -2
  26. package/es/components/file-list/checkPoint.d.ts +3 -0
  27. package/es/components/file-list/checkPoint.js +157 -0
  28. package/es/components/file-list/checkPoint.scss +120 -0
  29. package/es/components/file-list/file.js +295 -0
  30. package/es/components/file-list/icon/checked.svg +1 -0
  31. package/es/components/file-list/icon/close.svg +1 -0
  32. package/es/components/file-list/icon/del.svg +1 -0
  33. package/es/components/file-list/icon/download.svg +1 -0
  34. package/es/components/file-list/icon/download_pc.svg +1 -0
  35. package/es/components/file-list/icon/file.svg +1 -0
  36. package/es/components/file-list/icon/icon_errorMsg.svg +1 -0
  37. package/es/components/file-list/icon/icon_warning.svg +1 -0
  38. package/es/components/file-list/icon/preview.svg +1 -0
  39. package/es/components/file-list/icon/preview_pc.svg +1 -0
  40. package/es/components/file-list/icon/upload.svg +1 -0
  41. package/es/components/file-list/icon/view.svg +1 -0
  42. package/es/components/file-list/index.d.ts +21 -0
  43. package/es/components/file-list/index.js +222 -0
  44. package/es/components/file-list/index.scss +36 -0
  45. package/es/components/file-list/item.d.ts +27 -0
  46. package/es/components/file-list/item.js +802 -0
  47. package/es/components/file-list/item.scss +412 -0
  48. package/es/components/file-list/seal.d.ts +3 -0
  49. package/es/components/file-list/seal.js +222 -0
  50. package/es/components/file-list/sealUtil.js +252 -0
  51. package/es/components/file-list/sign.d.ts +3 -0
  52. package/es/components/file-list/sign.js +138 -0
  53. package/es/components/file-list/signUtil.js +369 -0
  54. package/es/index.d.ts +2 -0
  55. package/es/index.js +1 -0
  56. package/lib/components/file-item/index.js +165 -70
  57. package/lib/components/file-item/index.scss +13 -2
  58. package/lib/components/file-list/checkPoint.d.ts +3 -0
  59. package/lib/components/file-list/checkPoint.js +162 -0
  60. package/lib/components/file-list/checkPoint.scss +120 -0
  61. package/lib/components/file-list/file.js +306 -0
  62. package/lib/components/file-list/icon/checked.svg +1 -0
  63. package/lib/components/file-list/icon/close.svg +1 -0
  64. package/lib/components/file-list/icon/del.svg +1 -0
  65. package/lib/components/file-list/icon/download.svg +1 -0
  66. package/lib/components/file-list/icon/download_pc.svg +1 -0
  67. package/lib/components/file-list/icon/file.svg +1 -0
  68. package/lib/components/file-list/icon/icon_errorMsg.svg +1 -0
  69. package/lib/components/file-list/icon/icon_warning.svg +1 -0
  70. package/lib/components/file-list/icon/preview.svg +1 -0
  71. package/lib/components/file-list/icon/preview_pc.svg +1 -0
  72. package/lib/components/file-list/icon/upload.svg +1 -0
  73. package/lib/components/file-list/icon/view.svg +1 -0
  74. package/lib/components/file-list/index.d.ts +21 -0
  75. package/lib/components/file-list/index.js +227 -0
  76. package/lib/components/file-list/index.scss +36 -0
  77. package/lib/components/file-list/item.d.ts +27 -0
  78. package/lib/components/file-list/item.js +808 -0
  79. package/lib/components/file-list/item.scss +412 -0
  80. package/lib/components/file-list/seal.d.ts +3 -0
  81. package/lib/components/file-list/seal.js +228 -0
  82. package/lib/components/file-list/sealUtil.js +254 -0
  83. package/lib/components/file-list/sign.d.ts +3 -0
  84. package/lib/components/file-list/sign.js +144 -0
  85. package/lib/components/file-list/signUtil.js +371 -0
  86. package/lib/index.d.ts +2 -0
  87. package/lib/index.js +3 -1
  88. package/lowcode/file-list/meta.ts +231 -0
  89. package/lowcode_es/_setter/IconSelectSetter.js +1 -1
  90. package/lowcode_es/file-list/meta.d.ts +22 -0
  91. package/lowcode_es/file-list/meta.js +213 -0
  92. package/lowcode_es/meta.js +3 -2
  93. package/lowcode_lib/_setter/IconSelectSetter.js +1 -1
  94. package/lowcode_lib/file-list/meta.d.ts +22 -0
  95. package/lowcode_lib/file-list/meta.js +218 -0
  96. package/lowcode_lib/meta.js +14 -13
  97. package/package.json +6 -4
  98. package/build/docs/umi.0968e2ca.js +0 -1
@@ -97,6 +97,12 @@ var FileItem = function FileItem(_ref) {
97
97
  var _useState13 = useState(null),
98
98
  checkPointData = _useState13[0],
99
99
  setCheckPointData = _useState13[1];
100
+ var _useState14 = useState(0),
101
+ materialLibTotal = _useState14[0],
102
+ setMaterialLibTotal = _useState14[1];
103
+ var _useState15 = useState(1),
104
+ pageNum = _useState15[0],
105
+ setPageNum = _useState15[1];
100
106
  var upload = function upload() {
101
107
  if (disabled) return;
102
108
  var inputEl = document.createElement('input');
@@ -208,27 +214,67 @@ var FileItem = function FileItem(_ref) {
208
214
  };
209
215
  }();
210
216
 
211
- // 预览材料中的材料
212
- var previewMaterial = function previewMaterial(id, url) {
213
- if (materialUrlMap[id]) {
214
- setIsShowMaterialPreview(true);
215
- setMaterialPreviewUrl(materialUrlMap[id]);
216
- return;
217
- }
218
- fetch(baseUrl + "/declaration/material/onlinePreview?url=" + url, {
219
- method: 'GET',
220
- headers: {
221
- 'Authorization': tokenTY || ''
222
- }
223
- }).then(function (response) {
224
- return response.json();
225
- }).then(function (res) {
226
- var _extends2;
227
- setMaterialPreviewUrl(res.url);
228
- setIsShowMaterialPreview(true);
229
- setMaterialUrlMap(_extends({}, materialUrlMap, (_extends2 = {}, _extends2[id] = res.url, _extends2)));
230
- });
231
- };
217
+ // 预览材料库中的材料
218
+ var previewMaterial = /*#__PURE__*/function () {
219
+ var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(id, url) {
220
+ var materialUrl, urlRes;
221
+ return _regeneratorRuntime.wrap(function (_context2) {
222
+ while (1) switch (_context2.prev = _context2.next) {
223
+ case 0:
224
+ if (!materialUrlMap[id]) {
225
+ _context2.next = 1;
226
+ break;
227
+ }
228
+ setIsShowMaterialPreview(true);
229
+ setMaterialPreviewUrl(materialUrlMap[id]);
230
+ return _context2.abrupt("return");
231
+ case 1:
232
+ materialUrl = url;
233
+ if (materialUrl) {
234
+ _context2.next = 3;
235
+ break;
236
+ }
237
+ _context2.next = 2;
238
+ return getUrlById({
239
+ id: id,
240
+ effectiveTime: 3600000
241
+ }, {
242
+ token: token,
243
+ tokenTY: tokenTY,
244
+ baseUrl: baseUrl,
245
+ env: env,
246
+ isPC: isPC,
247
+ accessToken: accessToken
248
+ });
249
+ case 2:
250
+ urlRes = _context2.sent;
251
+ if (urlRes.presignedUrlList && urlRes.presignedUrlList.length > 0) {
252
+ materialUrl = urlRes.presignedUrlList[2];
253
+ }
254
+ case 3:
255
+ fetch(baseUrl + "/declaration/material/onlinePreview?url=" + materialUrl, {
256
+ method: 'GET',
257
+ headers: {
258
+ 'Authorization': tokenTY || ''
259
+ }
260
+ }).then(function (response) {
261
+ return response.json();
262
+ }).then(function (res) {
263
+ var _extends2;
264
+ setMaterialPreviewUrl(res.url);
265
+ setIsShowMaterialPreview(true);
266
+ setMaterialUrlMap(_extends({}, materialUrlMap, (_extends2 = {}, _extends2[id] = res.url, _extends2)));
267
+ });
268
+ case 4:
269
+ case "end":
270
+ return _context2.stop();
271
+ }
272
+ }, _callee2);
273
+ }));
274
+ return function previewMaterial(_x, _x2) {
275
+ return _ref3.apply(this, arguments);
276
+ };
277
+ }();
232
278
 
233
279
  // 手写签批
234
280
  var sign = function sign() {
@@ -278,7 +324,7 @@ var FileItem = function FileItem(_ref) {
278
324
  // 个人传身份证号、法人传社会统一信用代码
279
325
  // cardno: '140110199504131013', // 个人传身份证号、法人传社会统一信用代码
280
326
  type: acctType === '10' ? '11' : '21',
281
- pageNum: 1,
327
+ pageNum: pageNum,
282
328
  pageSize: 10
283
329
  };
284
330
  getMaterialLib(params, {
@@ -291,30 +337,32 @@ var FileItem = function FileItem(_ref) {
291
337
  }).then(function (res) {
292
338
  if (res.code === 200) {
293
339
  var records = res.data.records;
294
- setMaterialLib(records);
340
+ setMaterialLib(function (list) {
341
+ return list.concat(records);
342
+ });
343
+ setMaterialLibTotal(+res.data.total);
344
+ setPageNum(pageNum + 1);
295
345
  }
296
- // if (+total === this.fileList.length) {
297
- // this.loadStatus = 'nomore'
298
- // } else {
299
- // this.loadStatus = 'loadmore'
300
- // }
301
- })["catch"](function () {
302
- // this.loadStatus = 'nomore'
346
+ })["catch"](function (err) {
347
+ console.error(err);
303
348
  });
304
349
  };
350
+ var loadMore = function loadMore() {
351
+ queryFileLibs();
352
+ };
305
353
  var showGuide = /*#__PURE__*/function () {
306
- var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
354
+ var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {
307
355
  var guideImgRes;
308
- return _regeneratorRuntime.wrap(function (_context2) {
309
- while (1) switch (_context2.prev = _context2.next) {
356
+ return _regeneratorRuntime.wrap(function (_context3) {
357
+ while (1) switch (_context3.prev = _context3.next) {
310
358
  case 0:
311
359
  if (guideImg) {
312
- _context2.next = 1;
360
+ _context3.next = 1;
313
361
  break;
314
362
  }
315
- return _context2.abrupt("return");
363
+ return _context3.abrupt("return");
316
364
  case 1:
317
- _context2.next = 2;
365
+ _context3.next = 2;
318
366
  return getGuideImg({
319
367
  id: guideImg,
320
368
  effectiveTime: 3600000
@@ -327,50 +375,94 @@ var FileItem = function FileItem(_ref) {
327
375
  accessToken: accessToken
328
376
  });
329
377
  case 2:
330
- guideImgRes = _context2.sent;
378
+ guideImgRes = _context3.sent;
331
379
  if (guideImgRes.presignedUrl) {
332
380
  setGuideurl(guideImgRes.presignedUrl);
333
381
  setIsShowGuide(true);
334
382
  }
335
383
  case 3:
336
384
  case "end":
337
- return _context2.stop();
385
+ return _context3.stop();
338
386
  }
339
- }, _callee2);
387
+ }, _callee3);
340
388
  }));
341
389
  return function showGuide() {
342
- return _ref3.apply(this, arguments);
390
+ return _ref4.apply(this, arguments);
391
+ };
392
+ }();
393
+ var selectMaterialOk = /*#__PURE__*/function () {
394
+ var _ref5 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4() {
395
+ var selectedMaterial, arr, fileFormat, formatFinal, urlRes, m;
396
+ return _regeneratorRuntime.wrap(function (_context4) {
397
+ while (1) switch (_context4.prev = _context4.next) {
398
+ case 0:
399
+ console.log('val', materialId);
400
+ console.log('materialLib==', materialLib);
401
+ selectedMaterial = materialLib.find(function (item) {
402
+ return item.fileId === materialId;
403
+ });
404
+ console.log('selectedMaterial', selectedMaterial);
405
+ if (!spec) {
406
+ _context4.next = 1;
407
+ break;
408
+ }
409
+ arr = selectedMaterial.fileName.split('.'); //
410
+ fileFormat = arr[arr.length - 1]; // 获取当前材料库材料的文件类型
411
+ console.log(fileFormat, '材料库当前选择的文件格式');
412
+ formatFinal = initFormat(spec); // 限制的文件类型
413
+ console.log(formatFinal, '限制的格式最后');
414
+ if (formatFinal.includes(fileFormat)) {
415
+ _context4.next = 1;
416
+ break;
417
+ }
418
+ _Message.notice("\u8BE5\u6750\u6599\u4E0D\u652F\u6301\u4E0A\u4F20\u3010" + fileFormat + "\u3011\u683C\u5F0F\u7684\u6587\u4EF6");
419
+ return _context4.abrupt("return");
420
+ case 1:
421
+ if (!(selectedMaterial.type === 1)) {
422
+ _context4.next = 2;
423
+ break;
424
+ }
425
+ _Message.notice('该文件为旧文件, 请先下载后手动上传');
426
+ return _context4.abrupt("return");
427
+ case 2:
428
+ if (selectedMaterial.innerFileUrl) {
429
+ _context4.next = 4;
430
+ break;
431
+ }
432
+ _context4.next = 3;
433
+ return getUrlById({
434
+ id: selectedMaterial.fileId,
435
+ effectiveTime: 3600000
436
+ }, {
437
+ token: token,
438
+ tokenTY: tokenTY,
439
+ baseUrl: baseUrl,
440
+ env: env,
441
+ isPC: isPC,
442
+ accessToken: accessToken
443
+ });
444
+ case 3:
445
+ urlRes = _context4.sent;
446
+ if (urlRes.presignedUrlList && urlRes.presignedUrlList.length > 0) {
447
+ selectedMaterial.innerFileUrl = urlRes.presignedUrlList[2];
448
+ }
449
+ case 4:
450
+ m = _extends({}, selectedMaterial, {
451
+ fileUrl: selectedMaterial.innerFileUrl
452
+ });
453
+ console.log('m', m);
454
+ valChange(m);
455
+ setIsShowMaterialLib(false);
456
+ case 5:
457
+ case "end":
458
+ return _context4.stop();
459
+ }
460
+ }, _callee4);
461
+ }));
462
+ return function selectMaterialOk() {
463
+ return _ref5.apply(this, arguments);
343
464
  };
344
465
  }();
345
- var selectMaterialOk = function selectMaterialOk() {
346
- console.log('val', materialId);
347
- console.log('materialLib==', materialLib);
348
- var selectedMaterial = materialLib.find(function (item) {
349
- return item.fileId === materialId;
350
- });
351
- console.log('selectedMaterial', selectedMaterial);
352
- if (spec) {
353
- var arr = selectedMaterial.fileName.split('.'); //
354
- var fileFormat = arr[arr.length - 1]; // 获取当前材料库材料的文件类型
355
- console.log(fileFormat, '材料库当前选择的文件格式');
356
- var formatFinal = initFormat(spec); // 限制的文件类型
357
- console.log(formatFinal, '限制的格式最后');
358
- if (!formatFinal.includes(fileFormat)) {
359
- _Message.notice("\u8BE5\u6750\u6599\u4E0D\u652F\u6301\u4E0A\u4F20\u3010" + fileFormat + "\u3011\u683C\u5F0F\u7684\u6587\u4EF6");
360
- return;
361
- }
362
- }
363
- if (selectedMaterial.type === 1) {
364
- _Message.notice('该文件为旧文件, 请先下载后手动上传');
365
- return;
366
- }
367
- var m = _extends({}, selectedMaterial, {
368
- fileUrl: selectedMaterial.innerFileUrl
369
- });
370
- console.log('m', m);
371
- valChange(m);
372
- setIsShowMaterialLib(false);
373
- };
374
466
  var onDownload = function onDownload() {
375
467
  if (disabled) return;
376
468
  var format = getFileExtension(fileName);
@@ -553,7 +645,10 @@ var FileItem = function FileItem(_ref) {
553
645
  src: previewIcon,
554
646
  alt: ""
555
647
  }), "\u9884\u89C8"));
556
- })), /*#__PURE__*/React.createElement("div", {
648
+ }), materialLib.length < materialLibTotal && /*#__PURE__*/React.createElement("div", {
649
+ className: "more",
650
+ onClick: loadMore
651
+ }, "\u52A0\u8F7D\u66F4\u591A")), /*#__PURE__*/React.createElement("div", {
557
652
  className: "bottom_btn"
558
653
  }, /*#__PURE__*/React.createElement("div", {
559
654
  className: "btn cancel",
@@ -258,10 +258,12 @@
258
258
  position: absolute;
259
259
  bottom: 0;
260
260
  left: 0;
261
- background-color: #fff;
261
+ background-color: #F5F5F5;
262
262
  border-radius: 16px 16px 0px 0px;
263
263
 
264
264
  .material_lib_title {
265
+ border-radius: 16px 16px 0px 0px;
266
+ background-color: #fff;
265
267
  font-size: 16px;
266
268
  color: #333333;
267
269
  line-height: 54px;
@@ -289,7 +291,7 @@
289
291
  padding: 12px 12px 0 12px;
290
292
  width: 100%;
291
293
  background-color: #F5F5F5;
292
- margin-bottom: 64px;
294
+ // margin-bottom: 14px;
293
295
  max-height: 300px;
294
296
  overflow: auto;
295
297
 
@@ -318,6 +320,15 @@
318
320
  }
319
321
  }
320
322
 
323
+ .more {
324
+ color: #1678FF;
325
+ text-align: center;
326
+ height: 30px;
327
+ line-height: 30px;
328
+ margin-bottom: 70px;
329
+ background-color: #F5F5F5;
330
+ }
331
+
321
332
  .bottom_btn {
322
333
  background-color: #fff;
323
334
  height: 64px;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import './checkPoint.scss';
3
+ export default function CheckPoint(props: any): JSX.Element;
@@ -0,0 +1,157 @@
1
+ import _Message from "@alifd/next/es/message";
2
+ import { React, useState, useEffect, useRef } from 'react';
3
+ import { CheckCircleFilled } from '@ant-design/icons';
4
+ import "./checkPoint.scss";
5
+ export default function CheckPoint(props) {
6
+ var _resultData$at, _resultData$at2;
7
+ var checkPointData = props.checkPointData,
8
+ handleClose = props.handleClose;
9
+ var _useState = useState(0),
10
+ resIndex = _useState[0],
11
+ setResIndex = _useState[1];
12
+ var _useState2 = useState(null),
13
+ resIndexData = _useState2[0],
14
+ setResIndexData = _useState2[1];
15
+ var _useState3 = useState([]),
16
+ resultData = _useState3[0],
17
+ setResultData = _useState3[1];
18
+ var _useState4 = useState(0),
19
+ pageHeight = _useState4[0],
20
+ setPageHeight = _useState4[1];
21
+ var imgRef = useRef();
22
+ var initData = function initData() {
23
+ var fileUrl = checkPointData.fileUrl,
24
+ _checkPointData$annot = checkPointData.annotations,
25
+ annotations = _checkPointData$annot === void 0 ? [] : _checkPointData$annot;
26
+ setTimeout(function () {
27
+ var iframe = document.getElementById('file_check_point');
28
+ iframe.src = fileUrl + "#toolbar=0";
29
+ }, 500);
30
+ setResIndexData(annotations[0]);
31
+ // 其中的page可能是乱序的,所以先排序一下
32
+ setResultData(annotations.sort(function (a, b) {
33
+ return a.page - b.page;
34
+ }));
35
+ var clientWidth = document.documentElement.clientWidth;
36
+ var _annotations$ = annotations[0],
37
+ scrollWidth = _annotations$.scrollWidth,
38
+ scrollHeight = _annotations$.scrollHeight;
39
+ var scale = clientWidth / scrollWidth;
40
+ setPageHeight(scrollHeight * scale);
41
+ };
42
+
43
+ // 获取标识的位置和大小 [方法]
44
+ var getTipDotStyle = function getTipDotStyle(item) {
45
+ var width = item.width,
46
+ height = item.height,
47
+ x = item.x,
48
+ y = item.y,
49
+ scrollWidth = item.scrollWidth,
50
+ scrollHeight = item.scrollHeight,
51
+ page = item.page;
52
+ console.log(width, height, x, y);
53
+ var img = imgRef.current;
54
+ console.log(img, 'refs');
55
+ var clientWidth = document.documentElement.clientWidth;
56
+ console.log('clientWidth-----', clientWidth);
57
+
58
+ // 算出一个系数,来动态生成下面的边框样式
59
+ var scale = clientWidth / scrollWidth;
60
+
61
+ // console.log('原始宽高', sourceImgWidth, sourceImgHeight);
62
+ console.log('原始宽高', scrollWidth, scrollHeight);
63
+ console.log('缩放系数', scale, scale);
64
+ return {
65
+ width: width * scale + 'px',
66
+ height: height * scale + 'px',
67
+ left: x * scale + 'px',
68
+ top: (page - 1) * pageHeight + y * scale + 'px'
69
+ };
70
+ };
71
+
72
+ // 上一项(prev),下一项(next) [按钮]
73
+ var handleSwitch = function handleSwitch(state) {
74
+ if (state === 'next' && resIndex === resultData.length - 1) return _Message.notice('没有下一项了');
75
+ if (state === 'prev' && resIndex === 0) return _Message.notice('没有上一项了');
76
+ if (state === 'next') {
77
+ setResIndex(resIndex + 1);
78
+ setResIndexData(resultData[resIndex + 1]);
79
+ }
80
+ if (state === 'prev') {
81
+ setResIndex(resIndex - 1);
82
+ setResIndexData(resultData[resIndex - 1]);
83
+ }
84
+ };
85
+ var checkOneDot = function checkOneDot(item, index) {
86
+ setResIndex(index);
87
+ setResIndexData(item);
88
+ };
89
+ useEffect(function () {
90
+ if (checkPointData) {
91
+ initData();
92
+ }
93
+ }, [checkPointData]);
94
+ return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
95
+ className: "keyPoint-container"
96
+ }, /*#__PURE__*/React.createElement("div", {
97
+ className: "tipDot-content",
98
+ style: {
99
+ height: ((_resultData$at = resultData.at(-1)) === null || _resultData$at === void 0 ? void 0 : _resultData$at.page) * pageHeight + 'px'
100
+ }
101
+ }, resultData.map(function (item, index) {
102
+ return /*#__PURE__*/React.createElement("div", {
103
+ className: "tip-item " + (index === resIndex ? 'active' : ''),
104
+ key: index,
105
+ onClick: function onClick() {
106
+ return checkOneDot(item, index);
107
+ },
108
+ style: getTipDotStyle(item)
109
+ }, /*#__PURE__*/React.createElement("div", {
110
+ className: "num " + (index === resIndex ? 'active' : '')
111
+ }, index + 1));
112
+ })), resIndexData && /*#__PURE__*/React.createElement("div", {
113
+ className: "result-outter"
114
+ }, /*#__PURE__*/React.createElement("div", {
115
+ className: "result-card"
116
+ }, /*#__PURE__*/React.createElement("div", {
117
+ className: "result-title"
118
+ }, resIndex + 1, "\u3001", resIndexData.text), /*#__PURE__*/React.createElement("div", {
119
+ className: "result-info"
120
+ }, /*#__PURE__*/React.createElement(CheckCircleFilled, {
121
+ color: "#15bc83",
122
+ size: "20",
123
+ style: {
124
+ color: '#15bc83',
125
+ fontSize: '20px'
126
+ }
127
+ }), /*#__PURE__*/React.createElement("div", {
128
+ className: "result-text"
129
+ }, resIndexData.reviewNotes)))), /*#__PURE__*/React.createElement("div", {
130
+ className: "bottom-btn"
131
+ }, /*#__PURE__*/React.createElement("div", {
132
+ className: "btn"
133
+ }, /*#__PURE__*/React.createElement("div", {
134
+ onClick: handleClose
135
+ }, "\u8FD4\u56DE")), /*#__PURE__*/React.createElement("div", {
136
+ className: "btn"
137
+ }, /*#__PURE__*/React.createElement("div", {
138
+ onClick: function onClick() {
139
+ return handleSwitch('prev');
140
+ }
141
+ }, "\u4E0A\u4E00\u9879")), /*#__PURE__*/React.createElement("div", {
142
+ className: "btn btn-blue"
143
+ }, /*#__PURE__*/React.createElement("div", {
144
+ onClick: function onClick() {
145
+ return handleSwitch('next');
146
+ }
147
+ }, "\u4E0B\u4E00\u9879"))), /*#__PURE__*/React.createElement("iframe", {
148
+ ref: imgRef,
149
+ id: "file_check_point",
150
+ frameBorder: "0",
151
+ height: "100%",
152
+ width: "100%",
153
+ style: {
154
+ height: ((_resultData$at2 = resultData.at(-1)) === null || _resultData$at2 === void 0 ? void 0 : _resultData$at2.page) * pageHeight + 'px'
155
+ }
156
+ })));
157
+ }
@@ -0,0 +1,120 @@
1
+ .keyPoint-container {
2
+ // position: sticky;
3
+ height: 100vh;
4
+ // margin-top: -56px;
5
+ width: 100vw;
6
+ position: fixed;
7
+ z-index: 999;
8
+ left: 0;
9
+ top: 0;
10
+ background: #919191;
11
+ overflow-y: scroll;
12
+ #file_check_point {
13
+ overflow: visible !important;
14
+ overflow-clip-margin: unset !important;
15
+ }
16
+ .tipDot-content{
17
+ // height: 100vh;
18
+ width: 100%;
19
+ position: absolute;
20
+ top: 0;
21
+ left: 0;
22
+ // overflow: scroll;
23
+ .tip-item{
24
+ position: absolute;
25
+ border-radius: 2px;
26
+ border: 1px solid #15BC83;
27
+ background: rgba(21, 188, 131, 0.1);
28
+ &.active {
29
+ background: rgba(247, 98, 93, 0.1);
30
+ border: 1px solid #F7625D;
31
+ }
32
+ .num{
33
+ width: 20px;
34
+ height: 20px;
35
+ border-radius: 50%;
36
+ font-size: 10px;
37
+ display: flex;
38
+ justify-content: center;
39
+ align-items: center;
40
+ color: #ffffff;
41
+ margin-left: -20px;
42
+ background: #15BC83;
43
+ &.active {
44
+ background: #F7625D;
45
+ }
46
+ }
47
+ }
48
+
49
+ }
50
+ .result-outter {
51
+ box-sizing: border-box;
52
+ padding: 0 24px;
53
+ // border: 1px solid red;
54
+ position: fixed;
55
+ width: 100%;
56
+ bottom: 65px;
57
+ left: 0;
58
+ .result-card {
59
+ border-radius: 10px;
60
+ padding: 16px;
61
+ background: #ffffff;
62
+ border: 1px solid #ddd;
63
+ box-shadow: 0px 4px 10px 0px rgba(177, 188, 200, 0.25);
64
+ .result-title {
65
+ color: #333;
66
+ font-size: 14px;
67
+ margin-bottom: 8px;
68
+ }
69
+ .result-info{
70
+ font-size: 14px;
71
+ margin-bottom: 10px;
72
+ display: flex;
73
+ justify-content: flex-start;
74
+ align-items: center;
75
+ gap: 5px;
76
+ // 提示类型: error/judge/pass
77
+ .result-text{
78
+ }
79
+ }
80
+ }
81
+
82
+ }
83
+ .bottom-btn {
84
+ box-sizing: border-box;
85
+ position: fixed;
86
+ bottom: 0;
87
+ left: 0;
88
+ width: 100%;
89
+ background-color: #fff;
90
+ padding: 11px 0;
91
+ display: flex;
92
+ box-shadow: 0px 2px 16px 0px rgba(0, 0, 0, 0.1);
93
+ z-index: 200;
94
+ .btn {
95
+ margin: 0 10px;
96
+ flex: 1;
97
+ color: #323233;
98
+ background-color: #fff;
99
+ border-color: #ebedf0;
100
+ border-width: 1px;
101
+ border-style: solid;
102
+ border-radius: 100px;
103
+ padding: 0 12px;
104
+ font-size: 14px;
105
+ height: 40px;
106
+ position: relative;
107
+ align-items: center;
108
+ justify-content: center;
109
+ display: flex;
110
+ flex-direction: row;
111
+ box-sizing: border-box;
112
+ flex-direction: row;
113
+ }
114
+ .btn-blue {
115
+ color: white;
116
+ border-width: 0px;
117
+ background-image: linear-gradient(rgb(22, 120, 255), rgb(118, 173, 250));
118
+ }
119
+ }
120
+ }