vue项目中使用ant-design-vue中a-tabel组件

1,首先安装ant-design-vue:yarn add ant-design-vue

2,在main.js中引入:

import Antd from 'ant-design-vue'

import 'ant-design-vue/dist/antd.css'

Vue.use(Antd)

3,App.vue页面




HelloWord.vue: 



router.js:

import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path: '/about',
    name: 'About', 
    component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
  }
]

const router = new VueRouter({
  routes
})

export default router

 

 

你可能感兴趣的:(Vue.js)