9 changed files with 40 additions and 4 deletions
@ -0,0 +1,7 @@ |
|||
const version = '3.0.0'; |
|||
|
|||
export default { |
|||
V: version, |
|||
version, |
|||
theme: [], |
|||
}; |
@ -0,0 +1,5 @@ |
|||
// 定义插件相关信息
|
|||
/* eslint-disable */ |
|||
export default { |
|||
defaults: [], // 默认插件id列表
|
|||
}; |
@ -0,0 +1,5 @@ |
|||
// 定义项目中定位的元素的层级
|
|||
/* eslint-disable */ |
|||
export default { |
|||
roleBar: 999, // 角色栏成绩
|
|||
}; |
@ -0,0 +1,17 @@ |
|||
import app from '@/config/app.js'; |
|||
import zIndex from '@/config/zIndex.js'; |
|||
import plugin from '@/config/plugin.js'; |
|||
|
|||
const $t = { |
|||
zIndex, // 定位元素层级
|
|||
app, // app级别的相关配置
|
|||
plugin, // 插件相关配置信息
|
|||
}; |
|||
|
|||
uni.$t = $t; |
|||
|
|||
const install = Vue => { |
|||
Vue.prototype.$t = $t; |
|||
}; |
|||
|
|||
export default { install }; |
Loading…
Reference in new issue