ydb-components-material 0.1.193 → 0.1.195

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.
@@ -16,8 +16,8 @@ import { querySeal } from "../file-list/sealUtil";
16
16
  import { getGuideImg, getUrlById, onlinePreview } from "../../api";
17
17
  import { getFileExtension } from "./file.js";
18
18
  import "./index.scss";
19
- var SIGN = '1'; // 签名
20
- var SEAL = '2'; // 签章
19
+ var SIGN = 1; // 签名
20
+ var SEAL = 2; // 签章
21
21
 
22
22
  var SignFile = function SignFile(_ref) {
23
23
  var file = _ref.file,
@@ -43,7 +43,8 @@ var SignFile = function SignFile(_ref) {
43
43
  signatureEnable = file.signatureEnable,
44
44
  signEnable = file.signEnable,
45
45
  guideImg = file.signGuidFileId,
46
- signContent = file.signContent;
46
+ _file$signContent = file.signContent,
47
+ signContent = _file$signContent === void 0 ? [] : _file$signContent;
47
48
  var _useState = useState(false),
48
49
  isShowSignPage = _useState[0],
49
50
  setIsShowSignPage = _useState[1];
@@ -320,7 +321,9 @@ var SignFile = function SignFile(_ref) {
320
321
  case 0:
321
322
  setSealedFile(undefined);
322
323
  // 如果不需要签章 就直接去签字
323
- if (signContent.includes(SEAL)) {
324
+ if (signContent.map(function (i) {
325
+ return +i;
326
+ }).includes(SEAL)) {
324
327
  _context5.next = 1;
325
328
  break;
326
329
  }
@@ -432,7 +435,9 @@ var SignFile = function SignFile(_ref) {
432
435
  var getSealRes = function getSealRes(val) {
433
436
  console.log('sealval---', val);
434
437
  // 如果还允许签批 就连住一起做了
435
- if (signContent.includes(SIGN)) {
438
+ if (signContent.map(function (i) {
439
+ return +i;
440
+ }).includes(SIGN)) {
436
441
  setSealedFile(val);
437
442
  sign(true);
438
443
  } else {
@@ -22,8 +22,8 @@ var _api = require("../../api");
22
22
  var _file2 = require("./file.js");
23
23
  require("./index.scss");
24
24
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
25
- var SIGN = '1'; // 签名
26
- var SEAL = '2'; // 签章
25
+ var SIGN = 1; // 签名
26
+ var SEAL = 2; // 签章
27
27
 
28
28
  var SignFile = function SignFile(_ref) {
29
29
  var file = _ref.file,
@@ -49,7 +49,8 @@ var SignFile = function SignFile(_ref) {
49
49
  signatureEnable = file.signatureEnable,
50
50
  signEnable = file.signEnable,
51
51
  guideImg = file.signGuidFileId,
52
- signContent = file.signContent;
52
+ _file$signContent = file.signContent,
53
+ signContent = _file$signContent === void 0 ? [] : _file$signContent;
53
54
  var _useState = (0, _react.useState)(false),
54
55
  isShowSignPage = _useState[0],
55
56
  setIsShowSignPage = _useState[1];
@@ -326,7 +327,9 @@ var SignFile = function SignFile(_ref) {
326
327
  case 0:
327
328
  setSealedFile(undefined);
328
329
  // 如果不需要签章 就直接去签字
329
- if (signContent.includes(SEAL)) {
330
+ if (signContent.map(function (i) {
331
+ return +i;
332
+ }).includes(SEAL)) {
330
333
  _context5.next = 1;
331
334
  break;
332
335
  }
@@ -438,7 +441,9 @@ var SignFile = function SignFile(_ref) {
438
441
  var getSealRes = function getSealRes(val) {
439
442
  console.log('sealval---', val);
440
443
  // 如果还允许签批 就连住一起做了
441
- if (signContent.includes(SIGN)) {
444
+ if (signContent.map(function (i) {
445
+ return +i;
446
+ }).includes(SIGN)) {
442
447
  setSealedFile(val);
443
448
  sign(true);
444
449
  } else {
@@ -98,7 +98,7 @@ function fillRealVersion(meta, packageName, version, basicLibraryVersion) {
98
98
  packageName = 'ydb-components-material';
99
99
  }
100
100
  if (version === void 0) {
101
- version = '0.1.193';
101
+ version = '0.1.195';
102
102
  }
103
103
  if (basicLibraryVersion === void 0) {
104
104
  basicLibraryVersion = {
@@ -103,7 +103,7 @@ function fillRealVersion(meta, packageName, version, basicLibraryVersion) {
103
103
  packageName = 'ydb-components-material';
104
104
  }
105
105
  if (version === void 0) {
106
- version = '0.1.193';
106
+ version = '0.1.195';
107
107
  }
108
108
  if (basicLibraryVersion === void 0) {
109
109
  basicLibraryVersion = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ydb-components-material",
3
- "version": "0.1.193",
3
+ "version": "0.1.195",
4
4
  "description": "ydb-components-material",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -102,10 +102,10 @@
102
102
  },
103
103
  "componentConfig": {
104
104
  "isComponentLibrary": true,
105
- "materialSchema": "https://unpkg.com/ydb-components-material@0.1.193/build/lowcode/assets-prod.json"
105
+ "materialSchema": "https://unpkg.com/ydb-components-material@0.1.195/build/lowcode/assets-prod.json"
106
106
  },
107
107
  "lcMeta": {
108
108
  "type": "component"
109
109
  },
110
- "homepage": "https://unpkg.com/ydb-components-material@0.1.193/build/index.html"
110
+ "homepage": "https://unpkg.com/ydb-components-material@0.1.195/build/index.html"
111
111
  }