Browse Source

无JIRA任务 refactor: func中的挂载BI挪走

es6
Zhenfei.Li 2 years ago
parent
commit
455a161876
  1. 17
      src/core/func/index.js
  2. 3
      src/core/index.js

17
src/core/func/index.js

@ -4,20 +4,3 @@ export * from "./date";
export * from "./function";
export * from "./number";
export * from "./string";
// need delete
import * as _alias from "./alias";
import * as _array from "./array";
import * as _date from "./date";
import * as _function from "./function";
import * as _number from "./number";
import * as _string from "./string";
Object.assign(BI, {
..._alias,
..._array,
..._date,
..._function,
..._number,
..._string,
});

3
src/core/index.js

@ -6,6 +6,7 @@ import * as inject from "./5.inject";
import * as action from "./action";
import * as behavior from "./behavior";
import * as controllers from "./controller";
import * as func from "./func";
import { StyleLoaderManager } from "./loader/loader.style";
import "./h";
import { ShowListener } from "./listener/listener.show";
@ -18,6 +19,7 @@ export * from "./5.inject";
export * from "./action";
export * from "./behavior";
export * from "./controller";
export * from "./func";
export {
StyleLoaderManager,
@ -34,6 +36,7 @@ Object.assign(BI, {
component: inject.shortcut,
...action,
...controllers,
...func,
StyleLoaderManager,
ShowListener,
});

Loading…
Cancel
Save