From ca27f46e204ee9772040b5b1170b0e2c1addc738 Mon Sep 17 00:00:00 2001 From: k94314517 <8417338+k94314517@user.noreply.gitee.com> Date: 星期五, 18 八月 2023 23:26:01 +0800 Subject: [PATCH] 111 --- web_standard/src/utils/form.js | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/web_standard/src/utils/form.js b/web_standard/src/utils/form.js index 4d6b612..667e154 100644 --- a/web_standard/src/utils/form.js +++ b/web_standard/src/utils/form.js @@ -35,3 +35,12 @@ } callback() } + +export function numRule(rule, value, callback) { + // debugger + if (value == null || value < 0 || !value) { + callback(new Error()) + } else { + callback() + } +} -- Gitblit v1.9.3