1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
| import Vue from "vue"
| import VueRouter from "vue-router"
| import VueScrollPicker from "vue-scroll-picker"
| import App from "./app.vue"
| import VueHighlightJS from "vue-highlightjs"
|
|
| Vue.use(VueRouter)
| Vue.use(VueHighlightJS)
| Vue.use(VueScrollPicker)
|
| const router = new VueRouter({
| mode: "hash",
| routes: [
| { path: "/", component: require("./example-default.vue").default, },
| { path: "/example-full-binding", component: require("./example-full-binding.vue").default, },
| { path: "/example-styling", component: require("./example-styling.vue").default, },
| { path: "/example-transition", component: require("./example-transition.vue").default, },
| { path: "/example-dynamic-options", component: require("./example-dynamic-options.vue").default, },
| ],
| })
|
| new Vue({
| router,
| el: "#app",
| render: h => h(App),
| })
|
|