This commit is contained in:
Harvey Zack committed 2018-10-26 15:22:54 +08:00
1 parent 86e4c68391
commit a146dc6812
4 files changed
+4 -5

No files matched your search

+1 -1
View File
@@ -3,7 +3,7 @@ const validElement = (key, value, type, path) => {
let msg = `${path.join('.')}.${key} require 'string' or 'Element' type, but got '${type}'`;
if (type === 'string') {
if (type.trim() === '') {
if (value.trim() === '') {
handle = false;
msg = `${path.join('.')}.${key} can not be empty'`;
} else {