@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.
- package/dist/index.js +2 -4
- 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
|
|
1149
|
-
|
|
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
|
};
|