31 lines
966 B
JavaScript
31 lines
966 B
JavaScript
import App from './App'
|
|
import { createSSRApp } from 'vue'
|
|
|
|
import "/utils/webview.js"
|
|
//把表单字段组件注册到全局,解决跨平台兼容的容器组件循环引用问题
|
|
import WFormItem from '@/components/WFormItem.vue'
|
|
import PreviewIframe from '@/components/previewIframe.vue'
|
|
|
|
import { Popup, Icon, Badge, Pagination, Field, Picker, Search } from 'vant';
|
|
// import VueQuillEditor from "vue-quill-editor";
|
|
// import "quill/dist/quill.core.css"; // import styles
|
|
// import "quill/dist/quill.snow.css"; // for snow theme
|
|
// import "quill/dist/quill.bubble.css"; // for bubble theme
|
|
|
|
export function createApp() {
|
|
const app = createSSRApp(App)
|
|
app.component('WFormItem', WFormItem);
|
|
app.component('PreviewIframe', PreviewIframe);
|
|
// app.use(VueQuillEditor);
|
|
app.use(Popup);
|
|
app.use(Icon);
|
|
app.use(Badge);
|
|
app.use(Pagination);
|
|
app.use(Field);
|
|
app.use(Picker);
|
|
app.use(Search);
|
|
|
|
return {
|
|
app
|
|
}
|
|
} |