{"size": 845, "ext": "js", "max_stars_repo_path": "subapp-login/src/library/install.js", "max_stars_repo_name": "qiuquang/wl-mfe", "max_stars_repo_stars_event_min_datetime": "2020-04-28T01:53:12.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-28T01:53:23.000Z", "max_issues_repo_path": "subapp-login/src/library/install.js", "max_issues_repo_name": "qiuquang/wl-mfe", "max_issues_repo_issues_event_min_datetime": "2020-05-21T05:22:34.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-08T23:20:38.000Z", "max_forks_repo_path": "subapp-login/src/library/install.js", "max_forks_repo_name": "qiuquang/wl-mfe", "max_forks_repo_forks_event_min_datetime": "2020-04-28T14:31:17.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-30T12:57:51.000Z"}
{"max_stars_count": 410, "max_issues_count": 33, "max_forks_count": 107, "avg_line_length": 22.2368421053, "max_line_length": 71, "alphanum_fraction": 0.6449704142}

/**
 * @name 导入插件
 */
import FtUi from "./ui/index"; // 导入ui
import VueClipboard from 'vue-clipboard2';
/**
 * @name 导入方法
 */
import * as FUNCONVUE from "./js/func-mounted-on-vue" // 导入需要挂载在vue上的方法
import * as TOOL from "./js/tool.js"
import * as STORAGE from "./js/storage.js"
import * as VALIDATOR from "./js/validator.js"
import directives from "./js/directives"; // 添加全局指令
/**
 * @name 导入样式
 */
import './css/install.scss'

/**
 * library挂载vue实例函数
 * @param {*} vue vue实例
 * @param {*} store vuex实例
 */
const libraryInstall = (vue, store) => {
  vue.use(FtUi);
  vue.use(VueClipboard);

  // 注册需要挂载在vue上的工具类
  let object = { ...FUNCONVUE, ...TOOL, ...STORAGE, ...VALIDATOR };
  for (let key in object) {
    vue.prototype[key] = object[key];
  }

  directives.map(i => vue.directive(i.name, i.rule(store)))
}

export default libraryInstall;