add loading

This commit is contained in:
Harvey Zack committed 2018-10-15 17:36:10 +08:00
1 parent e319afd422
commit 7cdf9f69e6
14 files changed
+329 -6

No files matched your search

+10
View File
@@ -60,4 +60,14 @@ export default function verification(option) {
Array.isArray(option.layers),
`'layers' option require 'array' type, but got '${typeof option.layers}'.`
);
errorHandle(
Array.isArray(option.contextmenu),
`'contextmenu' option require 'array' type, but got '${typeof option.contextmenu}'.`
);
errorHandle(
typeof option.loading === 'string',
`'loading' option require 'string' type, but got '${typeof option.loading}'.`
);
}