From c5c6fa800cedd37cea0e3cc3e68df78b47ee2813 Mon Sep 17 00:00:00 2001 From: k94314517 <8417338+k94314517@user.noreply.gitee.com> Date: 星期一, 28 八月 2023 10:37:59 +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