ydb-components-material 0.1.189 → 0.1.191

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.
@@ -315,7 +315,7 @@ var FileList = function FileList(_ref) {
315
315
  }, item.remark)), !(item.subMaterials && item.subMaterials.length > 0) && /*#__PURE__*/React.createElement("div", {
316
316
  key: item.fileList.length,
317
317
  className: "title_info"
318
- }, /*#__PURE__*/React.createElement("span", {
318
+ }, item.isNeed === '1' && /*#__PURE__*/React.createElement("span", {
319
319
  className: "required"
320
320
  }, "*"), /*#__PURE__*/React.createElement(_Balloon, {
321
321
  v2: true,
@@ -340,7 +340,7 @@ var FileList = function FileList(_ref) {
340
340
  key: child.fileList.length
341
341
  }, /*#__PURE__*/React.createElement("p", {
342
342
  className: "name_level_two"
343
- }, subIndex + 1, "\u3001", child.declareMaterialName || child.materialName), /*#__PURE__*/React.createElement("span", {
343
+ }, subIndex + 1, "\u3001", child.declareMaterialName || child.materialName), child.isNeed === '1' && /*#__PURE__*/React.createElement("span", {
344
344
  className: "required"
345
345
  }, "*"), /*#__PURE__*/React.createElement(_Balloon, {
346
346
  v2: true,
@@ -84,7 +84,8 @@ var FileItem = function FileItem(_ref) {
84
84
  signAgentRole = _fileConfig$signAgent === void 0 ? [] : _fileConfig$signAgent,
85
85
  sealKeywords = fileConfig.sealKeywords,
86
86
  sealPosition = fileConfig.sealPosition,
87
- sealContent = fileConfig.sealContent;
87
+ sealContent = fileConfig.sealContent,
88
+ isNeed = fileConfig.isNeed;
88
89
  var _React$useState = React.useState(false),
89
90
  needOtherSign = _React$useState[0],
90
91
  setNeedOtherSign = _React$useState[1];
@@ -196,7 +196,7 @@ function getSignOrderId(sealList, fileObj, esusFileUrl, userInfo, sealConfig, co
196
196
  // 签章文件 (签章文件 base64 编码文件数据或者文件地址)
197
197
  fileType: '0',
198
198
  // 文件格式类型 (0 文件路径;1 文件数据)
199
- docType: '0',
199
+ docType: fileName.includes('ofd') ? '1' : '0',
200
200
  // 文件内容类型 (0 PDF;1 OFD)
201
201
  fileId: fileId,
202
202
  // 业务系统文件 id (用于回传文件,不可重复)
@@ -321,7 +321,7 @@ var FileList = function FileList(_ref) {
321
321
  }, item.remark)), !(item.subMaterials && item.subMaterials.length > 0) && /*#__PURE__*/_react["default"].createElement("div", {
322
322
  key: item.fileList.length,
323
323
  className: "title_info"
324
- }, /*#__PURE__*/_react["default"].createElement("span", {
324
+ }, item.isNeed === '1' && /*#__PURE__*/_react["default"].createElement("span", {
325
325
  className: "required"
326
326
  }, "*"), /*#__PURE__*/_react["default"].createElement(_balloon["default"], {
327
327
  v2: true,
@@ -346,7 +346,7 @@ var FileList = function FileList(_ref) {
346
346
  key: child.fileList.length
347
347
  }, /*#__PURE__*/_react["default"].createElement("p", {
348
348
  className: "name_level_two"
349
- }, subIndex + 1, "\u3001", child.declareMaterialName || child.materialName), /*#__PURE__*/_react["default"].createElement("span", {
349
+ }, subIndex + 1, "\u3001", child.declareMaterialName || child.materialName), child.isNeed === '1' && /*#__PURE__*/_react["default"].createElement("span", {
350
350
  className: "required"
351
351
  }, "*"), /*#__PURE__*/_react["default"].createElement(_balloon["default"], {
352
352
  v2: true,
@@ -90,7 +90,8 @@ var FileItem = function FileItem(_ref) {
90
90
  signAgentRole = _fileConfig$signAgent === void 0 ? [] : _fileConfig$signAgent,
91
91
  sealKeywords = fileConfig.sealKeywords,
92
92
  sealPosition = fileConfig.sealPosition,
93
- sealContent = fileConfig.sealContent;
93
+ sealContent = fileConfig.sealContent,
94
+ isNeed = fileConfig.isNeed;
94
95
  var _React$useState = _react["default"].useState(false),
95
96
  needOtherSign = _React$useState[0],
96
97
  setNeedOtherSign = _React$useState[1];
@@ -201,7 +201,7 @@ function getSignOrderId(sealList, fileObj, esusFileUrl, userInfo, sealConfig, co
201
201
  // 签章文件 (签章文件 base64 编码文件数据或者文件地址)
202
202
  fileType: '0',
203
203
  // 文件格式类型 (0 文件路径;1 文件数据)
204
- docType: '0',
204
+ docType: fileName.includes('ofd') ? '1' : '0',
205
205
  // 文件内容类型 (0 PDF;1 OFD)
206
206
  fileId: fileId,
207
207
  // 业务系统文件 id (用于回传文件,不可重复)
@@ -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.189';
101
+ version = '0.1.191';
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.189';
106
+ version = '0.1.191';
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.189",
3
+ "version": "0.1.191",
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.189/build/lowcode/assets-prod.json"
105
+ "materialSchema": "https://unpkg.com/ydb-components-material@0.1.191/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.189/build/index.html"
110
+ "homepage": "https://unpkg.com/ydb-components-material@0.1.191/build/index.html"
111
111
  }