easy3wui 1.5.80 → 1.5.82

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 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 文件,在项目根目录下
@@ -91,6 +91,11 @@
91
91
  cursor: pointer;
92
92
  }
93
93
  @media (max-width: 768px) {
94
+ .gridBox :global .ant-table-tbody > .ant-table-row .e3wGridLongText {
95
+ text-align: left;
96
+ white-space: wrap;
97
+ word-break: normal;
98
+ }
94
99
  .gridBox td a:not([href]) {
95
100
  pointer-events: none;
96
101
  color: #000000;
package/assets/index.css CHANGED
@@ -2401,6 +2401,11 @@ s {
2401
2401
  cursor: pointer;
2402
2402
  }
2403
2403
  @media (max-width: 768px) {
2404
+ .gridBox :global .ant-table-tbody > .ant-table-row .e3wGridLongText {
2405
+ text-align: left;
2406
+ white-space: wrap;
2407
+ word-break: normal;
2408
+ }
2404
2409
  .gridBox td a:not([href]) {
2405
2410
  pointer-events: none;
2406
2411
  color: #000000;
@@ -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.fieldType === 'upload' || item.fieldType === 'uploadM' || item.fieldType === 'uploadB') {
414
- var cmptPros = item.cmptPros;
413
+ if (item.readFlag === true) {
414
+ if (item.fieldType === 'upload' || item.fieldType === 'uploadM' || item.fieldType === 'uploadB') {
415
+ var cmptPros = item.cmptPros;
415
416
 
416
- if (_this.isValidValue(cmptPros.initialValue)) {
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 if (_this.isValidValue(item.value)) {
423
+ } else {
420
424
  haveValueList.push(item);
421
425
  }
422
426
  });
@@ -895,7 +899,7 @@ var Easy3wFormPageM = exports.Easy3wFormPageM = function (_Component) {
895
899
  rules: [{ required: boolCrRequired, message: requiredMessage || '\u8BF7' + strRMsg + label }]
896
900
  })(itemArea)
897
901
  );
898
- } else if (fieldType === 'textarea' && typeof str === 'string') {
902
+ } else if (fieldType === 'textarea' && typeof itemValue === 'string') {
899
903
  return _react2['default'].createElement(
900
904
  FormItem,
901
905
  (0, _extends3['default'])({
@@ -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.trim() === '') return false;
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 (_this2.isValidValue(item.value)) {
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
  });
@@ -783,7 +783,7 @@ var Easy3wFormPagePC = exports.Easy3wFormPagePC = function (_Component) {
783
783
  rules: [{ required: boolCrRequired, message: requiredMessage || '\u8BF7' + strRMsg + label }]
784
784
  })(itemArea)
785
785
  );
786
- } else if (fieldType === 'textarea' && typeof str === 'string') {
786
+ } else if (fieldType === 'textarea' && typeof itemValue === 'string') {
787
787
  return _react2['default'].createElement(
788
788
  FormItem,
789
789
  (0, _extends3['default'])({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easy3wui",
3
- "version": "1.5.80",
3
+ "version": "1.5.82",
4
4
  "description": "easy3wui components for react",
5
5
  "keywords": [
6
6
  "react",