From f579bdaac9370519ad81ce1d2a896804996c1828 Mon Sep 17 00:00:00 2001 From: 2betop <2betop.cn@gmail.com> Date: Fri, 12 Jun 2020 16:12:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9A=B4=E9=9C=B2=20validate?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/index.tsx b/src/index.tsx index b88990c4..f1fd61d3 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -155,7 +155,7 @@ import { resolveVariable, resolveVariableAndFilter } from './utils/tpl-builtin'; -import {addRule, str2rules} from './utils/validations'; +import {addRule, str2rules, validate} from './utils/validations'; import {normalizeOptions} from './components/Select'; import {OptionsControl} from './renderers/Form/Options'; @@ -204,6 +204,7 @@ export { registerIcon, Scoped, ScopedContext, + validate, setDefaultTheme, theme, getTheme,