Merge branch 'master' of https://git.jb18cm.plus/fanfpy/AssetManager.UniApp
This commit is contained in:
commit
947e42b341
5
main.js
5
main.js
@ -14,6 +14,7 @@ app.$mount()
|
||||
// #ifdef VUE3
|
||||
import { createSSRApp } from 'vue'
|
||||
import api from './utils/api'
|
||||
import uviewPlus from 'uview-plus'
|
||||
|
||||
console.log('🚀 应用启动,导入api模块')
|
||||
|
||||
@ -24,6 +25,10 @@ export function createApp() {
|
||||
app.config.globalProperties.$api = api
|
||||
console.log('✅ api已全局注册为 $api')
|
||||
|
||||
// 注册uView Plus
|
||||
app.use(uviewPlus)
|
||||
console.log('✅ uView Plus 已全局注册')
|
||||
|
||||
return {
|
||||
app
|
||||
}
|
||||
|
||||
20
package-lock.json
generated
Normal file
20
package-lock.json
generated
Normal file
@ -0,0 +1,20 @@
|
||||
{
|
||||
"name": "AssetManager.UniApp",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"dependencies": {
|
||||
"uview-ui": "^2.0.36"
|
||||
}
|
||||
},
|
||||
"node_modules/uview-ui": {
|
||||
"version": "2.0.36",
|
||||
"resolved": "https://registry.npmjs.org/uview-ui/-/uview-ui-2.0.36.tgz",
|
||||
"integrity": "sha512-ASSZT6M8w3GTO1eFPbsgEFV0U5UujK+8pTNr+MSUbRNcRMC1u63DDTLJVeArV91kWM0bfAexK3SK9pnTqF9TtA==",
|
||||
"engines": {
|
||||
"HBuilderX": "^3.1.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
5
package.json
Normal file
5
package.json
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"dependencies": {
|
||||
"uview-ui": "^2.0.36"
|
||||
}
|
||||
}
|
||||
@ -68,5 +68,11 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"uniIdRouter": {}
|
||||
"uniIdRouter": {},
|
||||
"easycom": {
|
||||
"autoscan": true,
|
||||
"custom": {
|
||||
"^u-(.*)": "uview-plus/components/u-$1/u-$1.vue"
|
||||
}
|
||||
}
|
||||
}
|
||||
3
uni.scss
3
uni.scss
@ -74,3 +74,6 @@ $uni-color-subtitle: #555555; // 二级标题颜色
|
||||
$uni-font-size-subtitle:26px;
|
||||
$uni-color-paragraph: #3F536E; // 文章段落颜色
|
||||
$uni-font-size-paragraph:15px;
|
||||
|
||||
/* 引入uView样式 */
|
||||
@import "uview-plus/index.scss";
|
||||
|
||||
9
vite.config.js
Normal file
9
vite.config.js
Normal file
@ -0,0 +1,9 @@
|
||||
import { defineConfig } from 'vite'
|
||||
import uni from '@dcloudio/vite-plugin-uni'
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [uni()],
|
||||
optimizeDeps: {
|
||||
include: ['uview-plus']
|
||||
}
|
||||
})
|
||||
Loading…
Reference in New Issue
Block a user