新增:全量优化

This commit is contained in:
yuantao
2025-11-05 16:20:06 +08:00
parent ca6bf7f211
commit 65656f1810
27 changed files with 2407 additions and 292 deletions

View File

@@ -2,18 +2,22 @@ import App from './App'
import uviewPlus from '/uview-plus'
import globalMixin from './mixins/global'
import { createSSRApp } from 'vue'
import { preventReClick, longPress, permission, drag } from './directives/index'
import './uni.promisify.adaptor'
uni.$zp = {
config: {
'empty-view-text': '空空如也~~',
'refresher-enabled': true,
},
}
export function createApp() {
const app = createSSRApp(App)
app.use(uviewPlus)
app.use(globalMixin)
// 注册自定义指令
app.directive('prevent-re-click', preventReClick)
app.directive('long-press', longPress)
app.directive('permission', permission)
app.directive('drag', drag)
return { app }
}