bl-common-vue3 3.8.43 → 3.8.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +5 -11
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,17 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
* 组件库入口
|
|
3
|
-
* 按需导入:import { ChooseOrgMember } from 'bl-common-vue3'
|
|
4
|
-
* 全量注册:import BlCommon from 'bl-common-vue3'; app.use(BlCommon)
|
|
5
|
-
*/
|
|
6
|
-
import utils from "./src/common/utils/util.js";
|
|
7
|
-
import { commonLocale, commonAllLocale } from "./src/locale/index";
|
|
8
|
-
|
|
9
|
-
export { utils, commonLocale, commonAllLocale };
|
|
1
|
+
import * as components from "./src/components/components.js";
|
|
10
2
|
|
|
11
3
|
export * from "./src/components/components.js";
|
|
4
|
+
import utils from "./src/common/utils/util.js";
|
|
5
|
+
import { commonLocale, commonAllLocale } from "./src/locale/index";
|
|
12
6
|
|
|
13
|
-
export const install =
|
|
14
|
-
const components = await import("./src/components/components.js");
|
|
7
|
+
export const install = function (app) {
|
|
15
8
|
Object.keys(components).map((key) => {
|
|
16
9
|
const component = components[key];
|
|
17
10
|
if (component.install) {
|
|
@@ -23,6 +16,7 @@ export const install = async function (app) {
|
|
|
23
16
|
|
|
24
17
|
export default {
|
|
25
18
|
install,
|
|
19
|
+
components,
|
|
26
20
|
utils,
|
|
27
21
|
commonLocale,
|
|
28
22
|
commonAllLocale,
|