@harbor-design/proform 1.4.14 → 1.4.15
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 +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1154,7 +1154,7 @@ const Ir = {
|
|
|
1154
1154
|
getRuntimeRequired(r) {
|
|
1155
1155
|
let e = `${r.label}是必填项`;
|
|
1156
1156
|
if (r.required)
|
|
1157
|
-
if (o.isString(r.required) && (e = r.required), !r.rules)
|
|
1157
|
+
if (o.isString(r.required) && (e = r.required), o.isFunction(r.required) && (e = r.required()), !r.rules)
|
|
1158
1158
|
r.rules = [], r.rules.push({
|
|
1159
1159
|
required: !0,
|
|
1160
1160
|
message: e
|