We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5fd10d commit 07afc77Copy full SHA for 07afc77
2 files changed
packages/basic/src/index.ts
@@ -1,4 +1,4 @@
1
-import _ from 'lodash';
+import * as _ from 'lodash';
2
import Config, { setConfig } from './config';
3
4
export * from './apis';
packages/vue2/src/utils/install.js
@@ -1,5 +1,7 @@
import { _ } from '@/common';
+const { at } = _;
+
5
/**
6
* 将 Components 数组转换为对象
7
* @deprecated
@@ -134,7 +136,7 @@ export function installOptions(Vue) {
134
136
function (obj, propertyPath) {
135
137
if (propertyPath === undefined || propertyPath === null) {
138
return undefined;
- } else return _.at(obj, [propertyPath])[0];
139
+ } else return at(obj, [propertyPath])[0];
140
};
141
142
Vue.prototype.$setAt =
0 commit comments