ydb-components-material 0.1.65 → 0.1.66

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.
@@ -120,9 +120,6 @@ var FileItem = function FileItem(_ref) {
120
120
  var _useState13 = useState(null),
121
121
  checkPointData = _useState13[0],
122
122
  setCheckPointData = _useState13[1];
123
- var _useState14 = useState(''),
124
- oldUrl = _useState14[0],
125
- setOldUrl = _useState14[1];
126
123
  var showViewImg = function showViewImg(url) {
127
124
  setIsShowView(true);
128
125
  setViewImg(url);
@@ -233,23 +230,26 @@ var FileItem = function FileItem(_ref) {
233
230
  setIsShowSealPage(true);
234
231
  };
235
232
 
233
+ // const signAndSeal = () => {
234
+ // seal()
235
+ // }
236
+
236
237
  // 获取签pi结果
237
238
  var getRes = function getRes(val) {
238
239
  console.log('val---', val);
239
- if (val.fileUrl && !oldUrl) {
240
- setOldUrl(val.oldUrl);
241
- }
242
240
  valChange(val);
243
241
  };
244
242
 
245
243
  // 获取签章结果
246
244
  var getSealRes = function getSealRes(val) {
247
245
  console.log('sealval---', val);
248
- if (val.fileUrl && !oldUrl) {
249
- setOldUrl(val.oldUrl);
250
- }
251
- // valChange(val)
252
- sign();
246
+ // 如果还允许签批 就连住一起做了
247
+ // if (signatureEnable) {
248
+ // sign()
249
+ // } else {
250
+ // valChange(val)
251
+ // }
252
+ valChange(val);
253
253
  };
254
254
  var queryFileLibs = function queryFileLibs() {
255
255
  console.log('queryFileLibs');
@@ -524,8 +524,7 @@ var FileItem = function FileItem(_ref) {
524
524
  file: {
525
525
  name: fileName,
526
526
  url: fileUrl,
527
- type: fileType,
528
- oldUrl: isSigned ? oldUrl : ''
527
+ type: fileType
529
528
  },
530
529
  token: token,
531
530
  tokenTY: tokenTY,
@@ -541,8 +540,7 @@ var FileItem = function FileItem(_ref) {
541
540
  name: fileName,
542
541
  url: fileUrl,
543
542
  type: fileType,
544
- fileId: fileId,
545
- oldUrl: isSealed ? oldUrl : ''
543
+ fileId: fileId
546
544
  },
547
545
  token: token,
548
546
  tokenTY: tokenTY,
@@ -126,9 +126,6 @@ var FileItem = function FileItem(_ref) {
126
126
  var _useState13 = (0, _react.useState)(null),
127
127
  checkPointData = _useState13[0],
128
128
  setCheckPointData = _useState13[1];
129
- var _useState14 = (0, _react.useState)(''),
130
- oldUrl = _useState14[0],
131
- setOldUrl = _useState14[1];
132
129
  var showViewImg = function showViewImg(url) {
133
130
  setIsShowView(true);
134
131
  setViewImg(url);
@@ -239,23 +236,26 @@ var FileItem = function FileItem(_ref) {
239
236
  setIsShowSealPage(true);
240
237
  };
241
238
 
239
+ // const signAndSeal = () => {
240
+ // seal()
241
+ // }
242
+
242
243
  // 获取签pi结果
243
244
  var getRes = function getRes(val) {
244
245
  console.log('val---', val);
245
- if (val.fileUrl && !oldUrl) {
246
- setOldUrl(val.oldUrl);
247
- }
248
246
  valChange(val);
249
247
  };
250
248
 
251
249
  // 获取签章结果
252
250
  var getSealRes = function getSealRes(val) {
253
251
  console.log('sealval---', val);
254
- if (val.fileUrl && !oldUrl) {
255
- setOldUrl(val.oldUrl);
256
- }
257
- // valChange(val)
258
- sign();
252
+ // 如果还允许签批 就连住一起做了
253
+ // if (signatureEnable) {
254
+ // sign()
255
+ // } else {
256
+ // valChange(val)
257
+ // }
258
+ valChange(val);
259
259
  };
260
260
  var queryFileLibs = function queryFileLibs() {
261
261
  console.log('queryFileLibs');
@@ -530,8 +530,7 @@ var FileItem = function FileItem(_ref) {
530
530
  file: {
531
531
  name: fileName,
532
532
  url: fileUrl,
533
- type: fileType,
534
- oldUrl: isSigned ? oldUrl : ''
533
+ type: fileType
535
534
  },
536
535
  token: token,
537
536
  tokenTY: tokenTY,
@@ -547,8 +546,7 @@ var FileItem = function FileItem(_ref) {
547
546
  name: fileName,
548
547
  url: fileUrl,
549
548
  type: fileType,
550
- fileId: fileId,
551
- oldUrl: isSealed ? oldUrl : ''
549
+ fileId: fileId
552
550
  },
553
551
  token: token,
554
552
  tokenTY: tokenTY,
@@ -89,7 +89,7 @@ function fillRealVersion(meta, packageName, version, basicLibraryVersion) {
89
89
  packageName = 'ydb-components-material';
90
90
  }
91
91
  if (version === void 0) {
92
- version = '0.1.65';
92
+ version = '0.1.66';
93
93
  }
94
94
  if (basicLibraryVersion === void 0) {
95
95
  basicLibraryVersion = {
@@ -94,7 +94,7 @@ function fillRealVersion(meta, packageName, version, basicLibraryVersion) {
94
94
  packageName = 'ydb-components-material';
95
95
  }
96
96
  if (version === void 0) {
97
- version = '0.1.65';
97
+ version = '0.1.66';
98
98
  }
99
99
  if (basicLibraryVersion === void 0) {
100
100
  basicLibraryVersion = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ydb-components-material",
3
- "version": "0.1.65",
3
+ "version": "0.1.66",
4
4
  "description": "ydb-components-material",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -97,10 +97,10 @@
97
97
  },
98
98
  "componentConfig": {
99
99
  "isComponentLibrary": true,
100
- "materialSchema": "https://unpkg.com/ydb-components-material@0.1.65/build/lowcode/assets-prod.json"
100
+ "materialSchema": "https://unpkg.com/ydb-components-material@0.1.66/build/lowcode/assets-prod.json"
101
101
  },
102
102
  "lcMeta": {
103
103
  "type": "component"
104
104
  },
105
- "homepage": "https://unpkg.com/ydb-components-material@0.1.65/build/index.html"
105
+ "homepage": "https://unpkg.com/ydb-components-material@0.1.66/build/index.html"
106
106
  }