ydb-components-material 0.1.211 → 0.1.212
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.4333c36a.js → umi.7c36bbcf.js} +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.js +1 -1
- package/build/lowcode/view.js +1 -1
- package/dist/BizComps.js +1 -1
- package/dist/BizComps.js.map +1 -1
- package/es/components/file-list/item.js +4 -3
- package/lib/components/file-list/item.js +4 -3
- package/lowcode_es/meta.js +1 -1
- package/lowcode_lib/meta.js +1 -1
- package/package.json +3 -3
|
@@ -516,7 +516,7 @@ var FileItem = function FileItem(_ref) {
|
|
|
516
516
|
return k + 1;
|
|
517
517
|
});
|
|
518
518
|
setIsShowSignPage(true);
|
|
519
|
-
|
|
519
|
+
saveStorage();
|
|
520
520
|
};
|
|
521
521
|
|
|
522
522
|
// 签章
|
|
@@ -1099,7 +1099,7 @@ var FileItem = function FileItem(_ref) {
|
|
|
1099
1099
|
// - 外层组件会修改 file.loading,需要在 loading 变为 false 时启动轮询
|
|
1100
1100
|
// - 轮询自身会把 loading 置为 true,所以必须幂等,且不能在依赖变化时清理定时器
|
|
1101
1101
|
useEffect(function () {
|
|
1102
|
-
if (
|
|
1102
|
+
if (pollingRef.current) return;
|
|
1103
1103
|
|
|
1104
1104
|
// 只把「读取/解析本地签批信息」放在 try 里,避免后面的逻辑异常被静默吞掉
|
|
1105
1105
|
var signInfo = null;
|
|
@@ -1128,6 +1128,7 @@ var FileItem = function FileItem(_ref) {
|
|
|
1128
1128
|
// 兜底:连续 10 次轮询仍未成功则结束轮询,避免无限请求
|
|
1129
1129
|
var pollCount = 0;
|
|
1130
1130
|
timerRef.current = setInterval(function () {
|
|
1131
|
+
console.log('start polling----');
|
|
1131
1132
|
getSignedFile(docId, contrId, nameVal)["catch"](function (e) {
|
|
1132
1133
|
// 单次请求异常按失败处理,避免未处理的 rejection 打断轮询
|
|
1133
1134
|
console.error('轮询签批结果异常', e);
|
|
@@ -1166,7 +1167,7 @@ var FileItem = function FileItem(_ref) {
|
|
|
1166
1167
|
} catch (e) {
|
|
1167
1168
|
console.error('更新文件 loading 状态失败', e);
|
|
1168
1169
|
}
|
|
1169
|
-
}, [fileId
|
|
1170
|
+
}, [fileId]);
|
|
1170
1171
|
|
|
1171
1172
|
// 仅在卸载时清理定时器;不能放进上面的 effect,否则 loading 变化会清掉正在进行的轮询
|
|
1172
1173
|
useEffect(function () {
|
|
@@ -522,7 +522,7 @@ var FileItem = function FileItem(_ref) {
|
|
|
522
522
|
return k + 1;
|
|
523
523
|
});
|
|
524
524
|
setIsShowSignPage(true);
|
|
525
|
-
|
|
525
|
+
saveStorage();
|
|
526
526
|
};
|
|
527
527
|
|
|
528
528
|
// 签章
|
|
@@ -1105,7 +1105,7 @@ var FileItem = function FileItem(_ref) {
|
|
|
1105
1105
|
// - 外层组件会修改 file.loading,需要在 loading 变为 false 时启动轮询
|
|
1106
1106
|
// - 轮询自身会把 loading 置为 true,所以必须幂等,且不能在依赖变化时清理定时器
|
|
1107
1107
|
(0, _react.useEffect)(function () {
|
|
1108
|
-
if (
|
|
1108
|
+
if (pollingRef.current) return;
|
|
1109
1109
|
|
|
1110
1110
|
// 只把「读取/解析本地签批信息」放在 try 里,避免后面的逻辑异常被静默吞掉
|
|
1111
1111
|
var signInfo = null;
|
|
@@ -1134,6 +1134,7 @@ var FileItem = function FileItem(_ref) {
|
|
|
1134
1134
|
// 兜底:连续 10 次轮询仍未成功则结束轮询,避免无限请求
|
|
1135
1135
|
var pollCount = 0;
|
|
1136
1136
|
timerRef.current = setInterval(function () {
|
|
1137
|
+
console.log('start polling----');
|
|
1137
1138
|
getSignedFile(docId, contrId, nameVal)["catch"](function (e) {
|
|
1138
1139
|
// 单次请求异常按失败处理,避免未处理的 rejection 打断轮询
|
|
1139
1140
|
console.error('轮询签批结果异常', e);
|
|
@@ -1172,7 +1173,7 @@ var FileItem = function FileItem(_ref) {
|
|
|
1172
1173
|
} catch (e) {
|
|
1173
1174
|
console.error('更新文件 loading 状态失败', e);
|
|
1174
1175
|
}
|
|
1175
|
-
}, [fileId
|
|
1176
|
+
}, [fileId]);
|
|
1176
1177
|
|
|
1177
1178
|
// 仅在卸载时清理定时器;不能放进上面的 effect,否则 loading 变化会清掉正在进行的轮询
|
|
1178
1179
|
(0, _react.useEffect)(function () {
|
package/lowcode_es/meta.js
CHANGED
|
@@ -101,7 +101,7 @@ function fillRealVersion(meta, packageName, version, basicLibraryVersion) {
|
|
|
101
101
|
packageName = 'ydb-components-material';
|
|
102
102
|
}
|
|
103
103
|
if (version === void 0) {
|
|
104
|
-
version = '0.1.
|
|
104
|
+
version = '0.1.212';
|
|
105
105
|
}
|
|
106
106
|
if (basicLibraryVersion === void 0) {
|
|
107
107
|
basicLibraryVersion = {
|
package/lowcode_lib/meta.js
CHANGED
|
@@ -106,7 +106,7 @@ function fillRealVersion(meta, packageName, version, basicLibraryVersion) {
|
|
|
106
106
|
packageName = 'ydb-components-material';
|
|
107
107
|
}
|
|
108
108
|
if (version === void 0) {
|
|
109
|
-
version = '0.1.
|
|
109
|
+
version = '0.1.212';
|
|
110
110
|
}
|
|
111
111
|
if (basicLibraryVersion === void 0) {
|
|
112
112
|
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.212",
|
|
4
4
|
"description": "ydb-components-material",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -103,10 +103,10 @@
|
|
|
103
103
|
},
|
|
104
104
|
"componentConfig": {
|
|
105
105
|
"isComponentLibrary": true,
|
|
106
|
-
"materialSchema": "https://unpkg.com/ydb-components-material@0.1.
|
|
106
|
+
"materialSchema": "https://unpkg.com/ydb-components-material@0.1.212/build/lowcode/assets-prod.json"
|
|
107
107
|
},
|
|
108
108
|
"lcMeta": {
|
|
109
109
|
"type": "component"
|
|
110
110
|
},
|
|
111
|
-
"homepage": "https://unpkg.com/ydb-components-material@0.1.
|
|
111
|
+
"homepage": "https://unpkg.com/ydb-components-material@0.1.212/build/index.html"
|
|
112
112
|
}
|