ydb-components-material 0.1.95 → 0.1.96
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.
- package/build/docs/404.html +3 -3
- package/build/docs/_demos/:uuid +3 -3
- package/build/docs/colorful-button.html +3 -3
- package/build/docs/colorful-input.html +3 -3
- package/build/docs/index.html +3 -3
- package/build/docs/{umi.a9f70b86.js → umi.19926380.js} +1 -1
- package/build/docs/{umi.aa947d35.css → umi.96fb6893.css} +1 -1
- package/build/docs/~demos/:uuid.html +3 -3
- package/build/docs/~demos/colorful-button-demo.html +3 -3
- package/build/docs/~demos/colorful-input-demo.html +3 -3
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +1 -1
- package/dist/BizComps.css +1 -1
- package/dist/BizComps.js +1 -1
- package/dist/BizComps.js.map +1 -1
- package/es/components/file-list/index.scss +1 -1
- package/es/components/file-list/item.js +9 -6
- package/es/components/file-list/seal.js +3 -1
- package/es/components/file-list/sign.js +3 -1
- package/lib/components/file-list/index.scss +1 -1
- package/lib/components/file-list/item.js +9 -6
- package/lib/components/file-list/seal.js +3 -1
- package/lib/components/file-list/sign.js +3 -1
- package/lowcode_es/meta.js +1 -1
- package/lowcode_lib/meta.js +1 -1
- package/package.json +3 -3
|
@@ -284,7 +284,7 @@ var FileItem = function FileItem(_ref) {
|
|
|
284
284
|
|
|
285
285
|
// 手写签批
|
|
286
286
|
var sign = function sign() {
|
|
287
|
-
|
|
287
|
+
openLoading();
|
|
288
288
|
setIsShowSignPage(true);
|
|
289
289
|
};
|
|
290
290
|
|
|
@@ -307,7 +307,6 @@ var FileItem = function FileItem(_ref) {
|
|
|
307
307
|
var getRes = function getRes(val) {
|
|
308
308
|
console.log('val---', val);
|
|
309
309
|
valChange(val, fileIndex, index, subIndex);
|
|
310
|
-
closeLoading();
|
|
311
310
|
};
|
|
312
311
|
|
|
313
312
|
// 获取签章结果
|
|
@@ -317,8 +316,6 @@ var FileItem = function FileItem(_ref) {
|
|
|
317
316
|
// 如果还允许签批 就连住一起做了
|
|
318
317
|
if (signatureEnable) {
|
|
319
318
|
sign();
|
|
320
|
-
} else {
|
|
321
|
-
closeLoading();
|
|
322
319
|
}
|
|
323
320
|
};
|
|
324
321
|
var queryFileLibs = function queryFileLibs() {
|
|
@@ -490,6 +487,8 @@ var FileItem = function FileItem(_ref) {
|
|
|
490
487
|
}, 0);
|
|
491
488
|
}
|
|
492
489
|
}, [userInfo, tokenTY]);
|
|
490
|
+
|
|
491
|
+
// 获取缩略图
|
|
493
492
|
var extractImageUrls = /*#__PURE__*/function () {
|
|
494
493
|
var _ref6 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee5(previewUrl) {
|
|
495
494
|
var response, htmlText, parser, doc, imgElements, srcList;
|
|
@@ -521,6 +520,8 @@ var FileItem = function FileItem(_ref) {
|
|
|
521
520
|
return _ref6.apply(this, arguments);
|
|
522
521
|
};
|
|
523
522
|
}();
|
|
523
|
+
|
|
524
|
+
// 获取预览图片
|
|
524
525
|
var getViewUrl = /*#__PURE__*/function () {
|
|
525
526
|
var _ref7 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee6(id) {
|
|
526
527
|
var type, urlRes, res, list;
|
|
@@ -789,7 +790,8 @@ var FileItem = function FileItem(_ref) {
|
|
|
789
790
|
getRes: getRes,
|
|
790
791
|
handleClose: function handleClose() {
|
|
791
792
|
return setIsShowSignPage(false);
|
|
792
|
-
}
|
|
793
|
+
},
|
|
794
|
+
closeLoading: closeLoading
|
|
793
795
|
}), isShowSealPage && /*#__PURE__*/React.createElement(SealPage, {
|
|
794
796
|
isShowSealPage: isShowSealPage,
|
|
795
797
|
userInfo: userInfo,
|
|
@@ -803,7 +805,8 @@ var FileItem = function FileItem(_ref) {
|
|
|
803
805
|
accessToken: accessToken,
|
|
804
806
|
handleClose: function handleClose() {
|
|
805
807
|
return setIsShowSealPage(false);
|
|
806
|
-
}
|
|
808
|
+
},
|
|
809
|
+
closeLoading: closeLoading
|
|
807
810
|
}), isShowPreview && /*#__PURE__*/React.createElement("div", {
|
|
808
811
|
className: "preview"
|
|
809
812
|
}, /*#__PURE__*/React.createElement("img", {
|
|
@@ -16,7 +16,8 @@ function SealPage(props) {
|
|
|
16
16
|
baseUrl = props.baseUrl,
|
|
17
17
|
env = props.env,
|
|
18
18
|
isPC = props.isPC,
|
|
19
|
-
accessToken = props.accessToken
|
|
19
|
+
accessToken = props.accessToken,
|
|
20
|
+
closeLoading = props.closeLoading;
|
|
20
21
|
var _useState = useState(''),
|
|
21
22
|
srcUrl = _useState[0],
|
|
22
23
|
setSrcUrl = _useState[1];
|
|
@@ -57,6 +58,7 @@ function SealPage(props) {
|
|
|
57
58
|
return _context.abrupt("return");
|
|
58
59
|
case 2:
|
|
59
60
|
pageUrl = res.pageUrl, orderIdVal = res.orderId;
|
|
61
|
+
closeLoading();
|
|
60
62
|
console.log('pageUrl', pageUrl);
|
|
61
63
|
setSrcUrl(pageUrl);
|
|
62
64
|
setOrderId(orderIdVal);
|
|
@@ -13,7 +13,8 @@ function SignPage(props) {
|
|
|
13
13
|
tokenTY = props.tokenTY,
|
|
14
14
|
baseUrl = props.baseUrl,
|
|
15
15
|
env = props.env,
|
|
16
|
-
isPC = props.isPC
|
|
16
|
+
isPC = props.isPC,
|
|
17
|
+
closeLoading = props.closeLoading;
|
|
17
18
|
var _useState = useState(''),
|
|
18
19
|
srcUrl = _useState[0],
|
|
19
20
|
setSrcUrl = _useState[1];
|
|
@@ -51,6 +52,7 @@ function SignPage(props) {
|
|
|
51
52
|
case 1:
|
|
52
53
|
res = _context.sent;
|
|
53
54
|
documentIdVal = res.documentId, contractIdVal = res.contractId, pageUrl = res.pageUrl, nameVal = res.fileName;
|
|
55
|
+
closeLoading();
|
|
54
56
|
setSrcUrl(pageUrl);
|
|
55
57
|
setDocumentId(documentIdVal);
|
|
56
58
|
setContractId(contractIdVal);
|
|
@@ -290,7 +290,7 @@ var FileItem = function FileItem(_ref) {
|
|
|
290
290
|
|
|
291
291
|
// 手写签批
|
|
292
292
|
var sign = function sign() {
|
|
293
|
-
|
|
293
|
+
openLoading();
|
|
294
294
|
setIsShowSignPage(true);
|
|
295
295
|
};
|
|
296
296
|
|
|
@@ -313,7 +313,6 @@ var FileItem = function FileItem(_ref) {
|
|
|
313
313
|
var getRes = function getRes(val) {
|
|
314
314
|
console.log('val---', val);
|
|
315
315
|
valChange(val, fileIndex, index, subIndex);
|
|
316
|
-
closeLoading();
|
|
317
316
|
};
|
|
318
317
|
|
|
319
318
|
// 获取签章结果
|
|
@@ -323,8 +322,6 @@ var FileItem = function FileItem(_ref) {
|
|
|
323
322
|
// 如果还允许签批 就连住一起做了
|
|
324
323
|
if (signatureEnable) {
|
|
325
324
|
sign();
|
|
326
|
-
} else {
|
|
327
|
-
closeLoading();
|
|
328
325
|
}
|
|
329
326
|
};
|
|
330
327
|
var queryFileLibs = function queryFileLibs() {
|
|
@@ -496,6 +493,8 @@ var FileItem = function FileItem(_ref) {
|
|
|
496
493
|
}, 0);
|
|
497
494
|
}
|
|
498
495
|
}, [userInfo, tokenTY]);
|
|
496
|
+
|
|
497
|
+
// 获取缩略图
|
|
499
498
|
var extractImageUrls = /*#__PURE__*/function () {
|
|
500
499
|
var _ref6 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee5(previewUrl) {
|
|
501
500
|
var response, htmlText, parser, doc, imgElements, srcList;
|
|
@@ -527,6 +526,8 @@ var FileItem = function FileItem(_ref) {
|
|
|
527
526
|
return _ref6.apply(this, arguments);
|
|
528
527
|
};
|
|
529
528
|
}();
|
|
529
|
+
|
|
530
|
+
// 获取预览图片
|
|
530
531
|
var getViewUrl = /*#__PURE__*/function () {
|
|
531
532
|
var _ref7 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee6(id) {
|
|
532
533
|
var type, urlRes, res, list;
|
|
@@ -795,7 +796,8 @@ var FileItem = function FileItem(_ref) {
|
|
|
795
796
|
getRes: getRes,
|
|
796
797
|
handleClose: function handleClose() {
|
|
797
798
|
return setIsShowSignPage(false);
|
|
798
|
-
}
|
|
799
|
+
},
|
|
800
|
+
closeLoading: closeLoading
|
|
799
801
|
}), isShowSealPage && /*#__PURE__*/_react["default"].createElement(_seal["default"], {
|
|
800
802
|
isShowSealPage: isShowSealPage,
|
|
801
803
|
userInfo: userInfo,
|
|
@@ -809,7 +811,8 @@ var FileItem = function FileItem(_ref) {
|
|
|
809
811
|
accessToken: accessToken,
|
|
810
812
|
handleClose: function handleClose() {
|
|
811
813
|
return setIsShowSealPage(false);
|
|
812
|
-
}
|
|
814
|
+
},
|
|
815
|
+
closeLoading: closeLoading
|
|
813
816
|
}), isShowPreview && /*#__PURE__*/_react["default"].createElement("div", {
|
|
814
817
|
className: "preview"
|
|
815
818
|
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
@@ -22,7 +22,8 @@ function SealPage(props) {
|
|
|
22
22
|
baseUrl = props.baseUrl,
|
|
23
23
|
env = props.env,
|
|
24
24
|
isPC = props.isPC,
|
|
25
|
-
accessToken = props.accessToken
|
|
25
|
+
accessToken = props.accessToken,
|
|
26
|
+
closeLoading = props.closeLoading;
|
|
26
27
|
var _useState = (0, _react.useState)(''),
|
|
27
28
|
srcUrl = _useState[0],
|
|
28
29
|
setSrcUrl = _useState[1];
|
|
@@ -63,6 +64,7 @@ function SealPage(props) {
|
|
|
63
64
|
return _context.abrupt("return");
|
|
64
65
|
case 2:
|
|
65
66
|
pageUrl = res.pageUrl, orderIdVal = res.orderId;
|
|
67
|
+
closeLoading();
|
|
66
68
|
console.log('pageUrl', pageUrl);
|
|
67
69
|
setSrcUrl(pageUrl);
|
|
68
70
|
setOrderId(orderIdVal);
|
|
@@ -19,7 +19,8 @@ function SignPage(props) {
|
|
|
19
19
|
tokenTY = props.tokenTY,
|
|
20
20
|
baseUrl = props.baseUrl,
|
|
21
21
|
env = props.env,
|
|
22
|
-
isPC = props.isPC
|
|
22
|
+
isPC = props.isPC,
|
|
23
|
+
closeLoading = props.closeLoading;
|
|
23
24
|
var _useState = (0, _react.useState)(''),
|
|
24
25
|
srcUrl = _useState[0],
|
|
25
26
|
setSrcUrl = _useState[1];
|
|
@@ -57,6 +58,7 @@ function SignPage(props) {
|
|
|
57
58
|
case 1:
|
|
58
59
|
res = _context.sent;
|
|
59
60
|
documentIdVal = res.documentId, contractIdVal = res.contractId, pageUrl = res.pageUrl, nameVal = res.fileName;
|
|
61
|
+
closeLoading();
|
|
60
62
|
setSrcUrl(pageUrl);
|
|
61
63
|
setDocumentId(documentIdVal);
|
|
62
64
|
setContractId(contractIdVal);
|
package/lowcode_es/meta.js
CHANGED
|
@@ -93,7 +93,7 @@ function fillRealVersion(meta, packageName, version, basicLibraryVersion) {
|
|
|
93
93
|
packageName = 'ydb-components-material';
|
|
94
94
|
}
|
|
95
95
|
if (version === void 0) {
|
|
96
|
-
version = '0.1.
|
|
96
|
+
version = '0.1.96';
|
|
97
97
|
}
|
|
98
98
|
if (basicLibraryVersion === void 0) {
|
|
99
99
|
basicLibraryVersion = {
|
package/lowcode_lib/meta.js
CHANGED
|
@@ -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.
|
|
101
|
+
version = '0.1.96';
|
|
102
102
|
}
|
|
103
103
|
if (basicLibraryVersion === void 0) {
|
|
104
104
|
basicLibraryVersion = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ydb-components-material",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.96",
|
|
4
4
|
"description": "ydb-components-material",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -98,10 +98,10 @@
|
|
|
98
98
|
},
|
|
99
99
|
"componentConfig": {
|
|
100
100
|
"isComponentLibrary": true,
|
|
101
|
-
"materialSchema": "https://unpkg.com/ydb-components-material@0.1.
|
|
101
|
+
"materialSchema": "https://unpkg.com/ydb-components-material@0.1.96/build/lowcode/assets-prod.json"
|
|
102
102
|
},
|
|
103
103
|
"lcMeta": {
|
|
104
104
|
"type": "component"
|
|
105
105
|
},
|
|
106
|
-
"homepage": "https://unpkg.com/ydb-components-material@0.1.
|
|
106
|
+
"homepage": "https://unpkg.com/ydb-components-material@0.1.96/build/index.html"
|
|
107
107
|
}
|