From 38dff69b2c218ae53b4cc79257368139a2803ebc Mon Sep 17 00:00:00 2001
From: Mr.Zhang <710666463@qq.com>
Date: 星期二, 15 八月 2023 18:18:19 +0800
Subject: [PATCH] 08.15

---
 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