bkui-vue 0.0.1-beta.333 → 0.0.1-beta.335
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.cjs.js +1 -1
- package/dist/index.esm.js +6 -1
- package/dist/index.umd.js +1 -1
- package/lib/form/index.js +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
@@ -28810,7 +28810,12 @@ const getRuleMessage = (rule) => {
|
|
28810
28810
|
return rule.message;
|
28811
28811
|
};
|
28812
28812
|
var defaultValidator = {
|
28813
|
-
required: (value) =>
|
28813
|
+
required: (value) => {
|
28814
|
+
if (typeof value === "number") {
|
28815
|
+
return true;
|
28816
|
+
}
|
28817
|
+
return !_$1.isEmpty(value);
|
28818
|
+
},
|
28814
28819
|
min: (value, min2) => value >= min2,
|
28815
28820
|
max: (value, max2) => max2 >= value,
|
28816
28821
|
email: (value) => /^[A-Za-z\d]+([-_.][A-Za-z\d]+)*@([A-Za-z\d]+[-.])+[A-Za-z\d]{2,4}$/.test(value),
|