chore: add isFunction utils and improve isObject

This commit is contained in:
陈嘉涵
2020-01-19 20:13:50 +08:00
parent 3a4107ef49
commit 4b54ec6a18
11 changed files with 32 additions and 31 deletions

View File

@@ -1,5 +1,5 @@
// Utils
import { createNamespace, isObj } from '../utils';
import { createNamespace, isObject } from '../utils';
import { isMobile } from '../utils/validate/mobile';
// Components
@@ -95,7 +95,7 @@ export default createComponent({
computed: {
areaListLoaded() {
return isObj(this.areaList) && Object.keys(this.areaList).length;
return isObject(this.areaList) && Object.keys(this.areaList).length;
},
areaText() {