You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
540 B

import app from '@/config/app.js';
import zIndex from '@/config/zIndex.js';
import plugin from '@/config/plugin.js';
4 years ago
import storage from '@/utils/storage.js';
import time from '@/utils/time.js';
import ui from '@/utils/ui.js';
const $t = {
zIndex, // 定位元素层级
app, // app级别的相关配置
plugin, // 插件相关配置信息
4 years ago
storage, // 本地存储storage封装
time, // 时间处理
ui, // ui界面提示相关
};
uni.$t = $t;
const install = Vue => {
Vue.prototype.$t = $t;
};
export default { install };