|
|
@@ -109,7 +109,7 @@ export function validatePositiveInteger(
|
|
|
*/
|
|
|
export function validatePositiveNumber(errorMessage: string = "必须为正数") {
|
|
|
return (rule: any, value: any, callback: any) => {
|
|
|
- if (!value || value.toString().trim() === "") {
|
|
|
+ if (value === undefined || value === null || value.toString().trim() === "") {
|
|
|
callback();
|
|
|
return;
|
|
|
}
|