import App from './App' import { createSSRApp } from 'vue' import pinia from './store.js' import CommonLoading from './components/loading.vue' uni.$zp = { config: { 'default-page-size': 20, 'show-loading-more-when-reload': true, // 列表刷新时自动显示加载更多view,且为加载中状态 'show-scrollbar': false, // 控制是否出现滚动条 'refresher-refreshing-scrollable': false, // 自定义下拉刷新刷新中状态是否允许列表滚动 "min-delay":300,// 触发@query后最小延迟处理的时间,单位为毫秒 'empty-view-img': '/static/images/common/default_img.png', 'empty-view-center': false, // 空数据图片是否垂直居中,默认为是,若设置为否即为从空数据容器顶部开始显示 //'auto-hide-empty-view-when-pull':false,// 加载中时是否自动隐藏空数据图 } } export function createApp() { const app = createSSRApp(App) app.use(pinia) app.component('CommonLoading',CommonLoading) return { app } }