12345678910111213141516171819202122232425262728 |
- import Storage from "./utils/storage";
- import Emitter from "./mixins/emitter";
- import { deepMerge } from "./utils";
- import "./common";
- const install = (Vue, options = {}) => {
- // 默认配置数据
- let data = {
- // 首页页面路径
- homePage: "/",
- };
- let $cl = {
- ...deepMerge(data, options),
- Storage,
- author: "cool",
- version: "1.8.16",
- };
- Vue.prototype.$cl = uni.$cl = $cl;
- };
- export { Emitter, Storage };
- export default {
- install,
- };
|