mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-05 05:42:44 +08:00
21 lines
608 B
JavaScript
21 lines
608 B
JavaScript
import { createApp } from 'vue';
|
|
import DemoBlock from './components/DemoBlock.vue';
|
|
import DemoSection from './components/DemoSection.vue';
|
|
import { router } from './router';
|
|
import App from './App.vue';
|
|
import '@vant/touch-emulator';
|
|
|
|
window.app = createApp(App)
|
|
.use(router)
|
|
.component(DemoBlock.name, DemoBlock)
|
|
.component(DemoSection.name, DemoSection);
|
|
|
|
setTimeout(() => {
|
|
window.app.mount('#app');
|
|
}, 0);
|
|
|
|
// https://stackoverflow.com/questions/3885018/active-pseudo-class-doesnt-work-in-mobile-safari/33681490#33681490
|
|
document.addEventListener('touchstart', () => {}, {
|
|
passive: true,
|
|
});
|