typescriptvuenocodevue3drag-and-dropvitelowcodetsxlow-codevuex4vue-router4designdraggableelement-pluselement-uimonaco-editortsvant-uidemo
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
577 B
26 lines
577 B
import { createApp } from 'vue'
|
|
import App from './App.vue'
|
|
|
|
import './plugins/element-plus'
|
|
import { setupVant } from './plugins/vant'
|
|
|
|
import 'normalize.css'
|
|
import 'virtual:windi.css'
|
|
import 'virtual:windi-devtools'
|
|
|
|
import router from './router/'
|
|
import store from './store/'
|
|
|
|
const app = createApp(App)
|
|
|
|
// 使用vant插件
|
|
setupVant(app)
|
|
|
|
app.config.globalProperties.$$refs = {}
|
|
|
|
// if (import.meta.env.DEV) {
|
|
window.$$refs = app.config.globalProperties.$$refs
|
|
// }
|
|
app.use(router).use(store)
|
|
// 路由准备完毕再挂载
|
|
router.isReady().then(() => app.mount('#app'))
|
|
|