@harbor-design/proform 1.4.0 → 1.4.1

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.
Files changed (2) hide show
  1. package/dist/index.js +2 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1145,13 +1145,11 @@ const _r = {
1145
1145
  message: `${r.label}是必填项`
1146
1146
  });
1147
1147
  }
1148
- else if (r.rules) {
1149
- const t = (e = r.rules) == null ? void 0 : e.findIndex((s) => !!s.required);
1150
- t !== -1 ? r.rules[t].required = !1 : r.rules.unshift({
1148
+ else
1149
+ r.rules && ((e = r.rules) == null ? void 0 : e.findIndex((s) => !!s.required)) === -1 && r.rules.unshift({
1151
1150
  required: !0,
1152
1151
  message: `${r.label}是必填项`
1153
1152
  });
1154
- }
1155
1153
  return {
1156
1154
  rules: r.rules
1157
1155
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harbor-design/proform",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",