@hoc-element/table
Version:
📦 A Vue3.x Table Component built on Webpack 5 that follows the Configuration
16 lines (12 loc) • 302 B
JavaScript
import { createRouter, createWebHistory } from 'vue-router'
const importModule = (filePath) => {
return () => import(`example/${filePath}`)
}
const routes = [{
path: '/',
component: importModule('views/ExampleTable')
}]
export default createRouter({
routes,
history: createWebHistory()
})