easy3wui 1.5.81 → 1.5.83
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/README.md +7 -0
- package/lib/Easy3wFormPage/indexM.js +22 -6
- package/lib/Easy3wTabs/index.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -16,3 +16,10 @@ npm config set registry https://registry.npmjs.org/
|
|
|
16
16
|
npm config set registry https://registry.npmmirror.com/
|
|
17
17
|
检查当前npm源:
|
|
18
18
|
npm config get registry
|
|
19
|
+
|
|
20
|
+
# 生成令牌操作步骤:
|
|
21
|
+
* 登录 npm 官网,进入令牌管理页面(https://www.npmjs.com/settings/(您的用户名)/tokens)。
|
|
22
|
+
* 删除旧令牌:点击令牌右侧的“Delete”(删除)按钮。
|
|
23
|
+
* 创建新令牌:点击“Generate New Token”(生成新令牌),输入名称并勾选“Bypass two-factor authentication”(绕过 2FA)。
|
|
24
|
+
* 立即复制新令牌:创建后立即点击复制按钮,避免离开页面。
|
|
25
|
+
* 配置令牌到 .npmrc 文件,在项目根目录下
|
|
@@ -410,13 +410,17 @@ var Easy3wFormPageM = exports.Easy3wFormPageM = function (_Component) {
|
|
|
410
410
|
var isApproval = document.body.innerHTML.includes('class="approval_flag_only"');
|
|
411
411
|
if (isApproval) {
|
|
412
412
|
noRequireList.forEach(function (item) {
|
|
413
|
-
if (item.
|
|
414
|
-
|
|
413
|
+
if (item.readFlag === true) {
|
|
414
|
+
if (item.fieldType === 'upload' || item.fieldType === 'uploadM' || item.fieldType === 'uploadB') {
|
|
415
|
+
var cmptPros = item.cmptPros;
|
|
415
416
|
|
|
416
|
-
|
|
417
|
+
if (_this.isValidValue(cmptPros.initialValue)) {
|
|
418
|
+
haveValueList.push(item);
|
|
419
|
+
}
|
|
420
|
+
} else if (_this.isValidValue(item.value)) {
|
|
417
421
|
haveValueList.push(item);
|
|
418
422
|
}
|
|
419
|
-
} else
|
|
423
|
+
} else {
|
|
420
424
|
haveValueList.push(item);
|
|
421
425
|
}
|
|
422
426
|
});
|
|
@@ -2411,7 +2415,9 @@ var Easy3wFormPageTightM = exports.Easy3wFormPageTightM = function (_Component2)
|
|
|
2411
2415
|
// null 或 undefined
|
|
2412
2416
|
if (value === null || value === undefined) return false;
|
|
2413
2417
|
// 空字符串
|
|
2414
|
-
if (typeof value === 'string' && value.
|
|
2418
|
+
if (typeof value === 'string' && value.length === 0) return false;
|
|
2419
|
+
// 空数组
|
|
2420
|
+
if (Array.isArray(value) && value.length === 0) return false;
|
|
2415
2421
|
// 空对象(排除数组和 null)
|
|
2416
2422
|
if (typeof value === 'object' && !Array.isArray(value) && Object.keys(value).length === 0) {
|
|
2417
2423
|
return false;
|
|
@@ -2465,7 +2471,17 @@ var Easy3wFormPageTightM = exports.Easy3wFormPageTightM = function (_Component2)
|
|
|
2465
2471
|
var isApproval = document.body.innerHTML.includes('class="approval_flag_only"');
|
|
2466
2472
|
if (isApproval) {
|
|
2467
2473
|
noRequireList.forEach(function (item) {
|
|
2468
|
-
if (
|
|
2474
|
+
if (item.readFlag === true) {
|
|
2475
|
+
if (item.fieldType === 'upload' || item.fieldType === 'uploadM' || item.fieldType === 'uploadB') {
|
|
2476
|
+
var cmptPros = item.cmptPros;
|
|
2477
|
+
|
|
2478
|
+
if (_this2.isValidValue(cmptPros.initialValue)) {
|
|
2479
|
+
haveValueList.push(item);
|
|
2480
|
+
}
|
|
2481
|
+
} else if (_this2.isValidValue(item.value)) {
|
|
2482
|
+
haveValueList.push(item);
|
|
2483
|
+
}
|
|
2484
|
+
} else {
|
|
2469
2485
|
haveValueList.push(item);
|
|
2470
2486
|
}
|
|
2471
2487
|
});
|
package/lib/Easy3wTabs/index.js
CHANGED
|
@@ -73,11 +73,11 @@ var Easy3wTabs = function (_PureComponent) {
|
|
|
73
73
|
this.props,
|
|
74
74
|
children
|
|
75
75
|
) : children && children.length > 0 ? children.map(function (item) {
|
|
76
|
-
return _react2['default'].createElement(
|
|
76
|
+
return item ? _react2['default'].createElement(
|
|
77
77
|
_Easy3wCard2['default'],
|
|
78
78
|
{ label: item.props && item.props.tab ? item.props.tab : '' },
|
|
79
79
|
item.props && item.props.children ? item.props.children : ''
|
|
80
|
-
);
|
|
80
|
+
) : '';
|
|
81
81
|
}) : ''
|
|
82
82
|
);
|
|
83
83
|
};
|